basic.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <div class="form-group">
  2. <label class="col-lg control-label">用户</label>
  3. <div class="col-sm-9 col-xs-12">
  4. <img class="radius50" src="{$member['avatar']}" style='width:50px;height:50px;padding:1px;border:1px solid #ccc' />
  5. {$member['username']}
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="col-lg control-label">OPENID</label>
  10. <div class="col-sm-9 col-xs-12">
  11. <div class="form-control-static js-clip text-primary" data-url='{$member['openid']}'>{$member['openid']}</div>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="col-lg control-label">会员等级</label>
  16. <div class="col-sm-9 col-xs-12">
  17. <select name='data[level_id]' class='form-control'>
  18. <option value=''>普通会员</option>
  19. <?php foreach( $level_list as $level ){ ?>
  20. <option value='{$level['id']}' <?php if( $member['level_id']==$level['id']){ ?>selected<?php } ?>>{$level['levelname']}</option>
  21. <?php } ?>
  22. </select>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="col-lg control-label">会员分组</label>
  27. <div class="col-sm-9 col-xs-12">
  28. <select name='data[groupid]' class='form-control select2' placeholder="无分组">
  29. <option value='' <?php if( empty($group['id'])){ ?>selected<?php } ?>>默认分组</option>
  30. <?php foreach( $group_list as $group ){ ?>
  31. <option value='{$group['id']}' <?php if( $group['id'] == $member['groupid'] ){ ?>selected<?php } ?>>{$group['groupname']}</option>
  32. <?php } ?>
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-lg control-label">真实姓名</label>
  38. <div class="col-sm-9 col-xs-12">
  39. {php echo tpl_form_field_editor(array('name'=>'data[realname]', 'value'=>$member['realname']))}
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-lg control-label">手机号</label>
  44. <div class="col-sm-9 col-xs-12">
  45. {php echo tpl_form_field_editor(array('name'=>'data[telephone]', 'value'=>$member['telephone']))}
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="col-lg control-label">积分</label>
  50. <div class="col-sm-3">
  51. <div class='form-control-static'>{$member['score']}
  52. <a class="text-primary " data-toggle='ajaxModal' href="{:U('user/recharge', array('type'=>'score','id'=>$member['member_id']))}" style="padding-left: 5px;">充值</a>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-lg control-label">余额</label>
  58. <div class="col-sm-3">
  59. <div class='form-control-static'>{$member['account_money']}
  60. <a class="text-primary " data-toggle='ajaxModal' href="{:U('user/recharge', array('type'=>'account_money','id'=>$member['member_id']))}" style="padding-left: 5px;">充值</a>
  61. </div>
  62. </div>
  63. </div> <div class="form-group">
  64. <label class="col-lg control-label">注册时间</label>
  65. <div class="col-sm-9 col-xs-12">
  66. <div class='form-control-static'>{:date("Y-m-d H:i:s",$member['create_time'])}</div>
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label class="col-lg control-label">状态</label>
  71. <div class="col-sm-9 col-xs-12">
  72. <label class="radio-inline"><input type="radio" name="data[isblack]" value="1" <?php if( $member['isblack']==1){ ?>checked<?php } ?>>禁用</label>
  73. <label class="radio-inline" ><input type="radio" name="data[isblack]" value="0" <?php if( $member['isblack']==0){ ?>checked<?php } ?>>启用</label>
  74. <span class="help-block">设置禁用后,此会员无法访问商城</span>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="col-lg control-label">备注</label>
  79. <div class="col-sm-9 col-xs-12">
  80. <textarea name="data[content]" class='form-control' rows="5">{$member['content']}</textarea>
  81. </div>
  82. </div>
  83. <script type="text/javascript">
  84. $(function () {
  85. $(".btn-maxcredit").unbind('click').click(function () {
  86. var val = $(this).val();
  87. if(val==1){
  88. $(".maxcreditinput").css({'display':'inline-block'});
  89. }else{
  90. $(".maxcreditinput").css({'display':'none'});
  91. }
  92. });
  93. })
  94. </script>