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