📄 sharemore.asp
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<!--#INCLUDE FILE="checksql.asp" -->
<html>
<head>
<title>共享资源</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<script language="javascript" src="apply.js"></script>
<script>
function OpenShare(url) {
var win
win=window.open(url,"",'location=no,directories=no,status=no,toolbar=no,menubar=no,height=400,width=600,left=250,top=200');
return false;
}
</script>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<%
set rs=server.createobject("adodb.recordset")
title=checksql(request("title"))
sql="select * from share where isshare=1 and title like '%"&title&"%'"&" order by id desc"
rs.Open sql,conn,1,1
mypage=10
rs.pagesize=CINT(mypage)
PageNo=CLng(REQUEST("PageNo"))
TSum=1
if PageNo="" or PageNo=0 then
PageNo=1
else
PageNo=PageNo+1
PageNo=PageNo-1
end if
if not rs.eof then
TSum=INT(rs.RECORDCOUNT/Mypage*-1)*-1
rs.absolutepage=PageNo
RowCount=rs.PageSize
end if
%>
<form name="form" method="POST" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="50">
<tr>
<td align="center"><img src="images/sharemore.gif"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="26" align="center">
<tr>
<td background="images/phone10.gif" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="26">
<tr>
<td width="10">
</td>
<td width="28"><img src="images/phone15.gif" width="28" height="26">
</td>
<td width="70"> <a href="shareone.asp" class="aapply">个人资源</a>
</td>
<td width="28"><img src="images/phone13.gif" width="28" height="26">
</td>
<td width="70"><a href="sharemore.asp" class="aapply">共享资源</a></td>
<td width="28"><img src="images/phone13.gif" width="28" height="26">
</td>
<td width="70"> <a href="dailyinf.asp" class="aapply">日常信息</a>
</td>
<td align="right">
<%
if (PageNo*mypage-mypage)>0 then
PrwePage=PageNo-1
response.write "<a href='sharemore.asp?title="&title&"&PageNo="&PrwePage&"' class=aapply>上一页</a> "
else
response.write "上一页 "
end if
if (PageNO*mypage)<rs.recordcount then
NextPage=PageNo+1
response.write" <a href='sharemore.asp?title="&title&"&PageNo="&NextPage&"' class=aapply>下一页</a>"
else
response.write" 下一页"
end if
%>
页次:<font class="picknum"><%=PageNo%></font>/<%=tsum%>页</td>
<td align="center" width="40"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="25">
<tr bgcolor="CFDFFF">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="24" align="center">
<tr align="center" height="24">
<td width="10%">编 号:</td>
<td width="45%">标 题:</td>
<td width="25%">时 间:</td>
<td width="10%">类 型:</td>
<td width="10%">点 击:</td>
</tr>
<tr bgcolor="BDCFFF" height="1">
<td colspan="4" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%if rs.eof then%>
<tr height="1">
<td colspan="5" height="1" bgcolor="ffffff"></td>
</tr>
<tr align="center" bgcolor="F5FAFD">
<td colspan="5" height="25" class="f6wait">您没有添加资源或没有找到相应的资源!</td>
</tr>
<tr height="1">
<td colspan="5" height="1" bgcolor="BDCFFF"></td>
</tr>
<%else
for i=1 to mypage
if rs.eof then exit for
%>
<tr height="1">
<td colspan="5" height="1" bgcolor="ffffff"></td>
</tr>
<tr align="center" bgcolor="F5FAFD">
<td width="10%" height="25">
<a href="readsharemore.asp?id=<%=rs("id")%>" class="flow" target="_blank"><%=rs("id")%></a></td>
<td width="45%" height="25">
<a href="readsharemore.asp?id=<%=rs("id")%>" class="flow" target="_blank"><%=rs("title")%></a></td>
<td width="25%" height="25" class="applygz">
<a href="readsharemore.asp?id=<%=rs("id")%>" class="flow" target="_blank"><%=rs("savedate")%></a></td>
<td width="10%" height="25" class="applygz">
<%
stype=rs("type")
sname="未知"
select case stype
case "mp3"
sname="音乐"
sext=".mp3"
case "dv"
sname="视频"
sext=".wmv"
case "pic"
sname="照片"
sext=".jpg"
case "gz"
sname="表格"
sext=".xls"
case "yl"
sname="语录"
end select
response.write sname
%>
</td>
<td width="10%" height="25" class="applygz">
<%
readnum=0
if trim(rs("readnum"))<>"" then readnum=rs("readnum")
if CLng(readnum)>10 then
response.write "<font color=red>"&readnum&"</font>"
else
response.write readnum
end if
%>
</td>
</tr>
<tr height="1">
<td colspan="5" height="1" bgcolor="BDCFFF"></td>
</tr>
<%rs.movenext
next
end if
%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="25" align="center">
<tr>
<td background="images/phone7.gif" align="right" width="52%"> 共有<font class="picknum"><%=rs.recordcount %></font>个资源 查
询:
<input type="text" name="title" size="12" maxlength="12" value="<%=request("title")%>">
</td>
<td background="images/phone7.gif" align="left" width="48%" valign="bottom">
<input type="image" name="find22" " src="images/findgif.gif" width="71" height="19" alt="查找联系人">
<input type="image" name="find2" onClick="history.go(-1);return false;" src="images/fanhuigif.gif" width="71" height="19" alt="返回">
</td>
</tr>
</table>
</form>
<!--#INCLUDE FILE="close.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -