📄 addproduct.jsp~26~
字号:
<%@ 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>
<form name="myform" method="post" action="saveaddbook.asp?action=add" onSubmit="return checkkk()" >
<td height="126" bgcolor="#FFFFFF">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="8%"> </td>
<td width="13%">选择分类: </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="13%">
商品名称
</td>
<td colspan="2">
<html:text property="pname"></html:text>
</td>
</tr>
<tr>
<td width="13%">
商品品牌
</td>
<td colspan="2">
<html:select property="brand">
<html:options property="brands"/>
</html:select>
</td>
</tr>
<tr>
<td width="13%">
商品规格
</td>
<td colspan="2">
<html:text property="spec">
</html:text>
</td>
</tr>
<tr>
<td width="8%"> </td>
<td width="13%">
商品单位
</td>
<td colspan="2">
<html:select property="unit">
<html:options property="units"/>
</html:select>
</td>
</tr>
<tr>
<td width="8%"> </td>
<td width="13%">
商品价格
</td>
<td colspan="2">
市场价<html:text property="price"></html:text>元,
会员价<html:text property="assprrice"></html:text>元
</td>
</tr>
<tr>
<td height="18" width="8%"> </td>
<td height="18" width="13%">
商品图片
</td>
<td height="18" colspan="2">
<html:file property="pictrue">
</html:file>
</td>
</tr>
<tr>
<td height="18" width="8%"> </td>
<td height="18" width="13%"> </td>
<td height="18" colspan="2">
<input name="zhuang" type="text" id="zhuang" size="30" class="wenbenkuang">
<input type="button" name="Submit2" class="go-wenbenkuang" value="上传大图片" onClick="window.open('../upload_flash.asp?formname=myform&editname=zhuang&uppath=bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
</td>
</tr>
<tr>
<td valign="top" width="8%"> </td>
<td valign="top" width="13%">
<%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=8 ",conn,1,1
%>
<input type="text" name="nr" size="12" value="<%=rs_s("ziduanname")%>" class="wenbenkuang">
<%
rs_s.close
set rs_s=nothing
%>
</td>
<td colspan="2">
<textarea name="bookcontent" cols="46" rows="8" id="bookcontent" class="wenbenkuang"></textarea>
</td>
</tr>
<!--<tr>
<td valign="top"> </td>
<td valign="top">
<%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from ziduan where ziduanorder=1 ",conn,1,1
%>
<input type="text" name="ml" size="12" value="<%=rs_s("ziduanname")%>">
<%
rs_s.close
set rs_s=nothing
conn.Close
set conn = nothing
%>
</td>
<td colspan="2">
<textarea name="bookmulu" cols="46" rows="8" id="bookmulu"></textarea>
</td>
</tr>-->
<tr>
<td height="32" width="8%">
<div align="center"> </div>
</td>
<td height="32" colspan="2">
<div align="center">
<input name="newsbook" type="checkbox" id="bestbook" value="1">
新品
<input name="bestbook" type="checkbox" id="bestbook" value="1">
推荐
<input name="tejiabook" type="checkbox" id="bestbook" value="1">
特价</div>
</td>
<td width="24%" align="center">
<input type="submit" name="Submit" value="添 加" class="go-wenbenkuang">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<br>
<!--#include file="copyright.asp"-->
</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 + -