index.asp
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:2k
源码类别:

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <!--#include file="../inc/dbconn.asp" -->
  2. <!--#include file="../inc/func.asp" -->
  3. <%
  4. if request.form("operation")="login" then
  5. dim sn
  6. sn=request.form("sn")
  7. if lcase(sn)<>lcase(session("psn")) then
  8. call showerr("系统提示:请输入正确的验证码!")
  9. end if
  10. dim admin
  11. admin=request.form("admin")
  12. admin=replace(admin,"'","")
  13. dim pwd
  14. pwd=request.form("pwd")
  15. pwd=replace(pwd,"'","")
  16. dim rs
  17. set rs=conn.execute("select * from admin where admin='"&admin&"' and pwd='"&pwd&"'")
  18. if rs.eof then
  19. call showerr("输入的帐号或密码不正确,请正确填写!")
  20. end if
  21. session("key")="freesky_zhangdan"
  22. session("manage")=admin
  23. session("qx")=rs("qx")
  24. 'response.write rs("qx")
  25. 'response.end
  26. call showmsg("用户登录成功!","main.asp")
  27. end if
  28. %>
  29. <html>
  30. <head>
  31. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  32. <title>管理中心</title>
  33. <link href="images/style.css" rel="stylesheet" type="text/css">
  34. </head>
  35. <body BACKGROUND="Images/bg.gif">
  36. <table width="100%" height="466"  border="0" align="center" cellpadding="0" cellspacing="0"> 
  37. <tr> <td><table width="524" height="276"  border="0" align="center" cellpadding="0" cellspacing="0" background="images/admin_login.gif"> 
  38. <tr> <td width="524" height="276"><form name="form1" method="post" action="index.asp"> 
  39. <table width="91%" height="121"  border="0" cellpadding="0" cellspacing="0"> <tr> 
  40. <td width="44%">&nbsp;</td><td width="18%">&nbsp;</td><td width="38%">&nbsp;</td></tr> <tr> <td height="25">&nbsp;</td><td height="25"><div align="center">用户名:</div></td><td height="25">
  41.                     <input name="admin" type="text" class="ipt1" id="admin">
  42.                   </td></tr> 
  43. <tr> <td height="25">&nbsp;</td><td height="25"><div align="center">密 码:</div></td><td height="25">
  44.                     <input name="pwd" type="password" class="ipt1" id="pwd">
  45.                   </td></tr>
  46. <tr>
  47.   <td height="25">&nbsp;</td>
  48.   <td height="25"><div align="center">验证码:</div></td>
  49.   <td height="25"><input name="sn" type="text" class="ipt1" id="sn" size="10">
  50. &nbsp;<img src="code.asp"></td>
  51. </tr> 
  52. <tr> <td>&nbsp;</td><td colspan="2"><div align="center"> <input name="Submit" type="submit" class="ipt2" value="提交"> 
  53. <input name="Submit2" type="reset" class="ipt2" value="重置"> <input name="operation" type="hidden" id="operation" value="login"> 
  54. </div></td></tr> </table>
  55. </form></td></tr> </table></td></tr> </table>
  56. </body>
  57. </html>
  58. <%
  59. call COCLS
  60. %>