Skip to content

Commit

Permalink
layout and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
snirye committed Apr 19, 2020
1 parent 63c1770 commit c0f603f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WebContent/content/AddItem.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Condition:<select class="" name="condition">
<option value="bad">Bad</option>
</select><br>
Description:<input type="text" name="description"><br>
<input type="file" name="file" value="explore" />
<input type="file" name="file" value="explore" /><br>

<input type="submit" value="submit"> <input type="reset" value="reset">
</form>
12 changes: 10 additions & 2 deletions WebContent/content/AllUsers.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,16 @@ this is list of ${name} Offers
out.println("<td>"+u.getAddress()+"</td>");
out.println("<td>"+u.getPhone()+"</td>");
out.println("<td>"+u.getGender()+"</td>");
out.println("<td>"+u.getPrivileges()+"</td>");
out.println("<td><a href='MakeAdminServlet?user_id="+u.getUserID()+"'>A</a></td>");
if(u.getPrivileges().equals("0")){
out.println("<td>Admin</td>");
}else {
out.println("<td>User</td>");
}
if(u.getPrivileges().equals("0")){
out.println("<td>-</td>");
}else {
out.println("<td><a href='MakeAdminServlet?user_id="+u.getUserID()+"'>A</a></td>");
}
out.println("<td><a href='RemoveUserServlet?user_id="+u.getUserID()+"'>X</a></td>");
out.println("</tr>");
Expand Down
2 changes: 1 addition & 1 deletion src/controller/ChangeRequestResponeServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
req.setResponse(newResp);
mod.editRequest(req);
} else {
//not the request creaator:
//not the request creator:
msg="you are not the owner of this request! go away!";

}
Expand Down
2 changes: 1 addition & 1 deletion src/controller/ProfilePageServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
if(user!=null){
String showUserName=request.getParameter("user_name");
model.Users showUser=mod.getUserByUserName(showUserName);
if(showUser!=null) {
if(showUser==null && showUser.getUserID().equals("null")) {
request.setAttribute("show_user", showUser);
request.setAttribute("page","content/ProfilePage.jsp");
}else {
Expand Down

0 comments on commit c0f603f

Please sign in to comment.