免费获取
|
论文天下网
|
原创毕业论文
|
论文范文
|
论文下载
|
计算机论文
|
论文降重
|
毕业论文
|
外文翻译
|
免费论文
|
开题报告
|
心得体会
|
全站搜索
当前位置:
论文天下网
->
免费论文
->
计算机论文
网上商城的设计与实现(六)
<%if Page=1 then%>
<td><img src="Images/button.jpg"></td>
<%else%>
<td><a href="Main.asp?Page=1"><img src="Images/start.jpg" alt="第一家柜台"></a></td>
<%end if%>
</tr>
<tr>
<%if Page=1 then%>
<td><img src="Images/button.jpg"></td>
<%else%>
<td><a href="Main.asp?Page=<%=page-1%>"><img src="Images/pageup.jpg" alt="上一家柜台"></a></td>
<%end if%>
</tr>
<tr><td>第<font color="red">1-<%=4*Page%></font>家商柜</td></tr>
<tr><td><a href="../eshop/index.asp" target="_top"><img src="Images/jump.jpg" alt="一键进入虚拟商场" border="0"></a></td><tr>
</table>
<table border="1" cellspacing="0" cellpadding="1">
<tr><td><a href="LogOut.asp" target="_top"><img src="Images/exit.jpg" alt="退出购物广场" border="0"></a></td></tr>
</table>
<table border="1" cellspacing="0" cellpadding="1">
<tr><td>共<font color="red"><%=MainRs.PageCount*MainRs.PageCount%></font>家商柜</td></tr>
<tr>
<%if Page=MainRs.PageCount then%>
<td><img src="Images/button.jpg"></td>
<%else%>
<td><a href="Main.asp?Page=<%=Page+1%>"><img src="Images/pagedown.jpg" alt="下一家柜台"></a></td>
<%end if%>
</tr>
<tr>
<%if Page=MainRs.PageCount then%>
<td><img src="Images/button.jpg"></td>
<%else%>
<td><a href="Main.asp?Page=<%=MainRs.PageCount%>"><img src="Images/end.jpg" alt="最后一家柜台"></a></td>
<%
end if
end if
%>
</tr>
</table>
<!--右部切换店铺end-->
</td>
</tr>
</table>
<!--显示整个页面的表end-->
</body>
</html>
Cult3DShow.asp 用来显示商品的三维实体
<%
picture=ViewRs("Cult3D")
%>
<div align="center">
<table width="100%">
<tr>
<td align="left">
<!--代码的解释:param 的代码是用在Internet Explorer里的;embed 的代码是用在 Netscape里的。所以要在两个地方都写一次Cult3D文件的属性-->
<object classid="clsid:31B7EB4E-8B4B-11D1-A789-00A0CC6651A8"
width="100" height="100" codebase="
http://www.Cult3D.com/download/cult.cab
">
<param name="SRC" value="../eshop/Admin/Cult3D/<%=picture%>" >
<embed pluginspage="
http://www.Cult3D.com/download/
"
width="300" height="200" src="../eshop/Admin/Cult3D/<%=picture%>" type="application/x-Cult3D-object">
</embed>
</object>
</td>
</tr>
<tr><td> </td></tr>
<tr><td >如果您看不清旋转<br>物体请安装插件</td></tr>
<tr><td>下载:<a href="../download/Cult3D_IE_5.3.0.228.exe">Cult3D_IE_5.3.0.228</a><br>大小:1.5M</td></tr>
<table>
</div>
</body>
</html>
购买物品
…
<!--#include file="IsLogin.asp"-->
<!--#include file="../eshop/ConnDB.asp"-->
<%
GoodsId=CInt(request("Id"))
if request("Action")="buy" then
if request("count")="" then
count=1
else
count=request("count")
end if
if request("GoodsId")="" and request("GoodsName")="" then
response.write"<SCRIPT language=java script>alert('您没有选择要购买的商品!返回!');"
response.write"java script:history.go(-1)</SCRIPT>"
response.end
end if
set Rs=server.createobject("adodb.recordset")
sql="select * from Basket where GoodsId="&GoodsId&" and UserId='"&trim(session("UserId"))+"' and OrderCheck=0"
Rs.open sql, Conn, 1, 3
response.Write(sql)
if Rs.eof then
Rs.addnew
Rs("GoodsId")=GoodsId
Rs("UserId")=session("UserId")
Rs("BasketGoodsNum")=CInt(count)
Rs("OrderDateTime")=now()
Rs("GoodsName")=request("GoodsName")
Rs("Price")=request("Price")
else
Rs("BasketGoodsNum")=CInt(count)
end if
Rs.update
Rs.close
end if
response.redirect "Basket.asp?Id="&GoodsId
%>
…
Basket.asp购物车程序
…
<script language=java script>
<!--
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if(docSel.parentElement().tagName != "INPUT")return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
function checkspace(checkstr)
{
var str = '';
for(i = 0; i < checkstr.length; i++)
{
str = str + ' ';
}
return(str == checkstr);
}
//-->
</script>
<body>
<!--#include file="IsLogin.asp"-->
<!--#include file="ConnDB.asp"-->
…
<%
Sql="select * from Basket where UserId='"&session("UserId")&"' and OrderCheck=0"
set Rs=server.createobject("adodb.recordset")
Rs.open Sql, Conn, 1, 3
if Rs.eof then
%>
<tr>
<td height="25" colspan="5" align="center">你还没有选购任何商品</td>
</tr>
<%else
do while not Rs.eof%>
<tr>
<td width="44" height="25">
<div align="center"><a href="ClearBasket.asp?Id=<%=Rs("Id")%>">清除</a></div>
</td>
<td width="208" height="25"><%=Rs("GoodsName")%></td>
<td width="88" height="25">
<div align="center"><%=Rs("Price")%> 元</div>
</td>
<td width="75" height="25">
<div align="center"><%=Rs("BasketGoodsNum")%> </div>
</td>
<%a=0%>
<td width="95" height="25">
<div align="center"><%=Rs("BasketGoodsNum")*Rs("Price")%> 元</div>
</td>
</tr>
<%TotalCach=TotalCach+(Rs("BasketGoodsNum")*Rs("Price"))%>
<%Rs.movenext
loop
end if
Rs.close
set Rs=nothing%>
<tr>
<td height="25" colspan="4">
<div align="center">总计</div>
</td>
<td width="95" height="25">
<div align="center"><font color=red><%=TotalCach%></font> 元</div>
</td>
</tr>
</table>
<table width="500" border="1" cellspacing="0" cellpadding="0" align="center" background="Images/menu.jpg">
<tr>
<td width="33%" align="center"><a href="ClearBasket.asp"><img src="images/relbcar.gif" width="100" height="20" border="0"></a></td>
<td width="33%" align="center"><a href="Cash.asp"><img src="images/gobuy.gif" width="100" height="20" border="0"></a></td>
<td width="33%" align="center"><input type="button" name="Submit2" value="继续购物" onClick="location.href='Index.asp'"></td>
</tr>
</table>
<%
if trim(request("Id"))="" then
response.write"购物车已清空"
response.redirect "MyBasket.asp"
response.end
end if
Sql="select * from Goods where Id="&request("Id")
set Rs=server.createobject("adodb.recordset")
Rs.open Sql, Conn, 1, 3
%>
<br>
<table width="500" border="1" cellspacing="0" cellpadding="0" align="center" background="Images/menu.jpg">
<tr>
<td height="27" align="center"> 本次所选购的商品信息 </td>
</tr>
<tr>
<td height="16" align="center">
<form method="POST" Action="Buy.asp?Action=buy&Id=<%=Rs("Id")%>&GoodsName=<%=Rs("GoodsName")%>">
<table width="100%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr align="center">
<td width="155" height="25"> 商品名称 </td>
<td width="60" height="25"> 商品单价 </td>
<td width="60" height="25"> 订购数量 </td>
<td width="80" height="25"> 确认购买 </td>
</tr>
<tr align="center">
<td width="155" height="30">
<font color="#FF0000"><%=Rs("GoodsName")%></font>
</td>
<td width="60" height="30">
<%If Rs("CX") Then
ComPrice = Rs("CPrice")
VipPrice = Rs("CPrice")
else
ComPrice=Rs("ComPrice")
VipPrice=Rs("VipPrice")
End If%>
<%if session("Grade")="会员" then
Price=Comprice
response.write ComPrice
elseif session("Grade")="VIP" then
Price=VipPrice
response.write(VipPrice)
end if%>
</td>
<td><input type="hidden" name="Price" value="<%=Price%>"></td>
<td width="60" height="30">
<input type="text" name="count" size="5" value="1" onkeypress= "return regInput(this,/^[0-9]*$/, String.fromCharCode(event.keyCode))"onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"ondrop= "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))">
</td>
<td width="80" height="30">
<input name="B1" type="image" Id="B1" src="IMAGES/ok.gif" alt="确认购买" align="absMiddle" width="45" height="20" cache tppabs="">
</td>
</tr>
</table>
</form>
</td>
</tr>
<%Rs.close
set Rs=nothing%>
…
首页
上一页
3
4
5
6
下一页
尾页
6
/6/6
相关论文
上一篇
:
校园网上超市系统
下一篇
:
基于VB和Access的电信人事管理系..
推荐论文
本专业最新论文
Tags:
网上商城
设计
实现
【
返回顶部
】
相关栏目
自动化相关
计算机论文
工程管理论文
法律论文
医学论文
人力资源
电子专业
电气工程
英语论文
行政管理
电子商务
社科文学
教育论文
物流专业
金融专业
财务管理
会计专业
化学化工材料科学
电子通信
环境科学
经济类
机械模具类
报告,总结,申请书
其他专业论文