info.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <ul class="nav nav-tabs">
  13. <li class="active"><a href="#tab-member" data-toggle="tab">后台用户资料</a></li>
  14. </ul>
  15. <form class="form-horizontal" id="validation-form" method="post" action='{$action}'>
  16. <div class="tab-content">
  17. <notempty name="Think.get.id">
  18. <input name="a_id" type="hidden" value="{$Think.get.id}" />
  19. </notempty>
  20. <div class="tab-pane active" id="tab-member">
  21. <table class="table table-binfoed">
  22. <tr>
  23. <td>ID</td>
  24. <td>{$data.a_id}</td>
  25. </tr>
  26. <tr>
  27. <td>用户名</td>
  28. <td>{$data.a_uname}</td>
  29. </tr>
  30. <tr>
  31. <td>密码</td>
  32. <td><input id="pwd" name="a_passwd" type="text" style="width:400px;" value="<?php echo think_ucenter_decrypt($data['a_passwd'],C('PWD_KEY')); ?>" /></td>
  33. </tr>
  34. <tr>
  35. <td>所属角色</td>
  36. <td>
  37. <select name="a_role_id">
  38. <volist name="roles" id="role">
  39. <option value="{$role['id']}" <if condition="$data.a_role_id eq $role['id']">selected</if>>{$role['fullname']}</option>
  40. </volist>
  41. </select>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>真实姓名</td>
  46. <td><input name="a_true_name" type="text" style="width:400px;" value="{$data.a_true_name|default=''}" /></td>
  47. </tr>
  48. <tr>
  49. <td>联系电话</td>
  50. <td><input name="a_telephone" type="text" style="width:400px;" value="{$data.a_telephone|default=''}" /></td>
  51. </tr>
  52. <tr>
  53. <td>登录IP地址</td>
  54. <td>{$data.a_last_ip_region}</td>
  55. </tr>
  56. <tr>
  57. <td>登录次数</td>
  58. <td>{$data.a_login_count}</td>
  59. </tr>
  60. <tr>
  61. <td>创建时间</td>
  62. <td>{$data.a_create_time|toDate='Y/m/d H:i:s'}</td>
  63. </tr>
  64. <tr>
  65. <td>最近登录时间</td>
  66. <td>{$data.a_last_login_time|toDate='Y/m/d H:i:s'}</td>
  67. </tr>
  68. <tr>
  69. <td>状态</td>
  70. <td>
  71. <label class="radio-inline">
  72. <input type="radio" checked="checked" value="1" name="a_status">启用</label>
  73. <label class="radio-inline">
  74. <input type="radio" value="0" name="a_status">停用</label>
  75. </td>
  76. </tr>
  77. </table>
  78. <div class="form-group">
  79. <div style="margin-left:20px;">
  80. <input name="send" type="submit" value="提交" class="btn btn-primary" />
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </form>
  86. </block>
  87. <block name="javascript">
  88. <script>
  89. $(function(){
  90. <present name="Think.get.id">
  91. Oscshop.setValue("a_status", {$data.a_status|default=1});
  92. </present>
  93. $('.btn').click(function(){
  94. if($('#pwd').val()==''){
  95. alert('密码必填');
  96. return false;
  97. }
  98. if($('#pwd').val().length<6){
  99. alert('密码长度必须大于等于6位!!');
  100. return false;
  101. }
  102. });
  103. });
  104. </script>
  105. </block>