📄 adminarticle2_body.asp
字号:
<%sub adminarticle2_body()
dim totalart,Currentpage,totalpages,i,colname
openarticle
sql="select * from art order by art_id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<link href="style.css" type="text/css" rel="stylesheet">
<div align="center">
<center>
<table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="760"> <table border="0" cellpadding="0" cellspacing="0" width="760">
<!-- fwtable fwsrc="ibei.png" fwbase="cn.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="../images/spacer.gif" width="40" height="1" border="0" alt="" name="undefined_3"></td>
<td><img src="../images/spacer.gif" width="240" height="1" border="0" alt="" name="undefined_3"></td>
</tr>
<tr>
<td height="165" colspan="2" align="left" valign="top" background="images/topgg.jpg" ><div id="Layer1" style="position:absolute; left:138px; top:20px; width:527px; height:162px; z-index:1">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="630" height="165" align="">
<param name=movie value="images/2.swf">
<param name=quality value=high>
<param name=wmode value=transparent>
<param name=bgcolor value=#FFFFFF>
<embed src="images/2.swf" quality=high wmode=transparent bgcolor=#FFFFFF width="630" height="165" align=""
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
</div>
<script src="tong/mystat.asp"></script></td>
</tr>
</table></td>
</tr>
<tr>
<td> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="99%" valign="middle"><table width="100%" border=1 align=right cellpadding=1 cellspacing=1 bordercolor="#FFFFFF" bgcolor="#000000" class=table1 id="dh">
<tbody>
<tr align=center>
<td width=12% height="25"><a href="index.asp">首页</a></td>
<td width=12%><a href="web/index.asp" >网站建设</A></td>
<td width=12%><a href="news.asp">最新新闻</a></td>
<td width=12%><a href="article.asp">网络教程</a></td>
<td width=12%><a href="download.asp">资源下载</a></td>
<td width=12%><a href="ibook/index.asp">在线留言</a></td>
<td width=12%><a href="web/about.asp">关于E-style</a></td>
<td width=12%><a href="coolsites.asp">友情连接</a></td>
</tr>
</tbody>
</table></td>
</tr>
</table></td>
</tr>
</table>
</center>
</div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="3" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="3" height="8" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="205" bgcolor="#FFFFFF" valign="top">
<%call adminmenu()%>
</td>
<td width="1" background="images/dotlinev.gif"></td>
<td width="554" bgcolor="#FFFFFF" valign="top" align="center"> <table width="98%" border="0" cellspacing="1" cellpadding="0" bgcolor="#C4C4C4">
<tr align="center" bgcolor="#E8E8E8">
<td width="25%" height="24" background="images/bg3.gif" class="chinese"><a href="admin_article.asp">文章分类管理</a></td>
<td class="chinese" width="25%" background="images/bg3.gif"><a href="admin_article2.asp">文章管理</a></td>
<td class="chinese" width="25%" background="images/bg3.gif"><a href="admin_article.asp?action=newartcat">新增分类</a></td>
<td class="chinese" width="25%" background="images/bg3.gif"><a href="New_article.asp?action=newart">新增文章</a></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="6"></td>
</tr>
</table>
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolor="#C0C0C0" style="border-collapse: collapse">
<tr>
<td class="diaryhead" colspan="3">
<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0" background="images/bg3.gif">
<tr>
<td><font color="#333333"> 文章管理</font></td>
</tr>
</table> </td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF" class="chinese" width="10%">编号</td>
<td bgcolor="#FFFFFF" class="chinese" width="70%">文章标题</td>
<td bgcolor="#FFFFFF" class="chinese" width="20%">操作</td>
</tr>
<%if not rs.eof then
rs.movefirst
rs.pagesize=articleperpage
if trim(request("page"))<>"" then
currentpage=clng(request("page"))
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
totalart=rs.recordcount
if currentpage<>1 then
if(currentpage-1)*articleperpage<totalart then
rs.move(currentpage-1)*articleperpage
dim bookmark
bookmark=rs.bookmark
end if
end if
if (totalart mod articleperpage)=0 then
totalpages=totalart\articleperpage
else
totalpages=totalart\articleperpage+1
end if
i=0
do while not rs.eof and i<articleperpage%>
<tr>
<td bgcolor="#FFFFFF" class="chinese" align="center"><%=rs("art_id")%> </td>
<td bgcolor="#FFFFFF" class="chinese"><a href="showart.asp?art_id=<%=rs("art_id")%>&cat_id=<%=rs("cat_id")%>" target="_blank"><%=rs("art_title")%></a> </td>
<td bgcolor="#FFFFFF" class="chinese" align="center"><a href="new_article.asp?art_id=<%=rs("art_id")%>&cat_id=<%=rs("cat_id")%>&action=editart">edit</a>
<a href="new_article.asp?art_id=<%=rs("art_id")%>&cat_id=<%=rs("cat_id")%>&action=delart">del</a> <a href="showart.asp?art_id=<%=rs("art_id")%>&cat_id=<%=rs("cat_id")%>" target="_blank">view</a></td>
</tr>
<%
i=i+1
rs.movenext
loop
else
if rs.eof and rs.bof then
%>
<tr align="center">
<td bgcolor="#FFFFFF" class="chinese" colspan="3">当前没有文章!</td>
</tr>
<%end if
end if%>
</table>
<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
<form name="form1" method="post" action="admin_article2.asp">
<tr>
<td class="chinese" align="right"><%=currentpage%> /<%=totalpages%>页,<%=totalart%>条记录/<%=articleperpage%>篇每页.
<%
i=1
showye=totalpages
if showye>10 then
showye=10
end if
for i=1 to showye
if i=currentpage then
%>
<%=i%>
<%else%>
<a href="admin_article2.asp?page=<%=i%>"><%=i%></a>
<%end if
next
if totalpages>currentpage then
if request("page")="" then
page=1
else
page=request("page")+1
end if%>
<a href="admin_article2.asp?page=<%=page%>" title="下一页">>></a>
<%end if%>
<input type="text" name="page" class="textarea" size="4">
<input type="submit" name="Submit" value="Go" class="button">
</td>
</tr>
</form>
</table>
<br>
</td>
</tr>
<tr>
<td colspan="3" height="1" background="images/dotlineh.gif"></td>
</tr>
</table>
<%
rs.close
set rs=nothing
end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -