<%temp_customer_manage_login_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_login_show -->
<TABLE cellSpacing=0 cellPadding=0 width=95%  border=0 <%=site.object(site.object_p).style%> style="border: 1px solid #C0C0C0" >
                <tr>
                  <td align="center">
                      <form name=userinfo method=post action=do.asp?tr=customer|manage|login|edit >
                        <div align="center">
                        <table width="100%" border="0" cellpadding="5" cellspacing="1" >
                          <tr>
                            <td height=15 colspan=2 bgcolor="#f1f1f1"><font color="#FF3300">·登陆设置</font></td>
                          </tr>
                          <tr >
                            <td width="43%" align=right>您此次登陆ip：</td>
                            <td width="54%" ><%=request.ServerVariables("REMOTE_ADDR")%></td>
                          </tr>
                          <tr >
                            <td width="43%" align=right>您上次登陆ip：</td>
                            <td ><%=site.temp.customer.info.login_ip_last%></td>
                          </tr>
                          <tr >
                            <td width="43%" align=right>您的登陆次数：</td>
                            <td ><%=int(site.temp.customer.info.login_time/2)%></td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                          <tr >
                            <td width="100%" align=left colspan=2 ><font color=red>注意！如果您选择了登陆ip锁定，如果你下次登陆的ip与您填入的锁定ip不符的话，您将不能登陆，所以请慎重选择！</font></td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                         <tr >
                            <td width="43%" align=right>登陆IP锁定：</td>
                            <td >
							<select name="customer_login_ip_lock" id="customer_login_ip_lock" >
							<option value=1 <%if site.temp.customer.info.login_ip_lock=1 then response.write "selected"%>>锁定</option>
							<option value=0 <%if site.temp.customer.info.login_ip_lock=0 then response.write "selected"%>>未锁定</option>
							</select>
							</td>
                          </tr>
                          <tr >
                            <td width="43%" align=right>登陆锁定IP：</td>
                            <td ><input name="customer_login_ip_locked" id="customer_login_ip_locked" value="<%if site.temp.customer.info.login_ip_locked="" then response.write request.ServerVariables("REMOTE_ADDR") else response.write site.temp.customer.info.login_ip_locked%>"></td>
                          </tr>
						  <tr >
						    <td width="100%" align=left colspan=2 background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
						  </tr>
                          <tr >
                            <td align="center" colspan="2"><input type=hidden name=customer_property ><input onClick="reginfosubmit();" type=button value=" 提交信息 ">
                                <input type=reset name="Clear" value=" 重新填写 ">
                            </td>
                          </tr>
                        </table>
                    	</div>
                    </form></td>
                </tr>
</TABLE>
<script language=javascript>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}

function checkreginfo()
{
   if(checkspace(document.userinfo.customer_login_ip_lock.value)) {
	document.userinfo.customer_login_ip_lock.focus();
    alert("对不起，请选择登陆ip锁定！");
	return false;
  }
  
  if(document.userinfo.customer_login_ip_lock.value==1){
	  if(checkspace(document.userinfo.customer_login_ip_locked.value)) {
		document.userinfo.customer_login_ip_locked.focus();
		alert("对不起，您选择了登陆ip锁定，请填写登陆锁定ip！");
		return false;
	  }
  }

return true;
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function reginfosubmit(){
if(checkreginfo())
userinfo.submit();
}

</script>
