购物车的前台管理程序-只与服务器交互一次(一)
网络整理 - 08-18
file cart.html<html>
<head>
<title>购物车</title>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<STYLE type=text/css>
A {TEXT-DECORATION: none; TEXT-TRANSFORM: none}
BODY {FONT-FAMILY: '宋体'; FONT-SIZE: 9pt}
TD {FONT-FAMILY: '宋体'; FONT-SIZE: 9pt}
input { color: #10265b; background-color: eafac2}
select { color: #000000; background-color: eafac2}
A:link {COLOR: #000000; TEXT-DECORATION: underline}
A:visited {COLOR: #000000; TEXT-DECORATION: underline}
A:active {COLOR: #ff0000; TEXT-DECORATION: underline}
A:hover {COLOR: #663333; TEXT-DECORATION: none}
.font { font-size: 9pt; text-decoration: none}
</style>
</head>
<body bgcolor='#FFFFFF' topmargin='3' marginwidth='760'>
<br><br><form name=frmOrder method=post>
<table width=500 align=center cellpadding=4 cellspacing=1 bgcolor='#FACB86'>
<tr bgcolor='#B52E18'>
<td width=200>
<font color=#DCFFB9>票名</font>
</td>
<td width=60>
<font color=#DCFFB9>市场价</font>
</td>
<td width=60>
<font color=#DCFFB9>会员价</font>
</td>
<td width=60>
<font color=#DCFFB9>数量</font>
</td>
<td width=80>
<font color=#DCFFB9>会员价小计</font>
</td>
<td width=40>
<font color=#DCFFB9>取消</font>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='海鲜大会(普通)'>
</td>
<td align=right>
<input type=text size=5 readonly value='10.50'>
</td>
<td align=right>
8.4
</td>
<td align=right>
<input type=text size=4 value= '1' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='8.4'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount0_0,frmOrder.txtSum0_0)>
<input type=hidden value='80'>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='海鲜大会(会员)'>
</td>
<td align=right>
<input type=text size=5 readonly value='20.70'>
</td>
<td align=right>
18.63
</td>
<td align=right>
<input type=text size=4 value= '2' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='37.26'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount0_1,frmOrder.txtSum0_1)>
<input type=hidden value='90'>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='海鲜大会(贵宾)'>
</td>
<td align=right>
<input type=text size=5 readonly value='50.54'>
</td>
<td align=right>
50.54
</td>
<td align=right>
<input type=text size=4 value= '1' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='50.54'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount0_2,frmOrder.txtSum0_2)>
<input type=hidden value='100'>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='北京汽车展(普通)'>
</td>
<td align=right>
<input type=text size=5 readonly value='10'>
</td>
<td align=right>
8
</td>
<td align=right>
<input type=text size=4 value= '12' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='96'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount1_0,frmOrder.txtSum1_0)>
<input type=hidden value='80'>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='北京汽车展(会员)'>
</td>
<td align=right>
<input type=text size=5 readonly value='20'>
</td>
<td align=right>
18
</td>
<td align=right>
<input type=text size=4 value= '12' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='216'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount1_1,frmOrder.txtSum1_1)>
<input type=hidden value='90'>
</td>
</tr>
<tr bgcolor='#FBF4C6'>
<td>
<input type=text size=20 readonly value='北京汽车展(贵宾)'>
</td>
<td align=right>
<input type=text size=5 readonly value='50'>
</td>
<td align=right>
50
</td>
<td align=right>
<input type=text size=4 value= '13' disabled>
</td>
<td align=right>
<input type=text size=5 readonly value='650'>
</td>
<td>
<input type=button name=btnCancel value='取消'onclick=On_Cancel(txtAmount1_2,frmOrder.txtSum1_2)>
<input type=hidden value='100'>
</td>
</tr>
<tr bgcolor='#B52E18'>
<td>
<font color=#DCFFB9>合计</font>
</td>
<td colspan=5 align=right>
<input type=text name=txtTotal size=10 readonly value=1058.2>
</td>
</tr>
</table>
<br><table width=500 border=0 align=center>
<tr>
<td align=center>
<input type=button name=btnUpdate value='修改数量'onclick=On_Update()>
</td>
<td align=center>
<input type=button name=btnDel value='全部删除'onclick=On_Del()>
</td>
<td align=center>
<input type=button name=btnContinue value='继续购物'onclick=On_Continue()>
</td>
<td align=center>
<input type=button name=btnBuy value='去收银台'onclick=On_Buy()>
</td>
</tr>
</table>
</form>
<script language src='cart.js'></script>
原作者:不详
来 源:不详