<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Info_ColumnToTemplate, QianboCMS" EnableEventValidation="false" %>
<!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 runat="server">
    <title>模板批量捆绑</title>
    <link href="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../../Js/jquery.js"></script>
    <script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
    <script src="../../Js/Common.js" type="text/javascript"></script>
    <script src="../../Js/XmlHttp.js" type="text/javascript"></script>
    <script>
		function TargetUrl()
		{
			var id=$("ddlChannel").value;
			window.location.href="ColumnToTemplate.aspx?ChId="+id;
		}
    </script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href='ChannelList.aspx'>频道管理</a> &gt;&gt; [<asp:Literal ID="litNav" runat="server"></asp:Literal>]模板批量捆绑
				</td>
            </tr>
        </table>
        <br />
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="bqleft">快速选择频道：</td>
                <td class="bqright">
                    <asp:DropDownList ID="ddlChannel" runat="server" onchange="TargetUrl()"></asp:DropDownList>
				</td>
            </tr>
            <tr>
                <td class="bqleft">批量捆绑：</td>
                <td class="bqright">
                    <asp:ListBox ID="lsBoxColumn" runat="server" Width="180px" Height="250px" SelectionMode="Multiple" Rows="15"></asp:ListBox><br />
                    <strong>注意：</strong>按住"Ctrl"键或"Shift"键可对栏目进行批量选择
				</td>
            </tr>
            <script type="text/javascript">
				var jq = jQuery.noConflict();
				jQuery(function(){
					jQuery('#ColumnTemplatePath').click(function(){
						jQuery.dialog({
							id: 'txtColumnTemplatePath',
							lock: true,
							title: '选择模板',
							content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtColumnTemplatePath') + "&StartPath=" + escape('/Template') + "",
							width: 800,
							height: 500
						});
					});
					jQuery('#InfoTemplatePath').click(function(){
						jQuery.dialog({
							id: 'txtInfoTemplatePath',
							lock: true,
							title: '选择模板',
							content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtInfoTemplatePath') + "&StartPath=" + escape('/Template') + "",
							width: 800,
							height: 500
						});
					});
					jQuery('#CommentTemplatePath').click(function(){
						jQuery.dialog({
							id: 'txtCommentTemplatePath',
							lock: true,
							title: '选择模板',
							content: "url:../Common/SelectFile.aspx?ControlId=" + escape('txtCommentTemplatePath') + "&StartPath=" + escape('/Template') + "",
							width: 800,
							height: 500
						});
					});
				});
            </script>
            <tr>
                <td class="bqleft">栏目页模板：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtColumnTemplatePath" runat="server" Width="350px"></asp:TextBox>
                    <input type="button" value="选择模板" id="ColumnTemplatePath" class="btn" />
				</td>
            </tr>
            <tr>
                <td class="bqleft">内容页模板：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtInfoTemplatePath" runat="server" Width="350px"></asp:TextBox>
                    <input type="button" value="选择模板" id="InfoTemplatePath" class="btn" />
				</td>
            </tr>
            <tr>
                <td class="bqleft">评论页模板：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtCommentTemplatePath" runat="server" Width="350px"></asp:TextBox>
                    <input type="button" value="选择模板" id="CommentTemplatePath" class="btn" />
				</td>
            </tr>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright">
                    <asp:Button ID="btnSubmit" runat="server" Text="确定开始捆绑" CssClass="btn" OnClick="btnSubmit_Click" />
                    <input type="reset" name="Submit7" class="btn" value="重新设定">
				</td>
            </tr>
        </table>
    </form>
</body>
</html>