<!--
<?php
print<<<EOT
-->
<script src="images/setday.js"></script>
<table width=100% cellspacing=1 cellpadding=3  class="tablewidth">
  <form name="formlist" target='_blank' method="post" action="?lfj=$lfj&action=make_SPhtml">
    <tr> 
      <td class="head" bgcolor="#EAEAEA"><font color="#FFFFFF">請選擇要把哪個分類下的專題全部生成靜態頁</font></td>
    </tr>
    <tr> 
      <td bgcolor=#FFFFFF align="left"> $record 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr align="center" height="18" class="head2"> 
            <td width="5%" style="border-right:1px solid #fff;">FID</td>
            <td  style="border-right:1px solid #fff;" width="42%">分類名稱</td>
            <td  style="border-right:1px solid #fff;" colspan="2">個性靜態頁URL樣式</td>
            <td width="15%" style="border-right:1px solid #fff;">管理操作</td>
          </tr>
          <!--
EOT;
foreach($sortdb AS $key=>$rs){
print <<<EOT
-->
          <tr class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
            <td bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;" width="5%"><b><font color="#FF0000">$rs[fid]</font></b></td>
            <td bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;" width="42%"> 
              <input type="checkbox" name="fiddb[]" value="{$rs[fid]}" style="border:0px;" checked>
              $rs[icon]【<a href='../do/listsp.php?fid=$rs[fid]' target="_blank">{$rs[name]}</a>】</td>
            <td bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;" width="30%">$rs[filename]</td>
            <td bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;" width="8%"><a href="index.php?lfj=spsort&job=editsort&fid=index.php?lfj=spsort&job=editsort&fid=$rs[fid]" title="修改設置URL表現形式"><img src="images/edit.png" border="0"></a></td>
            <td bgcolor="#FFFFFF" align="center" style="border-bottom:1px dotted #ccc;" width="15%">&nbsp; 
              <!--
EOT;
if($rs[havemade]){
print <<<EOT
-->
              <a href="../$rs[filename]" target="_blank" title="查看靜態網頁"><img src="../member/images/icon_view.gif" border="0"></a> 
              &nbsp;&nbsp; <a href="?lfj=$lfj&job=del&type=sp&fid=$rs[fid]" title="刪除靜態網頁"><img src="../member/images/del_icon2.gif" border="0"></a> 
              <!--
EOT;
}print <<<EOT
-->
            </td>
          </tr>
          <!--
EOT;
}print <<<EOT
-->
        </table>
        <div align="center"> 
          <input type="submit" name="Submit" value="開始生成靜態">
        </div>
      </td>
    </tr>
  </form>
</table>
<!--
EOT;
?>
-->
