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 name=txttickettype0_0 size=20 style=border-style:none readonly value=海鲜大会(普通)>
</td>
<td align=right>
<input type=text name=txtticketprice0_0 size=5 style=border-style:none readonly value=10.50>
</td>
<td align=right>
8.4
</td>
<td align=right>
<input type=text size=4 name=txtamount0_0 value= 1 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum0_0 size=5 style=border-style:none readonly value=8.4>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount0_0,frmorder.txtsum0_0) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount0_0 value=80>
</td>
</tr>
<tr bgcolor=#fbf4c6>
<td>
<input type=text name=txttickettype0_1 size=20 style=border-style:none readonly value=海鲜大会(会员)>
</td>
<td align=right>
<input type=text name=txtticketprice0_1 size=5 style=border-style:none readonly value=20.70>
</td>
<td align=right>
18.63
</td>
<td align=right>
<input type=text size=4 name=txtamount0_1 value= 2 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum0_1 size=5 style=border-style:none readonly value=37.26>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount0_1,frmorder.txtsum0_1) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount0_1 value=90>
</td>
</tr>
<tr bgcolor=#fbf4c6>
<td>
<input type=text name=txttickettype0_2 size=20 style=border-style:none readonly value=海鲜大会(贵宾)>
</td>
<td align=right>
<input type=text name=txtticketprice0_2 size=5 style=border-style:none readonly value=50.54>
</td>
<td align=right>
50.54
</td>
<td align=right>
<input type=text size=4 name=txtamount0_2 value= 1 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum0_2 size=5 style=border-style:none readonly value=50.54>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount0_2,frmorder.txtsum0_2) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount0_2 value=100>
</td>
</tr>
<tr bgcolor=#fbf4c6>
<td>
<input type=text name=txttickettype1_0 size=20 style=border-style:none readonly value=北京汽车展(普通)>
</td>
<td align=right>
<input type=text name=txtticketprice1_0 size=5 style=border-style:none readonly value=10>
</td>
<td align=right>
8
</td>
<td align=right>
<input type=text size=4 name=txtamount1_0 value= 12 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum1_0 size=5 style=border-style:none readonly value=96>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount1_0,frmorder.txtsum1_0) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount1_0 value=80>
</td>
</tr>
<tr bgcolor=#fbf4c6>
<td>
<input type=text name=txttickettype1_1 size=20 style=border-style:none readonly value=北京汽车展(会员)>
</td>
<td align=right>
<input type=text name=txtticketprice1_1 size=5 style=border-style:none readonly value=20>
</td>
<td align=right>
18
</td>
<td align=right>
<input type=text size=4 name=txtamount1_1 value= 12 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum1_1 size=5 style=border-style:none readonly value=216>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount1_1,frmorder.txtsum1_1) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount1_1 value=90>
</td>
</tr>
<tr bgcolor=#fbf4c6>
<td>
<input type=text name=txttickettype1_2 size=20 style=border-style:none readonly value=北京汽车展(贵宾)>
</td>
<td align=right>
<input type=text name=txtticketprice1_2 size=5 style=border-style:none readonly value=50>
</td>
<td align=right>
50
</td>
<td align=right>
<input type=text size=4 name=txtamount1_2 value= 13 style=border-style:none disabled>
</td>
<td align=right>
<input type=text name=txtsum1_2 size=5 style=border-style:none readonly value=650>
</td>
<td>
<input type=button name=btncancel value=取消onclick=on_cancel(txtamount1_2,frmorder.txtsum1_2) style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
<input type=hidden name=hidticketdiscount1_2 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 style=border-style:none readonly value=1058.2>
</td>
</tr>
</table>
<br><table width=500 border=0 align=center>
<tr>
<td width=25% align=center>
<input type=button name=btnupdate value=修改数量onclick=on_update() style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
</td>
<td width=25% align=center>
<input type=button name=btndel value=全部删除onclick=on_del() style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
</td>
<td width=25% align=center>
<input type=button name=btncontinue value=继续购物onclick=on_continue() style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
</td>
<td width=25% align=center>
<input type=button name=btnbuy value=去收银台onclick=on_buy() style=background-color:rgb(181,46,24);color:rgb(255,255,255); font-family: 宋体; font-size: 12px>
</td>
</tr>
</table>
</form>
<script language src=cart.js></script>
