<%@ page language="C#" autoeventwireup="true" inherits="admin_adminset, App_Web_tqrintju" maintainscrollpositiononpostback="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>safehost</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<link type="text/css" href="../css/common.css" rel="Stylesheet" />
</head>

<SCRIPT language=JavaScript type=text/javascript> 
function len(s) { 
var l = 0; 
var a = s.split(""); 
for (var i=0;i<a.length;i++) { 
if (a[i].charCodeAt(0)<299) { 
l++; 
} else { 
l+=2; 
} 
} 
return l; 
}
function checkform(theform){
if (theform.oldpass.value=="") {
      window.alert("请输入原始密码");
      theform.oldpass.focus();
      return false;
 }
 if (theform.FTPpass.value=="") {
      window.alert("请输入新密码");
      theform.FTPpass.focus();
      return false;
 }
 
 if (len(theform.FTPpass.value)<5) {
      window.alert("密码必须为5-20位的字符");
      theform.FTPpass.focus();
      return false;
 }
var patrn="^[A-Za-z0-9]+$";   
if (!theform.FTPpass.value.match(patrn)) 
{
    window.alert("密码只能由字母和数字组成");
    theForm.FTPuser.focus();
    return false;
}
 if (theform.toFTPpass.value=="") {
      window.alert("请输入确认密码");
      theform.toFTPpass.focus();
      return false;
 }
  if (theform.toFTPpass.value!=theform.FTPpass.value) {
      window.alert("两次密码不一致");
      theform.toFTPpass.focus();
      return false;
 }
 return true;
 }
</SCRIPT>

<body>
    <div id="tt">
    <form id="form1" runat="server">
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="site_bg_site" id="Table1">
        <tbody>
        <tr class="tr3 s3" style="height:30px;">
            <td><h4><b>管理员密码设置：</b></h4></td>
        </tr>
            <tr class="tr3 s3" style="height:30px;">
               <td class="site_bg_bs" width="100px" scope="col" align="right"><strong>原始密码：</strong></td>
               <td class="site_bg_bs" scope=col><input id=oldpass runat="server"  class="input_to_to" 
      title=请输入独立密码(必填) maxLength=20 size=30 type=password name=oldpass> 
      &nbsp;<span class=syt_1></span></td>
       <td class="site_bg_bs" width="100px" scope="col" align="right"><strong></strong></td>
            </tr>
             <tr class="tr3 s3" style="height:30px;">
               <td class="site_bg_bs" width="100px" scope="col" align="right"><strong>新&nbsp;密&nbsp;码：</strong></td>
               <td class="site_bg_bs" scope=col><input id=FTPpass runat="server"  class="input_to_to" 
      title=请输入新密码(必填) maxLength=20 size=30 type=password name=FTPpass> 
      &nbsp;<span class=syt_1>* 请输入5-20位的字符</span></td>
       <td class="site_bg_bs" width="100px" scope="col" align="right"><strong></strong></td>
            </tr>
             <tr class="tr3 s3" style="height:30px;">
               <td class="site_bg_bs" width="100px" scope="col" align="right"><strong>确认密码：</strong></td>
               <td class="site_bg_bs" scope=col><input id=toFTPpass runat="server"  class="input_to_to" 
      title=请确认密码(必填) maxLength=20 size=30 type=password name=toFTPpass> 
      &nbsp;<span class=syt_1></span></td>
       <td class="site_bg_bs" width="100px" scope="col" align="right"><strong></strong></td>
            </tr>
             <tr class="tr3 s3" style="height:30px;">
               <td class="site_bg_bs" width="100px" scope="col" align="right"><strong></strong></td>
                <td class="site_bg_bs" width="100px" scope="col" align="left"> 
                <asp:ImageButton ID="ImageButton1" runat="server" 
            ImageUrl="~/images/host/update.gif" onclick="btnYes_Click" OnClientClick="return checkform(this)"/></td>
             <td class="site_bg_bs" width="100px" scope="col" align="right"><strong></strong></td>
            </tr>
        </tbody>
    </table>
   <br/>
   
   <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="site_bg_site" id="Table2">
        <tbody>
        <tr class="tr3 s3" style="height:30px;">
            <td><h4><b>历史操作记录一览</b></h4></td>
        </tr>
        </tbody>
    </table>
 
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="site_bg_site" id="tab">

    <tr class="tr3 s3" style="height:30px;">

    <td class="site_bg_bs" width="100px" scope="col" align="middle"><strong>登录时间</strong></td>
    <td class="site_bg_bs" width="110px" scope="col" align="middle"><strong>登录IP</strong></td>
  </tr>
  </tr>
  <hr />
<asp:Repeater ID="Repeater" runat="server">
             <ItemTemplate>
				 <tr class="tr3 s3">
                     <td class="site_bg_bs" align="middle">
                     <asp:Label ID="lblpath" Visible="true" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "logtime")%>'> </asp:Label>
				</td>
					<td id="times" class="site_bg_bs" align="middle">
					<asp:Label ID="lbltimes" Visible="true" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "logip")%>'></asp:Label>
					</td> 			
					</tr>
             </ItemTemplate>
  </asp:Repeater>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="site_bg_site" id="Table3">
<tbody>
 <tr class="tr3 s3" style="height:30px;">
          <td class="site_bg_bs"  width="50%" align=left>&nbsp;共 
              <asp:Label ID="lblcount" runat="server" Text="Label"></asp:Label> 条记录 当前第 <asp:Label ID="lblindex" runat="server" Text="Label"></asp:Label>
               /<asp:Label ID="lblPagecount" runat="server" Text="Label"></asp:Label>  页 每页 <asp:Label 
                  ID="lblpageSize" runat="server" Text="Label"></asp:Label>
               条 </td>
          <td  class="site_bg_bs" width="33%" align=right><asp:LinkButton ID="linkFirst" runat="server" 
                  onclick="linkFirst_Click">首页</asp:LinkButton>  &nbsp;|  &nbsp;
              <asp:LinkButton ID="linklast" runat="server" onclick="linklast_Click">上一页</asp:LinkButton>  &nbsp;|   &nbsp;
              <asp:LinkButton ID="linknext" runat="server" onclick="linknext_Click">下一页</asp:LinkButton>  &nbsp; |  &nbsp;
              <asp:LinkButton ID="linkend" runat="server" onclick="linkend_Click">尾页</asp:LinkButton> &nbsp;
             转到 第 
              <asp:DropDownList ID="droppage" runat="server" 
                  onselectedindexchanged="droppage_SelectedIndexChanged" AutoPostBack="True">
              </asp:DropDownList>  页&nbsp;</td></tr>
</tbody>
</table>
</form>
    </div>    
</body>
</html>