修复无法修改岗位和管理员
This commit is contained in:
@@ -47,10 +47,10 @@
|
||||
<div class="col-sm-12 col-lg-9 col-md-9">
|
||||
<%
|
||||
try {
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement();
|
||||
sql = conn.prepareStatement("select userName,Email, VIP,Administrator from show_user where userName=?");
|
||||
@@ -75,7 +75,8 @@
|
||||
<div class="col-sm-10">
|
||||
|
||||
<input type="text" class="form-control"
|
||||
placeholder='<%=rs.getString("userName")%>' name="userName" value='<%=rs.getString("userName")%>'>
|
||||
placeholder='<%=rs.getString("userName")%>' name="userName"
|
||||
value='<%=rs.getString("userName")%>'>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,7 +84,8 @@
|
||||
<label for="inputText3" class="col-sm-2 control-label">邮箱</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control"
|
||||
placeholder="<%=rs.getString("Email")%>" name="Email" value='<%=rs.getString("Email")%>'>
|
||||
placeholder="<%=rs.getString("Email")%>" name="Email"
|
||||
value='<%=rs.getString("Email")%>'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -123,10 +125,10 @@
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
stmt.close();
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
stmt.close();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user