<%@ 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>
    <title>自定义表单字段管理</title>
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="../welcome.aspx">主页</a>
                </li>
                <li>基础数据设置
                </li>
                <li class="active">自定义表单</li>
            </ul>
            <!-- /.breadcrumb -->
            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <div class="list-func-box func-box">
                        <form id="signUpFieldForm" method="post" runat="server">
                            <!-- #section:elements.tab.option -->
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="department.aspx" data-toggle="tab">部门管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="grade.aspx" data-toggle="tab">等级管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="lockIP.aspx" data-toggle="tab">内外网管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="special.aspx" data-toggle="tab">专题管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageSensitiveWord.aspx" data-toggle="tab">敏感词</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="false" href="ManageSignUpField.aspx" data-toggle="tab">自定义表单</a>
                                    </li>
                                </ul>
                            </div>

                            <!-- /section:elements.tab.option -->
                            <div class="bd tab-content">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        <div class="function-hd">
                                            <div class="search-box">
                                            </div>
                                            <div class="action-field">
                                                <input type="button" runat="server" class="btn btn-sm btn-primary" value="添加字段" id="btnAdd" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:DataGrid AutoGenerateColumns="False" class="table table-striped table-bordered table-hover" 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"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Type" HeaderText="字段类型" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Size" HeaderText="字段长度" HeaderStyle-CssClass="title" > </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ShowName" HeaderText="显示名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ShowType" HeaderText="显示类型" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="AllowNull" HeaderText="允许空值" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="IsSystem" HeaderText="系统字段" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="IsOnly" HeaderText="是否唯一" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="操作" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <div class="action-buttons">
                                                        <asp:HyperLink ID="btnEdit" CssClass="FBox" runat="server" data-toggle="tooltip" data-placement="bottom" title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:HyperLink>
                                                        <asp:LinkButton ID="btnDel" runat="server" CommandName="del" CausesValidation="False" data-toggle="tooltip" data-placement="bottom" title="删除"><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                                    </div>
                                                </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>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript">
        jQuery(function ($) {

            $("#btnAdd").click().fancybox({
                'width': 810,
                'height': 550,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'href': 'addSignUpField.aspx',
                'padding': '0'
            });

            //编辑：打开弹出层
            $(".FBox").click().fancybox({
                'width': 810,
                'height': 550,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'padding': '0'
            });
        });
    </script>
</body>
</html>
