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

📄 addproduct.jsp~28~

📁 一个很不错的电子商务后台管理系统 这是一个电子商务网站的后台管理系统 要运行此系统必须具备以下条件 1.首先要把SNSQL文本中的SQL脚本确保在SQL Server中执行 2.包Se
💻 JSP~28~
字号:
<%@ 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=delProduct">

      <td height="126" bgcolor="#FFFFFF">
        <table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">
          <tr>
            <td width="8%">&nbsp;</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">&nbsp;</font></td>
          </tr>
          <tr>
            <td rowspan="3" width="8%">&nbsp;</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%">&nbsp;</td>
            <td width="13%">
              商品单位
            </td>
            <td colspan="2">
		<html:select property="unit">
                  <html:options property="units"/>
		</html:select>
            </td>
          </tr>
          <tr>
            <td width="8%">&nbsp;</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%">&nbsp;</td>
            <td height="18" width="13%">
              商品图片
            </td>
            <td height="18" colspan="2">
              <html:file property="pictrue">
              </html:file>
            </td>
          </tr>

          <tr>
            <td valign="top" width="8%">&nbsp;</td>
            <td valign="top" width="13%">
              商品说明
            </td>
            <td colspan="2">
              <html:textarea property="explain">
              </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 + -