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

📄 productview.jsp

📁 jsp网站开发四“酷”全书原码
💻 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[1].strutsAction.value="0";
  document.forms[1].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].productId = productId;
   document.forms[1].action="/shop/store/modify.do";
   document.forms[1].submit();
}
function deleteProduct(){
  if(confirm("<%=confirmMsg%>")){
    document.forms[1].action="/shop/product/delete.do";
    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>
<td vAlign=top>
<%@ include file="../side.jsp"%>
</td>

<html:form action="/store/view.do">
<html:hidden property="strutsAction"/>
<html:hidden property="deleteProductId"/>
<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="true"/>&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="true"/>&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="true"/>&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="true"/>&nbsp;
    </TD>
  </TR>
  <TR>
    <TD WIDTH="25%" ALIGN="RIGHT" BGCOLOR="#e1e1e1">图片:</TD>
    <TD WIDTH="75%">
      <img src="<%=contextPath%>/images/product/book/ouzhouxijie.bmp" width="120"/>&nbsp;
    </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="true"/>&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:text property="orderDesc" styleClass="Standard-InputCN" size="13" maxlength="20" readonly="true"/>&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="true"/>&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="true"/>
    </TD>
  </TR>

  <TR ALIGN="CENTER" BGCOLOR="#999999">
    <TD COLSPAN="2">
      <input type="button" class="Standard-ButtonCN" value="修改" onclick="return modify('1');">&nbsp;&nbsp;
      <input type="button" class="Standard-ButtonCN" value="删除" onclick="return deleteProduct();">&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 -->
</td>
</html:form>
<!-- foot begin -->
<CENTER><TABLE>
<TR>
  <TD class=txt>版权所有|  法律声明|  联系我们  </TD>
</TR>
</TABLE></CENTER>
<BR>
</table>
</body>
</html:html>

⌨️ 快捷键说明

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