⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<html><!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/const.asp"-->
<%
strID=request("strID")
strSQL="select * from tbioaUser where ID="& strID
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSQL,oConn
%>
<head>
<title>用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
<!--
function document_onkeydown() {
if(event.ctrlKey && window.event.keyCode==78)
  {
  
     window.alert ("欢迎使用B-ICQ")

  }
}

//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onkeydown>
<!--
 document_onkeydown()
//-->
</SCRIPT>

<script language="javascript">
var bV=parseInt(navigator.appVersion);
var IE4=((document.all)&&(bV>=4))?true:false;
var NS4=(document.layers)?true:false;
var z=0;
function LayerV(LayerName,V){
    E=eval('document.'+LayerName);
    if(IE4) E=eval('document.all.'+LayerName+'.style');
    E.visibility=(V?'visible':'hidden');
}
function downbar(o){
o.style.borderLeftColor ='#000000';
o.style.borderTopColor='#000000';
o.style.borderRightColor='#ffffff';
o.style.borderBottomColor='#ffffff';
}
function outbar(o){
o.style.borderLeftColor ='#ffffff';
o.style.borderTopColor='#ffffff';
o.style.borderRightColor='#000000';
o.style.borderBottomColor='#000000';
}
//////////////////////////////////////////////////////////
//下面这个函数实现了当点击图片时,把图片选上
function select(image1){
var html,url1
url1=image1.src
form2.face.value=url1
LayerV('Zhong',z=1-z)
look0.src=url1
}
///////////////////////////////////////////////

function check(){
if (form1.username.value==""){
alert("用户名不能为空,这是您的帐号!");
return false;
}
else if(form1.password.value==""){
alert("密码不能为空!");
return false;
}
else if(form1.password2.value==""){
alert("确认密码不能为空!");
return false;
}
else if(form1.password.value!=form1.password2.value){
alert("密码与确认密码应该相同!");
return false;
}
else if(form1.nickname.value==""){
alert("呢称不能为空!");
return false;
}
else {

return true;
}

}

</script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onresize() {
if(window.screen.width != 470 || window.screen.height != 360  ){
	window.resizeTo(470,360)
}
}

function window_onload() {
w=screen.width /2 -230
h=screen.height /2 -180
window.moveTo (w,h)
window.resizeTo(470,360)
}

//***********************************
function add_onclick() {
 
age1=age.value 
//sex=select.options[select.selectedIndex].value

//nickname=form2.nickname.value 

if (username.value =="" ){
	window.alert ("请输入用户名")
	username.focus ()
	return false
	

else if(password.value  == "" ){
window.alert ("请输入密码")
	password.focus ()
	return false
}else if(password2.value  == "" ){
window.alert ("请输入检验密码")
	password2.focus ()
	return false
}else if(password2.value   != password.value  ){
window.alert ("2次密码不一致")
	password2.focus ()
	return false
}else if(form2.nickname.value==""){
window.alert ("请输入昵称")
	form2.nickname.focus ()
	return false
}else{
     
     form2.username.value =username.value
     form2.age.value =age.value 
     form2.sex.value =select1.options [select1.selectedIndex ].value 
      form2.password.value =password.value 
    
     form2.password2.value =password2.value 
  form2.method ="post"
  form2.action ="save.asp"
  form2.submit ()
	return true

}
}

function document_onclick() {

//LayerV('Zhong',z=1-z)

}

function Zhong_onmouseout() {
//LayerV('Zhong',z=1-z)

}

//-->
</script>
<style type="text/css">
<!--
td {  font-size: 9pt}
.short {  font-size: 3px}
.temp {  font-size: 0px}
-->
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onclick>
<!--

 document_onclick()
//-->
</SCRIPT>
</head>

<body  oncontextmenu=self.event.returnValue=false bgcolor=menu text="#000000" onresize="return window_onresize()" onload="window_onload();window_onresize()" leftmargin="0" topmargin="0">
<table width="271" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>        
      <td> 
        
      <table width="276" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <!--
		  <form name="form1" method="post" action="save.asp" onsubmit="return check()">
		  //-->
            <td class="short"> <br>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td> </td>
                </tr>
              </table>
              <table width="98%" border="0" cellspacing="2" cellpadding="0" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000">
                <tr> 
                  <td width="70"> </td>
                  <td width="101"> </td>
                  <td width="71"> </td>
                </tr>
                <tr> 
                  <td align="center" width="70"> </td>
                  <td width="101">用户名</td>
                  <td width="71"> </td>
                </tr>
                <tr> 
                  <td rowspan="3" width="70" align="center"> 
				    
                      
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td style="border-left:2px solid #000000;border-top:2px solid #000000;border-right:1px solid #ffffff;border-bottom:1px solid #ffffff" class="temp"> 
                        <div id=pic><img src="face/1-1.bmp" onClick="javascript:LayerV('Zhong',z=1-z)" name="look0" style="border-left:1px solid menu;border-top:1px solid menu;border-right:1px solid menu;border-bottom:1px solid menu"><img src="images/rightlist.gif" onMouseDown="javascript:downbar(this)" onMouseUP="javascript:outbar(this)" onMouseOut="javascript:outbar(this)" onClick="javascript:LayerV('Zhong',z=1-z)" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000"></div>
                      </td>
                    </tr>
                  </table>
                    
                  <div id="Zhong" 
                   style="border:1px solid #000000; position:absolute;visibility:hidden ; width:50px; height:99px; z-index:1;overflow:auto; left: 505px; background-color: menu; top:52px" 
                  class="temp" LANGUAGE=javascript onmouseout="return Zhong_onmouseout()"> 
                    <% for i=1 to 85%>
                    <img src="face/<%=i%>-1.bmp"  onClick="javascript:select(this)"><br>
                    <%next%>
                  </div>
                  </td>
                  <td height="26" width="101"><b> 
                    <input type="text" name="username" maxlength=20  style="width:100" value="<%=rs("Name")%>" size="2">
                    </b></td>
                  <td height="26" width="71"><b> 
                    &nbsp;</b></td>
                </tr>
                <tr> 
                  <td width="101"><b> 
                    <input type="password" name="password" style="display:none" style="display:none" value="111111" size="12">
                    </b></td>
                  <td><b> 
                    <input type="password" name="password2" style="display:none" style="display:none" value="111111" size="9">
                    </b></td>
                </tr>
              </table><br>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <form name=form2 >
                <tr> 
                  <td class="short"> 
                    <br>
                    <table width="99%" border="0" cellspacing="2" cellpadding="0" style="border-left:1px solid #ffffff;border-top:1px solid #ffffff;border-right:1px solid #000000;border-bottom:1px solid #000000">
                      <tr> 
                        <td width="23%">密码保护</td>
                        <td width="42%"> </td>
                        <td width="24%"> </td>
                      </tr>
                      <tr> 
                        <td width="23%" align="right">昵称:</td>
                        <td width="42%"><b> 
                         <input type=hidden name="username" >
        <input type=hidden name="age" >
        <input type=hidden name="sex" >        
        <input type=hidden name="password" >
        <input type=hidden name="password2" >
        <input type="hidden" name="face" value="face/1-1.bmp" size="4">
        
                          <input type="text" name="nickname" style="width:115" value="<%=rs("Name")%>" size="20">
                          </b></td>
                        <td width="24%">必须填写</td>
                      </tr>
                      </table>
                  </td>
                </tr>
              </form>
            </table>
            <br>
          </td>
          <td width="4"> </td>
        </tr>
      </table>
        
      </td>
      </tr>
      <tr>
        
      <td height="19"> 
        
      <hr width="57%" align="left">
        </td>
      </tr>
      <tr>
        
      <td align="center"> 
       
          
      <input type="button" name="add" value="确定" style="width:80" LANGUAGE=javascript onclick="return add_onclick()">
          
      <input type="button" name="Button" value="重写" style="width:80">
        </td>
      </tr>
    </table>
      </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -