야한남자

텍스트필드추가질문입니다.

· 2010-11-04 (목) 12:51:21 · 1622 · 2
view_comment.skin.php 파일에서

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

댓글 2개

2010-11-04 (목) 14:52:30
간단히 하실려면, 코멘트 입력부분에서

<? 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>
<? } ?>

베이직 스킨 기준으로, 적절한 위치에 삽입하셔서 폼값 전송시 같이 넘어가게 하시면 됩니다.
카드 님 ~!! 짝짝~~~ 너무감사드려요~~감사합니다!!!
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-11-05 조회 1,771
10-11-05 조회 869
10-11-05 조회 1,870
10-11-04 조회 1,101
10-11-04 조회 1,746
10-11-04 조회 1,567
10-11-04 조회 1,413
10-11-04 조회 1,981
10-11-04 조회 2,580
10-11-04 조회 1,679
10-11-04 조회 1,805
10-11-04 조회 1,698
10-11-04 조회 1,524
10-11-04 조회 1,194
10-11-04 조회 1,655
10-11-04 조회 2,054
10-11-04 조회 1,741
10-11-04 조회 1,120
10-11-04 조회 1,623
10-11-04 조회 973