<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin.Course.Admin_Refresh_CosRefreshHtml" Title="Untitled Page" Codebehind="KS.CosRefreshHtml.aspx.cs" %>
<%@ Register Src="~/Config/Control/manage/refresh/RefreshTopControl.ascx" TagName="RefreshTopNav" TagPrefix="uc1" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
<uc1:RefreshTopNav ID="RefreshTopNavS1" runat="server"/>

 <!--    <KS:TopNav ID="TopNav1" runat="server" Text="生成静态页管理" />-->
        <asp:Panel ID="Panel1" runat="server" Width="100%">
         <div class="content-area">          
   
          <table width="99%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable"> 
                <tr>
                    <td align="right" colspan="2" height="25" style="text-align: center">
                        <strong>
                     生成<%
						 if (KSCMS.S("select") == "showjs")
						 {
							 Response.Write("<font color=green>教师</font>内容页");
						 }
						 else if (KSCMS.S("select") == "showms")
						 {
							 Response.Write("<font color=green>面授</font>内容页");
						 }
						 else if (KSCMS.S("select") == "showzb")
						 {
							 Response.Write("<font color=green>直播</font>内容页");
						 } 
						 else
						 {
							 Response.Write("<font color=green>网授</font>内容页");
						 }
                        %>静态HTML操作</strong></td>
                </tr>
                <tr>
                    <td align="right" class="lefttd" rowspan="6" style="width: 270px; text-align: center">
                        <b>请选择要发布的栏目<br />
                </b>
                <span style="color:mediumblue">
                    当没有选择任何栏目时，表示从所有栏目中筛选符合条件的记录进行生成HTML操作</span>&nbsp;

                    <Select style="WIDTH: 200px; HEIGHT: 425px;" multiple name="ClassID">
                     <%
						 if (KSCMS.S("select") == "showms")
						 {
							 Response.Write(Kesion.Course.Course.GetCourseClass("1"));
						 }
						 else
						 {
							 Response.Write(Kesion.Course.Course.GetCourseClass("0"));
						 }
					
                        %>
                </select>
             
                    <br />
                    <span style="color: #ff0066">提示：</span><span style="color: #ff0000">按住"CTRL"或"Shift"键可以进行多选<br />
                       </span></td>
                    <td class="righttd" valign="top" height="45" >
                        <strong>生成选项<br />
                        </strong><asp:RadioButtonList ID="RefreshTF" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="0" Selected="True">发布所有项目</asp:ListItem>
                                <asp:ListItem Value="1">仅发布未生成过HTML的项目</asp:ListItem>
                            </asp:RadioButtonList><span style="color: #0000cd"></span></td>
                </tr>
              <tr>
                <td class="righttd" height="45">
                    &nbsp;①发布最新添加的<asp:TextBox CssClass="textbox" ID="NewNum" runat="server" Width="43px">50</asp:TextBox>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="发布>>" CssClass="button" OnClick="Button1_Click" /></td>
              </tr>
                <tr>
                    <td class="righttd" style="height: 84px">
                        &nbsp;②按ID号发布，从<asp:TextBox CssClass="textbox" ID="StartID" runat="server" Width="120px">1</asp:TextBox>到<asp:TextBox
                             CssClass="textbox" ID="EndID" runat="server" Width="120px">100</asp:TextBox>
                        <asp:Button ID="Button2" runat="server" Text="发布>>" CssClass="button" OnClick="Button2_Click" /></td>
                </tr>
                <tr>
                    <td class="righttd" height="45">
					    <table width="100%">
						 <tr><td width="80">&nbsp;③按日期发布</td>
						 <td width="220" style="line-height:32px;">开始日期：<asp:TextBox  CssClass="textbox Wdate" ID="StartDate" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" Width="150px"></asp:TextBox>
                           <br/>
                        结束日期：<asp:TextBox  CssClass="textbox Wdate" ID="EndDate" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" Width="150px"></asp:TextBox>
						 </td>
						 <td align="left"><asp:Button ID="Button3" runat="server" Text="发布>>" CssClass="button" OnClick="Button3_Click" /></td>
						 </tr>
						 </table>
						 </td>
                </tr>
                <tr>
                    <td class="righttd" height="45">
                        &nbsp;④发布所选栏目的<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                        <asp:Button ID="Button4" runat="server" Text="发布选中栏目的项目>>" CssClass="button" OnClick="Button4_Click" /></td>
                </tr>
            <tr>
                <td class="righttd" height="45">
                    &nbsp;⑤不限栏目发布所有<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                    <asp:Button ID="RefreshAllItemButton" CssClass="button" runat="server" Text="生成所有>>" OnClick="RefreshAllItemButton_Click" /></td>
            </tr>
          
          </table>
        </asp:Panel>
        
   </div>      
    
</asp:Content>

