<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.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>
<title><%=SiteName%>_校无忧科技_Www.Xiao5u.Com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="description" content="校无忧网上选课系统_Www.Xiao5u.Com" />
<link href="images/xiao5u.css" rel="stylesheet" type="text/css">
<script src="images/check.js"></script>
<!--#include file=images/ini.sys -->
</head>
<body>
<table cellSpacing=0 cellPadding=0 align=center width="960px">
  <tr>
    <td id="banner"><%=SiteName%></td>
  </tr>
 <tr>
  <td id="menu">
  <a href="index.asp">课程列表</a>  
 - <a href="list.asp">我的课程</a>
 - <a href="my.asp">个人信息</a>
<%if session("Sname")<>"" then%> - <a href="logout.asp">退出登陆</a><%end if%>
   </td>
 </tr>
</table>
<table width="960px" align="center" bgcolor="#F0F7FF">
<%if session("Sname")="" then%>
<form  method="post" name="chaxun" action="Check.asp?action=login" onSubmit="return check();">
 <tr>
  <td id="info2" colspan="9" align="center">学号：<input name="Sname" type="text" id="Sname" />  密码：<input name="Pws" type="password" id="Pws" /> <input name="submit" type="submit" value="登录" /></td>
 </tr>
</form>
 <tr>
  <td id="info3" colspan="9"></td>
 </tr>
<%end if%>
 <tr>
  <td id="info2" colspan="9"><%=Description%></td>
 </tr>
 <tr>
  <td id="info3" colspan="9"></td>
 </tr>
	<tr align="center" bgcolor="#ebf0f7" height="35px">
	  <td>课程名称</td>
	  <td>课程人数</td>
	  <td>课程学分</td>
	  <td>上课时间</td>
	  <td>上课地点</td>
	  <td>授课老师</td>
	  <%if session("Sname")<>"" then%><td>已选人数</td><%end if%>
	  <td>详细介绍</td>
<%ntime=now()
Stime2=formatDateTime(Stime,2)
Etime2=formatDateTime(Etime,2)
if ks=1 and (DateDiff("d",Stime2,ntime)>0 and DateDiff("d",ntime,Etime2)>0) and session("Sname")<>"" then %>
	  <td width="10%">课程操作</td><%end if%>
	</tr>	
<%
sql="select * from Info order by id asc"
 set rs=server.createobject("adodb.recordset") 
 rs.open sql,conn,1,1
 if not rs.eof then
 proCount=rs.recordcount
	rs.PageSize=20
     if not IsEmpty(Request("ToPage")) then
	    ToPage=CInt(Request("ToPage"))
		if ToPage>rs.PageCount then
		   rs.AbsolutePage=rs.PageCount
		   intCurPage=rs.PageCount
		elseif ToPage<=0 then
		   rs.AbsolutePage=1
		   intCurPage=1
		else
		   rs.AbsolutePage=ToPage
		   intCurPage=ToPage
		end if
	 else
		rs.AbsolutePage=1
		intCurPage=1
	 end if
	 intCurPage=CInt(intCurPage)
	 For i = 1 to rs.PageSize
	 if rs.eof then     
	 Exit For 
	 end if 
%>
        <tr align='center' bgcolor='#FFFFFF' onmouseover='this.style.background="#F2FDFF"' onmouseout='this.style.background="#FFFFFF"' height="35px">
          <td><%=rs("title")%></td>
          <td><%=rs("xx2")%></td>
          <td><%=rs("xx3")%></td>
          <td><%=rs("xx4")%></td>
          <td><%=rs("xx5")%></td>
          <td><%=rs("xx6")%></td>
          <%if session("Sname")<>"" then%><td><%=rs("xkrs")%></td><%end if%>
          <td><a href="view.asp?id=<%=rs("id")%>" target="_blank">详细</a> </td>
<%if ks=1 and (DateDiff("d",Stime2,ntime)>0 and DateDiff("d",ntime,Etime2)>0) and session("Sname")<>"" then %>
          <td><a href="submit.asp?action=yes&cid=<%=rs("id")%>" onClick="return chkform1();">选修</a></td><%end if%>
        </tr>
<%
rs.movenext 
next
%>
        <tr align="center">
          <td colspan="9" height="35px"> 总共：<font color="#ff0000"><%=rs.PageCount%></font>页，<font color="#ff0000"><%=proCount%></font>条记录，当前页：<font color="#ff0000"><%=intCurPage%> </font><%if intCurPage<>1 then%><a href="?action=list">首页</a> | <a href="?ToPage=<%=intCurPage-1%>">上一页</a> | <% end if
if intCurPage<>rs.PageCount then %><a href="?ToPage=<%=intCurPage+1%>">下一页</a> | <a href="?ToPage=<%=rs.PageCount%>"> 最后页</a><% end if%></span></td>
        </tr>
</table>
<%
rs.close
set rs=nothing
end if
conn.close
set conn=nothing
%>
<table cellSpacing=0 cellPadding=0 align=center background="images/botbj.jpg" width="960px">
  <tr>
    <td height=60 align="center" id="Bottom"><a href="http://www.xiao5u.com/" target="_blank">校无忧</a> <%=Copyright%> <script src="http://s84.cnzz.com/stat.php?id=585346&web_id=585346" language="JavaScript"></script></td>
  </tr>
</table>
</body>
</html>