<%@ Page Language="C#" Inherits="SiteServer.BackgroundPages.BackgroundCreateAll" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<%@ Register TagPrefix="site" Namespace="SiteServer.Controls" Assembly="SiteServer.Controls" %>

<HTML>
<HEAD>
<!--#include file="../inc/html_head.inc"-->
<user:custom type="style" runat="server"></user:custom>


<meta http-equiv="content-type" content="text/html;charset=gb2312">
<script type="text/javascript" language="javascript">
function selectAll(isChecked)
{
	for(var i=0; i<document.getElementById('<%=NodeIDCollectionToCreate.ClientID%>').options.length; i++)
	{
		document.getElementById('<%=NodeIDCollectionToCreate.ClientID%>').options[i].selected = isChecked;
	}
}
</script>
</HEAD>
<body>
    <form id="myForm" runat="server">
<bairong:Message runat="server"></bairong:Message>
        <DIV class="column">
<div class="columntitle">快速生成</div>
        
                    <table width="95%" align="center" cellpadding="3" cellspacing="3">
                        <tr>
                            <td width="160" align="left">
                                <bairong:help HelpText="请选择要生成的栏目名称（可多选）" Text="生成选定的栏目：" runat="server" ></bairong:help>
                          </td>
                            <td align="left">
                                <asp:ListBox ID="NodeIDCollectionToCreate" SelectionMode="Multiple" Rows="19" runat="server"></asp:ListBox>
                                &nbsp;&nbsp;
                                <input id="CheckAll" type="checkbox" onClick="selectAll(this.checked);"><label for="CheckAll">全选</label></td>
                        </tr>
                        <tr  style="BACKGROUND-POSITION:center 50%; BACKGROUND-IMAGE:url(../pic/line.gif); BACKGROUND-REPEAT:repeat-x">
                            <td width="160" align="left">&nbsp;								</td>
                            <td>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="160" align="left">
                                <bairong:help HelpText="点击按钮生成栏目" Text="生成栏目：" runat="server" ></bairong:help>
                          </td>
                            <td align="left">
                                生成范围：<asp:DropDownList ID="ChooseScope" runat="server"></asp:DropDownList>&nbsp;&nbsp;<asp:Button class="button" style="margin-bottom:0px;" text="生成选定栏目" onclick="CreateNodeButton_OnClick" runat="server" />                            
                            </td>
                        </tr>
                        <tr>
                            <td width="160" align="left">
                                <bairong:help HelpText="删除所有已生成的栏目页面" Text="删除全部栏目页面：" runat="server" ></bairong:help>
                          </td>
                            <td align="left"><asp:Button class="button" id="DeleteAllNodeButton" text="删 除" onclick="DeleteAllNodeButton_OnClick" runat="server" />                                
                            </td>
                        </tr>
          </table>
      </div>
    </form>
    
</body>
</HTML>
