📄 index.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc_menu.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>歌曲欣赏</title>
<SCRIPT language=JavaScript>
<!--
function expandingWindow(website) {
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 0; // distance to left edge of window
var topdist = 0; // distance to top edge of window
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website;
}
-->
</SCRIPT>
<SCRIPT language=JavaScript>
var msg = "祝大家每天都有好心情! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Scroll();", interval );
}
else
window.setTimeout("Scroll();", interval );
}
Scroll();
</SCRIPT>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1px; margin-bottom: 1px }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
</head>
<body>
<!--#include file="head.asp"-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<%
sql="select * from gequ order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,3
if rs.eof then
%>
<p align="center"><font color="#FF0000">暂时没有任何记录!</font></p>
<%
else
const maxperpage=100
dim currentpage
rs.pagesize=maxperpage
currentpage=request.querystring("pageid")
if currentpage="" then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
if currentpage > rs.pagecount then
currentpage=rs.pagecount
end if
end if
if not isnumeric(currentpage) then
currentpage=1
end if
dim totalput,n
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
i=0
do while i< maxperpage and not rs.eof
%>
[<A href="javascript:;" onclick="expandingWindow('<%=rs("address")%>')"><%=rs("name")%></A>]
<%if session("a")<>"" then%>
<p align="center"><a href="edit.asp?id=<%=rs("id")%>">编辑</a> <a href="del.asp?id=<%=rs("id")%>"><font color="red">删除</font></a><font color="red">
</font><a href="add.asp">添加</a> <a href="editpass.asp"><font color="red">修改密码</font></a><font color="red">
</font><a href="quit.asp">退出管理</a></p>
<%end if%>
<%
i=i+1
if i mod 6 = 0 then
response.write "<br>"
end if
rs.movenext
loop
end if
%>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="1" style="background-color: #336699">
</td>
<tr>
<td height="30"><p align="center">页数:<%=currentpage%>/<% =n%>
<%k=currentpage
if k<>1 then%>
<a href="index.asp?pageid=1">首页</a>
<a href="index.asp?pageid=<%=k-1%>">上一页</a>
<%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="index.asp?pageid=<%=k+1%>">下一页</a>
<a href="index.asp?pageid=<%=n%>">尾页</a>
<%else%>
下一页 尾页
<%end if%>
共收录<font color="red"><%=totalput%></font>首歌曲</p>
</td>
</tr>
</table>
</td>
<td width="25%" valign="top">
<div align="center">
<center>
<table border="0" width="97%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form action="search.asp" method="post" name="search" target="_blank" >
<p align="center">
<input maxLength="30" name="keyword" onfocus="this.value=''" size="10" value="输入关键字">
<input type="submit" width="20" height="20" value="搜索" style="font-size: 12px">
</form>
<p align="center">
<p align="center"><a href="login.asp">管理员登录</a>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -