edit.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('user/index')}">{:lang('ADMIN_USER_INDEX')}</a></li>
  7. <li><a href="{:url('user/add')}">{:lang('ADMIN_USER_ADD')}</a></li>
  8. <li class="active"><a>编辑管理员</a></li>
  9. </ul>
  10. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('User/editPost')}">
  11. <div class="form-group">
  12. <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('USERNAME')}</label>
  13. <div class="col-md-6 col-sm-10">
  14. <input type="text" class="form-control" id="input-user_login" name="user_login" value="{$user_login}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('PASSWORD')}</label>
  19. <div class="col-md-6 col-sm-10">
  20. <input type="text" class="form-control" id="input-user_pass" name="user_pass" value="" placeholder="******">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('EMAIL')}</label>
  25. <div class="col-md-6 col-sm-10">
  26. <input type="text" class="form-control" id="input-user_email" name="user_email" value="{$user_email}">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('ROLE')}</label>
  31. <div class="col-md-6 col-sm-10">
  32. <foreach name="roles" item="vo">
  33. <label class="checkbox-inline">
  34. <php>$role_id_checked=in_array($vo['id'],$role_ids)?"checked":"";</php>
  35. <input value="{$vo.id}" type="checkbox" name="role_id[]" {$role_id_checked} <if condition="cmf_get_current_admin_id() neq 1 && $vo['id'] eq 1">disabled="true"</if>>{$vo.name}
  36. </label>
  37. </foreach>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <div class="col-sm-offset-2 col-sm-10">
  42. <input type="hidden" name="id" value="{$id}" />
  43. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  44. <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
  45. </div>
  46. </div>
  47. </form>
  48. </div>
  49. <script src="__STATIC__/js/admin.js"></script>
  50. </body>
  51. </html>