<!--{if $action=='tohtml'}-->
<!--{template 'head'}-->
<script type="text/javascript">
var channelid = '{$channelid}';
var channelselect = '{$channelselect}';
var mod  = '{$mod}';
var listphp = '{$listphp}';
var contentphp= '{$contentphp}';
var channeldir= '{$channeldir}';
var is_html = parseInt('{$is_html}');
setSubject("{$channeltitle}静态文件生成");
</script>
<script type="text/javascript" src="{AW_P}images/js/tohtml.js"></script>
<style>
td .relative{position:relative;height:24px;line-height:24px;}
td .relative .c-loading{position:absolute;left:0;top:0;height:24px;line-height:24px;background-color:red;width:0px;z-index:1}
td .relative .name{position:absolute;left:20px;top:2px;height:20px;line-height:20px;z-index:2;}
</style>
<table cellpadding="0" cellspacing="0" border="0" align=center class="tableborder mt5" width="100%">
	<tr>
		<td height=24 width="1"  id='loadhtml' bgcolor="red" align=center style="padding-left:0"></td>
		<td height=24 class="tablerow" style="padding-left:0"></td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" class="tableborder mt5" id="mytable" >
	<tr>
		<th colspan=5>按分类生成</th>
	</tr>
	<tr align="center">
		<td width="30" class="tablerowhighlight"></td>
		<td width="500" class="tablerowhighlight">名称</td>
		<td width="100" class="tablerowhighlight">ID</td>
		<td width="80" class="tablerowhighlight">列表</td>
		<td width="80" class="tablerowhighlight">内容</td>
	</tr>
		{$strall}
	<tr>
		<td class="tablerowl" align="center">
			<input name='chkall' type='checkbox' id='chkall' onclick='checkall()' value='checkbox' />
		</td>
		<td class="tablerowl" colspan="4" style="text-align:left">
			<input type="button" value="生成频道首页" onClick="htmlReady('h',1);" class="f-button" / >&nbsp;&nbsp;
			<input type="button" value="生成列表" onClick="htmlReady('c',1);" class="f-button" / >&nbsp;&nbsp;
			<input type="button" value="生成{$channeltitle}" onClick="htmlReady('a',1);" class="f-button" / >&nbsp;&nbsp;
			<input type="button" value="删除所有静态页面"  onClick="htmlReady('d',1);" class="f-button" / >&nbsp;&nbsp;
		</td>
	</tr>
</table>
<script type="text/javascript">
	var rm = new qmeCms.rightMenu('mytable');
	rm.AddItem("生成频道首页","htmlReady('h',1);");
	rm.AddItem("栏目生成静态","uncheckedAll();$('ids_'+rm.id).checked=true;htmlReady('c',1);rm.Close();");
	rm.AddItem("内容生成静态","uncheckedAll();$('ids_'+rm.id).checked=true;htmlReady('a',1);rm.Close();");
	domReady(function(){
		rm.Setup();
	});
</script>

<table cellpadding="1" cellspacing="1" border="0" align="center" width="100%" class="tableborder border mt5" >
	<tr>
		<th colspan=4>按{$channeltitle}ID生成</th>
	</tr>
	<tr align="center">
		<td width="20%" class="tablerowhighlight">{$channeltitle}起始ID</td>
		<td width="20%" class="tablerowhighlight">{$channeltitle}结束ID</td>
		<td width="15%" class="tablerowhighlight">管理操作</td>
		<td width="30%" class="tablerowhighlight">说明</td>
	</tr>
	<tr align=center>
		<td class="tablerow"><input id="fromid" class="f-text" type="text" size="15" value="1"></td>
		<td class="tablerow"><input id="endid" class="f-text"  type="text" size="15" value="5"></td>
		<td class="tablerow"><input type='button' value=' 生成html ' onClick="htmlReady('f',1);" class="f-button" / ></td>
		<td class="tablerow">此操作只生成本频道的{$channeltitle}</td>
	</tr>
</table>
<table cellpadding="1" cellspacing="1" border="0" align=center class="tableborder border mt5"  width="100%" >
	<tr>
		<th colspan=4>按添加时间</th>
	</tr>
	<tr align="center">
		<td width="20%" class="tablerowhighlight">开始时间</td>
		<td width="20%" class="tablerowhighlight">结束时间</td>
		<td width="15%" class="tablerowhighlight">管理操作</td>
		<td width="30%" class="tablerowhighlight">说明</td>
		</tr>
		<tr align=center>
		<td class="tablerow"><input id="time_start" class="f-text" type="text" size="15" value="<!--{echo qbase::formatTime('Y-m-d', time());}-->"></td>
		<td class="tablerow"><input id="time_end" class="f-text"  type="text" size="15" value="<!--{echo qbase::formatTime('Y-m-d', time());}-->"></td>
		<td class="tablerow"><input type='button' value=' 生成html ' onClick="htmlReady('t',1);" class="f-button" / ></td>
		<td class="tablerow">此操作只生成本频道的{$channeltitle}</td>
	</tr>
</table>	
<table cellpadding="1" cellspacing="1" border="0" align=center class="tableborder border mt5"  width="100%" >
	<tr>
		<th colspan=4>按修改时间</th>
	</tr>
	<tr align="center">
		<td width="20%" class="tablerowhighlight">开始时间</td>
		<td width="20%" class="tablerowhighlight">结束时间</td>
		<td width="15%" class="tablerowhighlight">管理操作</td>
		<td width="30%" class="tablerowhighlight">说明</td>
		</tr>
		<tr align=center>
		<td class="tablerow"><input id="modify_time_start" class="f-text" type="text" size="15" value="<!--{echo qbase::formatTime('Y-m-d', time());}-->"></td>
		<td class="tablerow"><input id="modify_time_end" class="f-text"  type="text" size="15" value="<!--{echo qbase::formatTime('Y-m-d', time());}-->"></td>
		<td class="tablerow"><input type='button' value=' 生成html ' onClick="htmlReady('m',1);" class="f-button" / ></td>
		<td class="tablerow">此操作只生成本频道的{$channeltitle}</td>
	</tr>
</table>	
<div style="height:100px;background:#F1F3F5"></div>
	<script language=javascript>
		new qmeCms.Calendar("time_start");
		new qmeCms.Calendar("time_end");
		new qmeCms.Calendar("modify_time_start");
		new qmeCms.Calendar("modify_time_end");
	</script>	
	<!--{template 'foot'}-->

<!--{else}-->
<!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={$_SET['def_charset']}'>
</head>
<body>
	<script  type='text/javascript'>
	var config = {charset:'{$_SET['def_charset']}',channelid : '{$channelid}',channeldir : '{$channeldir}',url : "{W_P}",web_path : "{$_SET[webpath]}"};
	</script>
	<script type="text/javascript">
	var channelid = '{$channelid}';
	var      mod  = '{$mod}';
	var   listphp = '{$listphp}';
	var contentphp= '{$contentphp}';
	var channeldir= '{$channeldir}';
	var type      = '{$type}';
	var channeltitle = '';
	var web_path  = '{$_SET[webpath]}';
	var cookie_pre= '{$_SET[cookie_pre]}';
	var previewHash = '{$preview_hash}'; 
	</script>
	<script type="text/javascript" src="{WW_P}images/js/qmecms.js"></script>
	<script type="text/javascript" src="{AW_P}images/js/html.js"></script>
	<script type="text/javascript">
		window.onunload = function(){
			stop = true;
		}
	</script>
	<script type="text/javascript">
		htmlCreateReady();
	</script>
</body>
</html>
<!--{/if}-->
