<!--
<?php
print<<<EOT
-->
<table width=100% cellspacing=1 cellpadding=3  class="tablewidth">
  <tr class="head"> 
    <td> <span class=bold><font color="#FFFFFF">添加分类</font></span></td>
  </tr>
  <tr> <form action="index.php?lfj=$lfj&action=addsort" method=POST>
    <td bgcolor=#FFFFFF> 
       
      
      
      
        <span class=bold>创建新分类--</span>&nbsp;名称 
        <input type=text name="name" size=10 maxlength="50">
        <input type=submit value=" 创 建 " name="submit">
        
    
    </td>  </form>
</table>
 
<table width=100% cellspacing=1 cellpadding=3  class="tablewidth"><form name="formlist" method="post" action="index.php?lfj=$lfj&action=editlist">
  <tr> 
      <td class="head" bgcolor="#EAEAEA"><font color="#FFFFFF">编辑<span class=bold><font color="#FFFFFF">分类</font></span></font></td>
  </tr>
  <tr> 
      <td bgcolor=#FFFFFF align="left"> 
        <ul>
          <li>注意:<font color="#FF0000">栏目排序的规则是,数值大的排在前面</font></li>
        </ul>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id='list_sort'>
          <tr align="center" class="head"> 
            <td width="9%" style="border-right:1px solid #fff;">FID</td>
            <td  style="border-right:1px solid #fff;" width="44%">分类名称</td>
            <td width="17%" style="border-right:1px solid #fff;">排序</td>
            <td width="10%" style="border-right:1px solid #fff;">修改分类</td>
            <td width="10%" style="border-right:1px solid #fff;">采集规则</td>
            <td width="10%" style="border-right:1px solid #fff;">删除栏目</td>
          </tr>
          <!--
EOT;
foreach($sortdb AS $key=>$rs){
print <<<EOT
-->
          <tr class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
            <td width="9%" bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;"><b><font color="#FF0000">$rs[fid]</font></b></td>
            <td bgcolor="#FFFFFF" width="44%" style="border-bottom:1px dotted #ccc;"> 
              【<a href='index.php?lfj=gather&job=list&fid=$rs[fid]'>{$rs[name]}</a>】<span class='sort_span'></span></td>
            <td width="17%" bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;"> 
              <input type='text' name='order[{$rs[fid]}]' value='$rs[list]' size='5'>
            </td>
            <td width="10%" bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;"><a href='?lfj=$lfj&job=editsort&fid=$rs[fid]'><img alt='点击修改' src='../member/images/button_edit.png' border=0></a></td>
            <td width="10%" bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;"><a href='index.php?lfj=gather&job=list&fid=$rs[fid]'><img alt='管理此分类下的采集规则' src='../member/images/art_icon.gif' border=0></a></td>
            <td width="10%" bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;"><a href="?lfj=$lfj&action=delete&fid=$rs[fid]" onclick="return confirm('你确实要删除吗?不可恢复');"><img alt='点击删除' src='../member/images/del_icon2.gif' border=0></a></td>
          </tr>
          <!--
EOT;
}print <<<EOT
-->
        </table>
        <div align="center"><br>
           
          <a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a> 
          <input type="submit" name="Submit2" value="修改分类排序" >
           
        </div>
      </td>
  </tr> </form>
</table>
<!--
EOT;
?>
-->
