<%@ 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/adminCss.htm" -->

    <script type="text/javascript">
    function reOpen()
    {
    location.href="lockIP.aspx";
    }
    </script>
    <script type="text/javascript">
    
        jQuery(function($) {       
          
             $("#btnAdd").click().fancybox({
                'width'		: 700,
				'height'	: 320,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'fade',
				'type'		: 'iframe',
				'padding':'0',
				'href'      : 'addIP.aspx'
            });
            
            $(".FBox").click().fancybox({
                'width'		: 700,
				'height'	: 320,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'fade',
				'type'		: 'iframe',
				'padding':'0'
            });
    
        });
        
    </script>
</head>
<body>
    <div class="list-func-box func-box">
        <div class="hd">
             您的位置：系统选项 &gt; 内网IP地址管理</div>
        <form id="grade" method="post" runat="server">
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    <input type="button" class="btn" value="添 加" id="btnAdd" />
                </div>
                <div class="action-field">
                    <table cellpadding="2" cellspacing="1" border="0" class="border">
                        <tr>
                            <td width="100%" height="11" class="tdbg">
                                <a href="grade.aspx" target="_self">等级管理</a><span class="line">|</span><a href="department.aspx"
                                    target="_self">部门管理</a><span class="line">|</span><a href="special.aspx" target="_self">专题管理</a>
                               <span class="line">|</span><a href="special.aspx" target="yuzi_frame"></a><a href="lockip.aspx" target="_self"  class="current">
                                    内外网管理</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <asp:DataGrid ID="dg" runat="server" class="list-table" AutoGenerateColumns="False" CellPadding="5" CellSpacing="0" Width="100%" OnItemCommand="editGrade">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:BoundColumn DataField="sip1" HeaderText="城市" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="sip2" HeaderText="单位" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="ipString1" HeaderText="起始网段" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="ipString2" HeaderText="终止网段" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <a href='addIP.aspx?pkid=<%# DataBinder.Eval(Container, "DataItem.pkId")%>' target="_blank" title="编辑" class="FBox" ><i class="icon icon-pencil"></i></a>
                            <%--<asp:LinkButton ID="edit" runat="server" CausesValidation="False" CommandName="edit" title="编辑"><i class="icon icon-pencil"></i></asp:LinkButton>--%>
                            &nbsp;
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="del" OnClientClick="return confirm('你确定要删除此项吗？')" title="删除"><i class="icon icon-remove"></i></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn Visible="False" DataField="ip1" HeaderText="ip1" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn Visible="False" DataField="ip2" HeaderText="ip2" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                </Columns>
            </asp:DataGrid>
        </div>
        <div class="ft">
            <div class="action-field txt-c">
                
            </div>
            <!--/action-field-->
        </div>
        </form>
    </div>
</body>
</html>
