<!--
<?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> 
    <td bgcolor=#FFFFFF> 
      <form action="index.php?lfj=$lfj&action=addsp" method=POST>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <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>
    </td>
</table>



<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth" style="TABLE-LAYOUT: fixed;WORD-WRAP: break-word;">
<form name="form_work" id="form_work" method="post" action="index.php?lfj=html&action=make_SPhtml" target="_blank">
  <tr align="center" class="head"> 
    <td width="5%">ID</td>
    <td width="34%">專題名稱</td>
    <td width="6%">標簽</td>
    <td width="10%">創建者</td>
    <td width="6%">瀏覽</td>
    <td width="6%">文章</td><td width="6%">貼子</td>
    <td width="6%">設置</td>
    <td width="5%">推薦</td>
	<td width="5%">審核</td>
	<td width="5%">靜態</td>
    <td width="5%">刪除</td>
  </tr>
  <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
  <tr bgcolor="#FFFFFF" class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
    <td align="center">$rs[id]</td>
    <td>
      <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 align="center"><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 align="center"><a href="../member/homepage.php?uid=$rs[uid]" target="_blank">$rs[username]</a></td>
    <td align="center">$rs[hits]</td>
    <td align="center"><a href="?lfj=$lfj&job=edit_atc&id=$rs[id]"><img src="../member/images/art_icon.gif" alt="管理文章" border="0"></a> $rs[aidnum]</td>
	<td align="center">
            <!--
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="管理貼子" border="0"></a>
$rs[tidnum]<!--
EOT;
}print <<<EOT
-->
	</td>
    <td align="center"><a href="?lfj=$lfj&job=editsp&id=$rs[id]"><img src="../member/images/icon_manage2.gif" border="0" alt="修改設置"></a></td>
    <td align="center">$rs[com]</td>
	<td align="center">$rs[_yz]</td>
      <td align="center"><a href="index.php?lfj=html&action=make_SPhtml&idDB[]=$rs[id]" target="_blank"><img src="images/plub.gif" border="0"></a></td>
      <td align="center"><a href="?lfj=$lfj&action=delete&id=$rs[id]" onClick="return confirm('你確實要刪除嗎?不可恢復');"><img src="../member/images/del_icon2.gif" alt="刪除" border="0"></a></td>
  </tr>
  <!--
EOT;
}print <<<EOT
-->
  <tr bgcolor="#FFFFFF"> 
    <td colspan="12" align="center">$showpage<a href="?lfj=$lfj&action=delete&id=$rs[id]" onClick="return confirm('你確實要刪除嗎?不可恢復');"></a><br>
      <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');">
      </td>
  </tr></form>
</table>
<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><br>
 
<!--
EOT;
?>
-->
