본문
1. write_skin.php 에 변경
<? // 심플한 글쓰기 화면 쓰기 본문 넓게 : 게시판설정에 기능 추가 2009-09-25 김성대 ?>
<tr>
<? if (!$board[bo_use_simple_write]) { ?>
<td class=mw_basic_write_title>· 제목</td>
<td><input style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>" class=mw_basic_text></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } else { ?>
<td colspan=2><input style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>" class=mw_basic_text></td></tr>
<? } ?>
<tr>
<? if (!$board[bo_use_simple_write]) { ?>
<td class=mw_basic_write_title>· 내용</td>
<td style='padding:5 0 5 0;'>
<? } else { ?>
<td colspan=2 style='padding:5 0 5 0;'>
<? } ?>
<? if (!$is_dhtml_editor) { ?>
<table width=100%>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_init.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
2. admin 에 board_form.php 변경
<tr class='ht'>
<td><input type=checkbox name=chk_use_simple_write value=1></td>
<td>심플한 쓰기 (제목,내용제거)</td>
<td><input type=checkbox name=bo_use_simple_write value='1' <?=$board[bo_use_simple_write]?'checked':'';?>>사용</td>
</tr>
3. board_form_update.php 추가
bo_use_simple_write = '$_POST[bo_use_simple_write]',
4. g4_board.frm 테이블 필드추가
ALTER TABLE `g4_board` `bo_use_simple_write` TINYINT( 4 ) NOT NULL
댓글목록
등록된 댓글이 없습니다.