<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Create_Index.aspx.cs" Inherits="KstCMS.KstCMS_Manager.CreateWeb.Html.Create_Index" %>
<html>
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function check() {
            var t = confirm('真的开始生成码？');
            if (t) {
                var frm = document.forms[0];
                var i = 0;
                for (var n = 0; n < frm.ListBox1.options.length; n++) {
                    if (frm.ListBox1.options[n].selected == true) {
                        i++;
                    }
                }
                if (i > 0) {
                    document.getElementById("UpdateProgress1").innerHTML = "正在生成,请稍后...";
                    return true;
                } else {
                    alert("请先选择要生成的项目！");
                    return false;
                }
            }
            else {
                return false;
            }


        }
    </script>


</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" AllowCustomErrorsRedirect="false">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <div class="mainbox">
<table width="100%" border="0" cellspacing="0" cellpadding="4" style=" border-bottom:1px solid #cccccc">
  <tr>
    <td>
        <asp:Label ID="Label1" runat="server" Text="选择生成站点："></asp:Label> <asp:DropDownList ID="drp_SiteList" runat="server" AutoPostBack="true">
        </asp:DropDownList>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td valign="top">
    <fieldset>
    <legend><b>1.网站首页</b></legend>
    <div style="padding:4px">
        <asp:Button ID="btnIndex" runat="server" Text="生成首页" OnClientClick="return confirm('真的重新生成首页吗？');" /> 
        <asp:Button ID="btnAll" runat="server" Text="全站生成" OnClientClick="return confirm('真的重新生成所有网页吗？');" />
        <asp:Button ID="btnMap" runat="server" Text="创建站点地图" OnClientClick="return confirm('真的重新生成站点地图页吗？');" />
        <asp:Button ID="btnXml" runat="server" Text="创建SiteMap.XML" OnClientClick="return confirm('真的重新生成SiteMap.XML文件吗？');" />
        <asp:Button ID="btnLink" runat="server" Text="生成友情链接页" OnClientClick="return confirm('真的重新生成友情链接页文件吗？');" />
    </div>
     </fieldset>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td valign="top">
    <fieldset>
    <legend><b>2.导航首页</b></legend>
    <div style="padding:4px; line-height:25px">
    请选中要生成的项：<br />
        <asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" Rows="10" Width="300">
        
        </asp:ListBox><br />
        <asp:Button ID="btnMenu" runat="server" Text="开始生成" OnClientClick="return check();" /> 提示：按下CTRL键可先择多项。
        </div>
    </fieldset>
    </td>
  </tr>
</table>
</div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>
        正在处理,请稍等...
    </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
