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


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

<!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>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="content">
            
            <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                <table width="100%">
                        <tr>
                            <td width="10%">
                    <input id="CheckAllBox" onclick="CheckAll()" type="checkbox" class="checkbox" />
                    全选 &nbsp;&nbsp;
                    </td>
                    <td>
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" alt="添加"/> 添加</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_edit.gif" alt="编辑"/> 编辑</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDelStatus" runat="server" CausesValidation="False" ForeColor="#4B6888" OnClick="btnDelStatus_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="删除"/> 删除</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnUp" runat="server" CausesValidation="False" ForeColor="#4B6888" OnClick="btnUp_Click" OnClientClick="return CheckUp()"><img src="images/icon/key_top.gif" alt="向上"/> 向上</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDown" runat="server" CausesValidation="False" ForeColor="#4B6888" OnClick="btnDown_Click" OnClientClick="return CheckDown()"><img src="images/icon/key_down.gif" alt="向下"/> 向下</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnShow" runat="server" CausesValidation="False" ForeColor="#4B6888" OnClick="btnShow_Click" OnClientClick="return CheckEdit()"><img src="images/icon/key_show.gif" alt="显示/隐藏"/> 显示/隐藏</asp:LinkButton>
                    &nbsp;&nbsp;
                    </td>
                    </tr>
                    </table>
                    
                    </div>
            
                <div class="listborder">
                <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="15" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" Width="100%">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField>
                                <itemtemplate>
                                    <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="2%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="FieldName" HeaderText="注册项名称" SortExpression="FieldName" >
                                <itemstyle width="4%" forecolor="#333333" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="简单描述">
                                <itemtemplate>
                                    <%# Eval("Description") %>
                                </itemtemplate>
                                <itemstyle horizontalalign="Left" width="12%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="是否必填">
                                <itemtemplate>
                                    <%# CheckIsNeed(Eval("IsNeed").ToString()) %>
                                </itemtemplate>
                                <itemstyle horizontalalign="Left" width="4%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="注项类型">
                                <itemtemplate>
                                    <%# CheckInputType(Eval("InputType").ToString()) %>
                                </itemtemplate>
                                <itemstyle horizontalalign="Left" width="8%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="InputValue" HeaderText="注项选项" SortExpression="InputValue" >
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OrderID" HeaderText="排序" SortExpression="OrderID" >
                                <itemstyle width="3%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="是否显示">
                                <itemtemplate>
                                    <%# CheckIsShow(Eval("IsShow").ToString())%>
                                </itemtemplate>
                                <itemstyle horizontalalign="Left" width="3%" />
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </div>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
    </div>
    </form>
</body>
</html>
