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

📄 login.asp

📁 学生评教系统,可以实现学生评教,教师查分功能.
💻 ASP
字号:
<% response.buffer=true

    dim username,password,studentclassid
     
     password=request.form("password")
     username=request.form("username")%>
     
     <!--#include file="conn1.asp"-->
  
<% set ors=server.createobject("adodb.recordset")
     ors.open "select *from student where stuid='"&username&"' and type='1' ",conn
    
   if ors.eof or ors.bof then 
        response.redirect "check1.asp"
     elseif password<>ors("pass1") then 
         response.redirect "check2.asp"
     end if
   
  
  %>  
 
  <body bgcolor="#E2F5E2">
        <table border="0" bordercolorlight="#f2f4ff"  cellpadding="0" bordercolorlight="#f1f4ff" style="font-size:x-small" height="105" >
 <tr> <td valign="middle" align=left height="103" width="827"><FONT COLOR=#000000>
          >> 欢迎您:<img border="0" src="IMAGES/Male.gif" >   
        <a href="tdefault.asp"><FONT COLOR=#000000>返回登录界面:</FONT></a> |
        <a href="pass.asp?stuid=<%=username%> "><FONT COLOR=#000000>更改密码</FONT></a>|
        <a href="query1.asp"><font color="#000000">教师各单项评教查询</font></a>|
           <font color="#000000">教师评教排行榜</font></a>| 
        <a href="index.htm"><FONT COLOR=#000000>退出</FONT></a>| 
 <table border="1" align="center" width="813"  >
            <tr>
                 <td width="44" height="58"><font color="#80000">代码</font></td>
                 <td width="78" height="58"><font color="#80000">任课老师</font></td>
                 <td width="115" height="58"><font color="#80000">课程名称</font></td>
                <td width="66" height="58"><font color="#800000">教学态度</font></td>
                 <td width="76" height="58"><font color="#800000">教学内容</font></td > 
                 <td width="68" height="58"><font color="#800000">教学方法</font></td >
                 <td width="78" height="58"><font color="#800000">教学效果</font></td >
               
                 <td width="66" height="58"><font color="#800000">评分率</font></td >
                 <td width="179" ><font color="#800000">图形显示

                 
              </tr>
       
                <%dim percent(100)
                     set orv=server.createobject("adodb.recordset")
                     strsql="select * from vote order by sum desc"
                     orv.open strsql ,conn   
                     do while not orv.eof
                      i=i+1%>
         
             <tr>
                 <td width="44" ><font color="#338800"><%=i%></font> </td>
                 <td width="78" ><font color="#338800"><%=orv("teachername")%></font> </td>
                 <td width="115" ><font color="#338800"><%=orv("coursename")%></font> </td>
                <td width="66" ><font color="#338800"><%=orv("vote1")+orv("vote2")+orv("vote3")+orv("vote4")%></font> </td>
                 <td width="76" ><font color="#338800"><%=orv("vote5")+orv("vote6")+orv("vote7")+orv("vote8")%></font> </td > 
                 <td width="68" ><font color="#338800"><%=orv("vote9")+orv("vote10")+orv("vote11")+orv("vote12")%></font> </td >
                 <td width="78" ><font color="#338800"><%=orv("vote13")+orv("vote14")+orv("vote15")+orv("vote16")%></font> </td >
                                            <%total=orv("votenum")*5*17
                                               percent(i)=ROUND(orv("sum")/total,3)%>
                 <td width="66" ><font color="#228800"><%=percent(i)*100%>%</font> </td >
                 <td width="179"><img src="images/wu.gif" width=<%=100*percent(I)%> >

                       
             </tr>
                 <%orv.movenext
                 loop  %>
         
 </table>
    

⌨️ 快捷键说明

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