Repository navigation
Expand file tree
/
Copy pathmodifyshop.jsp
More file actions
121 lines (118 loc) · 4.51 KB
/
Copy pathmodifyshop.jsp
File metadata and controls
121 lines (118 loc) · 4.51 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
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="electric.electricUtils.ParamUtils"%>
<%@ page import="electric.dbs.Dbshop"%>
<%
int id=ParamUtils.getIntParameter(request,"id",0);
Dbshop shop=new Dbshop(id);
%>
<html>
<head>
<title>修改连锁店</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet">
</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_modifychain.gif"> </td>
</tr>
<tr>
<td width="4%"> </td>
<td width="96%">
<form method="POST" action="shop_add.jsp">
<table width="80%" border="0" align="center">
<tr>
<td width="23%" height="30"> 用户名:</td>
<td colspan="2"><input type="text" name="username" size="20" value=<%=shop.getUsername()%>></td>
</tr>
<tr>
<td width="23%" height="30"> 密码:</td>
<td colspan="2"><input type="text" name="password" size="20" value=<%=shop.getPassword()%>></td>
</tr>
<tr>
<td width="23%" height="30"> 连锁店名称:</td>
<td colspan="2"><input type="text" name="shopname" size="20" value=<%=shop.getShopname()%>></td>
</tr>
<tr>
<td width="23%" height="30"> 所属地区:</td>
<td colspan="2"><input type="text" name="area" size="20" value=<%=shop.getArea()%>></td>
</tr>
<tr>
<td width="23%" height="30"> 连锁店负责人:</td>
<td colspan="2">
<input type="text" name="peopleman" size="20" value=<%=shop.getPeopleman()%>></td>
</tr>
<tr>
<td width="23%" height="30"> 负责人电话:</td>
<td colspan="2">
<input type="text" name="mantel" size="20" value=<%=shop.getMantel()%>></td>
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="usertype" value="1">
<input type="hidden" name="pageaction" value="MODIFY">
<input type="hidden" name="responsepage" value="shopman.jsp">
</tr>
<tr>
<td width="23%" height="30"> 连锁店电话:</td>
<td colspan="2"><input type="text" name="shoptel" size="20" value=<%=shop.getShoptel()%>></td>
</tr>
<tr>
<td width="23%" height="30" align="right"><input name="B1" type="submit" class="btn_grey" value="提交"></td>
<td width="15%" align="center"><input name="B2" type="reset" class="btn_grey" value="全部重写"></td>
<td width="62%"><input name="button" type="button" class="btn_grey" onClick="history.back();" value=" 返 回 "></td>
</tr>
</table>
</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>