<%@ Page Language="C#" AutoEventWireup="true" Inherits="TopWinCMS.WebUI.Admin.Template.HtmlTemplate_Add"
    CodeBehind="HtmlTemplate_Add.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!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>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function GetTemplate(cName) 
        {
            var str = window.showModalDialog("../window/GetTemplate.aspx", "up", "dialogWidth=350px;dialogHeight=320px;status=0;scroll=auto");

           
            if (typeof (str) != "undefined")
                $(cName).value = str;
        }
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td width="60%">
                <img src='../../Images/arrow.gif' alt="" />
                您现在的位置：&nbsp;
                <asp:Label ID="LB_Path2" runat="server"></asp:Label>
            </td>
            <td width="40%">
                导航：<a href="HtmlTemplateList.aspx">模板集管理</a> &nbsp;| &nbsp;<a href="HtmlTemplate_Add.aspx">
                    添加模板集</a>
            </td>
        </tr>
    </table>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                <tr>
                    <td class="HeaderStyle" valign="middle" width="100%" height="23">
                        网 页 模 板
                    </td>
                </tr>
                <tr>
                    <td class="border" colspan="3" height="23">
                        <table cellspacing="2" cellpadding="0" width="100%" border="0">
                            <tr>
                                <td class="RowTitle">
                                    <strong>&nbsp;模板名称：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_TemplateName" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                        runat="server" ErrorMessage="必须输入" ControlToValidate="TB_TemplateName"></asp:RequiredFieldValidator></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    <strong>模板目录：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_TemplatePath" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                        runat="server" ControlToValidate="TB_TemplatePath" ErrorMessage="必须输入"></asp:RequiredFieldValidator></span><br />
                                    输入它存放的目录就可以了，例如“Default”即可
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    <strong>样式表目录：</strong>
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_Style" runat="server"></asp:TextBox>
                                    <span style="color: #ff0000">*<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                                        runat="server" ControlToValidate="TB_Style" ErrorMessage="必须输入"></asp:RequiredFieldValidator></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    文章内容页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ArticleShow" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button1" type="button" value="网页模板" onclick="return GetTemplate('TB_ArticleShow');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                                            ControlToValidate="TB_ArticleShow" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    文章栏目页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ArticleClass" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button2" type="button" value="网页模板" onclick="return GetTemplate('TB_ArticleClass');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                                            ControlToValidate="TB_ArticleClass" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    文章专题页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ArticleSpecial" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button3" type="button" value="网页模板" onclick="return GetTemplate('TB_ArticleSpecial');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                                            ControlToValidate="TB_ArticleSpecial" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    文章频道首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ArticleChannelIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button4" type="button" value="网页模板" onclick="return GetTemplate('TB_ArticleChannelIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
                                            ControlToValidate="TB_ArticleSpecialIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    文章专题首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ArticleSpecialIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button5" type="button" value="网页模板" onclick="return GetTemplate('TB_ArticleSpecialIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
                                            ControlToValidate="TB_ArticleChannelIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                            
                            <tr>
                                <td class="RowTitle">
                                    软件内容页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_SoftShow" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button6"
                                        type="button" value="网页模板" onclick="return GetTemplate('TB_SoftShow');" class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TB_SoftShow"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    软件栏目页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_SoftClass" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button7" type="button" value="网页模板" onclick="return GetTemplate('TB_SoftClass');"
                                        class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TB_SoftClass"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    软件专题页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_SoftSpecial" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button8" type="button" value="网页模板" onclick="return GetTemplate('TB_SoftSpecial');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
                                            ControlToValidate="TB_SoftSpecial" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    软件频道首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_SoftChannelIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button9" type="button" value="网页模板" onclick="return GetTemplate('TB_SoftChannelIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
                                            ControlToValidate="TB_SoftChannelIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    软件专题首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_SoftSpecialIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button10" type="button" value="网页模板" onclick="return GetTemplate('TB_SoftSpecialIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
                                            ControlToValidate="TB_ArticleSpecialIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                                <tr>
                                <td class="RowTitle">
                                    产品内容页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ProductShow" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button11"
                                        type="button" value="网页模板" onclick="return GetTemplate('TB_ProductShow');" class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TB_ProductShow"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    产品栏目页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ProductClass" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button12" type="button" value="网页模板" onclick="return GetTemplate('TB_ProductClass');"
                                        class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="TB_ProductClass"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    产品专题页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ProductSpecial" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button13" type="button" value="网页模板" onclick="return GetTemplate('TB_ProductSpecial');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server"
                                            ControlToValidate="TB_ProductSpecial" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    产品频道首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ProductChannelIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button14" type="button" value="网页模板" onclick="return GetTemplate('TB_ProductChannelIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server"
                                            ControlToValidate="TB_ProductChannelIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    产品专题首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ProductSpecialIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button15" type="button" value="网页模板" onclick="return GetTemplate('TB_ProductSpecialIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server"
                                            ControlToValidate="TB_ProductSpecialIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>   
                            
                            
                             <tr>
                                <td class="RowTitle">
                                    商城内容页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ShopShow" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button16"
                                        type="button" value="网页模板" onclick="return GetTemplate('TB_ShopShow');" class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="TB_ShopShow"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    商城栏目页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ShopClass" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button17" type="button" value="网页模板" onclick="return GetTemplate('TB_ShopClass');"
                                        class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="TB_ShopClass"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    商城专题页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ShopSpecial" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button18" type="button" value="网页模板" onclick="return GetTemplate('TB_ShopSpecial');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server"
                                            ControlToValidate="TB_ShopSpecial" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    商城频道首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ShopChannelIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button19" type="button" value="网页模板" onclick="return GetTemplate('TB_ShopChannelIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server"
                                            ControlToValidate="TB_ShopChannelIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    商城专题首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_ShopSpecialIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button20" type="button" value="网页模板" onclick="return GetTemplate('TB_ShopSpecialIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server"
                                            ControlToValidate="TB_ShopSpecialIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>   
                            
                             <tr>
                                <td class="RowTitle">
                                    问答内容页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_AskShow" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button21"
                                        type="button" value="网页模板" onclick="return GetTemplate('TB_AskShow');" class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="TB_AskShow"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    问答栏目页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_AskClass" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button22" type="button" value="网页模板" onclick="return GetTemplate('TB_AskClass');"
                                        class="btn" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="TB_AskClass"
                                        ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    问答专题页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_AskSpecial" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button23" type="button" value="网页模板" onclick="return GetTemplate('TB_AskSpecial');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server"
                                            ControlToValidate="TB_AskSpecial" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    问答频道首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_AskChannelIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button24" type="button" value="网页模板" onclick="return GetTemplate('TB_AskChannelIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server"
                                            ControlToValidate="TB_AskChannelIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    问答专题首页：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_AskSpecialIndex" runat="server" Width="340px"></asp:TextBox>
                                    <input id="Button25" type="button" value="网页模板" onclick="return GetTemplate('TB_AskSpecialIndex');"
                                        class="btn" /><asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server"
                                            ControlToValidate="TB_AskSpecialIndex" ErrorMessage="必须输入"></asp:RequiredFieldValidator>
                                </td>
                            </tr>   
                            
                            
                                                
                            <tr>
                                <td class="RowTitle">
                                    备注：
                                </td>
                                <td height="25" align="left">
                                    <asp:TextBox ID="TB_Remark" runat="server" Height="87px" TextMode="MultiLine" Width="345px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    &nbsp;
                                </td>
                                <td height="25" align="left">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:Button ID="BT_Add" runat="server" Text="提交" OnClick="BT_Add_Click" CssClass="btn"
                                        EnableViewState="False"></asp:Button>
                                    <input id="back" onclick="window.location.href='HtmlTemplateList.aspx'" type="button"
                                        value="返回" class="btn" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
