<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file ="../connadmin.asp"-->
<!--#include file = "tuzh_pri.asp"-->
<!--#include file ="../page.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
body  {
SCROLLBAR-FACE-COLOR: #9CC5D7;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; 
SCROLLBAR-SHADOW-COLOR: #006699; 
SCROLLBAR-3DLIGHT-COLOR: #006699; 
SCROLLBAR-ARROW-COLOR: #330000; 
SCROLLBAR-TRACK-COLOR: #E2F3F1; 
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;}
</style>
<link rel="stylesheet" type="text/css" href="../img/css.css" />
</head>
<%	
set rs=server.createobject("adodb.recordset") 
exec="select * from Results order by id desc" 
rs.open exec,conn,1,1 
if rs.eof then
response.Write "&nbsp;暂无报名！"
else
rs.PageSize =10 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif  page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if	
%>
<body>
<form method="post" name="Results" id="Results">
 <%For i=1 To x%>
<table class="border" width="95%" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr>
    <td height="49" align="center" valign="top" class="bg_low"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="middle" class="bgtop"><font class="bgtop_title">管理学生成绩</font></td>
      </tr>
    </table>
        <table width="100%" border="1" cellpadding="1" cellspacing="0" bordercolor="#ABCEDD">
          <tr>
            <td width="84" align="right">学员学号：</td>
            <td width="177" align="left"><%=rs("xuehao")%></td>
            <td width="77" align="left">学生姓名：</td>
            <td width="305" align="left"><%=rs("UserName")%></td>
            <td width="91" align="left">班级类别：</td>
            <td width="208" align="left"><%=rs("Classo")%></td>
          </tr>
          <tr>
            <td width="84" align="right">语文成绩：</td>
            <td align="left"><%=rs("yuwen")%></td>
            <td align="left">数学成绩：</td>
            <td align="left"><%=rs("shuxue")%></td>
            <td align="left">英语成绩：</td>
            <td align="left"><%=rs("yingyu")%></td>
          </tr>
          <tr>
            <td align="right" valign="top">物理成绩：</td>
            <td align="left"><%=rs("wuli")%></td>
            <td align="left">化学成绩：</td>
            <td align="left"><%=rs("huaxue")%></td>
            <td align="left">政治成绩：</td>
            <td align="left"><%=rs("zhenzhi")%></td>
          </tr>
          
          <tr>
            <td colspan="6" align="center"><input type="button" name="update" value="修改成绩" onClick="window.location.href='Results_edit.asp?id=<%=rs("id")%>' "/>
            <input name="delete" type="button" class="button" onclick="javascript:if(confirm('确定要删除吗？删除后不可恢复!')){window.location.href='download.asp?act=del&amp;id=<%=rs("id")%>';}else{history.go(0);}" value="删除此项" /></td>
          </tr>
      </table></td>
  </tr>
</table>
<%rs.movenext
next
rs.close
set rs=nothing
%>
<%
end if
%>  
<%'以下显示分页
 call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
%>
</form>
</body>
</html>