<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<link href="css/base.css" rel="stylesheet" type="text/css">
<title>採集內容導出</title>
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin="8">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  <form name="form1" action="co_export.php" method="get" target="stafrm">
    <input type="hidden" name="nid" value="<?php echo $nid?>" />
    <input type="hidden" name="totalcc" value="<?php echo $totalcc?>" />
    <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
    <input type="hidden" name="dopost" value="done" />
    <tr> 
      <td height="28" colspan="3" background='images/tbg.gif' style="padding-left:10px;"><strong><a href="co_main.php"><u>採集管理</u></a> 
        &gt; 採集內容導出：</strong></td>
    </tr>
    <tr> 
      <td height="24" colspan="3" bgcolor="#F8FCF1">
      	<strong>共有[<?php echo $totalcc; ?>]條可導出數據：</strong>
      	<?php
      	if(empty($nid))
      	{
      		echo "<br /><font color='red'>你當進行的操作是--導出所有採集內容，需注意下面問題：<br />\r\n";
      	  echo "1 、如果你採集的內容包含多個內容模型的信息，本操作將會出錯！<br />\r\n";
      	  echo "2 、這種模式'完成後自動生成導入內容HTML'功能無效。\r\n";
      	  echo "</font>";
        }
      	?>
      </td>
    </tr>
    <tr> 
      <td width="26%" height="24" align="center" bgcolor="#FFFFFF">默認導出欄目：</td>
      <td width="74%" colspan="2" bgcolor="#FFFFFF"> 
        <?php
         $typeOptions = GetOptionList(0,$cuserLogin->getUserChannel(),$channelid);
         echo "<select name='typeid' style='width:300px'>\r\n";
         echo "<option value='0' selected>請選擇主分類...</option>\r\n";
         echo $typeOptions;
         echo "</select>";
	    ?>
	    （請選擇白色的欄目）
      </td>
    </tr>
    <tr> 
      <td height="24" align="center" bgcolor="#FFFFFF">
      	批量採集選項：
      </td>
      <td colspan="2" bgcolor="#FFFFFF">
      	<input name="autotype" type="checkbox" id="autotype" value="1" class="np"<?php if($usemore==1 || empty($nid)) echo " checked='1' "; ?>/>
      	使用採集規則中指定的欄目ID(如果目標的欄目ID為0，則用上面選擇的欄目)
      </td>
    </tr>
    <tr> 
      <td height="24" align="center" bgcolor="#FFFFFF">發佈選項：</td>
      <td colspan="2" bgcolor="#FFFFFF">
      	<input name="arcrank" type="radio" class="np" value="0" checked='1' />
        普通文檔 
        <input name="arcrank" type="radio" class="np" value="-1" />
        保存為草稿 
        </td>
    </tr>
    <tr> 
      <td height="24" align="center" bgcolor="#FFFFFF">每批導入：</td>
      <td colspan="2" bgcolor="#FFFFFF">
      	<input name="pagesize" type="text" id="pagesize" value="60" style="width:30px" /> 條
      </td>
    </tr>
    <tr> 
      <td height="24" align="center" bgcolor="#FFFFFF">附帶選項：</td>
      <td colspan="2" bgcolor="#FFFFFF">
      	<input name="onlytitle" type="checkbox" id="onlytitle" value="1" class="np" />
        排除重複標題
        <input name="makehtml" type="checkbox" id="makehtml" value="1" class="np" />
        完成後自動生成導入內容HTML
        <input name="usetitle" type="checkbox" id="usetitle" value="1" class="np" />
        使用列表索引的標題
      </td>
    </tr>
    <tr> 
      <td height="24" align="center" bgcolor="#FFFFFF">隨機推薦：</td>
      <td colspan="2" bgcolor="#FFFFFF">
      	<input name="randcc" type="text" id="randcc" value="12" style="width:30px" />
        (0 表示不推薦，具體數值表示大約多少篇文檔出現一篇推薦[隨機])
      </td>
    </tr>
    <tr> 
      <td height="24" colspan="3" bgcolor="#F8FCF1">&nbsp;</td>
    </tr>
    <tr> 
      <td height="34" colspan="3" align="center" bgcolor="#FFFFFF">
      	<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np" />
		&nbsp;
        <a href="co_main.php"><img src="images/button_back.gif" width="60" height="22" border="0" /></a> 
      </td>
    </tr>
  </form>
  <tr> 
    <td height="34" colspan="3" align="center" bgcolor="#F9FCEF">
    	<table width="100%">
        <tr> 
          <td width="74%" align="left">進行狀態： </td>
          <td width="26%" align="right"></td>
        </tr>
      </table>
      </td>
  </tr>
  <tr> 
    <td height="150" colspan="3" bgcolor="#FFFFFF" id="mtd">
    <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="300"></iframe>
	  </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
