edit.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <%@ include file="../../common/head.jsp"%>
  8. <link rel="stylesheet" type="text/css" href="../res/js//plugins/webuploader/webuploader.css">
  9. <link rel="stylesheet" type="text/css" href="../res/css/demo/webuploader-demo.css">
  10. <script type="text/javascript" src="../res/js/plugins/webuploader/webuploader.js"></script>
  11. <script type="text/javascript" src="../res/js/plugins/webuploader/uploader.js"></script>
  12. <cs:initFile/>
  13. </head>
  14. <body>
  15. <div class="wrapper wrapper-content">
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <cs:form_validate formId="editUserForm"/>
  19. <form class="form-horizontal" action="edit.cs" id="editUserForm" method="POST">
  20. <!-- <div class="form-group"> -->
  21. <!-- <label class="col-sm-3 control-label">类型:</label> -->
  22. <!-- <div class="col-sm-6"> -->
  23. <!-- <input id="type" name="type" class="form-control" validate="{required:true}" validateMessage="{required:'请输入类型'}" > -->
  24. <!-- </div> -->
  25. <!-- </div> -->
  26. <input type="hidden" value="${user.id }" name="id">
  27. <div class="form-group">
  28. <label class="col-sm-3 control-label">代码:</label>
  29. <div class="col-sm-6">
  30. <input id="code" name="code" class="form-control" validate="{required:true}" readonly="readonly" value="${user.code }" validateMessage="{required:'请输入code,不能重复'}" >
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-3 control-label">姓名:</label>
  35. <div class="col-sm-6">
  36. <input id="name" name="name" class="form-control" validate="{required:true}" value="${user.name }" validateMessage="{required:'请输入名称'}" >
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-3 control-label">账号:</label>
  41. <div class="col-sm-6">
  42. <input id="account" name="account" class="form-control" validate="{required:true}" value="${user.account }" validateMessage="{required:'请输入账号'}" >
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label class="col-sm-3 control-label">密码:</label>
  47. <div class="col-sm-6">
  48. <input id="pwd" name="pwd" type="password" class="form-control" validate="{required:true}" value="${user.pwd }" validateMessage="{required:'请输入密码'}" >
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="col-sm-3 control-label">性别:</label>
  53. <div class="col-sm-6">
  54. <select class="form-control" name="sex">
  55. <option value="1" <c:if test="${user.sex==1 }"> selected="selected" </c:if> >男</option>
  56. <option value="2" <c:if test="${user.sex==2 }"> sselected="selected" </c:if> >女</option>
  57. </select>
  58. </div>
  59. </div>
  60. <%-- <div class="form-group">
  61. <label class="col-sm-3 control-label">头像:</label>
  62. <div class="col-sm-6">
  63. <cs:file name="img" type="100" url="${user.img }" desc="${user.img }"></cs:file>
  64. </div>
  65. </div>--%>
  66. <div class="form-group">
  67. <label class="col-sm-3 control-label">描述:</label>
  68. <div class="col-sm-6">
  69. <input id="remark" name="remark" class="form-control" value="${user.remark }" >
  70. </div>
  71. </div>
  72. <!-- <div class="form-group"> -->
  73. <!-- <label class="col-sm-3 control-label">:</label> -->
  74. <!-- <div class="col-sm-6"> -->
  75. <!-- <input id="weight" name="weight" class="form-control" > -->
  76. <!-- </div> -->
  77. <!-- </div> -->
  78. <div class="form-group">
  79. <div class="col-sm-4 col-sm-offset-3 pull-left">
  80. <button class="btn btn-default btn-dlg-close">取消</button>
  81. <button class="btn btn-primary" type="submit">提交</button>
  82. </div>
  83. </div>
  84. </form>
  85. </div>
  86. </div>
  87. </div>
  88. </body>
  89. </html>