<!--<?php
include_once PrintEot('left');
if($step>1 && ($starttime || $endtime)){
$starttime = get_date($starttime,'Y-m-d');
$endtime = get_date($endtime-86400,'Y-m-d');
}
print <<<EOT
-->
<style type="text/css">
.percent{border:1px solid #73aa55;padding:1px;background:#fff;height:16px;overflow:hidden;}
.per_value{float:left;height:100%;background:#bee4aa;overflow:hidden;}
</style>
<div class="admin_info mb10">
  <h3 class="h1"><b>提示信息</b></h3>
  <div class="legend"><ol><li> 通過此功能可將歷史圖片生成為圖酷，不建議進行大數據量操作</li><li>未開啟圖酷功能的版塊無法處理歷史數據，請先開啟圖酷功能&nbsp;&nbsp;<a href="$admin_file?adminjob=setforum&action=edit&c_type=basic">版塊設置</a></li></ol> </div>
</div>
<script src="js/date.js"></script>
<!--
EOT;
	if(!$tucoolForumsHtml){print <<<EOT
-->
<div class="admin_tips">請先開啟圖酷版塊！</div>
<!--
EOT;
}else{print <<<EOT
-->
<form action="$basename&" method="post">
 <input type="hidden" name="action" value="process">
  <h2 class="h1">數據生成</h2>
		<div class="admin_table mb10">
		<table cellspacing="0" cellpadding="0" width="100%" class="mb10">
				<tr class="tr1 vt">
					<td class="td1">版塊選擇︰<!--利用此功能可將一個或多個設置同時應用到其它版塊中，不再需要逐個版塊設置，使操作更加簡便<br />操作說明:<ol><li><font color=blue>選中</font>需要進行橫向操作的<font color=blue>權限設置後面的復選框</font></li><li>在左邊的復選框中<font color=blue>選擇</font>需要進行橫向操作的<font color=blue>版塊</font></li><li>然後提交即可完成版塊權限橫向操作</li></ol>注:<ol><li>選擇版塊時可使用 ‘Ctrl’ 鍵進行多選，也可使用 ‘Shift’ 鍵或拖動鼠標連續選擇多個版塊</li><li>不使用此功能，請不要選中<font color=blue>權限設置後面的復選框</font>和左邊的復選框中<font color=blue>版塊</font></li></ol>--></td>
					<td class="td2">
						<select id="tucoolForums" class="select_wa" name="fids[]" size="12" multiple>$tucoolForumsHtml</select>
						<span class="bt2"><span><button type="button" onclick="selectAllForums(getObj('tucoolForums'))">全選</button></span></span>
					</td>
				</tr>
				<tr class="tr1 vt">
					<td class="td1">發表時間︰</td>
					<td class="td2 ">
						<div class="input_img fl"><i onclick="this.nextSibling.onclick()" class="input_time" title="選擇時間">選擇時間</i><input type="text" name="starttime" id="starttime" value="$starttime" onclick="ShowCalendar(this.id)" /></div>
						<span class="p_lr_10 fl">至</span>
						<div class="input_img fl"><i onclick="this.nextSibling.onclick()" class="input_time" title="選擇時間">選擇時間</i><input type="text" name="endtime" id="endtime" value="$endtime" onclick="ShowCalendar(this.id)" /></div>
					</td>
				</tr>
<!--
EOT;
$process = '';
if($action == 'process' && $step){
$width = 352;
$process = min($width,intval($width * ($haveBuild/$totalNums))).'px';
$percent = min(ceil($haveBuild/$totalNums*100),100) . '%'; 
print <<<EOT
-->
				<tr class="tr1">
					<td class="td1">處理進度︰</td>
					<td class="td2">
						<div style="width:356px;" class="fl mr10"><div class="percent"><div class="per_value" id="progress"></div></div></div>
						<span id="percent">$percent</span>
					</td>
				</tr>
                <tr class="tr1">
                <td class="td1"></td>
                  <td class="td2">
                    <span>共需處理 $totalNums 條數據，已處理 $haveBuild 條！<span>
                    </td>
                </tr>
<script type="text/javascript"> 

function process(width) {
	var haveBuild = {$haveBuild};
	var totalNums = {$totalNums};
	if (haveBuild <= totalNums) var refresh = setTimeout("document.location='{$jumpUrl}';", 1000);
	getObj('progress').style.width = width;
	
}
process('$process');

</script>  
<!--
EOT;
}print <<<EOT
-->
		</table>
		</div>
		<div class="p10 tac"><span class="btn"><span><button type="submit"  value="提 交">生成</button></span></span></div>
</form>
<script>
var select = true;
function selectAllForums(obj){
	var options = obj.options;
	for(i=0;i<options.length;i++){
		obj.options[i].selected = select;
	}
	select = !select;
}
if (tuobj = getObj('tucoolForums')) selectAllForums(tuobj);
</script>
<!--
EOT;
}
include_once PrintEot('adminbottom');
?>-->