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

<!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%; "  border="0" cellspacing="0"  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 " >
 
<!--  一组内容模块开始   --> 
    <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 ">  
                系统基本信息设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td >
 <table border="1"  class ="table" cellpadding ="0"  cellspacing ="0" style ="width :820px">
            <tr>
                <td class ="tabletd_right" style ="width :130px; height :24px ">
                    软件信息</td>
                <td class ="tabletd_left" >
                    <asp:Label ID="lbCompany" runat="server"></asp:Label>
                  &nbsp;<asp:LinkButton ID="lbxieyi" runat="server" onclick="lbxieyi_Click">查看用户许可协议</asp:LinkButton>
                  </td>
            </tr>
            <tr>
                <td  class ="tabletd_right">
                    部门</td>
                <td  class ="tabletd_left" >
                    <asp:TextBox ID="tbDepartment" runat="server"  Width="154px"></asp:TextBox>
                    (可输入 汉字、字母、数字)<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tbDepartment" Display="Dynamic" 
                        ErrorMessage="请输入少于10个合法字符" 
                        ValidationExpression="^[\u4e00-\u9fa5|\w|\-|\(|\)]{0,10}$" 
                        ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td  class ="tabletd_right">电话</td>
                <td class="tabletd_left">
                    <asp:TextBox ID="tbTel" runat="server"  Width="198px"></asp:TextBox>
                    (例：010-12345678-1234或010-12345678或139012345678)<asp:RegularExpressionValidator 
                        ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="tbTel" Display="Dynamic" ErrorMessage="请按右侧示例的格式填写！" 
                        ValidationExpression="^\d{0,4}-\d{0,8}-\d{0,6}|\d{0,4}-\d{0,12}|\d{0,12}$" 
                        ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    邮箱</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbEmail" runat="server"  Width="281px"></asp:TextBox>
                    (例：123@abc.com)<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="tbEmail" Display="Dynamic" ErrorMessage="不要有非法字符！" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                        ControlToValidate="tbEmail" Display="Dynamic" ErrorMessage="不要超过50个字符！" 
                        ValidationExpression="^[\w|\.|\@]{0,50}$" ValidationGroup="sys" 
                        ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td  class ="tabletd_right">
                    网站备案号</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbBeian" runat="server"  Width="171px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                        ControlToValidate="tbBeian" Display="Dynamic" ErrorMessage="请输入2-20个合法字符" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,20}$" 
                        ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td  class ="tabletd_right">
                    上传文件目录</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbDir" runat="server"  Width="171px"></asp:TextBox>
                    <asp:CheckBox ID="cbDir" runat="server" Text="同时转移上传文件" />    &nbsp;上传文件目录放在本系统文件夹下，留空提交
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" 
                        ControlToValidate="tbDir" Display="Dynamic" ErrorMessage="请输入合法字符" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,50}$" 
                        ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    密码重试次数</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbPasswordTest" runat="server" Width="60px"></asp:TextBox>
                    <span style ="color :Red ">(必填)</span>(整数)<asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tbPasswordTest" Display="Dynamic" 
                        ErrorMessage="请填密码重试次数。" ValidationGroup="sys" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                        ControlToValidate="tbPasswordTest" Display="Dynamic" ErrorMessage="请输入整数" 
                        ValidationExpression="^\d{1,}$" ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    密码强度</td>
                <td class ="tabletd_left" >
                    <asp:RadioButtonList ID="rblPsdGrade" runat="server" 
                       >
                        <asp:ListItem Selected="True" Value="0">简单（不少于6位）</asp:ListItem>
                        <asp:ListItem Value="2">较强（不少于6位，且小写字母、大写字母、数字和符号4类字符中至少有2类）</asp:ListItem>
                        <asp:ListItem Value="3">强（不少于6位，且小写字母、大写字母、数字和符号4类字符中至少有3类）</asp:ListItem>
                        <asp:ListItem Value="4">超强（不少于6位，且小写字母、大写字母、数字和符号4类字符全有）</asp:ListItem>
                    </asp:RadioButtonList>
                
                </td>
            </tr>
            <tr>
                <td  class ="tabletd_right">
                    前台登录日志数</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbStaffLoginNum" runat="server" Width="59px"></asp:TextBox><span style ="color :Red ">(必填)</span>(整数)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tbStaffLoginNum" Display="Dynamic" 
                        ErrorMessage="请填前台登录日志条数。" ValidationGroup="sys" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                        ControlToValidate="tbStaffLoginNum" Display="Dynamic" ErrorMessage="请输入整数" 
                        ValidationExpression="^\d{1,}$" ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    后台登录日志数</td>
                <td class ="tabletd_left" >
                    <asp:TextBox ID="tbManagerLoginNum" runat="server" Width="57px"></asp:TextBox><span style ="color :Red ">(必填)</span>(整数)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tbManagerLoginNum" Display="Dynamic" 
                        ErrorMessage="请填后台登录日志条数。" ValidationGroup="sys" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                        ControlToValidate="tbManagerLoginNum" Display="Dynamic" ErrorMessage="请输入整数" 
                        ValidationExpression="^\d{1,}$" ValidationGroup="sys" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    前台外网登录界面</td>
                <td class ="tabletd_left" >
                    <asp:RadioButtonList ID="rblDefaultStyle_w" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">界面1</asp:ListItem>
                        <asp:ListItem Value="1">界面2</asp:ListItem>
                    </asp:RadioButtonList>
  </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    前台内网登录界面</td>
                <td class ="tabletd_left" >
                    <asp:RadioButtonList ID="rblDefaultStyle_l" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">界面1</asp:ListItem>
                        <asp:ListItem Value="1">界面2</asp:ListItem>
                    </asp:RadioButtonList>
  </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btxiugai" runat="server" onclick="btxiugai_Click" Text="提交修改" 
                        Visible="False" ValidationGroup="sys" />
                </td>
            </tr>
            </table>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

<!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0" id="tbIC" runat ="server"  visible ="false" >
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                刷卡终端设置</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td >
 <table border="1"  class ="table" cellpadding ="0"  cellspacing ="0" style ="width :820px">
            <tr>
                <td class ="tabletd_right" style ="width :130px; ">
                    刷卡终端IP设置</td>
                <td class ="tabletd_left"  >
                    起始：
                      <asp:TextBox ID="tbIcstar1" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                   ．<asp:TextBox ID="tbIcstar2" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                   ．<asp:TextBox ID="tbIcstar3" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                   ．<asp:TextBox ID="tbIcstar4" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
&nbsp; 终止：
                      <asp:TextBox ID="tbIcend1" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                    ．<asp:TextBox ID="tbIcend2" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                   ．<asp:TextBox ID="tbIcend3" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                   ．<asp:TextBox ID="tbIcend4" runat="server" Columns="3" MaxLength="3" Width="25px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                        ControlToValidate="tbIcstar1" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                        ControlToValidate="tbIcstar2" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                        ControlToValidate="tbIcstar3" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                        ControlToValidate="tbIcstar4" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                        ControlToValidate="tbIcend1" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                        ControlToValidate="tbIcend2" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" 
                        ControlToValidate="tbIcend3" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" 
                        ControlToValidate="tbIcend4" Display="Dynamic" ErrorMessage="IP段不能为空。" 
                        ValidationGroup="ic" ForeColor="Red"></asp:RequiredFieldValidator>
                        
                    <asp:RangeValidator ID="RangeValidator9" runat="server" 
                        ControlToValidate="tbIcstar1" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator10" runat="server" 
                        ControlToValidate="tbIcstar2" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator11" runat="server" 
                        ControlToValidate="tbIcstar3" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator12" runat="server" 
                        ControlToValidate="tbIcstar4" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator13" runat="server" 
                        ControlToValidate="tbIcend1" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator14" runat="server" 
                        ControlToValidate="tbIcend2" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator15" runat="server" 
                        ControlToValidate="tbIcend3" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
                          <asp:RangeValidator ID="RangeValidator16" runat="server" 
                        ControlToValidate="tbIcend4" Display="Dynamic" ErrorMessage="请输入0-255之间的整数" 
                        MaximumValue="255" MinimumValue="0" Type="Integer" ValidationGroup="ic" 
                        ForeColor="Red"></asp:RangeValidator>
  </td>
            </tr>
            <tr>
                <td class ="tabletd_right">
                    &nbsp;</td>
                <td class ="tabletd_left">
                    <asp:Button ID="btIc" runat="server" onclick="btIc_Click" Text="提交修改" 
                        ValidationGroup="ic" />
                </td>
            </tr>
            </table>
        </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="GridView1" runat="server" 
            onrowdeleting="GridView1_RowDeleting" 
            onrowdatabound="GridView1_RowDataBound" Width="500px" 
                BorderWidth="1px" CssClass="gv" 
                cellspacing="1" AutoGenerateColumns="False" 
                onrowcreated="GridView1_RowCreated">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
            <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                            <asp:BoundField DataField="ipstar" HeaderText="起始IP" ReadOnly="True" />

                <asp:BoundField DataField="ipend" HeaderText="终止IP" ReadOnly="True" />

                <asp:CommandField HeaderText="删除" ShowDeleteButton="True"  DeleteText ="删除"/>
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView><div style = " margin-top :10px">
      添加IP：从                          <asp:TextBox ID="tbIPStar" runat="server"   ></asp:TextBox>
                          到        <asp:TextBox ID="tbIPEnd" runat="server"   ></asp:TextBox>
            &nbsp;<asp:Button ID="btIPAdd"
                              runat="server" Text="添加" onclick="btIPAdd_Click" 
                ValidationGroup="AddIP" />
             <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                        ControlToValidate="tbIPStar" Display="Dynamic" ErrorMessage="请输入正确的IP" 
                ValidationExpression="^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}$" ValidationGroup="AddIP" 
                ForeColor="Red"></asp:RegularExpressionValidator>
      <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" 
                        ControlToValidate="tbIPEnd" Display="Dynamic" ErrorMessage="请输入正确的IP" 
   ValidationExpression="^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}$" ValidationGroup="AddIP" 
                ForeColor="Red"></asp:RegularExpressionValidator>
                   </div>
         </td>
      </tr>

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


    </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>
