부동산 스킨 셀렉트바 깨지는 이유 > 그누4 질문답변

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 질문답변

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

부동산 스킨 셀렉트바 깨지는 이유 정보

부동산 스킨 셀렉트바 깨지는 이유

본문

1차 지역선택, 2차 구군선택, 매물분류 이렇게 셀랙트 박스가 있잖아여?

그런데, 1차 지역선택에서 다른지역은 괜찮은데 경기도를 선택하면 맨 마지막 매물분류가
한줄밀려서 다음줄로 내려가요


예를들어 아래를보세요

1차 지역선택, 2차 구군선택   
매물분류

위처럼 매물분류가 한줄밀려서 다음줄에 나타나더라고요
이거 어디서 손봐야하나여?

고수님들 부탁드려요~~~

PS: 스킨은 페르소나님 스킨입니다.

댓글 전체

이전에 질문을 하신분 아니신지요...
그때와 같이 경기도를 선택할때 두번째 "고양시 일산서구" 이렇게 길이가 길어집니다.
이것때문에 생긴문제가 아닐까 생각을 해 봅니다.

경로를 적어주시면 한번 보것는데...
그냥여 그 스킨만 게시판관리에서 상단과 하단부분을 빼고 한번 테스트를 해보세요
님이 너무 적은 메인부분을 만드신듯 한데요.
list.skin.php
52줄에서 81번줄까지 보세요
그럼 해결 할 수가 있습니다.
하지만 이것은 정상적으로 잘 작동을 하게 만들어두었습니다.

게시판 스킨이나 이 스킨이 나오게 하는 테이블의 크기에 문제가 있는듯 하네요
게시판관리에서 테이블너비를 확인해보시고
그런다음 head.php파일에 게시판출력부분의 크기를 얼마를 했는지를 알아야 합니다.
님이 개발하는 홈페이지 주소를 알려주시면 빠른답변 구할 수 있습니다.
list.skin.php파일내용을 다음을 복사해서 바꾸세요

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$noIMG = $board_skin_path."/img/noimg.gif"; //[필수](URL)
$max = 88 ; //[필수](픽셀) 썸네일 이미지의 가로세로(긴쪽)의 최대치.
$resol = 70 ; //[필수](퍼센트%) 생성되는 썸네일의 JPG압축률.
$str = 15 ; //[필수](글자수) 썸네일 밑의 제목의 글자수.

function smaller( $W, $H ) {
global $max, $thum_W, $thum_H ;

if ( $W > $H ) { //가로형일 경우.
$thum_W = $max ;
$thum_H = ceil( $H * ( $max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $max ;
$thum_W = ceil( $W * ( $max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $max * 0.8 );
$thum_H = ceil( $max * 0.8 );
}

return $thum_W ;
return $thum_H ;
}


function maker( $thum_W, $thum_H ) {
global $thum, $resol, $ori, $ori_info ;

//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)
$newImg = ImageCreateTrueColor($thum_W,$thum_H); // GD라이브러리 2.0 전용함수

if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($ori);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($ori);

//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));

Imagejpeg($newImg, $thum, $resol );

chmod($thum,0707);
ImageDestroy($newImg);
ImageDestroy($origImg);

return $thum ;
}
?>
<table width="<?=$width?>" align="center">
  <tr>
    <td><table width="100%" cellpadding="3">
        <tr>
          <td width="75%"><form name=fsearch method=get>
    <input type=hidden name=bo_table value="<?=$bo_table?>">
    <input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sop      value="And"><select name=sfl>
            <option value='wr_subject'>매물명</option>
<option value='wr_14'>매물위치</option>
<option value='wr_5'>매물종류</option>
            <option value='wr_content'>내용</option>
            <option value='mb_id'>아이디</option>
            <option value='wr_name'>이름</option>
        </select>
        <INPUT maxLength=15 size=15 name=stx itemname="검색어" required value="<?=$stx?>" class="input">
        <INPUT type=image src="<?=$board_skin_path?>/img/search.gif" border="0" align="absmiddle"></form>
<!------- 지역카테고리별 검색 처리 시작 -->
<? include "{$board_skin_path}/config.list_select2.php"?>
<!------- 지역카테고리별 검색 처리 끝 -->     
 
  </td>
          <td width="25%" align="right">게시물
              <?=number_format($total_count)?>
            건
            <? if ($admin_href) { ?>
            <a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/icon_admin.gif" border="0" align="absmiddle"></a>
            <? } ?></td>
        </tr>
      </table>
        <table width="100%" cellpadding="0" cellspacing="0" >
          <tr>
            <td width="15%" height="1" bgcolor="D63369"></td>
            <td width="85%" bgcolor="E7E7E7"></td>
          </tr>
          <tr>
            <td width="15%" height="3" bgcolor="FB974A"></td>
            <td width="85%" bgcolor="F7F3F7"></td>
          </tr>
        </table>
        <table width="100%" cellpadding="0" >
          <tr>
            <td><table width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="7" height="7"><img src="<?=$board_skin_path?>/img/line_mid_p1.gif"></td>
                <td background="<?=$board_skin_path?>/img/line_mid_p5.gif"></td>
                <td width="7"><img src="<?=$board_skin_path?>/img/line_mid_p2.gif"></td>
              </tr>
              <tr>
                <td background="<?=$board_skin_path?>/img/line_mid_p8.gif"></td>
                <td><table width="100%" cellpadding="5" >
                    <tr>
                      <td><?//=latest_wr("car_sp", $bo_table, 5, 16, 1);?></td>
                    </tr>
                </table></td>
                <td background="<?=$board_skin_path?>/img/line_mid_p6.gif"></td>
              </tr>
              <tr>
                <td height="7"><img src="<?=$board_skin_path?>/img/line_mid_p4.gif"></td>
                <td background="<?=$board_skin_path?>/img/line_mid_p7.gif"></td>
                <td><img src="<?=$board_skin_path?>/img/line_mid_p3.gif"></td>
              </tr>
            </table></td>
          </tr>
        </table>
        <table width="100%" cellpadding="0" >
          <tr>
            <td></td>
          </tr>
        </table>
        <table width="100%" cellpadding="0" cellspacing="0" >
          <form name="fboardlist" method="post">
            <input type="hidden" name="bo_table" value="<?=$bo_table?>">
            <input type="hidden" name="sfl"  value="<?=$sfl?>">
            <input type="hidden" name="stx"  value="<?=$stx?>">
            <input type="hidden" name="spt"  value="<?=$spt?>">
            <input type="hidden" name="page" value="<?=$page?>">
            <input type="hidden" name="sw"  value="<?=$sw?>">
            <tr>
              <td><table width="100%" cellpadding="0" cellspacing="0" >
                  <? for ($i=0; $i<count($list); $i++) {
  // Thumbnail
$image = urlencode($list[$i][file][0][file]);
$ori="$g4[path]/data/file/$bo_table/" . $image;
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자

if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";



if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.


$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우

$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;

} else { // Thumbnail [X] 경우

if ( smaller( $ori_info[0], $ori_info[1] ) ) {

maker( $thum_W, $thum_H );
}
}

} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //원파일이 [ 1GIF,6BMP,7TIF ] 경우.

if ( smaller( $ori_info[0], $ori_info[1] ) ) {

$thum = $ori ;
}

} else { //원파일이 [ 1,2,3,6,7 ] 아닐 경우.

$thum = $noIMG ;
}
?>
                  <tr <? if ($list[$i][is_notice]) { ?>bgcolor="#F9F9FF"<? } else if ($wr_id == $list[$i][wr_id]) { ?>bgcolor="#FFF9F9"<? }?>>
                    <td onMouseOver=this.style.backgroundColor='#fafafa' onMouseOut=this.style.backgroundColor=''><table width="100%" cellpadding="3" >
                        <tr align="center">
                          <td width="10" align="center">
  <?
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$four05 = $p_four[4];
?>
                        <?
$p_nine = explode("|",$list[$i][wr_9]);
$nine01 = $p_nine[0];
$nine02 = $p_nine[1];
$nine03 = $p_nine[2];
$nine04 = $p_nine[3];
$nine05 = $p_nine[4];
$nine06 = $p_nine[5];
$nine07 = $p_nine[6];
$nine08 = $p_nine[7];
$nine09 = $p_nine[8];
$nine10 = $p_nine[9];
$nine11 = $p_nine[10];
$nine12 = $p_nine[11];
$nine13 = $p_nine[12];
$nine14 = $p_nine[13];
$nine15 = $p_nine[14];
$nine16 = $p_nine[15];
?>  <?
        if ($list[$i][is_notice])
            echo "<img src=\"$board_skin_path/img/icon_notice.gif\">";
        else if ($wr_id == $list[$i][wr_id])
            echo "<img src=\"$board_skin_path/img/icon_arrow.gif\">";
        else
            echo "{$list[$i][num]}";
        ?></td>
                          <td width="90" align="center"> <table cellpadding="2" cellspacing="1" bgcolor="eeeeee" >
                          <tr>
                            <td bgcolor="ffffff"><a href='<?=$list[$i][href]?>'><img src='<?=$thum?>' alt='<?=$list[$i][wr_subject]?>' width="80" height="67" border=0 ></a></td>
                          </tr>
                      </table></td>
                          <td align="left"><? if ($is_checkbox) { ?>
                          <p>
                            <input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>">
                            <b><? } ?>
                            <?=$list[$i][reply]?>
                            <?=$list[$i][icon_reply]?>
                            <? if ($list[$i][is_notice]) {?>
                            <a href='<?=$list[$i][href]?>'>
                            <?=$list[$i][subject]?>
                            </a>
                            <? } else {?>
                            <a href='<?=$list[$i][href]?>'>
                            <? if ($four02) echo '<b>';?>
                            <? if ($four03) echo '<font color="green">';?>
                            <b><font color="#0066FF"><?=$list[$i][subject]?></font></b>
                            <? if ($four03) echo '</font>';?>
                            <? if ($four02) echo '</b>';?>
                            </a>
                            <? }?>
                            <? if ($list[$i][comment_cnt]) {?>
                            <a href="<?=$list[$i][comment_href]?>">
                            <?=$list[$i][comment_cnt]?>
                            </a>
                            <? }?>
                            <?=$list[$i][icon_new]?>
                            <?=$list[$i][icon_hot]?>
                            <? if ($four01)
echo "<img src='$board_skin_path/img/car_icon_1.gif' border='0' align='absmiddle'>";?>
                            <? if ($four04)
echo "<img src='$board_skin_path/img/car_icon_2.gif' border='0' align='absmiddle'>";?>
                            <? if ($four05)
echo "<img src='$board_skin_path/img/car_icon_3.gif' border='0' align='absmiddle'>";?>
                            </b><br><?=$list[$i][wr_14]?><br>
                          </p>
                          <p><span class=gray>&nbsp; 세:
                            <?
                    $num=$nine08;
$res=number_format($num);
echo("$res");
                    ?>
                            만원/ &nbsp;
                            <?
                    $num=$nine10;
$res=number_format($num);
echo("$res");
                    ?>
                            만원 </span> </p></td>
                         
                         
                        <td width="150" align="center"><b><font color="green">
                          총매가:
                          <?
                      $num=$nine12;
      $res=number_format($num);
  echo("$res");
                      ?>
                          만원</font></b> </td>
                          <td width="60" align="center"><?=$list[$i][wr_5]?>
                          </td>
                          <td width="40" align="center"><?=$list[$i][datetime2]?>
                          </td>
                          <? if ($is_good) { ?>
                          <td width="30" align="center"><?=$list[$i][wr_good]?>
                          </td>
                          <? } ?>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="eeeeee"></td>
                  </tr>
                  <? } ?>
                  <? if (count($list) == 0) { echo "<tr><td height=100 align=center> 게시물이 없습니다.</td></tr>"; } ?>
              </table></td>
            </tr>
          </form>
      </table>
        <table width="100%" cellpadding="3" >
          <tr>
            <td align="center"><? if ($prev_part_href) {
  echo "<a href='$prev_part_href'>
  <img src='$board_skin_path/img/search_prev.gif' border=0 align=absmiddle></a>"; } ?>
              <?
                //echo $write_pages;
                $write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_first.gif' border='0' align='absmiddle'>", $write_pages);
                $write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle'>", $write_pages);
                $write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle'>", $write_pages);
                $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle'>", $write_pages);
                $write_pages = preg_replace("/([0-9]*)/", "$1", $write_pages);
                $write_pages = preg_replace("/([0-9]*)/", "$1", $write_pages);
                ?>
              <?=$write_pages?>
              <? if ($next_part_href) {
echo "<a href='$next_part_href'>
<img src='$board_skin_path/img/search_next.gif' border=0 align=absmiddle></a>"; } ?></td>
          </tr>
      </table>
        <table width="100%" cellpadding="3">
          <tr>
            <td><? if ($list_href) { ?>
                <a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/list.gif" border="0" align="absmiddle"></a>
                <? } ?>
                <? if ($write_href) { ?>
                <a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/write.gif" border="0" align="absmiddle"></a>
                <? } ?>
                <? if ($is_checkbox) { ?>
                <a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/select_delete.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/select_copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/select_move.gif" border="0" align="absmiddle"></a>
                <? } ?>


<script language="JavaScript">
<!--
function OpenWin(url,intWidth,intHeight){
      window.open(url, "ReadSlideShow", "scrollbars=no, resizable=no, width="+intWidth+",height="+intHeight+" ");
      return;
}
//-->
</script>
<img src="<?=$board_skin_path?>/s_img/bSlideShow.gif" border=0 style="vertical-align: middle;cursor:pointer;" onClick="OpenWin('<?=$board_skin_path?>/slideshow.php?bo_table=<?=$bo_table?>',550,650); return false;" alt="상단 이미지 슬라이드 쇼 보기" title="상단 이미지 슬라이드 쇼 보기">



            </td>
            <form name=fsearch method=get>
    <input type=hidden name=bo_table value="<?=$bo_table?>">
    <input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sop      value="And"><td align="right"><select name=sfl>
            <option value='wr_subject'>매물명</option>
            <option value='wr_content'>내용</option>
            <option value='mb_id'>아이디</option>
            <option value='wr_name'>이름</option>
        </select>
        <INPUT maxLength=15 size=15 name=stx itemname="검색어" required value="<?=$stx?>" class="input">
        <INPUT type=image src="<?=$board_skin_path?>/img/search.gif" border="0" align="absmiddle"></td></form>
          </tr>
      </table></td>
  </tr>
</table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
    document.fsearch.sfl.value = "<?=$sfl?>";
    document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
    var f = document.fboardlist;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}

function check_confirm(str)
{
    var f = document.fboardlist;
    var chk_count = 0;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }

    if (!chk_count) {
        alert(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}

// 선택한 게시물 삭제
function select_delete()
{
    var f = document.fboardlist;

    str = "삭제";
    if (!check_confirm(str))
        return;

    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;

    f.action = "./delete_all.php";
    f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";
                     
    if (!check_confirm(str))
        return;

    var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<? } ?>
전체 5 |RSS
그누4 질문답변 내용 검색
  • 개별 목록 구성 번호 제목 작성자 작성일 조회
  • 게시물이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT