?? goodsupdate.jsp
字號:
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.domain.GoodsForm"%>
<%@page import="com.domain.BigTypeForm"%>
<%@page import="com.domain.SmallTypeForm"%>
<script language="javascript">
function checkEmpty(form){
for(i=0;i<form.length;i++){
if(form.elements[i].value==""){
alert("表單信息不能為空");
return false;
}
}
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>電子商城的后臺</title>
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>
<%
GoodsForm gf=(GoodsForm)request.getAttribute("formforward");
List big=(List)request.getAttribute("bigTypeform");
List small=(List)request.getAttribute("smallTypeform");
List bigAll=(List)request.getAttribute("bigTypeAll");
List smallAll=(List)request.getAttribute("smallTypeAll");
%>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td height="108" colspan="2" background="image/banner1.jpg"><div align="center">
<jsp:include page="../upTwo.jsp"/>
</div></td>
</tr>
<tr>
<td width="24%" height="318"><jsp:include page="../../leftManager.jsp"/> </td>
<td width="76%" height="36" bgcolor="#FFFFFF">
<div align="center">
<table width="99%" height="16" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#E6E6E6"><div align="center" class="dhz"><font color="#990000"><b>修改商品詳細信息</b></font></div></td>
</tr>
</table>
<br><br>
<form action="goodsAction.do?action=17&id=<%=gf.getId() %>" method="post" name="form" onSubmit="return checkEmpty(form)" >
<table width="500" border="0">
<tr class="zi">
<td width="159">數據編號:</td>
<td width="331"><input type="text" name="id" value=<%=gf.getId() %> disabled></td>
</tr>
<tr class="zi">
<td>商品名稱:</td>
<td><input type="text" name="goodsname" value=<%=gf.getName() %>></td>
</tr>
<tr class="zi">
<td>大類別:</td>
<td><select name="bigType">
<%for(int i=0;i<bigAll.size();i++){
BigTypeForm bigform=(BigTypeForm)bigAll.get(i);
%>
<option value=<%=bigform.getId() %>><%=bigform.getBigName() %></option>
<%
} %>
</select></td>
</tr>
<tr class="zi">
<td>小類別:</td>
<td><select name="smallType">
<%for(int i=0;i<smallAll.size();i++){
SmallTypeForm smallform=(SmallTypeForm)smallAll.get(i);
%>
<option value=<%=smallform.getId()%>><%=smallform.getSmallName() %></option>
<%
} %>
</select></td>
</tr>
<tr class="zi">
<td>是否特價:</td>
<td><select name="or">
<%
if(gf.getMark().equals(1)){
%>
<option value=1>是</option>
<%}else {
%>
<option value=0>否</option>
<%} %>
</select></td>
</tr>
</table>
<p> </p>
<p>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="reset" value="清除">
<input type="button" name="back" value="返回" onClick="javasrcipt:history.go(-1)">
</p>
</form>
<p> </p>
<p> </p>
<p> </p>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="60" colspan="2"><p align="center"><jsp:include page="../downNews.jsp"/>
</p> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -