텍스트필드추가질문입니다. 정보
텍스트필드추가질문입니다.
본문
view_comment.skin.php 파일에서
댓글윗부분에 주문하기필드를추가했습니다.
텍스트필드를 6개정도만들어야하는데
한개를만들어놓구 아래 파일첨부할때 더하기버튼누르면 추가되는형식으로
텍스트필드를추가해야하는데 어떤식으로 해야하는지 모르겠습니다 ^^
댓글윗부분에 주문하기필드를추가했습니다.
텍스트필드를 6개정도만들어야하는데
한개를만들어놓구 아래 파일첨부할때 더하기버튼누르면 추가되는형식으로
텍스트필드를추가해야하는데 어떤식으로 해야하는지 모르겠습니다 ^^
댓글 전체

간단히 하실려면, 코멘트 입력부분에서
<? for ($i=1; $i<=6; $i++) { ?>
<tr>
<td colspan="2" style="padding:5px 0 0 5px;">
<span style="cursor: pointer;" onclick="textarea_decrease('wr_<?=$i?>', 1);"><img src="<?=$board_skin_path?>/img/co_btn_up.gif" border='0'></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_<?=$i?>', 3);"><img src="<?=$board_skin_path?>/img/co_btn_init.gif" border='0'></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_<?=$i?>', 1);"><img src="<?=$board_skin_path?>/img/co_btn_down.gif" border='0'></span>
<? if ($comment_min || $comment_max) { ?><span id=char_count></span>글자<?}?>
</td>
</tr>
<tr>
<td colspan="2" width="95%">
<textarea id="wr_<?=$i?>" name="wr_<?=$i?>" rows=3 itemname="옵션<?=$i?>"
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_<?=$i?>', 'char_count');"<?}?> style='width:100%; word-break:break-all;' class=tx></textarea>
<? if ($comment_min || $comment_max) { ?><script type="text/javascript"> check_byte('wr_<?=$i?>', 'char_count'); </script><?}?>
</td>
</tr>
<? } ?>
베이직 스킨 기준으로, 적절한 위치에 삽입하셔서 폼값 전송시 같이 넘어가게 하시면 됩니다.
<? for ($i=1; $i<=6; $i++) { ?>
<tr>
<td colspan="2" style="padding:5px 0 0 5px;">
<span style="cursor: pointer;" onclick="textarea_decrease('wr_<?=$i?>', 1);"><img src="<?=$board_skin_path?>/img/co_btn_up.gif" border='0'></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_<?=$i?>', 3);"><img src="<?=$board_skin_path?>/img/co_btn_init.gif" border='0'></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_<?=$i?>', 1);"><img src="<?=$board_skin_path?>/img/co_btn_down.gif" border='0'></span>
<? if ($comment_min || $comment_max) { ?><span id=char_count></span>글자<?}?>
</td>
</tr>
<tr>
<td colspan="2" width="95%">
<textarea id="wr_<?=$i?>" name="wr_<?=$i?>" rows=3 itemname="옵션<?=$i?>"
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_<?=$i?>', 'char_count');"<?}?> style='width:100%; word-break:break-all;' class=tx></textarea>
<? if ($comment_min || $comment_max) { ?><script type="text/javascript"> check_byte('wr_<?=$i?>', 'char_count'); </script><?}?>
</td>
</tr>
<? } ?>
베이직 스킨 기준으로, 적절한 위치에 삽입하셔서 폼값 전송시 같이 넘어가게 하시면 됩니다.

카드 님 ~!! 짝짝~~~ 너무감사드려요~~감사합니다!!!