毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

JSP在线商城系统设计 第10页

更新时间:2010-2-26:  来源:毕业论文
JSP在线商城系统设计 第10页
<jsp:useBean id="JSONRPCBridge" scope="session" class="com.metaparadigm.jsonrpc.JSONRPCBridge"/>
<jsp:useBean id="ajax" class="com.base.AjaxBean"></jsp:useBean>
<%
 JSONRPCBridge.registerObject("ajax",ajax);
%>
<html>
<head>
<title><bean:message key="website.title"/></title>
<link href="CSS/stylesheet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="JS/jsonrpc.js"></script>
</head>
<body class="body">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border:1px; border-style:solid; border-color:#888888">
  <tr>
    <td width="20">&nbsp;</td>
    <TD height="50" align="right" valign="bottom">
  <IMG src="images/icon_login.gif" align=absMiddle>
  <INPUT id="qKey" name="qKey" value="商品关键字" onClick="this.value=''">
  <SELECT id="category" name="category">
   <option value="0">所有商品</option>
  </SELECT>
  <A href="javascript:QuickSearch()"><IMG src="images/icon_search.gif" align="absMiddle" border="0"></A>    </TD>
    <td width="20">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
 <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TR align="center">
          <TD valign="top" width="9"><IMG src="images/icon02.gif"></TD>
          <TD class="header_menu" align="middle">
     <A href="mer.do?method=browseIndexMer"><span class="whiteTitle"><bean:message key="menu.item1"/></span></A>    </TD>
          <TD background="images/Bule_06.gif" width="2"></TD>
          <TD class="header_menu" align="middle">
     <A href="cart.do?method=browseCart"><span class="whiteTitle"><bean:message key="menu.item2"/></span></A>    </TD>
          <TD background="images/Bule_06.gif" width="2"></TD>
          <TD class="header_menu" align="middle">
     <A href="order.do?method=browseOrder"><span class="whiteTitle"><bean:message key="menu.item3"/></span></A>    </TD>
          <TD background="images/Bule_06.gif" width="2"></TD>
          <TD class="header_menu" align="middle">
     <A href="mem.do?method=browseWord"><span class="whiteTitle"><bean:message key="menu.item4"/></span></A>    </TD>
          <TD background="images/Bule_06.gif" width="2"></TD>
          <TD class="header_menu" align="middle">
     <A href="mem.do?method=loadMember"><span class="whiteTitle"><bean:message key="menu.item5"/></span></A>    </TD>
          <TD vAlign=top width=7><IMG src="images/icon07.gif"></TD>
        </TR>
    </TABLE></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="60"><img src="images/Car_icon_04.gif" /></td>
      </tr>
      <tr>
        <td><table cellspacing="0" cellpadding="0" border="0">
            <tr valign="center">
              <td><img hspace="5" src="images/Car_07.gif" /></td>
              <td class="C_Carbg_Current"><bean:message key="cart.step1"/></td>
              <td><img height="39" src="images/Car_15.gif" width="1" /></td>
              <td align="middle"><img hspace="5" src="images/Car_09.gif" /></td>
              <td class="C_Carbg_Default"><bean:message key="cart.step2"/></td>
              <td><img height="39" src="images/Car_15.gif" width="1" /></td>
              <td align="middle"><img hspace="5" src="images/Car_11.gif" /></td>
              <td class="C_Carbg_Default"><bean:message key="cart.step3"/></td>
              <td><img height="39" src="images/Car_15.gif" width="1" /></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="center">
   <table cellspacing="1" cellpadding="0" width="94%" border="0" bgcolor="#F7F3F7">
              <tr height="26">
                <td class="blackTitle" align="center"><bean:message key="mer.name"/></td>
                <td class="blackTitle" align="center"><bean:message key="mer.price"/></td>
                <td class="blackTitle" align="center"><bean:message key="sel.price"/></td>
                <td class="blackTitle" align="center"><bean:message key="sel.number"/></td>
                <td class="blackTitle" align="center"><bean:message key="sel.money"/></td>
                <td class="blackTitle" align="center"><bean:message key="cart.delete"/></td>
              </tr>
   <logic:notPresent name="result">
              <tr align="center" bgcolor="#FFFFFF">
                <td colspan="6" height="26" class="redText"><bean:message key="cart.empty"/></td>
              </tr>    
   </logic:notPresent>
   <logic:present name="result">
    <logic:iterate id="row" name="result" type="java.util.Map">
      <tr class="text" align="center" bgcolor="#FFFFFF">
     <td>
      &nbsp;<a href="mer.do?method=showMer&id=${row.merId}" target="_blank">
        <span class="blueText">${row.merName}</span>
      </a>     </td>
     <td>¥${row.price}</td>
     <td>¥<span id="price${row.selId}">${row.memprice}</span></td>
     <td><input type="text" class="textBox" onChange="modiNum(${row.selId},this.value)" value="${row.number}" size="4"/></td>
     <td>¥<span id="money${row.selId}">${row.money}</span></td>
     <td><input onClick="delCart(${row.selId})" type="image" src="images/delete_01.gif" border="0"/></td>
      </tr>
    </logic:iterate>
              <tr>
                <td colspan="6" class="Order_Total"><img hspace="5" src="images/me03.gif" align="absmiddle" />
    <bean:message key="cart.totalmoney"/><span id="totalMoney">${totalMoney}</span><bean:message key="cart.memo"/>    </td>
              </tr>    
   </logic:present>      
        </table></td>
      </tr>
   <tr height="20"><td colspan="5"></td></tr>  
      <tr align="right">
        <td>
   <input type="image" src="images/Car_icon_01.gif" style="BORDER: 0px;WIDTH: 126px; HEIGHT: 39px;" onClick="clearCart()">
   <img style="CURSOR: hand" onClick="continueBuy()" src="images/Car_icon_02.gif" />
   <img src="images/Car_icon_03.gif" onClick="next()" border="0" style="CURSOR: hand"/>
  </td>
      </tr>
      <tr align="right">
        <td height="20">&nbsp;</td>
      </tr>
    </table> </td>
    <td>&nbsp;</td>
  </tr>
 
  <tr>
    <td>&nbsp;</td>
    <td height="30" bgcolor="#4282CE" class="whiteText" align="center">
  <bean:message key="website.foot"/>  Copyright@2009,版权所有 翅膀i林, All Rights Reserved 邮箱: 6032451987@163.com       </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="20">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<script language="javascript">
 //构造商品分类下拉列表
 jsonrpc = new JSONRpcClient("JSON-RPC");
 var result = jsonrpc.ajax.getCategory();
 for (var i=0;i<result.length;i++){
  option =document.createElement("OPTION");
  option.value = result[i][0];
  option.text = result[i][1];
  document.all.category.options.add(option);
 }
 
 //搜索商品
 function QuickSearch(){
  var url = "mer.do?method=searchMer&cateid="+document.all.category.value;
  var key = document.all.qKey.value;
  if (key !=null && key!="商品关键字" && key.length>0)url = url+"&key="+key;
  window.location = url;
 }
 
 //修改选购数量
 function modiNum(selid,newNum){
  if (jsonrpc.ajax.modiCart(selid,newNum)){
   var oldMoney = document.getElementById("money"+selid).innerText;
   var newMoney = newNum*document.getElementById("price"+selid).innerText;

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

JSP在线商城系统设计 第10页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。