<%@Page Language="C#" Inherits="IWMS.Admin.MakeStatic" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<script type="text/javascript" src="inc/calendarDateInput.js"></script>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="MyForm" runat="server">
		<asp:ValidationSummary 
			 DisplayMode="BulletList" 
			 EnableClientScript="true"
			 ShowSummary="false"
			 ShowMessageBox="true"                        
			 HeaderText="请正确填写以下内容"
			 runat="server"/>
	
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">生成静态文件</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<table cellpadding="5" cellspacing="0" width="100%">
			<asp:PlaceHolder id="phAbort" Visible="false" runat="server">
			<tr><td align="center">
				静态生成中...
			  <asp:Button id="btAbort" text="终止生成任务" onclick="btAbort_OnClick" runat="server"/>
			</td></tr>
			</asp:PlaceHolder>
		  <tr><td align="center" class="tdbg">
		  	 <asp:Button id="btDefault" text="生成首页" onclick="btDefault_OnClick" runat="server"/>
		  </td></tr>
		  <tr><td align="center" class="tdbg">
		  	 分类：<asp:DropDownList id="sortid" runat="server"/><br/>
		  	 <asp:CheckBox id="includeChild" Text="同时生成子类分类页" runat="server"/>
		  </td></tr>
		  <tr><td align="center" class="tdbg">
		  	 <asp:Button id="btSort" text="生成分类页" onclick="btSort_OnClick" runat="server"/>&nbsp;
		  	 <asp:Button id="btNews" text="生成新闻页" onclick="btNews_OnClick" runat="server"/>
		   </td>
		  </tr>
		<tr><td class="tdbg-dark" height="10">
		</td></tr>
		  <tr><td align="center" class="tdbg">
		  	<asp:TextBox id="beginDate" size="10" runat="server"/> 
			<script type="text/javascript">
			DateInput('<%=beginDate.UniqueID%>', 'YYYY-MM-DD', '<%=beginDate.Text%>');
			</script>
			<asp:RegularExpressionValidator
				ControlToValidate="beginDate"
				ValidationExpression="\d{4}-\d{2}-\d{2}"
				ErrorMessage="起始日期格式错误"
				Display="None"
				runat="server"/>
			至 <asp:TextBox id="endDate" size="10" runat="server"/>
			<script type="text/javascript">
			DateInput('<%=endDate.UniqueID%>', 'YYYY-MM-DD', '<%=endDate.Text%>');
			</script>
			<asp:RegularExpressionValidator
				ControlToValidate="endDate"
				ValidationExpression="\d{4}-\d{2}-\d{2}"
				ErrorMessage="结束日期格式错误"
				Display="None"
				runat="server"/>
			<br/>
		   	<asp:Button id="btDateNews" text="生成指定时间内新闻页" onclick="btDateNews_OnClick" runat="server"/>&nbsp;
		 </td></tr>
		<asp:PlaceHolder id="phTopic" runat="server">
		<tr><td class="tdbg-dark" height="10">
		</td></tr>
		  <tr><td align="center" class="tdbg">
		   	<asp:Button id="btTopiclist" text="生成专题列表页" onclick="btTopiclist_OnClick" runat="server"/>&nbsp;
		  </td></tr>
		  <tr><td align="center" class="tdbg">
			专题：<asp:DropDownList id="topicid" runat="server"/><br/>
		   	<asp:Button id="btTopic" text="生成专题页" onclick="btTopic_OnClick" runat="server"/>
		   <br/>
		   </td>
		  </tr>
		</asp:PlaceHolder>
		 </table>	
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	
	</form>

</asp:Content>