<%@ Page Language="C#" AutoEventWireup="true" Inherits="ManageSignUpField"   CodeBehind="ManageSignUpField.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head runat="server">
    <title>Custom Sheet Setting</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCss.htm" -->

    <script type="text/javascript">
        jQuery(function ($) {

            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 100);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 100);
            });
        
        $("#btnAdd").click().fancybox({
            'width': 810,
            'height': 480,
			'hideOnOverlayClick': false,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'type'		: 'iframe',
			'href': 'addSignUpField.aspx',
            'padding':'0'
        });

        //编辑：打开弹出层
        $(".FBox").click().fancybox({
            'width'		: 810,
			'height'	: 480,
			'hideOnOverlayClick': false,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'type'		: 'iframe',
			'padding':'0'
        });
    });
    </script>
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
            您的位置：网站构架 &gt; 自定义表单字段设置</div>
        <form id="signUpFieldForm" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    
                </div>
                <div class="action-field">
                    <input type="button" class="btn" value="添加字段" id="btnAdd" />
                </div>
            </div>
            <div class="function-bd" style="overflow:auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                <asp:DataGrid AutoGenerateColumns="False" class="list-table" ID="dvSignUpField" PageSize="1" runat="server" Width="100%" DataKeyField="PkId" OnItemCommand="dvSignUpField_ItemCommand">
                    <Columns>
                        <asp:BoundColumn Visible="False" DataField="PkId" HeaderText="ID" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Name" HeaderText="字段名称" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Type" HeaderText="字段类型" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" Width="80px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Size" HeaderText="字段长度" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" Width="80px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="ShowName" HeaderText="显示名称" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Bottom" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="ShowType" HeaderText="显示类型" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" Width="80px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="AllowNull" HeaderText="是否可为空" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" Width="85px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="IsSystem" HeaderText="系统字段" HeaderStyle-CssClass="title">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" Width="80px" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="IsOnly" HeaderText="唯一" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="操作" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <asp:HyperLink ID="btnEdit" runat="server" CssClass="FBox blue" title="编辑">编辑</asp:HyperLink>&nbsp;&nbsp;
                                <asp:LinkButton ID="btnDel" runat="server"  CssClass="blue" CommandName="del" CausesValidation="False" title="删除">删除</asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" />
                            <HeaderStyle Width="120px" />
                        </asp:TemplateColumn>
                    </Columns>
                </asp:DataGrid>
                <!--[if lte IE 7]></div><![endif]-->
            </div>
            <!--/function-bd-->
        </div>
        </form>
    </div>
</body>
</html>
