📄 addproduct.jsp~37~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535}
body{font-size:9pt;line-height:120%}
a:link { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:hover { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body>
<br><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="25" bgcolor="#F1F1F1">
<div align="center"><font color="#000000">添加新商品</font></div>
</td>
</tr>
<tr>
<html:form action="productDispAction.do?method=addProduct">
<td height="126" bgcolor="#FFFFFF">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="8%"> </td>
<td width="60%">选择分类: </td>
<td colspan="2">
大类:<html:select property="bigcatalog">
<html:options property="bigcatalogs"/>
</html:select>
小类:<html:select property="smaillcatalog">
<html:options property="smaillcatalogs"/>
</html:select>
<font color="#FF0000"> </font></td>
</tr>
<tr>
<td rowspan="3" width="8%"> </td>
<td width="60%">
商品名称
</td>
<td colspan="2">
<html:text property="pname" size="14"></html:text>
</td>
</tr>
<tr>
<td width="60%">
商品品牌
</td>
<td colspan="2">
</tr>
<tr>
<td width="60%">
商品规格
</td>
<td colspan="2">
<html:text property="spec" size="14">
</html:text>
</td>
</tr>
<tr>
<td width="8%"> </td>
<td width="60%">
商品单位
</td>
<td colspan="2">
</td>
</tr>
<tr>
<td width="8%"> </td>
<td width="60%">
商品价格
</td>
<td colspan="2">
市场价<html:text property="price" size="5"></html:text>元,
会员价<html:text property="assprice" size="5"></html:text>元
</td>
</tr>
<tr>
<td height="18" width="8%"> </td>
<td height="18" width="60%">
商品图片
</td>
<td height="18" colspan="2">
<html:file property="pictrue" size="14">
</html:file>
</td>
</tr>
<tr>
<td valign="top" width="8%"> </td>
<td valign="top" width="60%">
商品说明
</td>
<td colspan="2">
<html:textarea property="explain" style="14">
</html:textarea>
</td>
</tr>
</table>
</td>
</html:form>
</tr>
</table>
<br>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkkk()
{
if(checkspace(document.myform.bookname.value)) {
document.myform.bookname.focus();
alert("请输入商品名称!");
return false;
}
if(checkspace(document.myform.shichangjia.value)) {
document.myform.shichangjia.focus();
alert("请输入市场价格!");
return false;
}
if(checkspace(document.myform.huiyuanjia.value)) {
document.myform.huiyuanjia.focus();
alert("请输入会员价格!");
return false;
}
if(checkspace(document.myform.vipjia.value)) {
document.myform.vipjia.focus();
alert("请输入VIP会员价格!");
return false;
}
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<script>
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -