日期:2009-02-12  浏览次数:20870 次

三、订单修改页面:orderform.htm

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE = "JavaScript" src="orderform_functions.js"></SCRIPT>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="673" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="673">
      <form name="OrderForm" method="post" action="">
        <input type="hidden" name="hiddenField" id="storage" size="10">
        
        <table width="85%" border="0" cellspacing="1" cellpadding="0" align="center">
          <tr bgcolor="#000099">
            <td width="46%">
              <div align="center"><font color="#FFFFFF">品名</font></div>
            </td>
            <td width="14%">
              <div align="center"><font color="#FFFFFF">售价</font></div>
            </td>
            <td width="12%">
              <div align="center"><font color="#FFFFFF">数量</font></div>
            </td>
            <td width="20%">
              <div align="center"><font color="#FFFFFF">价格小计</font></div>
            </td>
            <td width="8%"><font color="#FFFFFF"></font></td>
          </tr>
        </table>
<SCRIPT LANGUAGE = "JavaScript">
var the_list =unescape(ReadOrderForm('24_OrderForm'));
document.write(the_list);
if (the_list=='false'||the_list.indexOf("|")==-1)
{
    var totals=0
    document.write("您还没有选购任何商品!")
}
else
{
    document.OrderForm.storage.value=the_list;
    var totals;
    var broken_list = the_list.split("|");
    //<-
    for (i=1;i<broken_list.length;i++)
    {
        var single_list=broken_list[i];
        var broken_single_list = single_list.split("&");