폼(?) 늘이기 어떻게 해야하나요.ㅠ > 그누4 질문답변

그누4 질문답변

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

폼(?) 늘이기 어떻게 해야하나요.ㅠ 정보

폼(?) 늘이기 어떻게 해야하나요.ㅠ

본문

첨부의 이미지에 글등록하기 백그라운드 길이랑 밑에 상품정보 작성자정보 배경을 같은 사이즈로 늘리고 싶은데 어떻게 해야하나요...
초보같은 질문이라 죄송합니다.
소스 첨부합니다.

<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;"><div style="font-weight:bold; font-size:12px; margin:7px 0 0 10px;"><center>:: 글 등록하기 ::</center></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=90>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td>
</tr>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
    $option = "";
    if ($is_notice) {
        $option .= "<input type=checkbox name=notice value='1' $notice_checked>공지&nbsp;";
    }

    if ($is_html) {
        if ($is_dhtml_editor) {
            $option_hidden .= "<input type=hidden value='html1' name='html'>";
        } else {
            $option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span>&nbsp;";
        }
    }

    if ($is_secret) {
        if ($is_admin || $is_secret==1) {
            $option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span>&nbsp;";
        } else {
            $option_hidden .= "<input type=hidden value='secret' name='secret'>";
        }
    }
   
    if ($is_mail) {
        $option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기&nbsp;";
    }
}

echo $option_hidden;
if ($option) {
?>
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="15%" bgcolor="#F7F7F7"  align="center" >옵션</td>
    <td bgcolor="white"><?=$option?>
    </td>
  </tr>
</table>
</td>
                        <td></td>
 </tr>
<? } ?>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" >
    <tr>
  <td height="40" valign="bottom" bgcolor="white">
  <img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>작성자정보</b>
  </td>
  </tr>
</table>
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<? if ($is_name) { ?>
<tr><td bgcolor="#F7F7F7" align="center" width="15%">작성자(상호)</td>
      <td colspan="3" bgcolor="white">
      <input class='field' maxlength=20 size=15 name=wr_name itemname="작성자(상호)" required value="<?=$name?>">
    </td></tr>
<? } ?>
<? if ($is_password) { ?>
<tr><td bgcolor="#F7F7F7" width="15%" align="center">비밀번호</td>
    <td colspan="3" bgcolor="white">
<input class='field' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<? } ?>
<?// if ($is_email) { ?>
<tr><td bgcolor="#F7F7F7" width="15%" align="center">이메일</td>
    <td colspan="3" bgcolor="white">
<input class='field' maxlength=60 size="28" name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
<?// } ?>
<tr><td bgcolor="#F7F7F7" width="15%" align="center">전화번호</td>
    <td bgcolor="white" width="35%">
    <input name='ext2_00' class='field' value='<?=$ext2_00?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' required itemname='전화번호' class=input>  -
    <input name='ext2_01' class='field' value='<?=$ext2_01?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' required itemname='전화 두번째자리' class=input>  -
    <input name='ext2_02' class='field' value='<?=$ext2_02?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' required itemname='전화 세번째자리' class=input></td>
    <td bgcolor="#F7F7F7" width="15%" align="center">휴대폰</td>
    <td bgcolor="white" width="35%">
<input name='ext2_03' class='field' value='<?=$ext2_03?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' required itemname='휴대번호' class=input>  -
    <input name='ext2_04' class='field' value='<?=$ext2_04?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);'
required itemname='번호 두번째자리' class=input>  -
    <input name='ext2_05' class='field' value='<?=$ext2_05?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' required itemname='번호 세번째자리'></td>
    </tr>
    </table>
<table width="100%" cellpadding="0" cellspacing="0" >
 <tr>
    <td height="40" valign="bottom" bgcolor="white">
<img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>상품정보</b></td>
 </tr>
</table>
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
  <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">여행소개</td>
    <td colspan="3" bgcolor="white">
    <input class='field' style="width:99%;" name=wr_subject  id="wr_subject" itemname="여행소개" required value="<?=$subject?>">
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%"  align="center">여행구분</td>
    <td bgcolor="white" width="35%">
    <input type=radio  name="wr_3" value="국내" <? if($write[wr_3] == "국내") echo "checked"; ?> required itemname="형태">국내&nbsp;
    <input type=radio name="wr_3"  value="해외" <? if($write[wr_3] == "해외") echo "checked"; ?> required itemname="형태">해외
    </td>
    <td bgcolor="#F7F7F7" width="15%" align="center">여행분류</td>
    <td bgcolor="white" width="35%">
    <select name=ca_name required itemname="여행목적"><option value="">여행선택<?=$category_option?></select>
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">출발일자</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name=wr_4 id="wr_4" itemname="출발일자"  value="<?=$write[wr_4]?>" required>
    </td>
    <td bgcolor="#F7F7F7" width="15%" align="center">여행기간</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name="ext6_11"  id="ext6_11" itemname="여행기간"  value="<?=$ext6_11?>" required>
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">가격(대인)</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name="ext6_01" id="ext6_01" itemname="가격(대인)"  value="<?=$ext6_01?>">
    </td>
    <td bgcolor="#F7F7F7" width="15%"  align="center">가격(소인)</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name="ext6_00"  id="ext6_00" itemname="가격(소인)"  value="<?=$ext6_00?>" >
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">불포함사항</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name="ext6_02"  id="ext6_02" itemname="불포함사항"  value="<?=$ext6_02?>" required>
    </td>
    <td bgcolor="#F7F7F7" width="15%"  align="center">포함사항</td>
    <td bgcolor="white">
    <input class='field' style="width:99%;" name="ext6_03"  id="ext6_03" itemname="포함사항"  value="<?=$ext6_03?>" required>
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">개인준비물</td>
    <td bgcolor="white" width="434" colspan="3">
<input class='field' style="width:100%;" name="ext6_04"  id="ext6_04" itemname="개인준비물"  value="<?=$ext6_04?>" required>
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">목적지</td>
    <td bgcolor="white">
    <input class='field' name=ext6_05 style="text-align:left; WIDTH: 130px;" onkeyup="document.fwrite.ext6_05.value=PointComma(document.fwrite.ext6_05.value)" itemname="목적지" value="<?=$ext6_05?>">                                </td>
    <td bgcolor="#F7F7F7" width="15%" align="center">진행상황</td>
    <td bgcolor="white">
    <input type=radio required name="ext6_07" value="진행중" <? if($ext6_07 == "진행중")  echo "checked"; ?>><img src="<?=$board_skin_path?>/img/icon_03.gif" align="absmiddle">&nbsp;
    <input type=radio required name="ext6_07" value="완료" <? if($ext6_07 == "완료")  echo "checked"; ?>><img src="<?=$board_skin_path?>/img/icon_04.gif" align="absmiddle">
    </td>
 </tr>
 <tr>
    <td bgcolor="#F7F7F7" width="15%" align="center">여행설명</td>
    <td colspan="3" bgcolor="white">
    <? if (!$is_dhtml_editor) { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
            <td 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 align=right><? if ($write_min || $write_max) { ?>글자<?}?></td>
        </tr>
        </table>
        <? } ?>
        <textarea id="wr_content" name="wr_content" class='field' style='width:100%; word-break:break-all;' rows=5 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>
        </table>
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr bgcolor="#e7e7e7">
        <td height="40" valign="bottom" bgcolor="white">
        <img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> 여행비용장소
        </td>
        </tr>
        </table>

<SCRIPT LANGUAGE="JavaScript">
<!--

//숫자에 3 자리마다 콤마찍어 준다.
function PointComma(formnum) {
 
   
    num1 = formnum.length;//숫자의 길이를 구한다.       

        FirstNum = formnum.substr(0,1);//입력숫자의 첫번째를 잘라 낸다..
        FirstNum2 = formnum.substr(1,num1);//'0'다음의 숫자를 잘라낸다.
 
        if(FirstNum == "0"){ //만약 숫자가 "0"으로 시작되면 앞에 '0'을 뺀 숫자만큼 리턴 한다........
                alert("입력숫자는 0 으로 시작할 수 없습니다.");
        return FirstNum2;
                formnum = FirstNum2;
        }

        re = /^\$|,/g;
    formnum = formnum.replace(re, ""); //콤마를 제거 해 준다....

        document.fwrite.won.value=formnum;//힌드값에..콤마를 뺀 값을 넣어든다.
       
        var fieldnum = '' + formnum;   

  //여기서 부터 3자리마다 콤마를 찍어 준다.
        if (isNaN(fieldnum)) {//숫자인가 비교
      //  alert("숫자만 입력하실 수 있습니다.");       
    document.fwrite[0].wr_6.value == "";
        document.fwrite[0].wr_6.focus();
        return "";
        }
        else {
        var comma = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
        var Po = fieldnum.split('.');
        Po[0] += '.';
          do {
            Po[0] = Po[0].replace(comma, '$1,$2');
            } while (comma.test(Po[0]));

          if (Po.length > 1) {
          return Po.join('');
          }
          else {
          return Po[0].split('.')[0];
                }
        }
}

//-->
</SCRIPT> 
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
  <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center">여행비용</td>
      <td bgcolor="white" width="314">
      <input class='field' name=ext6_08 style="text-align:left; WIDTH: 150px;" onkeyup="document.fwrite.ext6_08.value=PointComma(document.fwrite.ext6_08.value)" itemname="여행비용" required value="<?=$ext6_08?>"><input type="hidden" name="won"> 원(※숫자로만 입력)
      </td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center" height="19">은행 구좌번호</td>
      <td bgcolor="white" width="614" height="19">
      <input class='field' style="width:50%;" name="ext6_10"  id="ext6_10" itemname="은행 구좌번호"  value="<?=$ext6_10?>" required> 은행명 구좌번호&nbsp;&nbsp;예금자 : <input class='field' style="width:15%;" name="ext6_06"  id="ext6_06" itemname="은행 구좌번호"  value="<?=$ext6_06?>" required>
      </td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center" height="16">
                                        <p>최소출발인원</p>
</td>
      <td bgcolor="white" width="314" height="16">
                                        <p><input class='field' style="width:30%;" name="ext6_12"  id="ext6_12" itemname="최소출발인원"  value="<?=$ext6_12?>" required></p>

      </td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center" height="9">
                                        <p>도착장소</p>
</td>
      <td bgcolor="white" width="414" height="9">
                                        <p><input class='field' style="width:70%;" name="ext6_13"  id="ext6_13" itemname="도착장소"  value="<?=$ext6_13?>" required>
                                        도착장소</p>
      </td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center" height="15">
                                        <p>출발 장소</p>
</td>
      <td bgcolor="white" width="454" height="15">
                                        <p><input class='field' style="width:99%;" name="ext6_14"  id="ext6_14" itemname="출발 장소"  value="<?=$ext6_14?>" required>
                                        </p>

      </td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7" width="22%" align="center" height="13">
                                        <p>도착안내</p>
</td>
      <td bgcolor="white" width="454" height="13">
                                        <p><input class='field' style="width:99%;" name="ext6_15"  id="ext6_15" itemname="도착안내"  value="<?=$ext6_15?>" required></p>

      </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr bgcolor="#e7e7e7">
      <td height="40" valign="bottom" bgcolor="white">
      <img src="<?=$board_skin_path?>/img/icon_7.gif" align="absmiddle"> <b>이미지</b>
        </td>
    </tr>
</table>


<? if ($is_file) { ?>
<table cellspacing="1" width="70%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
    <tr>

<td class=write_head>우편번호</td>
<td>
<input class="field" size="4" name=tmp_00 itemname="우편번호 앞자리"  readonly value="<?=$tmp_00?>" required> -
<input class="field" size="4" name=tmp_01 itemname="우편번호 뒷자리"  readonly value="<?=$tmp_01?>" required>
&nbsp;<a href="javascript:;" onclick="win_zip('fwrite', 'tmp_00', 'tmp_01', 'wr_9', 'wr_9');"><img src="<?=$board_skin_path?>/img/addrsearch.gif" border=0 align="absmiddle"></a>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<!-- 나머지주소입력 -->
<tr>
<td class=write_head>주 소</td>
<td>
<input class="field" style="width:100%;" name=wr_9 id="wr_9" itemname="주소"  value="<?=$write[wr_9]?>"  required>
</td>
</tr>
    <td bgcolor="#F7F7F7" width="31%">
        <table cellpadding=0 cellspacing=0 align="center" width="97">
          <tr>
            <td width="100%" align="center">
               
                                                    <p align="center">파일첨부<br>
                <span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
                <span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>
            </td>
        </tr>
        </table>
      </td>
  • 복사

댓글 전체

_head , _tail  겉에 연결되어있나 확인해보시고 아니면
작성자정보 시작하기 전단계에서  완전 테이블 끊고 바로  옵션.. 공지 이부분까지..
작성자정보로 테이블 시작하면 될거 같기도 한데여... 테이블 안맞아 그런거 같은데...
아니면... 작성자정보 시작하는 테이블 위에 <td> 부분  다른 <td> 열리는게 없다면

colspn="2" 추가해서 확인해보는것도 될듯요... 소스가 뒤죽박죽이라 ㅋ 보기 어려어서 대충 훌터봤는데  성공하시길 ㅋ
© SIRSOFT
현재 페이지 제일 처음으로