<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.User_RegFields_Operate, V5Shop.Shop.User" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<!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/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【会员注册项目添加】" />
                <asp:Label ID="lblEdit" runat="server" Text="【会员注册项目编辑】" Visible="false" />
                <a href='User_RegFields_Manage.aspx' title="返回会员注册项目列表">返回列表</a>
            </div>
        </div>
        
        <div style="text-align: center;">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="lblName" runat="server" Text="注册项名称："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="150px"></asp:TextBox> <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtName"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="lbDescription" runat="server" Text="简单描述："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:TextBox ID="txtDescription" runat="server" MaxLength="50" Width="300px"></asp:TextBox> 
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="Label2" runat="server" Text="是否必填："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:RadioButtonList ID="rblIsNeed" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal">
                            <asp:ListItem Text="非必填" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="必填" Value="1"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="Label3" runat="server" Text="注册类型："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:RadioButtonList ID="rblRegType" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                            <asp:ListItem Text="无限制文本输入框" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="单选" Value="2"></asp:ListItem>
                            <asp:ListItem Text="多选" Value="3"></asp:ListItem>
                            <asp:ListItem Text="下拉选择" Value="4"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr id="RegValue" runat="server" visible="false">
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="Label4" runat="server" Text="注册选项："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:TextBox ID="txtInputValue" runat="server" MaxLength="50" Width="300px"></asp:TextBox> <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtName"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                        多个选项中间以'|'分开即可
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="Label5" runat="server" Text="排序："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:TextBox ID="txtOrderID" runat="server" MaxLength="50" Width="80px" Text="1"></asp:TextBox><span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtOrderID"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        &nbsp;<asp:Label ID="Label1" runat="server" Text="是否显示："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:RadioButtonList ID="rblIsShow" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal">
                            <asp:ListItem Text="不显示" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="显示" Value="1"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;">
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px" colspan="3">
                        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource1"
                            CssClass="button" />
                        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False"
                            meta:resourcekey="btnEditResource1" CssClass="button" />
                        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                        <input id="btnReturn" runat="server" type="button" value="返回列表" onclick="window.location.href='User_RegFields_Manage.aspx'"
                            class="button" />
                    </td>
                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                    </td>
                </tr>
            </table>

            <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
            </script>
        </div>
    </div>
    </form>
    <uc1:PageBottom ID="PageBottom" runat="server" />
</body>
</html>
