在下订单时,根据选择的订单内容,动态显示出来,供用户确认。
源代码如下:
<table border ="1" cellspacing ="1">
<tr style =" background-color :#FFDFFF">
<th rowspan="2">景点编号</th>
<th rowspan ="2" >门票名称</th>
<th colspan="2">成人票</th>
<th colspan="2">学生票</th>
<th colspan="2">儿童票</th>
<th colspan ="2">军人票</th>
</tr>
<tr style =" background-color :#FFDFFF">
<td>价格</td><td>张数</td><td>价格</td><td>张数</td><td>价格</td><td>张数</td><td>价格</td><td>张数</td>
</tr>
<!--获取表中信息-->
<%
<!--根据前面界面传过来的bid查询出该bid下的所有信息,并显示在表中-->
int bid=Convert.ToInt32(Request.QueryString["bid"]);
DataTable dt = TBScenic_item.GetTBScenicInfoByBid(13);
for (int i = 0; i < dt.Rows.Count; i++)
{ %>
<tr>
<td><span id="sid<%=i %>"><%Response.Write(dt.Rows[i]["sid"].ToString()); %></span></td>
<td>
<!--复选框-->
<input id="Checkbox<%=i %>" type="checkbox" οnclick="calculation()" /><%--cbxClick(this.id,<%=i%>)--%>
<span class="spantable" id="sname<%=i %>"><%Response.Write(dt.Rows[i]["sname"].ToString()); %></span>
</td>
<td id="price_putong"><span id="spanpt_price<%=i %>"><%Response.Write(dt.Rows[i]["price_putong"].ToString()); %></span>
</td>
<td><select id="putong<%=i %>" name="D1" οnchange="calculation()"
disabled="disabled">
<option value="0">0</option>
<option