?? addfood.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> 餐品數量:</span>
<label>
<html:text property="ftotal" />
<span class="STYLE2"></span></label></th>
</tr>
<tr>
<th align="left" class="STYLE2" scope="row"><span class="STYLE2"> </span>大圖:
<label>
<html:file property="flargeimg"/>
</label></th>
</tr>
<tr>
<th height="9" align="left" class="STYLE2" scope="row"><label> 小圖:
<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"> </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 + -