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

📄 stucur.asp

📁 学生信息化管理系统,目前最完美的学生信息化管理系统,界面美观,操作方面,个性化设置.一套软件管理多所学校.
💻 ASP
字号:
<% Set hdobj = Server.CreateObject("HD.comOpen")'请确保此行在最前
Connkaa = hdobj.WeekaaConn()
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache">
<title>红笛软件</title>
<style type="text/css">
<!--
.style3 {font-size: 12px}
.style4 {	color: #FFFFFF;
	font-size: 14px;
}
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 0px;
	background-image: url(../Image/bg.gif);
	background-color: #DEE7FF;
}
.STYLE10 {color: #FF0000}
a:link {
	text-decoration: none;
	color: #003399;
}
a:visited {
	text-decoration: none;
	color: #003366;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.STYLE9 {
	font-size: 36px;
	font-family: "黑体";
	font-weight: bold;
	color: #FFFF00;
}
.STYLE12 {font-family: "黑体"; font-size: 16px;}
.STYLE13 {
	font-weight: bold;}
-->
</style><script language="JavaScript" type="text/JavaScript">
function delpay()
{
   if(confirm("确定要删除此吗?"))
     return true;
   else
     return false;	 
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body onmouseover="self.status='红笛软件:服务网址[http://weekaa.com/red]';return true">
<p>

<%

dim stv,sqstv,La
tab="StuCur"
La=Request("La")
Set stv = Server.CreateObject("ADODB.RecordSet")
sqstv = "Select * From [sets] where TB='"&tab&"'"
stv.Open Sqstv,Connkaa,1,3
ListLong=stv("lis")
if session("StuCurListLm")<>"" then
ListLong=session("StuCurListLm")
end if
Na=mid(ListLong,1,1)
Nb=mid(ListLong,2,1)
Nc=mid(ListLong,3,1)
Nd=mid(ListLong,4,1)
Ne=mid(ListLong,5,1)
Nf=mid(ListLong,6,1)
Ng=mid(ListLong,7,1)
Nh=mid(ListLong,8,1)
Ni=mid(ListLong,9,1)
Nj=mid(ListLong,10,1)
Nk=mid(ListLong,11,1)
Nl=mid(ListLong,12,1)
%>
</p>
<table width="100%" height="25"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#0066CC">
  <tr valign="bottom" bordercolor="#6A8FDA" bgcolor="#FFFFFF">
    <td height="60" align="center" valign="bottom" bgcolor="#FFFFFF"><form action="?action=search" method="post" name="form1" id="form1">
      
        <%call hdobj.lists("StuCur","b","b","La",2)%>        
           
      
	      <input name="Submit2" type="submit" id="Submit" value="提交">
	    </span><a href="#" onClick="MM_openBrWindow('StuCurAdd.asp','红笛软件','scrollbars=no,top=150,left=200,width=600,height=800')">[增加课程]</a> <a href="#" onClick="MM_openBrWindow('StuCurLm.asp','红笛软件','scrollbars=no,top=150,left=100,width=750,height=125')">[栏目设置]</a> <a href="#" onClick="MM_openBrWindow('StuCurLmX.asp','红笛软件','scrollbars=no,top=150,left=150,width=900,height=125')">[栏目修改]</a>
    </form></td>
  </tr>
</table>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellspacing="0" >

  <tr>
    <td height="28" align="center" background="../Image/bg01.jpg" class="STYLE12">选 修 课 程 管 理</td>
  </tr>
  <tr>
    <td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#E8EBEE">
    <tr align="center" bgcolor="#F1F3F5">
        <td width="10%" height="25" bgcolor="#F1F3F5" class="style3"><%=stv(Na)%></td>
        <td width="10%" bgcolor="#F1F3F5" class="style3"><%=stv(Nb)%></td>
        <td width="13%" bgcolor="#F1F3F5" class="style3"><%=stv(Nc)%></td>
        <td width="10%" bgcolor="#F1F3F5" class="style3"><%=stv(Nd)%></td>
        <td width="8%" bgcolor="#D2E9FF" class="style3"><%=stv(Ne)%></td>
        <td width="8%" bgcolor="#D2E9FF" class="style3"><%=stv(Nf)%></td>
        <td width="8%" bgcolor="#D2E9FF" class="style3"><%=stv(Ng)%></td>
        <td width="10%" bgcolor="#D2E9FF" class="style3"><%=stv(Nh)%></td>
        <td width="8%" bgcolor="#F1F3F5" class="style3">详情大纲</td>
        <td width="5%" bgcolor="#F1F3F5" class="style3">成绩</td>
        <td width="5%" bgcolor="#F1F3F5" class="style3">修改</td>
        <td width="5%" bgcolor="#F1F3F5" class="style3">删除</td>
      </tr>
<%
Set rs = Server.CreateObject("ADODB.RecordSet")
if La<> "" then
sqls = "Select * From [StuCur] where b='"&La&"' and k='选修' order by b,c asc"
else
sqls = "Select * From [StuCur] where k='选修'order by b,c asc"
end if
rs.Open Sqls,Connkaa,1,3
'=========================================================
Dim i, text, checkpage, page, MaxPerPage, CurrentPage
MaxPerPage = Request.Form("pages")
If MaxPerPage = "" Then
MaxPerPage = 30
End If
If MaxPerPage < 1 Or MaxPerPage > 1000 Then
MaxPerPage = 30
End If
MaxPerPage = MaxPerPage * 1
text = "0123456789"
rs.PageSize = MaxPerPage
GoPage = Request.Form("pagee")
For i = 1 To Len(GoPage)
checkpage = InStr(1, text, Mid(GoPage, i, 1))
If checkpage = 0 Then
Exit For
End If
Next
If checkpage <> 0 Then
If Not IsEmpty(GoPage) Then
CurrentPage = CInt(GoPage)
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > rs.PageCount Then CurrentPage = rs.PageCount
Else
CurrentPage = 1
End If
If Not rs.EOF Then
rs.AbsolutePage = CurrentPage
End If
Else
CurrentPage = 1
End If
RsSum = CStr(rs.RecordCount) '记录总条数
pageOn = CStr(CurrentPage) '当前第几页
pageSum = CStr(rs.PageCount) '总共几页
NextPage = pageOn + 1
If NextPage > pageSum Then
NextPage = pageSum
End If
'==============================================================
i=0
do while not rs.eof
ob=rs(Nb)
oc=rs(Nc)
if ob=pb then
ob="."
od=1
else
pb=ob
end if
if oc=pc and od=1 then
oc="."
else
pc=oc
end if
od=0
%>  

	  
      <tr align="center" valign="bottom" bgcolor="#FFFFFF">
        <td height="25"><a href="StuCurper.asp?ID=<%=rs("ID")%>" onClick="MM_openBrWindow('StuCurper.asp?ID=<%=rs("ID")%>','红笛软件','scrollbars=yes,top=150,left=200,width=630,height=800')"><%=rs(Na)%></a></td>
        <td align="center"> <%=ob%></td>
        <td align="center"> <%=oc%></td>
        <td align="center"><%=rs(Nd)%></td>
        <td align="center"><%=rs(Ne)%></td>
        <td align="center"><%=rs(Nf)%></td>
        <td align="center"><%=rs(Ng)%></td>
        <td align="center"><%=rs(Nh)%></td>
        <td align="center"><a href="StuCurperr.asp?ID=<%=rs("ID")%>" target="_self">详情大纲</a></td>
        <td align="center"><a href="StuRusInn.asp?ID=<%=rs("ID")%>" target="_self">成绩</a></td>
        <td><a href="StuCurAdd.asp?ID=<%=rs("ID")%>" target="_self">修改</a></td>
        <td><a href="?deln=del&ID=<%=rs("id")%>" onClick="return delpay();">删除</a></td>
      </tr>
<%
i=i+1
if i >= MaxPerpage then exit do   
rs.movenext
loop	  


Response.Write "</table></td></tr><tr><form name='form2' method='post' action=''><td height='28' align='center' background='../Image/bg01.jpg'>"
Response.Write "<span class='STYLE13'><input type='hidden' name='La' value='" & La & "'>"
Response.Write "第" & pageOn & "/" & pageSum & "页 共" & RsSum & "条记录 每页"
Response.Write "<input name='pages' type='text' id='pages' value='" & MaxPerPage & "'"
Response.Write " size='2' style='background-color: #DEE7FF; border-color: #FFFFFF; border-style: solid; border-width: 0px 0px 1px 0px, font-family:Verdana,Arial; font-size: 10pt; color: #000000'>"
Response.Write "条记录 转到</span>"
Response.Write "<input name='pagee' type='text' id='pagee' value='" & NextPage & "' size='2' style='background-color: #DEE7FF; border-color: #FFFFFF;"
Response.Write " border-style: solid; border-width: 0px 0px 1px 0px, font-family:Verdana,Arial; font-size: 10pt; color: #000000'>"
Response.Write "<input name='Submit' type='submit' class='STYLE10' value='Go'></td></form></tr></table>"


If Request.QueryString("deln") = "del" Then
call hdobj.Deler("StuCur","I")
end if

%>

</body>
</html>

⌨️ 快捷键说明

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