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

📄 loginout.asp

📁 晴和教务管理系统
💻 ASP
字号:
<%
loginout = request("loginout")
IF loginout = "logout" Then
logout()
else
login()
End If

function login()
If 	Request.Cookies("jiaowu")("login") = "true" then
%>
<table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height="35" bgcolor="f1f1f1" background="/jw/images/menu_01.gif" align="right" valign="bottom">
用 户 登 陆&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td>
<table width="90%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td align="center"><font color="#FF0000">你已经成功作为<% =request.Cookies("jiaowu")("Lx")%>登陆</font></td>
</tr>
<tr> 
<td align="center"><font color="#999999">
<input class=go-wenbenkuang  onclick="window.location='/jw/loginout.asp?loginout=logout'" value="注 销" type=button>
<input class=go-wenbenkuang onclick="window.location='/jw/more.asp?more=editpwd1'" type=button value="修 改 密 码" name=Submit3></td>
</tr>
<tr> 
<td align="center">名 字: 
<input type="text" class="wenbenkuang" name="username" size="14" readonly value="<% =request.Cookies("jiaowu")("Name")%>">
</td>
</tr>
<tr> 
<td align="center">
<% If request.Cookies("jiaowu")("Lx")="学生" Then %>
学 号:
<% else %>
编 号:
<% End If%>
<input type="text" class="wenbenkuang" name="password" size="14" readonly  value="<% =request.Cookies("jiaowu")("Num")%>">
</td>
</tr>
<tr> 
<td align="center">上次登陆:<% =request.Cookies("jiaowu")("Lastlogin")%></td>
</tr>
<tr> 
<td align="center">上次登陆IP:<% =request.Cookies("jiaowu")("LastloginIP")%></td>
</tr>
<tr> 
<td align="center"><font color="#FF0000">离开时请记得注销本次登陆</font></td>
</tr>
</table>
</td>
</tr>
</table>
<%
Else
%>
<table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height="35" bgcolor="f1f1f1" background="/jw/images/menu_01.gif" align="right" valign="bottom">
用 户 登 陆&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td>
<table width="90%" border="0" cellspacing="0" cellpadding="2" align="center">
<form name="userlogin" method="post" action="/jw/index.asp">
<tr> 
<td align="center"><font color="#999999">登陆后才能使用所有功能</font>
</td>
</tr>
<tr> 
<td align="center">登陆类型:<input type="radio" value="student" checked name="Lx">学生<input type="radio" name="Lx" value="teacher">教师
</td>
</tr>
<tr> 
<td align="center">学(编)号: 
<input type="text" class="wenbenkuang" name="Num" size="12">
</td>
</tr>
<tr> 
<td align="center">密  码: 
<input type="password" class="wenbenkuang" name="Password" size="12">
</td>
</tr>
<tr> 
<td align="center">验证码: 
<input class="wenbenkuang" name="Verifycode" type=text value="" maxLength=4 size=6>
<img src=/jw/inc/GetCode.asp>
</td>
</tr>
<input class=go-wenbenkuang name="loginout" value="logincheck" type=hidden>
<tr> 
<td align="center" height="38"> 
<input class=go-wenbenkuang name="imageField" value="登 陆" type=submit>
<input class=go-wenbenkuang onclick="window.location='/jw/more.asp?more=getpwd1'" type=button value="忘 记 密 码" name=Submit3>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<%
end if
end function

function logout()
response.Cookies("jiaowu")("login") = ""
response.Cookies("jiaowu")("Lx") = ""
response.Cookies("jiaowu")("No") = ""
response.Cookies("jiaowu")("Lastlogin") = ""
response.Cookies("jiaowu")("LastloginIP") = ""
response.Cookies("jiaowu")("Lastlogin") = ""
response.Cookies("jiaowu")("Lastlogin") = ""
response.redirect "index.asp"
end function
%>

⌨️ 快捷键说明

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