标题:[求助]50元现金求帮助 帮忙给后台文章加入 点选删除 和全部删除功能 并写一 ...
取消只看楼主
终端传媒
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-10-18
 问题点数:0 回复次数:4 
[求助]50元现金求帮助 帮忙给后台文章加入 点选删除 和全部删除功能 并写一个产品前

[求助]50元现金求帮助 帮忙给后台文章加入 点选删除 和全部删除功能 并写一个产品前台列表 具体联系QQ531338054 支付宝交易
这个是后台产品列表页 和 前台的产品搜索结果列表页
后台产品列表页

<!--

-->
<!--#include file="wbk_conn.asp"-->
<!--#include file="wbk_function.asp"-->
<%
call admin()
page=Request.QueryString("page")
if page="" or page<0 then page=1

key=request.QueryString("key")
if key<>"" then
sql="select * from chanpin where xinghao like '"&key&"%'"
else
sql="select * from chanpin"
end if
set rscp=server.createobject("ADOdb.recordset")
rscp.open sql,myconn,1,1

rsrow=20
rscp.pagesize = rsrow
if not rscp.eof then rscp.absolutepage=page

%>
<HTML>
<link href="image/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
<link href="images/css.css" rel="stylesheet" type="text/css">
<HEAD><TITLE>后台管理-添加二级分类</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=index,follow name=Robots>
<META content=电子 name=keywords>
<META content=电子,旺兴 name=Description>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
</HEAD>
<BODY>
<table width="766" border="0" align="center" cellpadding="0" cellspacing="0" class="table_box">
<tr>
<td>
<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width="100%" bgColor=#000000 height=1></TD>
</TR>
<TR>
<TD width="100%" background=images/2dot.gif
height=4><img src="images/title1.jpg" width="850" height="170"></TD>
</TR>
</TBODY>
</TABLE>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="177" height="21">&nbsp;</td>
<td width="623" valign="top"><div align="right"><a href="data.asp">添加数据</a> |<a href="wbk_action.asp?action=loginout"></a> <a href="wbk_addfenlei.asp">修改数据</a> | <a href="wbk_pass.asp">修改密码</a> |<a href="wbk_piliang.asp"> 数据上传</a> | <a href="wbk_dingdan.asp">查阅订单</a> |<a href="wbk_action.asp?action=loginout"> 安全退出&nbsp;&nbsp;&nbsp;</a> </div></td>
</tr>
</table>
<table width="100%" height="187" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" height="168" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table02">
<form action="wbk_addfenlei.asp" method="get">
<tr class="tr3">
<td colspan="2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查询数据&nbsp;&nbsp;&nbsp;
<input type="text" name="key" size="30"></td>
<td><input type="submit" value="查询"></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr></form>
<tr class="tr3">
<td><div align="center">型号 </div></td>
<td><div align="center">厂家</div></td>
<td><div align="center">批号</div></td>
<td><div align="center">封装 </div></td>
<td><div align="center">参考价</div></td>
<td width="13%"><div align="center">数量 </div></td>
<td width="10%"><div align="center">修改</div></td>
<td width="7%"><div align="center">删除</div></td>
<%
i=1
do while not rscp.eof and rsrow>0
rsrow=rsrow-1
i=-i
if i>0 then
myclass="#ffffff"
else
myclass="#F2F2F2"
end if%>
<form action="wbk_action.asp?action=editcp&id=<%=rscp("id")%>" method="post">
<tr bgcolor=<%=myclass%> onmouseover="mOvr(this,'#F0F9FF');"
onmouseout="mOut(this,'<%=myclass%>');">
<td width="15%"> <input name="xinghao<%=rscp("id")%>" type="text" id="xinghao<%=rscp("id")%>" value="<%=rscp("xinghao")%>" size="15"></td>
<td width="16%"> <input name="changjia<%=rscp("id")%>" type="text" id="pinpai<%=rscp("id")%>" value="<%=rscp("changjia")%>" size="15"></td>
<td width="8%"> <input name="pihao<%=rscp("id")%>" type="text" id="nianfen<%=rscp("id")%>" value="<%=rscp("pihao")%>" size="5"></td>
<td width="10%"> <input name="fengzhuang<%=rscp("id")%>" type="text" id="fengzhuang<%=rscp("id")%>" value="<%=rscp("fengzhuang")%>" size="10"></td>
<td width="9%"> <input name="cankaojia<%=rscp("id")%>" type="text" id="danwei<%=rscp("id")%>" value="<%=rscp("cankaojia")%>" size="10"></td>
<td> <input name="shuliang<%=rscp("id")%>" type="text" id="shuliang<%=rscp("id")%>" value="<%=rscp("shuliang")%>" size="10"> </td>
<td><div align="center"><span class="style1">
<input type="submit" name="Submit" value="修改">
</span></div></td>
<td><div align="center"><span class="style1"><a href="wbk_action.asp?action=delchanpin&id=<%=rscp("id")%>" onClick="{if(confirm('确定删除吗?')){return true;}return false;}">删除</a></span></div></td>
</tr>
</form>
<% rscp.movenext
loop %>

</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="tr01"><%
url="wbk_addfenlei.asp?bid="&bid&"&"
response.Write(ExportPageInfo(rscp,page,url))%><form action="wbk_action.asp?action=page&bid=<%=bid%>" method="post">跳转到:
<input name="page" type="text" id="page" value="<%=request.QueryString("page")%>" size="5">

<input type="submit" name="Submit2" value="跳转">
</form>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
<%rscp.close
set rscp=nothing

%>
</BODY></HTML>
<SCRIPT language=JavaScript1.2>
function checkForm()
{
bid=form2.bid.value
location.href="wbk_addfenlei.asp?bid="+bid
//form2.submit();
}
</script>

<% Function ExportPageInfo(ByRef rs,curpage,LinkFile)
Dim retval, j, pageNumber, BasePage
retval = "<strong>" & curpage & "/" & rs.pagecount & "</strong>&nbsp;"
retval = retval & "共" & rs.recordcount & "条/" & rs.pagecount &"页"

If curpage = 1 Then
retval = retval & "&nbsp;&nbsp;&nbsp;&nbsp;<-第一页&nbsp;&nbsp;&nbsp;&nbsp;<<上一页&nbsp;&nbsp;&nbsp;&nbsp;"
Else
retval = retval & "<a href=" & LinkFile & "page=1><-第一页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=" & LinkFile & "page=" & (int(curpage) - 1) & "><<上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;"
End If
If int(curpage) = rs.pagecount Then
retval = retval & "下一页>>&nbsp;&nbsp;&nbsp;&nbsp;最后一页->&nbsp;&nbsp;&nbsp;&nbsp;"
Else
retval = retval & "<a href=" & LinkFile & "page=" & cstr(curpage + 1) & ">下一页>></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=" & LinkFile & "page=" & cstr(rs.pagecount) & ">最后一页-></a>"
End if

ExportPageInfo = retval

End Function %>


[此贴子已经被作者于2007-10-22 12:09:36编辑过]

搜索更多相关主题的帖子: 点选 后台 现金 删除 
2007-10-18 12:03
终端传媒
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-10-18
得分:0 

前台的产品搜索结果列表页

<!--#include file="wbk_conn.asp"-->
<%
key=Trim(request.QueryString("key"))
page=Request.QueryString("page")
if page="" or page<0 then page=1

if len(key)>=3 then
sql="select * from chanpin where xinghao like '"&key&"%'"
else
sql="select * from chanpin where id=0"
end if
set rscp=server.createobject("ADOdb.recordset")
rscp.open sql,myconn,1

rsrow=20
rscp.pagesize = rsrow
if not rscp.eof then rscp.absolutepage=page
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公司</title>
<script language="javascript" src="head.js"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {color: #FFFFFF}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="images/index.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 12px}
-->
</style>
</head>

<body onLoad="MM_preloadImages('button/sy1.jpg','button/cpzs1.jpg','button/cpss1.jpg','button/zxdg1.jpg','button/lx1.jpg','button/sy1.gif','button/company1.gif','button/cpzs.gif','button/cx1.gif','button/dd1.gif','button/lx1.gif')">
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="70"><table width="100%" height="58" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="72%">&nbsp;&nbsp;<img src="images/logo1.jpg" width="299" height="59"></td>
<td width="28%" valign="bottom" class="text1">·设为首页&nbsp;·添加收藏</td>
</tr>
</table></td>
</tr>
</table>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="180" align="center" background="images/top.jpg"><table width="100%" height="180" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="59%" height="130" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="496" height="129">
<param name="movie" value="swf/xiantiao-1.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="swf/xiantiao-1.swf" width="496" height="129" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
</object></td>
<td width="41%" rowspan="2" align="center">&nbsp;</td>
</tr>
<tr>
<td height="40"><table width="95%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="29%" align="center" class="text1"><SCRIPT>mydate();</SCRIPT></td>
<form name="form1" action="kccs.asp" method="get">
<td width="71%" align="center"><input type="text" name="key" value="<%=key%>" size="25">
&nbsp;
<input name="submit2" type="submit" value="搜索"></td>
</form>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="185" height="300" align="center" valign="top" background="images/back.gif"><br>
<br> <a href="index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','button/sy1.gif',1)"><img src="button/sy.gif" name="Image12" width="150" height="25" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','button/sy1.jpg',1)"><br>
</a><a href="index.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','button/company1.gif',1)"><img src="button/company.gif" name="Image13" width="150" height="25" border="0"></a><br>
<a href="cpzs.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','button/cpzs.gif',1)"><img src="button/cpzs1.gif" name="Image9" width="150" height="25" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','button/cpzs1.jpg',1)"><br>
</a><a href="kccs.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','button/cx1.gif',1)"><img src="button/cx.gif" name="Image10" width="150" height="25" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','button/cpss1.jpg',1)"><br>
</a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','button/cpzs1.jpg',1)"> </a><a href="zxdd.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','button/dd1.gif',1)"><img src="button/dd.gif" name="Image11" width="150" height="25" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','button/zxdg1.jpg',1)"><br>
</a><a href="lxwm.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','button/lx1.gif',1)"><img src="button/lx.gif" name="Image14" width="150" height="25" border="0"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','button/lx1.jpg',1)"></a><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','button/lx1.jpg',1)"><br>
</a></td>
<td width="665" valign="top"><br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="button/cs.jpg" width="614" height="15"></td>
</tr>
<tr>
<td height="180" valign="top" class="text1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="form2" method="get" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="23%" class="text1">共搜索到<span class="redfont"><%= rscp.recordcount %></span>條記錄:</td>
<td width="17%" class="text1"><div align="right">請輸入産品型號: </div></td>
<td width="44%"><input name="key" type="text" class="Input" id="key" value="<%=key%>" size="40"></td>
<td width="11%"><span class="td01">
<input name="submit" type="submit" class="Input" value="提 交" >
</span></td>
<td width="5%">&nbsp;</td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="text1">
<tr align="center" class="tr2">
<td><div align="center"> 型號</div></td>
<td><div align="center"> 廠家</div></td>
<td><div align="center"> 批號</div></td>
<td><div align="center"> 封裝</div></td>
<td><div align="center"> 數量</div></td>
<td><div align="center"> 單價</div></td>
<td><div align="center"> 参考价</div></td>
<td width="13%"> 備注</td>
<%
i=1
do while not rscp.eof and rsrow>0
rsrow=rsrow-1
i=-i
if i>0 then
myclass="#ffffff"
else
myclass="#F2F2F2"
end if%>
<tr align="center" bgcolor=<%=myclass%> onmouseover="mOvr(this,'#F0F9FF');"
onmouseout="mOut(this,'<%=myclass%>');">
<td width="21%"><span class="style2">&nbsp;&nbsp;<%=rscp("xinghao")%></span> </td>
<td width="14%"><span class="style2"><%=rscp("changjia")%></span> </td>
<td width="10%"><span class="style2"><%=rscp("pihao")%></span> </td>
<td width="10%"><span class="style2"><%=rscp("fengzhuang")%></span> </td>
<td width="9%"><span class="style2"><%=rscp("shuliang")%></span> </td>
<td width="6%"><span class="style2"><%=rscp("danjia")%></span> </td>
<td width="6%"><span class="style2"><%=rscp("cankaojia")%></span> </td>
<td><a title="">歡迎垂詢</a></td>
</tr>
<% rscp.movenext
loop %>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="text1"><%
url="kccs.asp?bid="&bid&"&"
response.Write(ExportPageInfo(rscp,page,url))%></td>
</tr>
</table>
<p> <p align="left">&nbsp;</p>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
<td height="25" align="center"><span class="style1 style2">公司</span></td>
</tr>
</table>
</body>
</html>
<SCRIPT language=javascript>
function mOvr(src,clrOver){
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';//变为手型
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';//
src.bgColor = clrIn;
}
}
</SCRIPT>
<% Function ExportPageInfo(ByRef rs,curpage,LinkFile)
Dim retval, j, pageNumber, BasePage
retval = "&nbsp;&nbsp;<strong>" & curpage & "/" & rs.pagecount & "</strong>&nbsp;"
retval = retval & "共" & rs.recordcount & "條/" & rs.pagecount &"頁"

If curpage = 1 Then
retval = retval & "&nbsp;&nbsp;&nbsp;&nbsp;<-第一頁&nbsp;&nbsp;&nbsp;&nbsp;<<上一頁&nbsp;&nbsp;&nbsp;&nbsp;"
Else
retval = retval & "<a href=" & LinkFile & "page=1><-第一頁</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=" & LinkFile & "page=" & (int(curpage) - 1) & "><<上一頁</a>&nbsp;&nbsp;&nbsp;&nbsp;"
End If
If int(curpage) = rs.pagecount Then
retval = retval & "下一頁>>&nbsp;&nbsp;&nbsp;&nbsp;最後一頁->&nbsp;&nbsp;&nbsp;&nbsp;"
Else
retval = retval & "<a href=" & LinkFile & "page=" & cstr(curpage + 1) & ">下一頁>></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=" & LinkFile & "page=" & cstr(rs.pagecount) & ">最後一頁-></a>"
End if

ExportPageInfo = retval

End Function %>
<%
rscp.close
set rscp=nothing
%>


[此贴子已经被作者于2007-10-22 12:04:13编辑过]

2007-10-18 13:32
终端传媒
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-10-18
得分:0 
2007-10-18 16:49
终端传媒
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-10-18
得分:0 
2007-10-22 12:04
终端传媒
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-10-18
得分:0 
怎么没人帮忙啊
2007-10-22 12:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-178696-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.185411 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved