|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
对于中小型web应用来说,php有很强的竞争力,linux+apache+mysql+php(lamp)的组合几乎可以胜任绝大多数网站的解决方案,对于大型应用来讲,对于系统架构要求更高,需要有成熟的框架支持,jsp的struts是个不错的框架,国内介绍它的资料也非常多,应用逐渐广泛起来。asp就不用说了,manage.asp
办理页同首页显现篇差未几,这里阿喔只先容怎样毗连删除链!
见尾页
<%
ifrequest.cookies("adminok")=""then
response.redirect"login.asp"
endif
%>
<!--#includefile="articleconn.asp"-->
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
<title>办理文件</title>
<metaname="GENERATOR"content="MicrosoftFrontPage4.0">
<linkrel="stylesheet"href="../CSS/style.css">
</head>
<%
constMaxPerPage=40
dimtotalPut
dimCurrentPage
dimTotalPages
dimi,j
ifnotisempty(request("page"))then
currentPage=cint(request("page"))
else
currentPage=1
endif
%>
<bodybgcolor="#FFFFFF">
<p></p>
<tablewidth="90%"border="1"cellspacing="0"cellpadding="0"align="center"bordercolorlight="#000000"bordercolordark="#FFFFFF">
<trbgcolor="#99CCFF">
<tdheight="10">
<divalign="center"><b>管理界面</b></div>
</td>
</tr>
<tr>
<tdheight="49"><%
dimsql
dimrs
sql="select*fromlearningorderbyarticleiddesc"
Setrs=Server.CreateObject("ADODB.Recordset")
rs.opensql,conn,1,1
ifrs.eofandrs.bofthen
response.write"<palign=center>还没有任何文章</p>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
ifcurrentpage<1then
currentpage=1
endif
if(currentpage-1)*MaxPerPage>totalputthen
if(totalPutmodMaxPerPage)=0then
currentpage=totalPutMaxPerPage
else
currentpage=totalPutMaxPerPage+1
endif
endif
ifcurrentPage=1then
showpages
showContent
showpages
else
if(currentPage-1)*MaxPerPage<totalPutthen
rs.move(currentPage-1)*MaxPerPage
dimbookmark
bookmark=rs.bookmark
showpages
showContent
showpages
else
currentPage=1
showpages
showContent
showpages
endif
endif
rs.close
endif
setrs=nothing
conn.close
setconn=nothing
subshowContent
dimi
i=0
%>
<tableborder="1"cellspacing="0"width="90%"bgcolor="#F0F8FF"bordercolorlight="#000000"
bordercolordark="#FFFFFF"align="center">
<tr>
<tdwidth="10%"align="center"><strong>ID号</strong></td>
<tdwidth="54%"align="center"><b>主题</b></td>
<tdwidth="15%"align="center"><b>时间</b></td>
<tdwidth="11%"align="center"><strong>删除</strong></td>
</tr>
<%dowhilenotrs.eof%>
<tr>
<tdwidth="10%"height="3">
<palign="center"><%=rs("articleid")%>
</td>
<tdwidth="54%"height="3">
<divalign="center"></div>
<divalign="left"><%=rs("title")%></div>
</td>
<tdwidth="15%"height="3">
<divalign="center"><%=rs("dateandtime")%></div>
</td>
<tdwidth="11%"align="center"height="3"><a
href="delete.asp?id=<%=rs("articleid")%>">删除</a></td>
</tr>
<%i=i+1
</p>ASP脚本是采用明文(plaintext)方式来编写的。 |
|