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.

67 lines
2.8 KiB

7 years ago
  1. <?=form_open_multipart(NULL ,array('class'=>'form-flex'))?>
  2. <input type="hidden" name="bng_key" value="<?=$bng_key?>">
  3. <input type="hidden" name="ban_idx" value="<?=element('ban_idx', $view)?>">
  4. <div class="form-group">
  5. <label class="control-label">배너 이름</label>
  6. <div class="controls">
  7. <input class="form-control" name="ban_name" value="<?=element('ban_name', $view)?>" required maxlength="50">
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="control-label">배너 표시/숨김</label>
  12. <div class="controls">
  13. <label class="w-radio"><input type="radio" name="ban_status" value="Y" <?=element('ban_status',$view,'Y')=='Y'?'checked':''?>><span>표시</span></label>
  14. <label class="w-radio"><input type="radio" name="ban_status" value="H" <?=element('ban_status',$view,'Y')=='H'?'checked':''?>><span>숨김</span></label>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="control-label">배너 파일</label>
  19. <div class="controls">
  20. <input type="file" class="form-control" name="userfile">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="control-label">클릭시 이동</label>
  25. <div class="controls">
  26. <label class="w-radio"><input type="radio" name="ban_link_use" value="Y" <?=element('ban_link_use',$view,'N')=='Y'?'checked':''?>><span>사용</span></label>
  27. <label class="w-radio"><input type="radio" name="ban_link_use" value="N" <?=element('ban_link_use',$view,'N')=='N'?'checked':''?>><span>미사용</span></label>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label">이동 URL</label>
  32. <div class="controls">
  33. <input class="form-control" name="ban_link_url" value="<?=element('ban_link_url', $view)?>">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label">이동 방식</label>
  38. <div class="controls">
  39. <label class="w-radio"><input type="radio" name="ban_link_type" value="Y" <?=element('ban_link_type',$view,'N')=='Y'?'checked':''?>><span>새 탭으로</span></label>
  40. <label class="w-radio"><input type="radio" name="ban_link_type" value="N" <?=element('ban_link_type',$view,'N')=='N'?'checked':''?>><span>현재창에서</span></label>
  41. </div>
  42. </div>
  43. <div class="text-center MT10">
  44. <button class="btn btn-primary">저장하기</button>
  45. </div>
  46. <?=form_close()?>
  47. <script>
  48. $(function(){
  49. $('input[name="ban_link_use"]').change(function(){
  50. if( $('input[name="ban_link_use"]:checked').val() == 'Y' ) {
  51. $('input[name="ban_link_url"]').removeAttr('disabled');
  52. $('input[name="ban_link_type"]').removeAttr('disabled');
  53. }
  54. else {
  55. $('input[name="ban_link_url"]').attr('disabled','disabled');
  56. $('input[name="ban_link_type"]').attr('disabled','disabled');
  57. }
  58. }).change();
  59. });
  60. </script>