<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo SYS_CHARSET ?>">
<title>article_subject_list_edit</title>
<link href="<?php echo SYS_ADMIN_STYLE_PATH ?>style/common.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo SYS_ADMIN_STYLE_PATH ?>js/validate.js"></script>
<script language="javascript" src="<?php echo SYS_ADMIN_STYLE_PATH ?>js/common.js"></script>
</head>

<body>
<table class="nav_table" cellpadding="0" cellspacing="0">	
	<tr>
		<td class="nav_td"><?php echo $layout['eifrtf_menu_nav'] ?></td>
	</tr>	
</table>
<table class="toolbar_table" cellpadding="0" cellspacing="0">
	<tr>
		<td class="toolbar_td"><?php echo $layout['eifrtf_toolbar'] ?></td>
	</tr>
</table>

<table cellpadding="0" cellspacing="0" class="edit_tb">
  
  <form name="editForm" method="post" action="" onSubmit="return Validator.Validate(this,3)">
	<input type="hidden" name="selectid" id="selectValue" value="">
	<input type="hidden" name="selectValue" id="selectValue" value="">
    <input type="hidden" name="article_id" id="article_id" value="<?php echo $layout['article_id'] ?>">
	<input type="hidden" name="template_id" id="template_id" value="<?php echo $layout['template_id'] ?>">
    <input type="hidden" name="layout_id" id="layout_id" value="<?php echo $layout['layout_id'] ?>">
    <tr> 
      <td><a href="article_edit.php?act=edit_base&selectid=<?php echo $layout['article_id'] ?>"><b><?php echo $layout['title'] ?></b></a></td>
    </tr>
    <tr> 
      <td>
      	<img src="<?php echo SYS_ADMIN_STYLE_PATH ?>images/list.gif" align="absmiddle">&nbsp;<span class="edit_subtitle_txt">板块列表</span>
      	<input type="checkbox" id="chk_list" value="1" checked onclick="showDisplayHidden('chk_list','list_layout')">
      </td>
    </tr>
    <tr id="list_layout"> 
      <td>
      	<table class="list_tb" cellpadding="0" cellspacing="0">
				<tr class="list_title_tr_bg">
				<td width="8%" class="list_title_td">编号</td>
				<td width="42%" class="list_title_td">标题</td>
				<td width="30%" class="list_title_td">板块标记</td>
				<td width="20%" class="list_title_td">操作</td>
				</tr>
				<?php
                $num=1;
                foreach($layout['eifrtf_layoutlist'] as $row):
                $num++;
                ?>
				<tr class="list_sub_tr_bg" onMouseOver="this.className='list_mouseover_tr_bg'" onMouseOut="this.className='list_sub_tr_bg'" >
				<td width="8%" title="ID=<?php echo $row['id'] ?>"><?php echo $num ?></td>
				<td width="42%" title="<?php echo $row['intro'] ?>"><span <?php if($layout['layout_id'] == $row['id']) echo 'class="title_selected"'?>><?php echo $row['title'] ?></span></td>
				<td width="30%"><?php echo $row['layout_code'] ?></td>
				<td width="20%"><?php echo $row['operate_btn'] ?></td>
				</tr>
				<?php endforeach; ?>
				</table> 	
      </td>
    </tr>
    <tr style="display:{is_display}"> 
      <td>
      	<img src="<?php echo SYS_ADMIN_STYLE_PATH ?>images/edit.gif" align="absmiddle">&nbsp;<span class="edit_subtitle_txt">编辑文章列表</span>
      	<input type="checkbox" id="chk_edit" value="1" checked onclick="showDisplayHidden('chk_edit','edit_layout')">
      </td>
    </tr>
    <tr id="edit_layout"> 
      <td>
      	<table width="100%" cellpadding="0" cellspacing="0" border="0">	
            <tr>
                <td>
                    <select size="8" multiple="multiple" name="article_list[]" id="article_list"><?php echo $layout['article_list'] ?></select>
                </td>
                <td>
                    <input type="button" name="btn_add" value="添加..." onclick="openSelectWin('article_select.php?act=insert')">
                    <input type="button" name="btn_delete" value="删除所选项" onclick="referencebrowser_removeReference('article_list',1)">
                    <input type="button" name="btn_preview" value="预览所选项" onclick="referencebrowser_openBrowser('article_list','article_view.php?selectid=')">
                    <input type="button" name="btn_selectAll" value="全选" onclick="referencebrowser_selectAllReference('article_list',1)">
                </td>     
            </tr>	
        </table>
      </td>
    </tr>  
  </form>
</table>

</body>
</html>

