六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個免費提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺!

動感首頁更新完成之5 ------ 首頁管理篇

[摘要]manage.asp '管理頁同首頁顯示篇差不多,這里阿喔只介紹如何連接刪除鏈! '見尾頁 <% if request.cookies("adminok")="" then response.redirect "login.a...

manage.asp
'管理頁同首頁顯示篇差不多,這里阿喔只介紹如何連接刪除鏈!
'見尾頁
<%
if request.cookies("adminok")="" then
response.redirect "login.asp"
end if
%>
<!--#include file="articleconn.asp"-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理文件</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<link rel="stylesheet" href="../css/style.css">
</head>
<%
const MaxPerPage=40
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j

if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if

%>
<body bgcolor="#FFFFFF">
<p>&nbsp;</p>
<table width="90%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#99CCFF">
<td height="10">
<div align="center"><b>管 理 界 面</b></div>
</td>
</tr>
<tr>
<td height="49"><%
dim sql
dim rs
sql="select * from learning order by articleid desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'> 還 沒 有 任 何 文 章</p>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if

end if
if currentPage=1 then
showpages
showContent
showpages
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpages
showContent
showpages
else
currentPage=1
showpages
showContent
showpages
end if
end if
rs.close
end if

set rs=nothing
conn.close
set conn=nothing


sub showContent
dim i
i=0

%>
<table border="1" cellspacing="0" width="90%" bgcolor="#F0F8FF" bordercolorlight="#000000"
bordercolordark="#FFFFFF" align="center">
<tr>
<td width="10%" align="center"><strong>ID 號</strong></td>
<td width="54%" align="center"><b>主 題</b></td>
<td width="15%" align="center"> <b>時 間</b></td>
<td width="11%" align="center"><strong>刪 除</strong></td>
</tr>
<%do while not rs.eof%>
<tr>
<td width="10%" height="3">
<p align="center"><%=rs("articleid")%>
</td>
<td width="54%" height="3">
<div align="center"></div>
<div align="left"><%=rs("title")%></div>
</td>
<td width="15%" height="3">
<div align="center"><%=rs("dateandtime")%></div>
</td>
<td width="11%" align="center" height="3"><a
href="delete.asp?id=<%=rs("articleid")%>">刪 除</a></td>
</tr>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
<p><%
end sub

sub showpages()
dim n
if (totalPut mod MaxPerPage)=0 then
n= totalPut \ MaxPerPage
else
n= totalPut \ MaxPerPage + 1
end if
if n=1 then
response.write "<p align='left'><a href=addarticle.asp>創(chuàng)建文章</a>"
response.write "</p>"
exit sub
end if

dim k
response.write "<p align='left'>&gt;&gt; 文章分頁 "
for k=1 to n
if k=currentPage then
response.write "[<b>"+Cstr(k)+"</b>] "
else
response.write "[<b>"+"<a href='manage.asp?page="+cstr(k)+"'>"+Cstr(k)+"</a></b>] "
end if
next
response.write " <a href=addarticle.asp>創(chuàng)建文章</a>"
response.write "</p>"
end sub


%></p>
</td>
</tr>
</table>
<div align="center">
<center>
<p align="center">《<a target="_blank">ASP動感在線</a>》編輯制作</p>
</center>
</div>

</body>
</html>

大家注意的是:
<a href="delete.asp?id=<%=rs("articleid")%>">刪 除</a>
關(guān)系者要刪除內(nèi)容的位置,要不然KILL錯了就麻煩了!
(出處:熱點網(wǎng)絡(luò))


主站蜘蛛池模板: 亚洲最大综合网 | 日韩精品一区二三区中文 | 欧美一级艳片视频免费观看 | 青青色在线 | 中日韩美中文字幕 | 小黄鸭b站视频 | 在线免费h | 亚洲图片国产日韩欧美 | 日本高清色视频www 日本高清色本在线www游戏 | 色无极影院亚洲 | 中国二级毛片 | 日韩视频精品在线 | 亚洲第一区精品观看 | 亚欧成人乱码一区二区 | 四虎中文字幕 | 亚洲最新网站 | 天天在线干 | 伊人狠狠色丁香婷婷综合下载 | 天天操天天干天天拍 | 小视频在线观看免费播放 | 亚洲乱亚洲23p女 | 月婷婷色狠狠 | 亚洲精品在看在线观看 | 在线观看91精品国产剧情免费 | 日日摸夜夜摸狠狠摸日日碰夜夜做 | 全部免费毛片 | 香蕉狠狠干 | 亚洲高清日韩精品第一区 | 四虎黄色影院 | 日本二区视频 | 日本www在线观看 | 日本乱中文字幕系列在线观看 | 天堂av2014| 天使萌一区二区三区免费观看 | 日本道综合一本久久久88 | 日韩视频中文字幕专区 | 四虎永久免费地址在线观看 | 香蕉视频在线免费播放 | 天天干天天舔天天操 | 青草草在线视频 | 亚洲午夜一区 |