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.

560 lines
30 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title"><?=empty($brd_key)?'게시판 신규 등록': "[{$view['brd_title']}] 게시판 정보 수정";?></h1>
  3. </div>
  4. <?=validation_errors('<p class="alert alert-danger">')?>
  5. <?=form_open(NULL, array("autocomplete"=>"off","data-form"=>"board-form",'class'=>'form-flex'))?>
  6. <div class="row">
  7. <div class="col-sm-3">
  8. <ul class="nav nav-cards">
  9. <li role="presentation"><a class="card selected"><?=empty($brd_key)?'게시판 신규 등록': "게시판 정보 수정";?></a></li>
  10. <?php if($brd_key) : ?>
  11. <li role="presentation"><a class="card" href="<?=base_url('admin/board/category/'.$brd_key)?>">카테고리 설정</a></li>
  12. <?php endif;?>
  13. </ul>
  14. </div>
  15. <div class="col-sm-9">
  16. <div class="panel panel-dark">
  17. <div class="panel-heading">
  18. <h4 class="panel-title">기본 설정</h4>
  19. </div>
  20. <div class="panel-body">
  21. <div class="form-group">
  22. <label class="control-label">게시판 고유 </label>
  23. <div class="controls">
  24. <input class="form-control form-control-inline" maxlength="20" name="brd_key" value="<?=element('brd_key', $view)?>" <?=$brd_key?'readonly':'required'?>>
  25. <?php if (empty($brd_key)) : ?>
  26. <button type="button" class="btn btn-default ML10" id="btn-check-brd-key"><i class="far fa-check"></i> 중복 확인</button>
  27. <?php endif;?>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label">게시판 이름</label>
  32. <div class="controls">
  33. <input class="form-control" name="brd_title" value="<?=element('brd_title', $view)?>" required>
  34. </div>
  35. <label class="control-label">게시판 이름 (모바일)</label>
  36. <div class="controls">
  37. <input class="form-control" name="brd_title_m" value="<?=element('brd_title_m', $view)?>">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label">게시판 키워드</label>
  42. <div class="controls">
  43. <input class="form-control" name="brd_keywords" value="<?=element('brd_keywords', $view)?>">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label">요약 설명</label>
  48. <div class="controls">
  49. <textarea class="form-control" name="brd_description" rows="4"><?=element('brd_description', $view)?></textarea>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label">검색 설정</label>
  54. <div class="controls">
  55. <label class="w-check">
  56. <input type="checkbox" name="brd_search" value="Y" <?=element('brd_search', $view, 'Y')=='Y'?'checked':''?>><span>전체 검색시 게시판의 글 노출</span>
  57. </label>
  58. </div>
  59. <label class="control-label">노출 순서</label>
  60. <div class="controls">
  61. <input type="number" class="form-control" name="brd_sort" value="<?=element('brd_sort', $view, 0)?>">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label">카테고리 기능 사용</label>
  66. <div class="controls">
  67. <label class="w-check">
  68. <input type="checkbox" name="brd_use_category" value="Y" <?=element('brd_use_category', $view)=='Y'?'checked':''?>><span>카테고리 기능 사용</span>
  69. </label>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="panel panel-dark">
  75. <div class="panel-heading">
  76. <h4 class="panel-title">게시판 스킨 설정</h4>
  77. </div>
  78. <div class="panel-body">
  79. <div class="form-group">
  80. <label class="control-label">목록 스킨</label>
  81. <div class="controls">
  82. <select class="form-control" name="brd_skin_l">
  83. <?php foreach($skin_list_l as $skin) : ?>
  84. <option value="<?=$skin?>" <?=$skin==element('brd_skin_l',$view)?'selected':''?>><?=$skin?></option>
  85. <?php endforeach;?>
  86. </select>
  87. </div>
  88. <label class="control-label">목록 스킨 (모바일)</label>
  89. <div class="controls">
  90. <select class="form-control" name="brd_skin_l_m">
  91. <?php foreach($skin_list_l as $skin) : ?>
  92. <option value="<?=$skin?>" <?=$skin==element('brd_skin_l_m',$view)?'selected':''?>><?=$skin?></option>
  93. <?php endforeach;?>
  94. </select>
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="control-label">글쓰기 스킨</label>
  99. <div class="controls">
  100. <select class="form-control" name="brd_skin_w">
  101. <?php foreach($skin_list_w as $skin) : ?>
  102. <option value="<?=$skin?>" <?=$skin==element('brd_skin_w',$view)?'selected':''?>><?=$skin?></option>
  103. <?php endforeach;?>
  104. </select>
  105. </div>
  106. <label class="control-label">글쓰기 스킨 (모바일)</label>
  107. <div class="controls">
  108. <select class="form-control" name="brd_skin_w_m">
  109. <?php foreach($skin_list_w as $skin) : ?>
  110. <option value="<?=$skin?>" <?=$skin==element('brd_skin_w_m',$view)?'selected':''?>><?=$skin?></option>
  111. <?php endforeach;?>
  112. </select>
  113. </div>
  114. </div>
  115. <div class="form-group">
  116. <label class="control-label"> 보기 스킨</label>
  117. <div class="controls">
  118. <select class="form-control" name="brd_skin_v">
  119. <?php foreach($skin_list_v as $skin) : ?>
  120. <option value="<?=$skin?>" <?=$skin==element('brd_skin_v',$view)?'selected':''?>><?=$skin?></option>
  121. <?php endforeach;?>
  122. </select>
  123. </div>
  124. <label class="control-label">글쓰기 스킨 (모바일)</label>
  125. <div class="controls">
  126. <select class="form-control" name="brd_skin_v_m">
  127. <?php foreach($skin_list_v as $skin) : ?>
  128. <option value="<?=$skin?>" <?=$skin==element('brd_skin_v_m',$view)?'selected':''?>><?=$skin?></option>
  129. <?php endforeach;?>
  130. </select>
  131. </div>
  132. </div>
  133. <div class="form-group">
  134. <label class="control-label">댓글 스킨</label>
  135. <div class="controls">
  136. <select class="form-control" name="brd_skin_c">
  137. <?php foreach($skin_list_c as $skin) : ?>
  138. <option value="<?=$skin?>" <?=$skin==element('brd_skin_c',$view)?'selected':''?>><?=$skin?></option>
  139. <?php endforeach;?>
  140. </select>
  141. </div>
  142. <label class="control-label">댓글 스킨 (모바일)</label>
  143. <div class="controls">
  144. <select class="form-control" name="brd_skin_c_m">
  145. <?php foreach($skin_list_c as $skin) : ?>
  146. <option value="<?=$skin?>" <?=$skin==element('brd_skin_c_m',$view)?'selected':''?>><?=$skin?></option>
  147. <?php endforeach;?>
  148. </select>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="panel panel-dark">
  154. <div class="panel-heading">
  155. <h4 class="panel-title">게시판 권한 설정</h4>
  156. </div>
  157. <div class="panel-body">
  158. <p class="alert alert-info"><i class="far fa-info-circle"></i> 레벨0은 비회원을 의미합니다.</p>
  159. <div class="form-group">
  160. <label class="control-label">목록 보기</label>
  161. <div class="controls">
  162. <select class="form-control" name="brd_lv_list">
  163. <?php for($i=0; $i<=10; $i++):?>
  164. <option value="<?=$i?>" <?=$i==element('brd_lv_list', $view, 0)?'selected':''?>><?=$i?></option>
  165. <?php endfor;?>
  166. </select>
  167. </div>
  168. <label class="control-label"> 내용 보기</label>
  169. <div class="controls">
  170. <select class="form-control" name="brd_lv_read">
  171. <?php for($i=0; $i<=10; $i++):?>
  172. <option value="<?=$i?>" <?=$i==element('brd_lv_read', $view, 0)?'selected':''?>><?=$i?></option>
  173. <?php endfor;?>
  174. </select>
  175. </div>
  176. </div>
  177. <div class="form-group">
  178. <label class="control-label"> 작성하기</label>
  179. <div class="controls">
  180. <select class="form-control" name="brd_lv_write">
  181. <?php for($i=0; $i<=10; $i++):?>
  182. <option value="<?=$i?>" <?=$i==element('brd_lv_write', $view, 0)?'selected':''?>><?=$i?></option>
  183. <?php endfor;?>
  184. </select>
  185. </div>
  186. <label class="control-label">답변글 작성</label>
  187. <div class="controls">
  188. <select class="form-control" name="brd_lv_reply">
  189. <?php for($i=0; $i<=10; $i++):?>
  190. <option value="<?=$i?>" <?=$i==element('brd_lv_reply', $view, 0)?'selected':''?>><?=$i?></option>
  191. <?php endfor;?>
  192. </select>
  193. </div>
  194. </div>
  195. <div class="form-group">
  196. <label class="control-label">댓글 작성</label>
  197. <div class="controls">
  198. <select class="form-control" name="brd_lv_comment">
  199. <?php for($i=0; $i<=10; $i++):?>
  200. <option value="<?=$i?>" <?=$i==element('brd_lv_comment', $view, 0)?'selected':''?>><?=$i?></option>
  201. <?php endfor;?>
  202. </select>
  203. </div>
  204. <label class="control-label">첨부파일 다운로드</label>
  205. <div class="controls">
  206. <select class="form-control" name="brd_lv_download">
  207. <?php for($i=0; $i<=10; $i++):?>
  208. <option value="<?=$i?>" <?=$i==element('brd_lv_download', $view, 0)?'selected':''?>><?=$i?></option>
  209. <?php endfor;?>
  210. </select>
  211. </div>
  212. </div>
  213. <div class="form-group">
  214. <label class="control-label">첨부파일 업로드</label>
  215. <div class="controls">
  216. <select class="form-control" name="brd_lv_upload">
  217. <?php for($i=0; $i<=10; $i++):?>
  218. <option value="<?=$i?>" <?=$i==element('brd_lv_upload', $view, 0)?'selected':''?>><?=$i?></option>
  219. <?php endfor;?>
  220. </select>
  221. </div>
  222. <label class="control-label"></label>
  223. <div class="controls"></div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="panel panel-dark">
  228. <div class="panel-heading">
  229. <h4 class="panel-title"> 목록 설정</h4>
  230. </div>
  231. <div class="panel-body">
  232. <p class="alert alert-info"><i class="far fa-info-circle"></i> 갤러리 형식의 게시판에서는 '목록에서 썸내일 불러오기' / '목록에서 첨부파일 불러오기' 활성화 하세요.</p>
  233. <div class="form-group">
  234. <label class="control-label">썸네일 생성하기</label>
  235. <div class="controls">
  236. <select class="form-control" name="brd_use_list_thumbnail">
  237. <option value="Y" <?=element('brd_use_list_thumbnail',$view,'N')=='Y'?'selected':''?>>생성하기</option>
  238. <option value="N" <?=element('brd_use_list_thumbnail',$view,'N')=='N'?'selected':''?>>생성하지 않기</option>
  239. </select>
  240. </div>
  241. <label class="control-label">썸네일 너비</label>
  242. <div class="controls">
  243. <input type="number" class="form-control" name="brd_thumb_width" value="<?=element('brd_thumb_width',$view,300)?>" min="0">
  244. </div>
  245. <label class="control-label">썸네일 높이</label>
  246. <div class="controls">
  247. <input type="number" class="form-control" name="brd_thumb_height" value="<?=element('brd_thumb_height',$view,300)?>" min="0">
  248. </div>
  249. </div>
  250. <div class="form-group">
  251. <label class="control-label">첨부파일 목록 불러오기</label>
  252. <div class="controls">
  253. <select class="form-control form-control-inline" name="brd_use_list_file">
  254. <option value="Y" <?=element('brd_use_list_file',$view,'N')=='Y'?'selected':''?>>불러오기</option>
  255. <option value="N" <?=element('brd_use_list_file',$view,'N')=='N'?'selected':''?>>불러오지 않기</option>
  256. </select>
  257. </div>
  258. </div>
  259. <div class="form-group">
  260. <label class="control-label">NEW 표시 시간</label>
  261. <div class="controls">
  262. <input type="number" class="form-control form-control-inline" name="brd_time_new" value="<?=element('brd_time_new', $view, 24)?>" min="0">
  263. </div>
  264. </div>
  265. <div class="form-group">
  266. <label class="control-label">HIT 표시 조회수</label>
  267. <div class="controls">
  268. <input type="number" class="form-control form-control-inline" name="brd_hit_count" value="<?=element('brd_hit_count', $view, 500)?>" min="0">
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="panel panel-dark">
  274. <div class="panel-heading">
  275. <h4 class="panel-title"> 내용보기 설정</h4>
  276. </div>
  277. <div class="panel-body">
  278. <div class="form-group">
  279. <label class="control-label">내용보기 에서 목록</label>
  280. <div class="controls">
  281. <select class="form-control form-control-inline" name="brd_use_view_list">
  282. <option value="Y" <?=element('brd_use_view_list',$view,'N')=='Y'?'selected':''?>>불러오기</option>
  283. <option value="N" <?=element('brd_use_view_list',$view,'N')=='N'?'selected':''?>>불러오지 않기</option>
  284. </select>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. <div class="panel panel-dark">
  290. <div class="panel-heading">
  291. <h4 class="panel-title">페이지네이션 기능</h4>
  292. </div>
  293. <div class="panel-body">
  294. <div class="form-group">
  295. <label class="control-label">기능 사용여부</label>
  296. <div class="controls">
  297. <select class="form-control form-control-inline" name="brd_page_limit">
  298. <option value="Y" <?=element('brd_page_limit',$view,'Y')=='Y'?'selected':''?>>사용</option>
  299. <option value="N" <?=element('brd_page_limit',$view,'Y')=='N'?'selected':''?>>미사용</option>
  300. </select>
  301. </div>
  302. </div>
  303. <div class="form-group">
  304. <label class="control-label">페이지 </label>
  305. <div class="controls">
  306. <input type="number" class="form-control form-control-inline" name="brd_page_rows" value="<?=element('brd_page_rows', $view, 15)?>">
  307. </div>
  308. <label class="control-label">페이지 (모바일)</label>
  309. <div class="controls">
  310. <input type="number" class="form-control form-control-inline" name="brd_page_rows_m" value="<?=element('brd_page_rows_m', $view, 10)?>">
  311. </div>
  312. </div>
  313. <div class="form-group">
  314. <label class="control-label">표시할 페이지 </label>
  315. <div class="controls">
  316. <input type="number" class="form-control form-control-inline" name="brd_fixed_num" value="<?=element('brd_fixed_num', $view, 10)?>">
  317. </div>
  318. <label class="control-label">표시할 페이지 (모바일)</label>
  319. <div class="controls">
  320. <input type="number" class="form-control form-control-inline" name="brd_fixed_num_m" value="<?=element('brd_fixed_num_m', $view, 5)?>">
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. <div class="panel panel-dark">
  326. <div class="panel-heading">
  327. <h4 class="panel-title">게시판 기능 설정</h4>
  328. </div>
  329. <div class="panel-body">
  330. <div class="form-group">
  331. <label class="control-label">시간 표시 형식</label>
  332. <div class="controls">
  333. <select class="form-control form-control-inline" name="brd_display_time">
  334. <option value="sns" <?=element('brd_use_anonymous',$view)=='sns'?'selected':''?>>SNS형식</option>
  335. <option value="basic" <?=element('brd_use_anonymous',$view)=='basic'?'selected':''?>>기본형</option>
  336. <option value="full" <?=element('brd_use_anonymous',$view)=='full'?'selected':''?>>전체표시</option>
  337. </select>
  338. </div>
  339. </div>
  340. <div class="form-group">
  341. <label class="control-label">익명 기능 사용</label>
  342. <div class="controls">
  343. <select class="form-control form-control-inline" name="brd_use_anonymous">
  344. <option value="Y" <?=element('brd_use_anonymous',$view)=='Y'?'selected':''?>>사용</option>
  345. <option value="N" <?=element('brd_use_anonymous',$view)=='N'?'selected':''?>>미사용</option>
  346. <option value="A" <?=element('brd_use_anonymous',$view)=='A'?'selected':''?>>항상 사용</option>
  347. </select>
  348. </div>
  349. <label class="control-label">비밀글 기능 사용</label>
  350. <div class="controls">
  351. <select class="form-control form-control-inline" name="brd_use_secret">
  352. <option value="Y" <?=element('brd_use_secret',$view)=='Y'?'selected':''?>>사용</option>
  353. <option value="N" <?=element('brd_use_secret',$view)=='N'?'selected':''?>>미사용</option>
  354. <option value="A" <?=element('brd_use_secret',$view)=='A'?'selected':''?>>항상 사용</option>
  355. </select>
  356. </div>
  357. <label class="control-label">답글 기능 사용</label>
  358. <div class="controls">
  359. <select class="form-control form-control-inline" name="brd_use_reply">
  360. <option value="Y" <?=element('brd_use_reply',$view)=='Y'?'selected':''?>>사용</option>
  361. <option value="N" <?=element('brd_use_reply',$view)=='N'?'selected':''?>>미사용</option>
  362. </select>
  363. </div>
  364. </div>
  365. <div class="form-group">
  366. <label class="control-label">댓글 기능 사용</label>
  367. <div class="controls">
  368. <select class="form-control form-control-inline" name="brd_use_comment">
  369. <option value="Y" <?=element('brd_use_comment',$view)=='Y'?'selected':''?>>사용</option>
  370. <option value="N" <?=element('brd_use_comment',$view)=='N'?'selected':''?>>미사용</option>
  371. </select>
  372. </div>
  373. <label class="control-label">위지윅 에디터 사용</label>
  374. <div class="controls">
  375. <select class="form-control form-control-inline" name="brd_use_wysiwyg">
  376. <option value="Y" <?=element('brd_use_wysiwyg',$view)=='Y'?'selected':''?>>사용</option>
  377. <option value="N" <?=element('brd_use_wysiwyg',$view)=='N'?'selected':''?>>미사용</option>
  378. </select>
  379. </div>
  380. <label class="control-label">파일 첨부 사용</label>
  381. <div class="controls">
  382. <select class="form-control form-control-inline" name="brd_use_attach">
  383. <option value="Y" <?=element('brd_use_attach',$view)=='Y'?'selected':''?>>사용</option>
  384. <option value="N" <?=element('brd_use_attach',$view)=='N'?'selected':''?>>미사용</option>
  385. </select>
  386. </div>
  387. </div>
  388. <div class="form-group">
  389. <label class="control-label">관리자 승인 글만 표시</label>
  390. <div class="controls">
  391. <select class="form-control form-control-inline" name="brd_use_assign">
  392. <option value="Y" <?=element('brd_use_assign',$view,'N')=='Y'?'selected':''?>>사용</option>
  393. <option value="N" <?=element('brd_use_assign',$view,'N')=='N'?'selected':''?>>미사용</option>
  394. </select>
  395. <p class="help-block"><i class="fal fa-exclamation-circle"></i> 승인된 글만 표시하는 기능을 사용하여, 사이트에 불리한 내용을 숨기거나 하는경우 소비자보호센터의 제재를 받을 있습니다.</p>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. <div class="panel panel-dark">
  401. <div class="panel-heading">
  402. <h4 class="panel-title"><?=$this->site->config('point_name')?> 설정</h4>
  403. </div>
  404. <div class="panel-body">
  405. <?php if($this->site->config('point_use') == 'Y') :?>
  406. <p class="alert alert-info"><i class="far fa-info-circle"></i> <?=$this->site->config('point_name')?> 지급은 +값, <?=$this->site->config('point_name')?> 차감은 -값을 입력합니다.<br><i class="far fa-info-circle"></i> 포인트 차감이 설정된 경우 강제로 회원전용 기능으로 전환합니다.</p>
  407. <?php else :?>
  408. <p class="alert alert-info"><i class="far fa-info-circle"></i> <?=$this->site->config('point_name')?> 기능을 사용 하는경우만 아래 옵션이 활성화 됩니다.</p>
  409. <?php endif;?>
  410. <div class="form-group">
  411. <label class="control-label">글쓰기</label>
  412. <div class="controls">
  413. <input type="number" class="form-control" name="brd_point_write" value="<?=element('brd_point_write', $view, 0)?>" <?=$this->site->config('point_use') != 'Y'?'readonly':''?>>
  414. </div>
  415. <label class="control-label">답글쓰기</label>
  416. <div class="controls">
  417. <input type="number" class="form-control" name="brd_point_reply" value="<?=element('brd_point_reply', $view, 0)?>" <?=$this->site->config('point_use') != 'Y'?'readonly':''?>>
  418. </div>
  419. <label class="control-label">댓글쓰기</label>
  420. <div class="controls">
  421. <input type="number" class="form-control" name="brd_point_comment" value="<?=element('brd_point_comment', $view, 0)?>" <?=$this->site->config('point_use') != 'Y'?'readonly':''?>>
  422. </div>
  423. </div>
  424. <div class="form-group">
  425. <label class="control-label">내용 보기</label>
  426. <div class="controls">
  427. <input type="number" class="form-control" name="brd_point_read" value="<?=element('brd_point_read', $view, 0)?>" <?=$this->site->config('point_use') != 'Y'?'readonly':''?>>
  428. </div>
  429. <label class="control-label">첨부파일 다운</label>
  430. <div class="controls">
  431. <input type="number" class="form-control" name="brd_point_download" value="<?=element('brd_point_download', $view, 0)?>" <?=$this->site->config('point_use') != 'Y'?'readonly':''?>>
  432. </div>
  433. <label class="control-label"></label>
  434. <div class="controls"></div>
  435. </div>
  436. </div>
  437. </div>
  438. <div class="panel panel-dark">
  439. <div class="panel-heading">
  440. <h4 class="panel-title">검색엔진 최적화 설정</h4>
  441. </div>
  442. <div class="panel-body">
  443. <div class="form-group">
  444. <label class="control-label">통합 RSS</label>
  445. <div class="controls">
  446. <select class="form-control form-control-inline" name="brd_use_total_rss">
  447. <option value="Y" <?=element('brd_use_total_rss',$view)=='Y'?'selected':''?>>포함</option>
  448. <option value="N" <?=element('brd_use_total_rss',$view)=='N'?'selected':''?>>포함하지 않기</option>
  449. </select>
  450. </div>
  451. <label class="control-label">게시판 RSS</label>
  452. <div class="controls">
  453. <select class="form-control form-control-inline" name="brd_use_rss">
  454. <option value="Y" <?=element('brd_use_rss',$view)=='Y'?'selected':''?>>사용</option>
  455. <option value="N" <?=element('brd_use_rss',$view)=='N'?'selected':''?>>미사용</option>
  456. </select>
  457. </div>
  458. <label class="control-label">사이트맵 노출</label>
  459. <div class="controls">
  460. <select class="form-control form-control-inline" name="brd_use_sitemap">
  461. <option value="Y" <?=element('brd_use_sitemap',$view)=='Y'?'selected':''?>>노출</option>
  462. <option value="N" <?=element('brd_use_sitemap',$view)=='N'?'selected':''?>>감추기</option>
  463. </select>
  464. </div>
  465. </div>
  466. <div class="form-group">
  467. <label class="control-label">네이버 신디케이션 연동</label>
  468. <div class="controls">
  469. <select class="form-control form-control-inline" name="brd_use_naver_syndi">
  470. <option value="Y" <?=element('brd_use_naver_syndi', $view)=='Y'?'selected':''?>>사용</option>
  471. <option value="N" <?=element('brd_use_naver_syndi', $view)=='N'?'selected':''?>>사용</option>
  472. </select>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. <div class="H10"></div>
  478. <div class="text-center">
  479. <button class="btn btn-primary btn-lg">저장하기</button>
  480. </div>
  481. </div>
  482. </div>
  483. <?=form_close()?>
  484. <div class="H30"></div>
  485. <script>
  486. $(document).ready(function(){
  487. $("select[name='brd_page_limit']").change(function(){
  488. if( $(this).find('option:selected').val() == 'Y' )
  489. {
  490. $("input[name='brd_page_rows'], input[name='brd_page_rows_m'], input[name='brd_fixed_num'], input[name='brd_fixed_num_m']").removeAttr('readonly');
  491. }
  492. else {
  493. $("input[name='brd_page_rows'], input[name='brd_page_rows_m'], input[name='brd_fixed_num'], input[name='brd_fixed_num_m']").attr('readonly', 'readonly');
  494. }
  495. }).change();
  496. $("select[name='brd_use_list_thumbnail']").change(function(){
  497. if( $(this).find('option:selected').val() == 'Y' )
  498. {
  499. $("input[name='brd_thumb_width'], input[name='brd_thumb_height']").removeAttr('readonly');
  500. }
  501. else {
  502. $("input[name='brd_thumb_width'], input[name='brd_thumb_height']").attr('readonly', 'readonly');
  503. }
  504. }).change();
  505. $("#btn-check-brd-key").click(brd_key_check);
  506. });
  507. var brd_key_check = function(){
  508. var $el = $("input[name='brd_key']");
  509. var value = $el.val().trim();
  510. var check = APP.BOARD.keyCheck(value);
  511. if( check === true )
  512. {
  513. alert('사용가능한 키 입니다.');
  514. }
  515. else {
  516. alert(check);
  517. $el.focus();
  518. }
  519. }
  520. </script>