<!--
<?php
print<<<EOT
-->
<div class="MainCont">
	<div class="head"><div class="tag">创建专题分类</div></div>    
    <form action="index.php?lfj=$lfj&action=addsort" method=POST>       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="FormTable">
      <tr>
        <td width="8%">分类名称</td>
        <td width="92%">
          <input type=text name="name" size=50>
        </td>
      </tr>
      <tr>
        <td width="8%">所属分类</td>
        <td width="92%">{$sort_fup}(不选择将成为一级分类)</td>
      </tr>
      <tr>
        <td width="8%">&nbsp;</td>
        <td width="92%">
          <input type=submit value="创 建" name="submit">
        </td>
      </tr>
    </table>
   </form>
</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" class="ListTable">
      <tr> 
        <th width="4%">FID</th>
        <th width="51%">专题分类名称</th>
        <th width="6%">排序</th>
        <th width="6%">修改</th>
        <th width="6%">专题</th>
        <th width="6%">浏览</th>
        <th width="6%">删除</th>
      </tr>
<!--
EOT;
foreach($sortdb AS $key=>$rs){
print <<<EOT
-->
      <tr> 
        <td class="B red">$rs[fid]</td>
        <td class="txL"> 
          $rs[icon]【<a href='$webdb[www_url]/do/listsp.php?fid=$rs[fid]' target="_blank">{$rs[name]}</a>】</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=special&job=list&fid=$rs[fid]'><img alt='管理专题' src='../member/images/art_icon.gif' /></a></td>
        <td><a href='$webdb[www_url]/do/listsp.php?fid=$rs[fid]' target="_blank"><img alt='浏览' src='../member/images/icon_view.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">
      <input type="button" name="Submit2" value="修改栏目排序" onclick="postlist('list')">
    </div>
</div>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postlist(t){
	if(t=='list'){
		document.formlist.action="index.php?lfj=$lfj&action=editlist";
	}else{
		document.formlist.action="index.php?lfj=$lfj&job=batch_edit";
	}
	document.formlist.submit();
}
function CheckAll(va){
	form=document.formlist
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->
