<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_staffip.aspx.cs" Inherits="Web.kq.admin.login_staffip" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="/css/admincss/skin.css" rel="stylesheet" type="text/css" />
  </head>
<body>
 <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31px"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">基本设置</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(/css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
    <div style ="  margin :10px;">
        <asp:CheckBox ID="cbStaffip" runat="server" 
            oncheckedchanged="cbStaffip_CheckedChanged" Text="启用IP绑定" TextAlign="Left" 
            AutoPostBack="True" />
           
            
         </div>

<asp:Panel ID="neirong" runat ="server" Visible ="false" >

   
   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                已绑定IP列表</div> </td>
          </tr>
        </table>
        </td>
      </tr>
    <tr>
        <td   style =" padding :10px;">
        <asp:GridView ID="GridView1" runat="server" 
            onrowdeleting="GridView1_RowDeleting" Width="600px" 
                BorderWidth="1px" CssClass="gv" 
                cellspacing="1" AutoGenerateColumns="False">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
         
                            <asp:BoundField DataField="staffid" HeaderText="人员编号" ReadOnly="True" />

                <asp:BoundField DataField="staffname" HeaderText="姓名" ReadOnly="True" />
                <asp:BoundField DataField="ip" HeaderText="IP" ReadOnly="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True"  DeleteText ="删除"/>
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
 
        
        </td>
      </tr>

      </table>
<!-- 一组内容模块结束 -->


   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                未绑定IP人员</div> </td>
          </tr>
        </table>
        </td>
      </tr>
    <tr>
        <td  style =" padding :10px;" >
        <asp:GridView ID="GridView2" runat="server" Width="600px" 
                BorderWidth="1px" CssClass="gv" 
                cellspacing="1" AutoGenerateColumns="False" 
                onselectedindexchanging="GridView2_SelectedIndexChanging">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
            <asp:BoundField DataField="staffid" HeaderText="人员编号" ReadOnly="True" />
            <asp:BoundField DataField="staffname" HeaderText="姓名"　ReadOnly="True" />
                <asp:TemplateField HeaderText="IP">
                    <EditItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("ip") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="tbIP" runat="server" Text='<%# Bind("ip") %>'></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="操作" ShowHeader="False">
                     <ItemTemplate>
                         <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                             CommandName="Select" Text="绑定" ValidationGroup="bangding"></asp:LinkButton>
                     </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
            
        </td>
      </tr>

      </table>
<!-- 一组内容模块结束 -->
</asp:Panel>
    </td>
    <td  style =" background-image:url(/css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>

