開發環境: Windows操做系統
開發工具:MyEclipse/Eclipse + JDK+ Tomcat + MySQL 數據庫
項目簡介:
系統功能需求php
3.2.1 管理員功能java
3.2.2 櫃員功能sql
項目截圖:數據庫
/ updateguiyuan.jsp 修改櫃員信息jsp
<body>工具
<div id="mainDiv">post
<div id="topDiv">開發工具
<div id="tmenu"><font color="white">超市會員積分管理系統</font></div></div>ui
<div id="centerDiv">spa
<jsp:include page="left.jsp" />
<div id="right">
<div id="current"> 當前位置:櫃員修改</div>
<jsp:useBean id="mybean" class="bean.DB"/>
<%
request.setCharacterEncoding("gb2312");
String ids=request.getParameter("ids");
String sql="select * from admin where id ="+ids+"";
ResultSet rs=mybean.executeQuery(sql);
String name="";
String sex="";
String age="";
String username="";
String tel="";
String password="";
if(rs.next())
{
name=rs.getString("name");
sex=rs.getString("sex");
age=rs.getString("age");
tel=rs.getString("tel");
username=rs.getString("username");
password=rs.getString("password");
}
%>
<form action="saveguiyuan.jsp" method="post" name="form1" onsubmit="return commit()">
<table width="84%" border="0" cellpadding="0" cellspacing="0" >
<!--DWLayoutTable-->
<tr>
<td height="66" valign="top">
<table width="81%" border="0" cellpadding="0" cellspacing="1" bgcolor="#0099FF" align="center">
<!--DWLayoutTable-->
<tr>
<td height="33" colspan="6" align="center" valign="middle" bgcolor="#98C6D1">修改櫃員信息</td>
</tr>
<tr>
<td width="223" height="38" align="center" valign="middle" bgcolor="#98C6D1">櫃員姓名:</td>
<td width="217" align="left" valign="middle" bgcolor="#98C6D1"><label>
</label>
<label>
<input type="text" name="name" value="<%=name%>" /><input type="hidden" name="ids" value="<%=ids%>" />
</label></td>
<td width="211" align="right" valign="middle" bgcolor="#98C6D1">櫃員年齡:</td>
<td width="227" align="left" valign="middle" bgcolor="#98C6D1">
<input type="text" name="age" value="<%=age%>" /></td>
</tr>
<tr>
<td width="223" height="38" align="center" valign="middle" bgcolor="#98C6D1">櫃員性別:</td>
<td width="217" align="left" valign="middle" bgcolor="#98C6D1"><label>
</label>
<label>
<input type="text" name="sex" value="<%=sex%>" />
</label></td>
<td width="211" align="right" valign="middle" bgcolor="#98C6D1">聯繫電話:</td>
<td width="227" align="left" valign="middle" bgcolor="#98C6D1">
<input type="text" name="tel" value="<%=tel%>"/></td>
</tr>
<tr>
<td width="223" height="43" align="center" valign="middle" bgcolor="#98C6D1">會員編號:</td>
<td width="217" align="left" valign="middle" bgcolor="#98C6D1"><label>
</label>
<label>
<input type="text" name="username" value="<%=username%>" readonly="true" />
</label></td>
<td width="211" align="right" valign="middle" bgcolor="#98C6D1">會員密碼:</td>
<td width="227" align="left" valign="middle" bgcolor="#98C6D1">
<input type="text" name="password" value="<%=password%>" readonly="true" /></td>
</tr>
<tr>
<td height="33" colspan="4" align="center" valign="middle" bgcolor="#98C6D1">
<input type="submit" name="Submit" value="提交" />
</td>
</tr>
</table></td></tr>
</table>
</form>
</div>
</div></div>
<div id="bottomDiv"></div>
</body>