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

📄 cuqin.asp

📁 用于中学教务处通过各班学习委员对每位任课教师教学质量
💻 ASP
字号:
<!--#include file=conn.asp-->
<%
if session("charge")<>"2" then
response.write ("<script>alert('你没有浏览日志的权限,请重登录');history.go(-1);</script>")
end if
dim beginday,endday
set rs1=server.createobject("adodb.recordset")
sql="select startday from config"
rs1.open sql,conn,3,1
if request("w")<>"" then
w=request("w")
else
i=1
beginday=rs1("startday")-weekday(rs1("startday"))+2+7*(i-1)
endday=beginday+6
nowday=date()
do while not (nowday>=beginday and nowday<=endday)
i=i+1
beginday=rs1("startday")-weekday(rs1("startday"))+2+7*(i-1)
endday=beginday+6
loop
w=i
end if

beginday=rs1("startday")-weekday(rs1("startday"))+2+7*(w-1)
endday=beginday+6
set rs=server.createobject("adodb.recordset")
sql="select * from rizhi where teacherchuqin<>'全勤' and kemu<>'自习' and year(date)>=year('"&beginday&"') and month(date)>=month('"&beginday&"') and day(date)>=day('"&beginday&"') and year(date)<=year('"&endday&"') and month(date)<=month('"&endday&"') and day(date)<=day('"&endday&"')" 
rs.open sql,conn,1,1%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>重庆市万州高级中学网上教学日程查询系统</title>
<LINK href=news.css rel=stylesheet></head>

<body leftmargin="0" topmargin="0">
<form action="cuqin.asp" method="post" name="form1" target="_self">
  <div align="center">
    <table width="105%" border="0" bordercolor="#99CCFF" bgcolor="#99CCFF">
      <tr>
        <td><div align="center">请输入你要查询教师出勤情况的周次 
            <input name="w" type="text" id="w" size="5">
            <input type="submit" name="Submit" value="提交">
                  </div></td>
      </tr>
    </table>
  </div>
</form>

<div align="center"><%=beginday%>日至<%=endday%>日 第<%=w%>周 
  <%if not rs.eof then%>
</div>
<table width="550" border="1" align="center">
  <tr bgcolor="#EBFFE8"> 
    <td width="65">&nbsp; 教师姓名</td>
    <td width="82"> <div align="center">班级</div></td>
    <td width="119"> <div align="center">日期</div></td>
    <td width="66"> <div align="center">科目</div></td>
    <td width="98"> <div align="center">课时</div></td>
    <td width="80"> <div align="center">出勤情况</div></td>
  </tr>
  <%do while not rs.eof%>
  <tr> 
    <td><div align="center"><%=rs("teachername")%></div></td>
    <td><div align="center"><%=rs("class")%>&nbsp;</div></td>
    <td><div align="center"><%=year(rs("date"))%>年<%=month(rs("date"))%>月<%=day(rs("date"))%>日&nbsp;星期<%=weekday(rs("date"))-1%></div></td>
    <td><div align="center"><%=rs("kemu")%>&nbsp;</div></td>
    <td><div align="center"><%=rs("jieci")%>&nbsp;</div></td>
    <td><div align="center"><%=rs("teacherchuqin")%>&nbsp;</div></td>
  </tr>
  <%rs.movenext
	loop%>
</table>
  

  
<table width="550" border="0" align="center">
  <tr>
    <td height="38">
<div align="right"><a href="javascript:window.print()" class=bottom><img src="printer.gif" width="16" height="16" border="0"> 
        打印本页</a></div></td>
  </tr>
</table>
<%else%>

<div align="center">本周没有缺勤记录 
  <%end if%>
</div>
<p>&nbsp; </p>
</body>
</html>

⌨️ 快捷键说明

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