forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodifyware.jsp
More file actions
127 lines (123 loc) · 4.63 KB
/
modifyware.jsp
File metadata and controls
127 lines (123 loc) · 4.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="electric.electricUtils.ParamUtils"%>
<%@ page import="electric.dbs.Dbware"%>
<%
int id=ParamUtils.getIntParameter(request,"id",0);
Dbware ware=new Dbware(id);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="style.css">
<title>修改商品信息</title>
</head>
<script language=javascript>
function CheckForm()
{
if(document.form1.pname.value=="")
{
alert("请输入商品名!");
document.form1.pname.focus();
return false;
}
if(document.form1.pmodel.value == "")
{
alert("请输入型号!");
document.form1.pmodel.focus();
return false;
}
if(document.form1.pcost.value == "")
{
alert("请输入单价!");
document.form1.pcost.focus();
return false;
}
if(document.form1.pheft.value == "")
{
alert("请输入重量!");
document.form1.pheft.focus();
return false;
}
return true;
}
</script>
<body>
<table width="777" height="172" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="Images/tiring-room/tiring-room_01.gif" width="777" height="125"></td>
</tr>
<tr>
<td height="47" valign="top" background="Images/tiring-room/tiring-room_02.gif"><jsp:include page="H_navigation.jsp"/></td>
</tr>
</table></td>
</tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="44" height="380" valign="top"><img src="Images/tiring-room/tiring-room_03.gif" width="44" height="248"></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="68" colspan="2" background="Images/tiring-room/h_modifygoods.gif"> </td>
</tr>
<tr>
<td width="4%"> </td>
<td width="96%">
<form METHOD="POST" ACTION="ware_add.jsp" name="form1" onSubmit="return CheckForm();">
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="pageaction" value="MODIFY">
<input type="hidden" name="responsepage" value="wareman.jsp">
<div align="left">
<table width="476" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="87" height="5" align="right"></td>
<td width="371"></td>
</tr>
<tr>
<td width="87" height="30" align="right">商品名称:</td>
<td width="371"><input type="text" name="pname" size="20" maxlength="50" value="<%=ware.getPname()%>"></td>
</tr>
<tr>
<td width="87" height="30" align="right"> 商品型号:</td>
<td width="371"><input type="text" name="pmodel" size="20" maxlength="50" value="<%=ware.getPmodel()%>"></td>
</tr>
<tr>
<td width="87" height="30" align="right"> 商品单价:</td>
<td width="371"><input type="text" name="pcost" size="20" maxlength="50" value="<%=ware.getPcost()%>"></td>
</tr>
<tr>
<td width="87" height="30" align="right"> 商品重量:</td>
<td width="371"><input type="text" name="pheft" size="20" maxlength="5" value="<%=ware.getPheft()%>">
</td>
</tr>
<tr>
<td width="87" height="30" align="right"> 商品厂家:</td>
<td width="371"><input type="text" name="pfacturer" size="20" maxlength="5" value="<%=ware.getPfacturer()%>"></td>
</tr>
<tr>
<td width="87" height="30" valign="top" align="right"> 商品说明:</td>
<td width="371"><textarea name="pnote" cols="40" rows="4" wrap="hard" class="wenbenkuang"><%=ware.getPnote()%></textarea></td>
</tr>
<tr>
<td width="87" height="30" align="right"></td>
<td width="371"><input name="B1" type="submit" class="btn_grey" value="提交">
<input name="B2" type="reset" class="btn_grey" value="全部重写">
<input name="button" type="button" class="btn_grey" onClick="history.back();" value=" 返 回 "></td>
</tr>
</table>
</div>
</form>
</td>
</tr>
</table></td>
<td width="35" valign="top"><img src="Images/tiring-room/tiring-room_05.gif" width="35" height="248"></td>
</tr>
</table>
<jsp:include page="copyright.htm"/>
</body>
</html>