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

📄 left.asp

📁 系统主要包括:辅助教学、在线考试、在线答疑、实验系统等功能模块。辅助教学子系统提供课件的在线学习及下载;在线考试子系统能自动生成试卷
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/connect.asp" -->
<%
Dim rslx
Dim rslx_numRows
Set rslx = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM jiangzuolx"
rslx.CursorType = 0
rslx.CursorLocation = 2
rslx.LockType = 1
rslx.Open sql,MM_connect_STRING,1,1
rslx_numRows = 0
%>
<%
Dim rsjz__MMColParam
rsjz__MMColParam = "1"

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
table {
	text-decoration: none;
}
body {
	text-decoration: none;
}
-->
</style>
</head>
<script language="javascript">
function showdiv(div_id)
{
		if (document.all.item("div"+div_id).style.display == "block")
		{
			document.all.item("div"+div_id).style.display = "none";
		}
		else
		{
			document.all.item("div"+div_id).style.display = "block";
		}
}
</script>

<body bgcolor="#6699CC" text="#FFCC00" link="#FFCC00" leftmargin="0" topmargin="0">

<table width="138" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="158" height="23" valign="top"><img src="image/bg1.gif" width="456" height="23"></td>
  </tr>
</table>
<% 
dim dv
dv=1
while not rslx.eof 
%>
<table width="553" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="25" height="13" valign="top"> <font color="#FFFFFF" size="2"><img src="image/bgzd.gif" width="25" height="20" align="absmiddle"> 
      </td>
    <td width="520" valign="top"><font size="2"><a language="javascript" onClick="showdiv('<%= dv %>');"><strong><%=rslx("jiangzuolx") %></strong></a></font></td>
  </tr>
</table>
<%
Dim rsjz
Dim rsjz_numRows

Set rsjz = Server.CreateObject("ADODB.Recordset")
con= MM_connect_STRING
sql = "SELECT name,jiangzuoid FROM jiangzuo WHERE jiangzuolxid = " + Replace(rslx("jiangzuolxid"), "'", "''") + ""
rsjz.CursorType = 0
rsjz.CursorLocation = 2
rsjz.LockType = 1
rsjz.Open sql,con,1,1

rsjz_numRows = 0
%>
<div id=div<%=dv%> style="display:none">

<% 
on error resume next
c=rsjz.recordcount-1
for i=1 to c
%>
<table width="158" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="50" valign="middle"><img src="image/cro.gif"><img src="image/bgzd.gif"></td>
      <td width="108" align="left" valign="bottom"><font size=2><a href="serch.asp?class=<%=(rsjz.Fields.Item("jiangzuoid").Value)%>" target="mainFrame"><%= rsjz("name") %></a></font></td>
  </tr>
  
</table>
<% 
rsjz.movenext
next
if err then 
response.Write(error.source)
end if
%>
<table width="158" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="50" valign="middle"><img src="image/croend.gif" width="20" height="26"><img src="image/bgzd.gif"></td>
      <td width="108" align="left" valign="bottom"><font size=2><a href="serch.asp?class=<%=cstr(rsjz("jiangzuoid"))
	  %>" target="mainFrame"><%= rsjz("name") %></a>
	</font></td>
  </tr>
  
</table>
</div>

<% 
dv=dv+1
rslx.movenext
wend
%>
<table width="75%" border="0">
  <tr>
    <td width="7%"><img src="image/book.gif" width="25" height="20"></td>
    <td width="93%"><font color="#FFCC00" size="2"><strong><a href="showstbyt.asp" target="mainFrame">按时间查看</a></strong></font></td>
  </tr>
</table>

</body>
</html>
<%
rsjz.Close()
Set rsjz = Nothing
%>
<%
rslx.Close()
Set rslx = Nothing
%>

⌨️ 快捷键说明

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