bmleft.asp

来自「系统主要包括:辅助教学、在线考试、在线答疑、实验系统等功能模块。辅助教学子系统提」· ASP 代码 · 共 135 行

ASP
135
字号
<%@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"> <img src="image/baoming.gif" width="25" height="20"><font color="#FFFFFF" size="2"> 
    </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/baoming.gif" width="25" height="20"></td>
      <td width="108" align="left" valign="bottom"><font size=2><a href="baoming.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/baoming.gif" width="25" height="20"></td>
      <td width="108" align="left" valign="bottom"><font size=2><a href="baoming.asp?class=<%=cstr(rsjz("jiangzuoid"))
	  %>" target="mainFrame"><%= rsjz("name") %></a>
	</font></td>
  </tr>
  
</table>
</div>

<% 
dv=dv+1
rslx.movenext
wend
%>
</body>
</html>
<%
rsjz.Close()
Set rsjz = Nothing
%>
<%
rslx.Close()
Set rslx = Nothing
%>

⌨️ 快捷键说明

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