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

📄 addfood.jsp

📁 SSH 开发网上订餐系统。由于SSH相关包太大不方便上传。请自行导入。
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE2 {font-size: 12px}
.STYLE3 {
	font-size: 12px;
	color: #FF6600;
	font-family: "华文细黑";
	font-weight: lighter;
}
#form1 .STYLE2 {
	font-weight: lighter;
	color: #000000;
}
.STYLE6 {font-size: 12px; color: #FF0000; }
.STYLE7 {color: #FF0000}
-->
</style>
	<SCRIPT language="javascript">
		function check(){
		var form1=document.forms[0];
		if (form1.fid.value == "") {
		window.alert("餐品编号不能为空!");
		form1.fid.focus();
		return  false;
		}
		if (form1.fname.value == "") {
		window.alert("餐品名称不能为空!");
		form1.fname.focus();
		return false ;
		}
		if (form1.fprice.value == "") {
		window.alert("餐品价格不能为空!");
		form1.fprice.focus();
		return false ;
		}
		else{
		form1.submit();
		}
}
</SCRIPT> 
	
</head>



<body>
<table width="888" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="888" height="883" align="left" valign="top" scope="row"><table width="882" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <th colspan="2" align="left" scope="row"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <th height="44" align="left" background="images/logintable/reg_04.gif" scope="row"><img src="images/logintable/reg_03.gif" width="147" height="44" hspace="0" /></th>
            </tr>
        </table></th>
        <th height="32" align="left" scope="row"><img src="images/logintable/reg_05.gif" width="7" height="44" /></th>
      </tr>
      <tr>
        <th width="11" height="192" valign="top"  scope="row"><img src="images/logintable/table-left.gif" width="7" height="874"/></th>
        <th width="863" height="385" rowspan="5" align="left" valign="top" scope="row">
        
        <html:form action="/addfood" method="post" enctype="multipart/form-data">
          <table width="859" height="510" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <th width="867" height="510" align="center" valign="top" scope="row"><table width="713" height="121" border="0" cellpadding="6" cellspacing="8">
                  <tr>
                    <th width="703" scope="row" ><span class="STYLE6">欢迎添加!</span></th>
                  </tr>
                  <tr>
                    <th height="22" class="STYLE2" scope="row"><span class="STYLE6"><img src="images/thumbsup.gif" width="18" height="18" /></span>注意:带<span class="STYLE7">*</span>的栏目必须填写,否则不能添加餐品!</th>
                  </tr>
                  <tr>
                  
                    <th scope="row" align="left"><span class="STYLE2"><span class="STYLE7">*</span> 餐品编号:</span>
                      <label>                  
                       <html:text property="fid"/>
                      <span class="STYLE2"></span></label></th>
                  </tr>
                  <tr>
                    <th scope="row" align="left"><span class="STYLE2"><span class="STYLE7">*</span> 餐品名称:</span>
                      <html:text property="fname" />
                      <span class="STYLE2"></span></th>
                  </tr>
                  <tr>
                    <th scope="row" align="left"><span class="STYLE2"><span class="STYLE7">*</span> 餐品价格:</span>
                      <html:text property="fprice" />
                      <span class="STYLE2">              </span></th>
                  </tr>
                   <tr>
                    <th scope="row" align="left"><span class="STYLE2"><span class="STYLE7">*</span> 餐品类型:</span>
                     
                      <span class="STYLE2"> 
                      <html:select property="fstyle" >                
                   		<html:options collection="foodstyle_list" property="fsId" labelProperty="fsName"/>               
                   	  </html:select>                    </span></th>
                  </tr>
                  <tr>
                    <th scope="row" align="left"> <span class="STYLE2"><span class="STYLE7">* </span>餐品状态: 
                        <label></label>
                    </span><span class="STYLE2">
                    <html:select property="fstate">
                    <html:option value="0">普通</html:option>
                    <html:option value="1">推荐</html:option>
					<html:option value="2">热销</html:option>
					<html:option value="3">新出</html:option>
                    </html:select>
                    
                    </span></th>
                  </tr>
              </table>
                <table width="785" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <th width="768" height="35" align="left" scope="row"><img src="images/logintable/table-right1.GIF" width="774" height="8" /></th>
                  </tr>
                </table>
                <table width="769" height="477" border="0" cellpadding="6" cellspacing="8">
                  <tr>
                    <th align="left" class="STYLE3 " scope="row">为了更好地为您服务,请务必填写您的正确详细的信息。您的资料未经您的允许,我们将只用于处理您的订单,对外保密。</th>
                  </tr>
                  <tr>
                    <th align="left" scope="row"><span class="STYLE2"><span class="STYLE7"></span>&nbsp;餐品数量:</span>
                      <label>
                      <html:text property="ftotal" />
                      <span class="STYLE2"></span></label></th>
                  </tr>
                  <tr>
                    <th align="left" class="STYLE2" scope="row"><span class="STYLE2">&nbsp;</span>大图:
                      <label>
                       <html:file property="flargeimg"/>
                      </label></th>
                  </tr>
                  <tr>
                    <th height="9" align="left" class="STYLE2" scope="row"><label>&nbsp;小图:
																<html:file property="fsmallimg" />
															</label></th>
                    </tr>
                  <tr>
                    <th height="84" align="center" valign="middle" scope="row"><label>
                      </label>
                      <table width="683" height="161" border="0">
                        <tr>
                          <td valign="top"><br /></td><td valign="top"><br /></td><th width="673" align="left" class="STYLE2" scope="row">备注</th><td valign="top"><br /></td>
                        </tr>
                        <tr>
                          <td valign="top"><br /></td><td valign="top"><br /></td><th height="137" scope="row"><html:textarea property="fmemo" cols="70" rows="9"/></th><td valign="top"><br /></td>
                        </tr>
                      </table>
                      <label></label></th>
                  </tr>
                  <tr>
                    <th height="26" scope="row"><label>
                      <input type="button" name="Submit2" value="提交" onClick="return check();"/>
                    </label>
                      <label>
                      <input type="reset" name="Submit3" value="重置" />
                      </label>
                  </tr>
                </table>
           
          </table>
                  </html:form>         </th>
        <th width="10" rowspan="5" align="right" valign="top" background="images/logintable/table-right.gif" scope="row">&nbsp;</th>
      </tr>
      <tr>
        
      </tr>
      <tr>

      </tr>
      <tr>
       
      </tr>
      <tr>

      </tr>
      <tr>
        <th height="13" valign="top" scope="row"><img src="images/logintable/reg_09.gif" width="11" height="13" hspace="0" vspace="0" /></th>
        <th height="13" align="left" valign="top" scope="row"><img src="images/logintable/reg_10.gif" width="863" height="13" /></th>
        <th height="13" valign="top" scope="row"><img src="images/logintable/reg_12.gif" width="7" height="13" /></th>
      </tr>  
    </table></th>
  </tr>
</table>
<img alt= " "   src="${files }" />
</body>
</html>

⌨️ 快捷键说明

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