게시물내용 정보
게시물내용본문
이런식으로요 게시판에서 여러개에 내용을 추가시킬수잇는데요 people기사같은경우는 wr_1에 들어갑니다 근데 저렇게해서 쓰기를한후 수정을 눌르면 메인기사는 저렇게 내용이남아잇는데 people기사같은경우는 내용이 남아잇질안네요 어캐해야하나요
소스는
write.skin.php :
<tr>
<td style='padding-left:20px;'>· 메인기사</td>
<td style='padding:5 0 5 0;'>
<? if (!$is_dhtml_editor) { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<? } ?>
<textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=6 itemname="메인기사" required
<? if ($is_dhtml_editor) echo ' geditor '; ?>
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
</td>
</tr>
<tr>
<td style='padding-left:20px;'>· people기사</td>
<td style='padding:5 0 5 0;'>
<? if (!$is_dhtml_editor) { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_1', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_1', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_1', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count2></span>글자<?}?></td>
</tr>
</table>
<? } ?>
<textarea id="wr_1" name="wr_1" class=tx style='width:100%; word-break:break-all;' rows=6 itemname="people기사" required
<? if ($is_dhtml_editor) echo ' geditor '; ?>
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_1', 'char_count');"<?}?>><?=$wr_1?>></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_1', 'char_count'); </script><?}?>
</td>
</tr>
그냥이렇게 기본스킨에서 폼만 추가시켯어요
댓글 전체
대신
<?=$write[wr_1]?> 로 하셔야 합니다.
==> <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_1', 'char_count');"<?}?><?=$write[wr_1]?></textarea>
이게 안된다고요??
참고로 wr_1값은 필드도 변경해야 할듯.. 255자만 들어갈수가 있죠
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_1', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_1', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_1', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span>
이건 모에 사용하시는거죠??