<!--
<?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;
?>
-->
