📄 web_educate_lesson.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="Web_Session.asp" -->
<%
Dim Rs,SQL
Dim PageNo,ThePage,Psize,PCount,RCount
Dim Action,Param,ParamName
Dim Ncid,Schid,Username,SchoolName,ContactPerson,Phone,Locus_Area,Locus_City,RegDate,Nc_Vip_Flag,Nc_Vip_Date,Nc_Vip_EndDate
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"140") <= 0 Then
Call CloseDB()
Response.write "对不起!您没有访问该页面的权限..."
Response.End()
End If
'//获取参数
CorpName = Request.QueryString("CorpName")
Schid = Replace_Text(Request("Schid"))
SchoolName = Replace_Text(Request("SchoolName"))
'//查找企业表所有记录
Set Rs = Server.Createobject("ADODB.recordset")
'//组织查询语句
If ParamName = "" Then
SQL = "Select Ncid,LessonName,BeginDate,Currcy,Valid,AddDate From [pH_Educate_Lesson] Where Schid='"&Schid&"'"
Else
SQL = "Select Ncid,LessonName,BeginDate,Currcy,Valid,AddDate From [pH_Educate_Lesson] Where Schid='"&Schid&"' And LessonName Like '%"&ParamName&"%' "
End if
SQL = SQL&" Order By AddDate Desc"
Rs.Open SQL,Conn,1,1
Rs.Pagesize = 10
Psize = Rs.PageSize
PCount = Rs.PageCount
RCount = Rs.RecordCount
PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
PageNo = 1
Elseif PageNo > PCount Then
PageNo = PCount
End if
Thepage = (PageNo-1)*Psize
If Not Rs.Eof Then Rs.AbsolutePage = PageNo
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>全部院校</title>
<link href="../CSS/css.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script language="JavaScript">
function SelectAllItem(item)
{
if( typeof(item.length) == "undefined" )
{
item.checked = !item.checked
}
else
{
for(i=0;i<item.length;i++)
{
item[i].checked=!item[i].checked
}
}
}
function theForm_Submit(id)
{
if (id==2004)
{
if(confirm('确认删除?'))
{
form.target='_self';
form.action="Web_Educate_LessonOption.asp?action=dellessons&Schid=<%= Schid %>&pageno=Web_Educate_Lesson.asp?Schoolname=<%= Schoolname %>";
form.submit();
}
}
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="25" bgcolor="fb7a03"> <font color="#FFFFFF">::<strong><%= SchoolName %>发布的课程</strong> | <a href="Web_Educate_LessonAdd.asp?Schid=<%= Schid %>"><font color="#FFFFFF">发布课程</font></a></font></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<Form action="" name="form" method="post">
<tr>
<td align="center">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td align="left"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="25" bgcolor="eff0eb">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
<td width="30%" align="right">
<%
If PageNo > 1 Then
Response.write "<a href=""?PageNo=1&ParamName="&ParamName&"&Schoolname="&Schoolname&"&Schid="&Schid&""">首页</a> "
Response.write "<a href=""?PageNo="&PageNo-1&"&ParamName="&ParamName&"&Schoolname="&Schoolname&"&Schid="&Schid&""">上页</a> "
Else
Response.write "首页 "
Response.write "上页 "
End if
%>
<select name="menu2" onChange="MM_jumpMenu('self',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="?PageNo=<%= i %>&ParamName=<%=ParamName%>&Schoolname=<%= Schoolname %>&Schid=<%= Schid %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
<%
If PageNo < PCount Then
Response.write "<a href=""?PageNo="&PageNo+1&"&ParamName="&ParamName&"&Schoolname="&Schoolname&"&Schid="&Schid&""">下页</a> "
Response.write "<a href=""?PageNo="&PCount&"&ParamName="&ParamName&"&Schoolname="&Schoolname&"&Schid="&Schid&""">尾页</a>"
Else
Response.write "下页 "
Response.write "尾页"
End if
%>
</td>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td align="left">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
<tr align="center" bgcolor="eff0eb">
<td width="6%" height="25"><INPUT onclick=SelectAllItem(this.form.param) type=checkbox value=all name=chk_all></td>
<td width="30%" height="25">课程名称</td>
<td width="18%">开课时间</td>
<td width="18%" height="25">费用</td>
<td width="18%" height="25">发布时间</td>
<td height="25">操 作</td>
</tr>
<%
For i = 1 to Psize
If Rs.Eof Then Exit For
Ncid = Rs("Ncid")
LessonName = Rs("LessonName")
BeginDate = Rs("BeginDate")
Currcy = Rs("Currcy")
AddDate = Formatdatetime(Rs("AddDate"),2)
%>
<tr align="center" bgcolor="eff0eb">
<td height="25">
<INPUT type=checkbox value=<%= Ncid %> name=param></td>
<td height="25" align="left"><%= LessonName %>
</td>
<td height="25" align="center" valign="baseline"><%= BeginDate %>
</td>
<td height="25" align="left"><%= Currcy %></td>
<td height="25" align="center"><%= AddDate %></td>
<td height="25"> <a href="Web_Educate_LessonEdit.asp?Schid=<%= Schid %>&Param=<%= Ncid %>">编辑</a>
</td>
</tr>
<%
Rs.Movenext
Next
Rs.Close
%>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td align="left"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="25" bgcolor="eff0eb">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="32%" height="25">快速搜索
<input name="ParamName" type="text" id="ParamName" size="16" maxlength="30">
<input type="submit" name="Submit" value="搜索">
</td>
<td width="68%" align="right">
<input type="button" name="delete" value="删除课程" onClick="javascript:theForm_Submit(2004)">
</td>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
</td>
</tr>
</Form>
</table>
</body>
</html>
<%
Set Rs = Nothing
Call CloseDB()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -