<!--
<?php
if($job=="manage"){
print <<<EOT
--> 
<form name="form1" method="post" action="?lfj=$lfj&job=$job">
<div class="MainCont">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
    <tr> 
	  <th width="6%">ID</th>
      <th width="41%">标 题</th>
      <th width="14%">发表时间</th>
      <th width="10%">页码</th>
      <th width="9%">排序</th>
      <th width="10%">修改</th>
      <th width="10%">删除</th>
    </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr> 
      <td>$rs[rid]</td>
      <td class="txL"><a href="..$webdb[path]/bencandy.php?fid=$rsdb[fid]&id=$aid&page=$rs[i]" target="_blank">$rs[subhead]</a></td>
      <td> &nbsp;$rs[postdate]</td>
      <td>第 $rs[i] 页</td>
      <td> &nbsp; 
<!--
EOT;
if($rs[i]>1){
print <<<EOT
-->
        <input type="text" name="orderDB[{$rs[rid]}]" size="3" value="{$rs[i]}">
        <!--
EOT;
}print <<<EOT
-->
      </td>
      <td> 
<!--
EOT;
if($rs[i]==1){
print <<<EOT
-->
        <a href="?lfj=$lfj&job=edit&aid=$rs[aid]&mid=$mid&only=$only"><img alt='点击修改' src='../member/images/button_edit.png' border=0></a> 
<!--
EOT;
}else{print <<<EOT
-->
        <a href="?lfj=$lfj&job=edit_more&rid=$rs[rid]&mid=$mid&only=$only&aid=$rs[aid]"><img alt='点击修改' src='../member/images/button_edit.png' border=0></a> 
        <!--
EOT;
}print <<<EOT
-->
      </td>
      <td><a href="?lfj=$lfj&action=delelte&rid=$rs[rid]&mid=$mid&only=$only&aid=$rs[aid]"><img alt='点击删除' src='../member/images/del_icon2.gif' border=0></a></td>
    </tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
    <div class="ListBut"> 
        <input type="submit" name="Submit" value="修改以上排序">
        <input type="hidden" name="step" value="2">
        <input type="hidden" name="aid" value="$aid">
        <input type="hidden" name="mid" value="$mid">
        <input type="hidden" name="only" value="$only">
	</div>
</div>
</form>
<!--
EOT;
}else{print <<<EOT
-->
<div class="MainCont">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
  <tr> 
    <th width="5%">FID</th>
    <th width="48%">栏目名称</th>
    <th width="13%">已发文章</th>
    <th width="13%">管理文章</th>
    <th width="13%">发表文章</th>
  </tr>
<!--
EOT;
foreach($sortdb AS $key=>$rs){
print <<<EOT
-->
  <tr> 
    <td>{$rs[fid]}</td>
    <td class="txL">$rs[icon]【<a href='$webdb[www_url]$webdb[path]/list.php?fid=$rs[fid]' target="_blank">{$rs[name]}</a>】</td>
    <td>$rs[NUM]</td>
    <td>
      <!--
EOT;
if($rs[NUM]&&$rs[post]){
print <<<EOT
-->
      <A HREF='?lfj=artic&job=myarticle&fid=$rs[fid]'><img alt='设置管理' src='../member/images/icon_manage2.gif' border=0></A> 
      <!--
EOT;
}print <<<EOT
-->
    </td>
    <td>
      <!--
EOT;
if($rs[post]){
print <<<EOT
-->
      <A HREF='?lfj=$lfj&job=postnew&fid=$rs[fid]' class='post_article'><img alt='发表' src='../member/images/icon_add.gif' border=0></A> 
      <!--
EOT;
}print <<<EOT
-->
    </td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<script language="JavaScript" src="images/sort.js"></script>
<script language="JavaScript">
<!--
load_sort_td('$webdb[PostSortStep]');
//-->
</script>
<!--
EOT;
}
?>
-->
