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

📄 checklogin.asp

📁 一个毕业设计:企业工资管理系统,含毕业论文
💻 ASP
字号:
<!-- #include file="inc/top.asp" -->

<!-- #include file="inc/stumenu.asp"-->


<%
response.buffer=true
Response.Expires=0
if session("pwd")<>"" then
mm=session("pwd")
else
mm=request("mm")
end if
if session("user")<>"" then
xh=session("user")
else
xh=request("xh")
end if
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("#25175class_cj.asp")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select id from user where xh='"&xh&"' and mm='"&mm&"'"
rs.open sql,conn,3,3

if rs.eof then
response.write("<table width=300 border=0 cellspacing=0 cellpadding=0 align=center>")
response.write("<script language=JavaScript>" & chr(13) & "alert('无效的工号或密码,请重新确认');" & "history.back()" & "</script>")
response.write("</table>")
response.end
else 
session("pwd")=mm
session("user")=xh

%>
<%define="1"%>

<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
    <form action="stulook.asp" method="post" name="form1" >
  <table border="0" cellpadding="0" cellspacing="0">
    <tr> 
            <td height="25" nowrap>
              <div align="center">查询您的总分:</div>        
            </td>
            <td width="200" height="25"> 
              <input type="hidden" name="xh" value="<%=request("xh")%>">
              <input name="submit" type="submit" value="确定">
              <input name="al" type=hidden value="1"></td>
    </tr>
  </table>
    </form>  </td>
  </tr>
<tr><td align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr><td height="30" colspan="4" align="center"><strong>分类查询</strong></td>
</tr>
  <tr>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#EEEEEE">
                  <td height="25" colspan="2" align="center">按年代查询</td>
   </tr>
   <tr>
                  <td width="50" height="25" align="center">年代:</td>
                  <td width="150" height="25">
       <input type=text name="kc" size="15">
       </td></tr>
   <tr><td height="25" colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#CCCCCC">
                  <td height="25" colspan="2" align="center">按积分排序</td>
   </tr>
   <tr>
                  <td width="50" height="25" align="center">积分:</td>
                  <td width="150" height="25">
       <input type=text name="cj" size="15">
       </td></tr>
   <tr><td height="25" colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#EEEEEE"><td height="25" colspan="2" align="center">按学期查询</td>
   </tr>
   <tr>
                  <td width="50" height="25" align="center">月份:</td>
                  <td width="150" height="25">
        <select name="xq"><option>一月</option><option>二月</option><option>三月</option><option>四月/option><option>五月</option><option>六月</option><option>七月</option><option>八月</option><option>九月</option><option>十月</option><option>十一月</option><option>十二月</option></select>
       </td></tr>
   <tr><td height="25" colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#CCCCCC"><td height="25" colspan="2" align="center">按类型查询</td>
   </tr>
   <tr><td width="50" height="25" align="center">类型:</td><td width="150" height="25">
       <select name="lx"><option>基本工资</option><option>绩效工资</option><option>奖金</option></select>
       </td></tr>
   <tr><td height="25" colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
  </tr>
</table></td></tr>
</table>


<!-- #include file=inc/copyr.asp -->
<%
end if
%>

⌨️ 快捷键说明

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