📄 web_video_all.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
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"160") <= 0 Then
Call CloseDB()
Response.write "对不起!您没有访问该页面的权限..."
Response.End()
End If
'//获取参数
ParamName = Replace_Text(Request("ParamName"))
'//查找企业表所有记录
Set Rs = Server.Createobject("ADODB.recordset")
'//组织查询语句
If ParamName = "" Then
SQL = "Select Ncid,Title,BeginTime,EndTime,CreateTime,Coms From [pH_Video_Type] "
Else
SQL = "Select Ncid,Title,BeginTime,EndTime,CreateTime,Coms From [pH_Video_Type] Where Title Like '%"&ParamName&"%'"
End if
SQL = SQL&" Order By Ncid 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=="del")
{
if(confirm('确认彻底删除选定的记录'))
{
form.target='_self';
form.action="Web_Video_Option.asp?param=del&pageno=Web_Video_All.asp?pageno=<%= PageNo %>";
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>视频会</strong></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&""">首页</a> "
Response.write "<a href=""?PageNo="&PageNo-1&"&ParamName="&ParamName&""">上页</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%>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
<%
If PageNo < PCount Then
Response.write "<a href=""?PageNo="&PageNo+1&"&ParamName="&ParamName&""">下页</a> "
Response.write "<a href=""?PageNo="&PCount&"&ParamName="&ParamName&""">尾页</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" cellspacing="1" cellpadding="2">
<tr align="center" bgcolor="eff0eb">
<td width="5%" height="27"><u>编号</u></td>
<td width="32%" height="27" bgcolor="eff0eb"><u>会主题</u></td>
<td width="17%" bgcolor="eff0eb"><u>开始时间</u></td>
<td width="16%" height="27"><u>结束时间</u></td>
<td width="8%" height="27"><u>企业数目</u></td>
<td width="9%" height="27"><u>发布日期</u></td>
<td width="10%"><u>操作</u></td>
<td width="3%"> <INPUT onclick=SelectAllItem(this.form.ncid) type=checkbox value=all name=chk_all></td>
</tr>
<%
For i = 1 to Psize
If Rs.Eof Then Exit For
Ncid = Rs("Ncid")
Title = Rs("Title")
BeginTime = Rs("BeginTime")
EndTime = Rs("EndTime")
CreateTime = FormatDateTime(Rs("CreateTime"),2)
Coms = Rs("Coms")
%>
<tr align="center" bgcolor="eff0eb">
<td height="25"><%= ThePage+i %></td>
<td height="25" align="left"><%= Title %></td>
<td height="25" align="center"><%= BeginTime %></td>
<td height="25"><%= EndTime %></td>
<td height="25"><a href="Web_Video_Company.asp?Title=<%= Title %>&Ncid=<%= Ncid %>"><u><%= Coms %></u></a></td>
<td height="25" align="center"><%= CreateTime %></td>
<td height="25" align="center">
<a href="Web_Video_CompanyAdd.asp?Title=<%= Title %>&Ncid=<%= Ncid %>"><u>添加企业</u></a>
</td>
<td height="25"><INPUT type=checkbox value=<%= ncid %> name="ncid"></td>
</tr>
<%
Rs.Movenext
Next
%>
</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="34%" height="25">快速搜索
<input name="ParamName" type="text" id="ParamName" size="16" maxlength="30">
<input type="submit" name="Submit" value="搜索">
</td>
<td width="66%" align="right">
<input type="button" name="delete" value="删 除" onClick="javascript:theForm_Submit('del')">
</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>
<%
Rs.Close
Set Rs = Nothing
Call CloseDB()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -