You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.8 KiB

7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">회원 설정</h1>
  3. </div>
  4. <?=form_open("admin/setting/update",array('class'=>'form-flex'))?>
  5. <input type="hidden" name="reurl" value="<?=base_url('admin/setting/member')?>">
  6. <div class="panel panel-dark">
  7. <div class="panel-heading">
  8. <h4 class="panel-title"><?=$this->site->config('point_name')?> 설정</h4>
  9. </div>
  10. <div class="panel-body">
  11. <div class="form-group">
  12. <label class="control-label"><?=$this->site->config('point_name')?></label>
  13. <div class="controls">
  14. <label class="w-radio"><input type="radio" class="radio-point-use" name="setting[point_use]" value="Y" <?=$this->site->config('point_use')=='Y'?'checked':''?>><span>사용</span></label>
  15. <label class="w-radio"><input type="radio" class="radio-point-use" name="setting[point_use]" value="N" <?=$this->site->config('point_use')=='N'?'checked':''?>><span>미사용</span></label>
  16. </div>
  17. </div>
  18. <div id="point-fieldset">
  19. <div class="form-group">
  20. <label class="control-label"><?=$this->site->config('point_name')?> 명칭</label>
  21. <div class="controls">
  22. <input class="form-control form-control-inline" name="setting[point_name]" value="<?=$this->site->config('point_name')?>">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="control-label">회원가입 지급 <?=$this->site->config('point_name')?></label>
  27. <div class="controls">
  28. <input class="form-control form-control-inline" name="setting[point_member_register]" value="<?=$this->site->config('point_member_register')?>">
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="control-label">로그인 지급 <?=$this->site->config('point_name')?></label>
  33. <div class="controls">
  34. <input class="form-control form-control-inline" name="setting[point_member_login]" value="<?=$this->site->config('point_member_login')?>">
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="panel-footer">
  40. <button type="submit" class="btn btn-primary">저장하기</button>
  41. </div>
  42. </div>
  43. <?=form_close()?>
  44. <script>
  45. $(document).ready(function(){
  46. $('input[type=radio].radio-point-use').change(function(){
  47. if( $('input[type=radio].radio-point-use:checked').val() == 'Y' )
  48. {
  49. $('#point-fieldset').removeAttr('readonly');
  50. $('#point-fieldset .form-control').removeAttr('readonly');
  51. }
  52. else {
  53. $('#point-fieldset').attr('readonly','readonly');
  54. $('#point-fieldset .form-control').attr('readonly','readonly');
  55. }
  56. }).change();
  57. });
  58. </script>