⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<%qx="23"%>
<!--#include file="../login/0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<html>
<head> 
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
<body bgcolor="#FFFFFF" text="#000000"> 
<br>
<table width="99%" align="center" cellpadding="2" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
  <tr valign="middle" bgcolor="#CCCCCC"> 
    <td height="25" colspan="5" align="center" background="../../images/admin_bg_11.gif"><a href="add.asp"><font color="#FFFFFF"><b>添加记录</b></font></a><font color="#FFFFFF"><b>&nbsp; 
      |</b></font><font color="#1478eb">&nbsp; </font><a href="index.asp"><font color="#FFFFFF"><b>管理分类</b></font></a></td>
  </tr>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td width="50" height="25" align="center" bgcolor="#E8F1FF">ID</td>
    <td width="400" height="25" align="center" bgcolor="#E8F1FF">标 题</td>
    <td width="100" height="25" align="center" bgcolor="#E8F1FF">类别</td>
    <td width="50" align="center" bgcolor="#E8F1FF">修改</td>
    <td width="50" height="25" align="center" bgcolor="#E8F1FF">删 除</td>
  </tr>
<%
dim conn,rs
Set rs = Server.CreateObject("ADODB.Recordset")
sql="Select * From shop_news Order By id DESC"
rs.open sql,conn,3,1 
if rs.eof and rs.bof then
Response.Write("<tr><td height=25 colspan=5  bgcolor=#E8F1FF>暂无记录</td></tr></table>")
else
 rs.pagesize = 20
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
do while not rs.eof and i<=rs.pagesize
%>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td width="50" height="25" align="center" bgcolor="#E8F1FF"><%=rs("id")%></td>
    <td height="25" bgcolor="#E8F1FF"><a href=../../html/<%=rs("html")%> target="_blank"><%=rs("bt")%></a></td>
    <td width="100" align="center" bgcolor="#E8F1FF"><%=conn.execute("select lbmc from news_lb where lbid="&rs("lbid")&"")(0)%></td>
    <td width="50" align="center" bgcolor="#E8F1FF"><a href="xiugai.asp?id=<%=rs("id")%>">修改</a></td>
    <td width="50" height="25" align="center" bgcolor="#E8F1FF"><a href="del.asp?id=<%=rs("id")%>&page=<%=page%>">删除</a></td>
  </tr>
  <%
i=i+1
 rs.MoveNext                                              
 loop 
%>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <form name=form method=get action=?>
      <td height="25" colspan="5" align="center" bgcolor="#E8F1FF"> 
      <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" 分页:"

	if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write("  跳页:<input type=text name=page size=2 maxlength=3 > <input type=submit name=Submit value=Go >")
end if%> </td>
    </form>
</table>
</body>
</html>
<%end if
rs.close
set rs=nothing%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -