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.

87 lines
3.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <?=validation_errors('<p class="alert alert-danger">')?>
  2. <?=form_open(NULL,array('autocomplete'=>'off'))?>
  3. <div data-ax-tbl>
  4. <div data-ax-tr>
  5. <div data-ax-td class="width-100">
  6. <div data-ax-td-label>팝업 이름</div>
  7. <div data-ax-td-wrap>
  8. <input class="form-control" name="pop_title" value="<?=element('pop_title', $view, set_value('pop_title'))?>" required>
  9. </div>
  10. </div>
  11. </div>
  12. <div data-ax-tr>
  13. <div data-ax-td class="width-100">
  14. <div data-ax-td-label>팝업 종류</div>
  15. <div data-ax-td-wrap>
  16. <label class="w-radio">
  17. <input type="radio" name="pop_type" value="Y" <?=element('pop_type', $view, set_value('pop_type', 'Y'))=='Y'?'checked':''?>>
  18. <span> </span>
  19. </label>
  20. <label class="w-radio">
  21. <input type="radio" name="pop_type" value="N" <?=element('pop_type', $view, set_value('pop_type', 'Y'))=='N'?'checked':''?>>
  22. <span>레이어</span>
  23. </label>
  24. </div>
  25. </div>
  26. </div>
  27. <div data-ax-tr>
  28. <div data-ax-td>
  29. <div data-ax-td-label>팝업 너비 (px)</div>
  30. <div data-ax-td-wrap>
  31. <input class="form-control text-right" data-number-only name="pop_width" value="<?=(element('pop_width', $view, set_value('pop_width', 600)))?>" required>
  32. </div>
  33. </div>
  34. <div data-ax-td>
  35. <div data-ax-td-label>팝업 높이 (px)</div>
  36. <div data-ax-td-wrap>
  37. <input class="form-control text-right" data-number-only name="pop_height" value="<?=(element('pop_height', $view, set_value('pop_height', 600)))?>" required>
  38. </div>
  39. </div>
  40. </div>
  41. <div data-ax-tr>
  42. <div data-ax-td class="width-100">
  43. <div data-ax-td-label>팝업 내용</div>
  44. <div data-ax-td-wrap>
  45. <?=get_editor('pop_content', element('pop_content',$view, set_value('pop_content')) )?>
  46. </div>
  47. </div>
  48. </div>
  49. <div data-ax-tr>
  50. <div data-ax-td>
  51. <div data-ax-td-label>표시 시작 일시</div>
  52. <div data-ax-td-wrap>
  53. <div data-toggle="datetime-picker" data-type="datetime" data-name="pop_start" data-value="<?=element('pop_start', $view, set_value('pop_start'))?>"></div>
  54. </div>
  55. </div>
  56. <div data-ax-td>
  57. <div data-ax-td-label>표시 종료 일시</div>
  58. <div data-ax-td-wrap>
  59. <div data-toggle="datetime-picker" data-type="datetime" data-name="pop_end" data-value="<?=element('pop_end', $view, set_value('pop_end'))?>"></div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="text-center MT15">
  65. <button class="btn btn-primary"><i class="far fa-check"></i> 입력 완료</button>
  66. </div>
  67. <div class="H10"></div>
  68. <?=form_close()?>
  69. <script>
  70. $(function() {
  71. $('[data-toggle="datetime-picker"]').each(function() {
  72. var name = $(this).data('name'),
  73. value = $(this).data('value') && $(this).data('value') != '0000-00-00 00:00:00' ? new Date($(this).data('value')) : (new Date()).dateFormat('yyyy-MM-dd 00:00'),
  74. type = $(this).data('type');
  75. $(this).dxDateBox({
  76. type: type,
  77. value: value,
  78. displayFormat: type == 'datetime' ? "yyyy-MM-dd HH:mm" : 'yyyy-MM-dd',
  79. applyButtonText:'적용',
  80. cancelButtonText:'취소'
  81. });
  82. $(this).find('input').attr('name', name);
  83. });
  84. });
  85. </script>