goodseditor.jsp
来自「这是超市系统·有SQL数据库·属于毕业设计」· JSP 代码 · 共 151 行
JSP
151 行
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Vector" %>
<%@ page import="com.comm.vo.GenericVO" %>
<%@ page import="com.comm.vo.ListVO" %>
<%@ page import="com.comm.util.BaseUtil" %>
<%@ page import="com.comm.util.AppUtil" %>
<jsp:useBean id="bean" scope="request" class="com.comm.vo.GenericVO"/>
<link href="/css/style.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="/js/comm.js" type="text/JavaScript"></script>
<script language="javascript" src="/manager/goodsadd.js" type="text/JavaScript"></script>
<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
language :"zh_tw_utf8",
content_css : "tiny_mce_tm.css",
plugins : "preview",
theme_advanced_toolbar_location:"top",
theme_advanced_toolbar_align:"left",
force_p_newlines:false,
theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor",
theme_advanced_buttons2_add : "separator,preview",
plugin_insertdate_dateFormat : "%Y/%m/%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout],font[face|size|color]"
});
</script>
<!-- /tinyMCE -->
<%
Vector bv = (Vector)request.getAttribute("BV");
Vector gtv = (Vector)request.getAttribute("GTV");
GenericVO tvo;
%>
<div style="width:100%;">
<div style="padding-left:15px;padding-right:15px;padding-top:10px;padding-bottom:10px;float:left;">
<div align="center">
<center>
<table style="border:0px solid #CCCCCC;; border-collapse:collapse" cellSpacing="0" cellPadding="0" width="700" border="0" bordercolor="#111111" height="59">
<form name="addGoods" target="frmHidden" action="/manager.do?event=doGoodsAdd" method="post" enctype="multipart/form-data">
<tr>
<td id="tdBrandLogo2" align="center" height="3" width="195"></td>
<td height="3" width="82">品 牌:</td>
<td height="3" width="542">
<select size="1" name="brand_id" onchange="getBrandLogo2(this.value);">
<option value="">请选择品牌</option>
<%
for(int i=0;i<bv.size();i++){
tvo = (GenericVO)bv.elementAt(i);
%>
<option value="<%=tvo.getItem("BRAND_ID")%>"><%=tvo.getItem("NAME")%></option>
<%
}
%>
</select></td>
</tr>
<tr>
<td align="center" height="201" width="195" rowspan="8">
<span id="spnGoodsPhoto"></span><br><br>
<input onchange="document.getElementById('spnGoodsPhoto').innerHTML='<img border=0 src='+this.value+' width=125 height=125>';" type="file" name="photo" size="7"></td>
<td height="13" width="82">
一级分类:</td>
<td height="13" width="542">
<select size="1" name="goodstype_id" onchange="getGoodsTypeByPid(this.value);">
<option value="">请选择一级分类</option>
<%
for(int i=0;i<gtv.size();i++){
tvo = (GenericVO)gtv.elementAt(i);
%>
<option value="<%=tvo.getItem("GOODSTYPE_ID")%>"><%=tvo.getItem("TYPENAME")%></option>
<%
}
%>
</select></td>
</tr>
<tr>
<td height="26" width="82">二级分类:</td>
<td id="tdGoodsType2" height="26" width="542">
<select size="1" name="goodstype_id2">
<option>请选择二级分类</option>
</select>
</td>
</tr>
<tr>
<td height="26" width="82">商品名称:</td>
<td height="26" width="542">
<input type="text" name="name" size="38"><font color="red">(例如:索尼 T20 数码照相机)</font>
</td>
</tr>
<tr>
<td vAlign="top" height="9" width="82" style="line-height: 150%">
媒 体 价:</td>
<td vAlign="top" height="9" width="542" style="line-height: 150%">
<input type="text" name="price1" size="11"><font color="red"> 元</font></td>
</tr>
<tr>
<td vAlign="top" height="27" width="82" style="line-height: 150%">
价 格:</td>
<td vAlign="top" height="27" width="542" style="line-height: 150%">
<input type="text" name="price2" size="11"><font color="red"> 元</font></td>
</tr>
<tr>
<td vAlign="top" height="27" width="82" style="line-height: 150%">
赠送积分:</td>
<td vAlign="top" height="27" width="542" style="line-height: 150%">
<input type="text" name="dot" size="16"><font color="red"></font></td>
</tr>
<tr>
<td vAlign="top" height="4" width="82" style="line-height: 150%">
计费重量:</td>
<td vAlign="top" height="4" width="542" style="line-height: 150%">
<input type="text" name="weight" size="12"><font color="red"> 克</font></td>
</tr>
<tr>
<td vAlign="top" height="1" width="82" style="line-height: 150%">
库存状况:</td>
<td vAlign="top" height="1" width="542" style="line-height: 150%">
<input type="text" name="kucun" size="8"><font color="red"></font></td>
</tr>
<tr>
<td align="center" height="9" width="195">
<p align="left">
<img border="0" src="/images/allow.gif" width="6" height="6" alt=""> 商品描述</td>
<td vAlign="top" height="9" width="82" style="line-height: 150%">
</td>
<td vAlign="top" height="9" width="542" style="line-height: 150%">
</td>
</tr>
<tr>
<td align="center" height="9" width="819" colspan="3" style="font-size: 1px">
</td>
</tr>
<tr>
<td align="center" height="333" width="819" colspan="3">
<p align="left">
<textarea mce_editable="true" rows="20" name="description" cols="80"></textarea>
</td>
</tr>
<tr>
<td align="center" height="58" width="100%" colspan="3">
<img id="imgGoodsAdd" onclick="return checkGoodsAdd();" style="cursor:hand;" alt="" src="/images/icon_confirm.gif" align="middle" name="I1" width="59" height="22">
</td>
</tr>
</form>
</table>
</center>
</div>
</div>
</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?