<%@ Page Language="c#" Inherits="Web.Wpdcc.lockIP" CodeBehind="lockIP.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>内网IP地址管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#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="grade" 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 class="active">
                                        <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>
                                        <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">
                                                <input type="button" runat="server" class="btn btn-sm btn-primary" value="添 加" id="btnAdd" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" AutoGenerateColumns="false" CssClass="table table-striped table-bordered table-hover" OnRowCommand="GridView1_RowCommand" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title" />
                                        <asp:BoundField DataField="sip1" HeaderText="城市" HeaderStyle-CssClass="title" HeaderStyle-Width="100px" />
                                        <asp:BoundField DataField="sip2" HeaderText="单位" HeaderStyle-CssClass="title" HeaderStyle-Width="150px" />
                                        <asp:BoundField DataField="ipString1" HeaderText="起始网段" HeaderStyle-CssClass="title" />
                                        <asp:BoundField DataField="ipString2" HeaderText="终止网段" HeaderStyle-CssClass="title" />
                                        <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                                            <ItemTemplate>
                                                <div class="action-buttons">
                                                    <a href='addIP.aspx?pkid=<%# DataBinder.Eval(Container, "DataItem.pkId")%>' target="_blank" data-toggle="tooltip" data-placement="bottom" title="编辑" class="fbox"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></a>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%#Eval("pkId") +"&"+Eval("sip1") %>' CommandName="del" OnClientClick="return confirm('你确定要删除此项吗？')" data-toggle="tooltip" data-placement="bottom" title="删除"><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField Visible="False" DataField="ip1" HeaderText="ip1" HeaderStyle-CssClass="title"  />
                                        <asp:BoundField Visible="False" DataField="ip2" HeaderText="ip2" HeaderStyle-CssClass="title"/>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </form>
                    </div>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
     <script type="text/javascript">
         function reOpen() {
             location.href = "lockIP.aspx";
         }
    </script>
    <script type="text/javascript">

        jQuery(function ($) {

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

            $(".fbox").click().fancybox({
                'width': 700,
                'height': 370,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'fade',
                'type': 'iframe',
                'padding': '0'
            });

        });

    </script>
</body>
</html>
