
<table width="770" border="1" cellspacing="0" cellpadding="0" bordercolor="#999999">
  <tr> 
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF" align="center" valign="top"> 
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> 
            <p><font class="directory">区块管理:</font><b>根类别</b> [<a href="#note">注意</a>]</p>
          </td>
        </tr>
        <tr> 
          <td align="right" bordercolor="#99CCCC">[<a href="index.php?action=blocks#add">添加区块</a>] 
            [<a href="?action=list_file">返回</a>]</td>
        </tr>
      </table>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
        </tr>
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
              <form action="index.php" method="post">
                <tr> 
                  <th width="3%" rowspan="2">id</th>
                  <th width="22%" rowspan="2">标题</th>
                  <th colspan="3" align="center">显示页面</th>
                  <th width="19%" rowspan="2">显示位置 </th>
                  <th width="23%" rowspan="2">操作</th>
                </tr>
                <tr bgcolor="#E8ECF9"> 
                  <td width="7%" bgcolor="#999999"><b><font color="#FFFFFF">首页</font></b></td>
                  <td width="11%" bgcolor="#999999"><b><font color="#FFFFFF">检索页</font></b></td>
                  <td width="15%" bgcolor="#999999"><b><font color="#FFFFFF">文章详细页</font></b></td>
                </tr>
                <!-- BEGIN blocks -->
                <tr bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F5F5F5'" onMouseOut ="this.style.backgroundColor='#ffffff'"> 
                  <td width="3%"> 
                    <input type="checkbox" name="file_id[]" value="{id}">
                  </td>
                  <td width="22%">{title} </td>
                  <td width="7%"> {home_page} </td>
                  <td width="11%">{type_page} </td>
                  <td width="15%">{detail_page} </td>
                  <td width="19%">&nbsp;{position} &nbsp;</td>
                  <td width="23%" align="center"><a href="index.php?action=blocks&del_blocks=1&del_id={id}"  onClick="return confirm('你确定要删除吗？？？')"><img src="../images/admin/delete.gif" width="27" height="17" border="0" alt="删除"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&mod_id={id}#add"><img src="../images/admin/edit.gif" width="27" height="17" border="0" alt="修改"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&move=down&move_id={id}&order_num={order_num}"><img src="../images/admin/down.gif" width="27" height="17" border="0" alt="下移"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&move=up&move_id={id}&order_num={order_num}"> 
                    <img src="../images/admin/up.gif" width="27" height="17" border="0" alt="上移"></a></td>
                </tr>
                <!-- END blocks -->
                <tr> 
                  <td colspan="7" bgcolor="#FFFFFF"><img src="../images/admin/003.gif" width="38" height="22"> 
                    <input type="submit" name="Submit" value=" 删除 ">
                    <input type="hidden" name="action" value="blocks">
                    <input type="hidden" name="del_blocks" value="1">
                  </td>
                </tr>
              </form>
            </table>
          </td>
        </tr>
        <tr> 
          <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <hr>
      <p> <a name="add"> </a><br>
      </p>
      <table width="70%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
        <form name="form1" method="post" action="index.php">
          <tr align="center"> 
            <th colspan="2">区块设定</th>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">*标题：</td>
            <td width="81%"> 
              <input type="text" name="title" value="{settitle}" size="40">
            </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td width="19%" rowspan="2" bgcolor="#F3F3F3">*内容：<br>
              <a href="#note">（注释一）</a><br>
            </td>
            <td width="81%" bgcolor="#F3F3F3"> 调用插件文件： 
              <select name="block_file">
				{selection}
              </select>
              或者录入内容：</td>
          </tr>
          <tr> 
            <td width="81%" bgcolor="#F3F3F3" valign="top"> 
              <textarea name="info" cols="50" rows="5">{setinfo}</textarea>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">外观STYLE：<br>
              <a href="#note">（注释二）</a><br>
            </td>
            <td width="81%"> Table: 
	    <select name="table_class">
                <option value="0" {table_s}>使用默认</option>
                <option value="table1" {table1}>table1</option>
                <option value="table2" {table2}>table2</option>
                <option value="table3" {table3}>table3</option>
              </select>
              
              , Td1: 
              <select name="td1_class">
                <option value="0" {td1_s}>使用默认</option>
                <option value="td1_1" {td1_1}>td1_1</option>
                <option value="td1_2" {td1_2}>td1_2</option>
                <option value="td1_3" {td1_3}>td1_3</option>
		<option value="td1_4" {td1_4}>td1_4</option>
                <option value="td1_5" {td1_5}>td1_5</option>
		<option value="hidden" {hidden}>隐藏</option>
              </select>
              
              , Td2: 
              <select name="td2_class">
                <option value="0" {td2_s}>使用默认</option>
                <option value="td2_1" {td2_1}>td2_1</option>
                <option value="td2_2" {td2_2}>td2_2</option>
                <option value="td2_3" {td2_3}>td2_3</option>
		<option value="td2_4" {td2_4}>td2_4</option>
                <option value="td2_5" {td2_5}>td2_5</option>
              </select>
            </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td width="19%">*显示页面：</td>
            <td width="81%" bgcolor="#F3F3F3"> 
              <input type="checkbox" name="home_page" value="1" {check1}>
              首页 ， 
              <input type="checkbox" name="type_page" value="1" {check2}>
              栏目检索， 
              <input type="checkbox" name="detail_page" value="1" {check3}>
              文章详细页 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">*位置：</td>
            <td width="81%"> 
              <select name="position">
                <option value="0" {selected}>请选择</option>
                <option value="4" {position4}>左</option>
                <option value="1" {position1}>右</option>
                <option value="3" {position3}>上</option>
                <option value="2" {position2}>下</option>
              </select>
              <input type="hidden" name="block_id" value="{block_id}">
              <input type="hidden" name="action" value="blocks">
              <input type="hidden" name="add_block" value="{add_block}">
              <input type="hidden" name="mod_block" value="{mod_block}">
            </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td colspan="2" align="center"> 
              <input type="submit" name="Submit2" value="Submit">
            </td>
          </tr>
        </form>
      </table>
      <p>&nbsp;</p>
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td bgcolor="#F3F3F3" align="center" valign="top"> <a name="note"> </a> 
            <table width="96%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> 
                  <p>注意：<font color="#339900">检索页和文章详细页的区块将分别被所有子类别继承，并优先显示</font></p>
                  <p>注释一：<font color="#339900">内容。如果您填写了“调用插件内容”，那么“手工录入”内容将被忽略。<br>
                    调用的插件是“includes/plugs”中的文件，只填写文件名即可。</font></p>
                  <p>注释二：<font color="#339900">区块外观。可以将每个区块的各个部分个性化，请看下图示例。留空的话系统将使用默认。</font></p>
                  <p><img src='../images/admin/blockdemo.gif'></p>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
