<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Template_Template_Operate, V5Shop.Shop.Template" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" 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>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="OperateTitle">
        <div>
            <asp:Label ID="lblTitleAdd" runat="server" Text="【 模板添加 】"></asp:Label> 
            <asp:Label ID="lblTitleEdit" runat="server" Text="【 模板编辑 】" Visible="false"></asp:Label> 
            <a href="Template_Template_Manage.aspx" title="返回模板列表">返回列表</a>
        </div>
    </div>
    
    <div>
        <table id="OperateTable" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" height="30" align="right">
                    <asp:Label ID="lblInsertType" runat="server" Text="请选择类型："></asp:Label> 
                </td>
                <td align=left>
                    <asp:RadioButtonList ID="rblInsertType" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" CssClass="radioaspx" OnSelectedIndexChanged="rblInsertType_SelectedIndexChanged">
                        <asp:ListItem Selected="True">手动添加</asp:ListItem>
                        <asp:ListItem>直接从文件夹导入</asp:ListItem>
                        <asp:ListItem>上传模板包</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <asp:Panel ID="Area1" runat="server">
            <tr>
                <td width="20%" height="30" align="right">
                    <asp:Label ID="lblName" runat="server" Text="模板名称："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>  
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtName" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblKeyword" runat="server" Text="模板关键字："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtKeyword" runat="server" Width="300px" MaxLength="50"></asp:TextBox>  
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtKeyword" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblSrc" runat="server" Text="预览图："></asp:Label> 
                </td>
                <td align=left>
                    <asp:FileUpload ID="fuSrc" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblAuthor" runat="server" Text="作者名："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtAuthor" runat="server" Width="300px" MaxLength="50" Text="无名仕"></asp:TextBox>  
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblNumber" runat="server" Text="模板编号："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtNumber" runat="server" Width="300px" MaxLength="50"></asp:TextBox>  
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblVersion" runat="server" Text="版本号："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtVersion" runat="server" Width="300px" MaxLength="50" Text="V1.0"></asp:TextBox>  
                </td>
            </tr>
            <tr id="CreateFlag" runat="server">
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblNeedExample" runat="server" Text="创建规则："></asp:Label> 
                </td>
                <td align=left>
                    <asp:CheckBox ID="cbNeedExample" runat="server" CssClass="checkboxaspx" Text="自带简单示例" Checked="true" />
                    <span class="NeedMsg">(建议首次制作时勾中次选项)</span>
                </td>
            </tr>
            </asp:Panel>
            
            <asp:Panel ID="Area2" runat="server" Visible="false">
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="lblFolderName" runat="server" Text="文件夹名称："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtFolderName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>  
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtFolderName" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>    
            </asp:Panel>
            
            <asp:Panel ID="Area3" runat="server" Visible="false">
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="Label1" runat="server" Text="模板包："></asp:Label> 
                </td>
                <td align=left>
                    <asp:FileUpload ID="fuTplZip" runat="server" />
                    <span class="NeedMsg">*</span>
                </td>
            </tr>
            </asp:Panel>
            <tr>
                <td width="10%" height="30" align="right">
                    <asp:Label ID="Label2" runat="server" Text="是否启用："></asp:Label> 
                </td>
                <td align=left>
                    <asp:CheckBox ID="cbIsAct" runat="server" CssClass="checkboxaspx" Text="加载此模板" />
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="right">
                </td>
                <td align=left>
                    <asp:Button ID="btnAdd" runat="server" CssClass="button" Text="添加" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnEdit" runat="server" CssClass="button" Text="编辑" OnClick="btnEdit_Click" />
                    <input type="reset" value="重置" class="button" />
                    <input type="button" value="返回列表" class="button" onclick="window.location.href='Template_Template_Manage.aspx'" />
                </td>
            </tr>
        </table>
        <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
        </script>
    </div>
    
    <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
