<!--
<?php
print <<<EOT
--> 
<div class="MainCont">
	<div class="head"><div class="tag">创建专题</div></div> 
    <form action="index.php?lfj=$lfj&action=addsp" 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="title" size=50>
        </td>
      </tr>
      <tr> 
        <td width="8%">所属分类</td>
        <td width="92%">{$sort_fid}</td>
      </tr>
      <tr> 
        <td width="8%">&nbsp;</td>
        <td width="92%"> 
          <input type=submit value="创 建" name="submit">
        </td>
      </tr>
    </table>
    </form>
</div>
<form name="form_work" id="form_work" method="post" action="index.php?lfj=html&action=make_SPhtml" target="_blank">
<div class="MainCont">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
  <tr> 
    <th width="5%">ID</th>
    <th width="34%">专题名称</th>
    <th width="6%">标签</th>
    <th width="10%">创建者</th>
    <th width="6%">浏览</th>
    <th width="6%">文章</th>
    <th width="6%">贴子</th>
    <th width="6%">设置</th>
    <th width="5%">推荐</th>
	<th width="5%">审核</th>
	<th width="5%">静态</th>
    <th width="5%">删除</th>
  </tr>
  <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
  <tr> 
    <td>$rs[id]</td>
    <td class="txL">
      <input type="checkbox" name="idDB[]" value="$rs[id]" checked>
 	  <a href="$webdb[www_url]/do/showsp.php?fid=$rs[fid]&id=$rs[id]"  style="color:$rs[titlecolor];" target="_blank">$rs[title]</a></td>
    <td><a href="$webdb[www_url]/do/showsp.php?fid=$rs[fid]&id=$rs[id]&jobs=show"><img src="images/icon_updatalabel.gif" border="0"></a></td>
    <td><a href="../member/homepage.php?uid=$rs[uid]" target="_blank">$rs[username]</a></td>
    <td>$rs[hits]</td>
    <td><a href="?lfj=$lfj&job=edit_atc&id=$rs[id]"><img src="../member/images/art_icon.gif" alt="管理文章"/></a> $rs[aidnum]</td>
	<td>
<!--
EOT;
if($webdb[passport_type]){
print <<<EOT
-->
	<a href="?lfj=$lfj&job=edit_bbs&id=$rs[id]"><img src="../member/images/art_icon.gif" alt="管理贴子"/></a> $rs[tidnum]
<!--
EOT;
}print <<<EOT
-->	&nbsp;
	</td>
    <td><a href="?lfj=$lfj&job=editsp&id=$rs[id]"><img src="../member/images/icon_manage2.gif" alt="修改设置"/></a></td>
    <td>$rs[com]</td>
	<td>$rs[_yz]</td>
    <td><a href="index.php?lfj=html&action=make_SPhtml&idDB[]=$rs[id]" target="_blank"><img src="images/plub.gif" border="0"></a></td>
    <td><a href="?lfj=$lfj&action=delete&id=$rs[id]" onClick="return confirm('你确实要删除吗?不可恢复');"><img src="../member/images/del_icon2.gif" alt="删除"/></a></td>
  </tr>
<!--
EOT;
}
$showpage=$showpage?"<div class='ShowPage'>$showpage</div>":"";
print <<<EOT
-->
</table>
	$showpage
  	<div class="ListBut">
      <a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a> 
      <input type="button" name="Submit" value="生成静态页"  onclick="post_s('html');">
      <input type="button" name="Submit2" value="删除选定专题" onclick="post_s('del');">
	</div>
</div>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(e.name!='idDB[]')continue;
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
function post_s(t){
	if(t=='html'){
		get_obj("form_work").action="index.php?lfj=html&action=make_SPhtml";
		get_obj("form_work").target="blank";
		get_obj("form_work").submit();
	}else if(t=='del'){
		if(confirm("不可恢复,你确实要删除吗?")){
			get_obj("form_work").action="index.php?lfj=$lfj&action=delete";
			get_obj("form_work").target="main";
			get_obj("form_work").submit();		
		}
	}
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->
