edit.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('AdminUserAction/index')}">用户操作管理</a></li>
  7. <li class="active"><a>编辑用户操作</a></li>
  8. </ul>
  9. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminUserAction/editPost')}">
  10. <div class="form-group">
  11. <label for="input-score" class="col-sm-2 control-label">积分</label>
  12. <div class="col-md-6 col-sm-10">
  13. <input type="text" class="form-control" id="input-score" name="score" value="{$score}">
  14. <p class="help-block">用户操作时积分更改,可以为负</p>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="input-coin" class="col-sm-2 control-label">金币</label>
  19. <div class="col-md-6 col-sm-10">
  20. <input type="text" class="form-control" id="input-coin" name="coin" value="{$coin}">
  21. <p class="help-block">用户操作时金币更改,可以为负</p>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="input-cycle_type" class="col-sm-2 control-label">周期类型</label>
  26. <div class="col-md-6 col-sm-10">
  27. <select name="cycle_type" id="input-cycle_type" class="form-control">
  28. <option value="0">不限</option>
  29. <option value="1">天</option>
  30. <option value="2">小时</option>
  31. <option value="3">永久</option>
  32. </select>
  33. <p class="help-block">用户操作时奖励周期类型</p>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label for="input-cycle_time" class="col-sm-2 control-label">周期时间</label>
  38. <div class="col-md-6 col-sm-10">
  39. <input type="text" class="form-control" id="input-cycle_time" name="cycle_time" value="{$cycle_time}">
  40. <p class="help-block">用户操作时奖励周期时间</p>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label for="input-reward_number" class="col-sm-2 control-label">奖励次数</label>
  45. <div class="col-md-6 col-sm-10">
  46. <input type="text" class="form-control" id="input-reward_number" name="reward_number"
  47. value="{$reward_number}">
  48. <p class="help-block">用户操作时奖励次数</p>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <div class="col-sm-offset-2 col-sm-10">
  53. <input type="hidden" name="id" value="{$id}">
  54. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  55. <a class="btn btn-default" href="{:url('AdminUserAction/index')}">{:lang('BACK')}</a>
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. <script src="__STATIC__/js/admin.js"></script>
  61. <script>
  62. $('#input-cycle_type').val("{$cycle_type}");
  63. </script>
  64. </body>
  65. </html>