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

📄 userlogin.asp

📁 图书管理系统的所有程序
💻 ASP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%response.Expires=-1%>
<html>
<head>
<title>网上图书订购系统</title>
<link href="css/style.css" rel="stylesheet">
<script language="javascript">
 function chkfields(){
   if(document.myform.username.value==''){
     alert("用户ID不能为空");
	 document.myform.username.focus();
	 return false;
   }
   if(document.myform.userpass.value==''){
     alert("用户密码不能为空");
	 document.myform.userpass.focus();
	 return false;
   }
   return true;
 }
 function change(id){
   window.open ("changepwd.asp?ID1="+id,"修改个人资料","width=500,height=395");
 }
 function out(){
   window.open("logout.asp","","width=500,height=600");
 }
 function look(id){
   window.open("buyhistory.asp?ID="+id,"","scrollbars=yes,resizable=yes,width=700,height=600");
 }
</script>
<!--#INCLUDE FILE="conn/conn.asp"-->
<!--#include file="js.asp"-->
</head>
<body topmargin="0" leftmargin="4" bgcolor="#FDFDFD"> 
<table width="799" border="0" cellspacing="0" cellpadding="0"> 
  <tr> 
    <td><!--#include file="userlogin_top.asp" --></td> 
  </tr> 
  <tr> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
        <tr> 
          <td rowspan="3" valign="top" width="160"> <!--#include file="sort_left.asp"--> 
            </div></td> 
          <form action="search.asp" method="post" name="form1"> 
            <td width="637" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#818181"> 
                <tr> 
                  <td width="54%" height="41" align="right" valign="middle" bgcolor="#EAEAEA"> <select name="sfield" id="select"> 
                      <option value="barcode">条形码</option> 
                      <option value="BookName">书名</option> 
                      <option value="bookconcern">出版社</option> 
                      <option value="kind">图书类型</option> 
                      <option value="author">作者</option> 
                    </select> 
                    <select name="mode" id="mode"> 
                      <option value="==">等于</option> 
                      <option value="like">Like</option> 
                    </select> 
                    <input type="text" name="cValue" id="cValue" size="30" style="border-style:1px solid #000000"> 
                    <input name="search" type="image" src="images/search.gif" style="cursor:hand"> 
&nbsp;&nbsp;  
                </tr> 
              </table></td> 
          </form> 
        </tr> 
        <tr> 
          <td width="637" height="453" valign="top"><div align="left"> 
              <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFCC33"> 
                <tr> 
                  <td height="445" align="center" valign="top" bgcolor="#FFFFFF"><br> 
                    <br> 
                    <br> 
                    <%
					if session("passed1")="" then
					  session("passed1")=false
					end if
					if session("passed1")=false then
					%> 
                    <table width="350" border="1" cellpadding="4" cellspacing="1" bordercolor="#FFCC66" bordercolordark="#FFFFFF"> 
                      <tr> 
                        <td height="33" align="center" bgcolor="#3399CC"><span class="style3"> 
                          <%
						if session("msg1")<>"" then
						  response.write session("msg1")
						else
						  response.write "用户登录"
						end if  
						%> 
                          </span> </td> 
                      </tr> 
                      <tr> 
                        <td bgcolor="#f5f5f5"> <br> 
                          <form action="usercheck.asp" name="myform" onSubmit="return chkfields();"> 
                            <table width="80%" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#336699"> 
                              <tr bgcolor="#FFFFFF"> 
                                <td>I&nbsp;&nbsp;D:</td> 
                                <td><input type="text" name="username" size="20" maxlength="50"
								     style="border:1px solid #000000"></td> 
                              </tr> 
                              <tr bgcolor="#FFFFFF"> 
                                <td>密&nbsp;码:</td> 
                                <td><input type="password" name="userpass" size="20" maxlength="50"
									 style="border:1px solid #000000 "></td> 
                              </tr> 
                              <tr bgcolor="#F5F5F5"> 
                                <td colspan="2"> <div align="center"> 
                                    <input type="submit" name="b1" value="登 录" class="showBtn"> 
&nbsp;&nbsp; 
                                    <input type="reset" name="b2" value="取 消" class="showBtn"> 
                                  </div></td> 
                              </tr> 
                            </table> 
                          </form> 
                          <br> 
                          <div align="center"></div></td> 
                      </tr> 
                    </table> 
                    <%
				end if
if session("passed1")=true then %> 
                    <table border="0" cellpadding="15" cellspacing="1" bgcolor="#CCCCCC" width="400"> 
                      <tr bgcolor="#999933"> 
                        <td bgcolor="#f5f5f5" align="center">用户 <font color="#FF0000"><%=session("username1")%></font> , 您已成功登录</td> 
                      </tr> 
                      <tr> 
                        <td bgcolor="#FFFFFF"><div align="center"> 
                            <input type="button" value="修改个人资料" name="b1" class="btnLogin" onClick="change('<%=session("ID1")%>')"> 
                          </div></td> 
                      </tr> 
                      <tr> 
                        <td bgcolor="#FFFFFF"><div align="center"> 
                            <input type="button" value="查 看 订 单" name="b2" class="btnLogin" onClick="look('<%=session("ID1")%>')"> 
                          </div></td> 
                      </tr> 
                      <tr> 
                        <td bgcolor="#FFFFFF"><div align="center"> 
                            <input type="button" value="注 销 登 录" name="b3" class="btnLogin" onClick="out()"> 
                          </div></td> 
                      </tr> 
                    </table> 
                    <%end if%> </td> 
                </tr> 
              </table> 
            </div></td> 
        </tr> 
      </table></td> 
  </tr> 
</table> 
<hr size="1" width="799" style="color:#006699" align="left"> 
<!--#include file="zhan_botom.asp"--> 
</body>
</html>

⌨️ 快捷键说明

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