테스트 사이트 - 개발 중인 베타 버전입니다

질문좀 드리겠습니다 채택완료

fldkfem1 9년 전 조회 2,608

안녕하세요 질문좀 드리겠습니다 

스킨을 적용하여 퍼블을 적용하는중 

 <? } ?>   

위의문구가 추가할시 내용부분이 사라지고 추가하면 css 가 틀어집니다

 

 <? } ?> 이게 무엇을 할때 사용하는것인지 궁금합니다  

 

 

 

 

<?

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

?>

 

<?

$noIMG = $board_skin_path."/img/noimg.gif"; //[필수](URL)

 $max = 88 ; //[필수](픽셀) 썸네일 이미지의 가로세로(긴쪽)의 최대치. 

 

$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 ;

}

?> 

 

 

   <tr>

    <td><img src="<?=$board_skin_path?>/img/box2_bl.gif" border="0" /></td>

    <td background="<?=$board_skin_path?>/img/box2_bc.gif"></td>

    <td><img src="<?=$board_skin_path?>/img/box2_br.gif" border="0" /></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-->

 

<!--////-->

        

<div class="main_Contents">

  <div class="main_box">

<h1><img src="/web/imge/sub_title_hallinfo.png"></h1>

    

    <div class="gallery_box">

 <h2><img src="/web/imge/sub_stitle_besthall.jpg"></h2>   

   </div>  

 <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="">

   

 

 

         <? 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."" ;

         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 ;

               }

              ?>

 

  <?

$p_four = explode("|",$list[$i][wr_5]);

$four01 = $p_four[0];

$four02 = $p_four[1];

$four03 = $p_four[2];

$four04 = $p_four[3];

$four05 = $p_four[4];

?>

         

<?//$etc6_exp=explode("|" , $list[wr_6])?>

<?

$p_six = explode("|",$list[$i][wr_6]);

$six01 = $p_six[0];

$six02 = $p_six[1];

$six03 = $p_six[2];

$six04 = $p_six[3];

$six05 = $p_six[4];

$six06 = $p_six[5];

$six07 = $p_six[6];

$six08 = $p_six[7];

$six09 = $p_six[8];

$six10 = $p_six[9];

$six11 = $p_six[10];

$six12 = $p_six[11];

$six13 = $p_six[12];

$six14 = $p_six[13];

$six15 = $p_six[14];

$six16 = $p_six[15];

$six17 = $p_six[16];

$six18 = $p_six[17];

$six19 = $p_six[18];

$six20 = $p_six[19];

$six21 = $p_six[20];

$six22 = $p_six[21];

$six23 = $p_six[22];

$six24 = $p_six[23];

$six25 = $p_six[24];

$six26 = $p_six[25];

$six27 = $p_six[26];

$six28 = $p_six[27];

$six29 = $p_six[28];

$six30 = $p_six[29];

?>

   

  

 

 

 

<div class="main_serve_left">

 

 <!-- 박스 -->

<div class="main_serve_left_box">

 <div class="main_serve_left_box1">

     

 <!-- 이미지출력 -->

  <!-- 이미지출력 -->

 <div class="main_serve_left_img">

    

<a href="<?=$list[$i][href]?>">

<img src='<?=$thum?>' alt='상세보기'  ></a> 

</div>

<!--//이미지출력end -->

 <!-- 내용출력 -->

 <div class="text_box">

  <div class="location">

 

                             

  

  </div>

 <div class="Meals">식대 : 12만원 ~ 25만원 ㅣ 메뉴: 양식</div>

 </div>

  <!-- 제목출력 -->

  <div class="text_box1">

 <div class="Hallname">

                               

                            <a href='<?=$list[$i][href]?>'> 

                            <?=$list[$i][subject]?>

                            </a> 

 

</div>

 <!--//제목end --> 

</div>

   <div class="text_box2">

 <div class="AboutHall">Two becoming as ONE, 하나의 사랑, 가장 빛나는 하루, 진실한 약속이 담긴 단 하나의 웨딩, 웨스틴조선호텔!</div>

 </div>

  <div class="text_box3">

 <div class="btn_info">

<a href="#"  class="text_box3_review">좋아요 <b>(0)</b></a>

<div class="sns_icon">

<a href="javascript://;" onclick="share('facebook', '1384850641', '', '루카511', 'http://www.ihall.co.kr/info/info_detail/1384850641">http://www.ihall.co.kr/info/info_detail/1384850641')"><img src="/web/imge/ic_sns_facebook.jpg" alt="페이스북"/></a><a href="javascript://;" onclick="share('twitter', '1384850641', '', '루카511', 'http://www.ihall.co.kr/info/info_detail/1384850641">http://www.ihall.co.kr/info/info_detail/1384850641')"><img src="/web/imge/ic_sns_twitter.jpg" alt="트위터"/></a><a href="javascript://;" onclick="share('kakaostory', '1384850641', '', '루카511', 'http://www.ihall.co.kr/info/info_detail/1384850641">http://www.ihall.co.kr/info/info_detail/1384850641')"><img src="/web/imge/ic_sns_kastory.jpg" alt="카카오스토리"/></a><a href="javascript://;" onclick="share('googleplus', '1384850641', '', '루카511', 'http://www.ihall.co.kr/info/info_detail/1384850641">http://www.ihall.co.kr/info/info_detail/1384850641')"><img src="/web/imge/ic_sns_google.jpg" alt="구글플러스"/></a>

</div>

</div>  

   </div>

  </div>

    <div class="text_box_right">

 <img src="/web/imge/btn_subhall_detail.jpg">

 </div>

     </div>

 <!--//박스end -->  

  </div>

 

    

 

   <? if (count($list) == 0) { echo "  <table  border=0 cellpadding=0 cellspacing=0 ><tr><td height=100 align=center> 게시물이 없습니다.</td></tr></table>"; } ?>

        </form>

 

 </td>

            </tr>

 

      </table>

      

 <? } ?>

  

 <!-- 오른쪽버튼 --> 

 <div class="main_serve_right">

    

 <!------- 지역카테고리별 검색 처리 시작 -->

 

 <div align="right"><br>

              <? include "{$board_skin_path}/config.list_select.php"?>

            </div>

 

<?// include "{$board_skin_path}/config.list_select2.php"?>

<!------- 지역카테고리별 검색 처리 끝 --> 

 <h3><img src="/web/imge/title_hall_quicksearch_new.jpg"></h3>

 

 <h4>지역</h4>

 

 <select name="job">

    <option value="">시/구</option>

    <option value="학생">학생</option>

    <option value="회사원">회사원</option>

    <option value="기타">기타</option>

</select>

 

 

<select name="job">

    <option value="">군/구</option>

    <option value="학생">학생</option>

    <option value="회사원">회사원</option>

    <option value="기타">기타</option>

</select>

 

 

<div class="serve_right_box">

<p>홀타입</p>

 

 <li><input type="radio" name="chk_info" value="전체">전체</li>

<li><input type="radio" name="chk_info" value="일반홀">일반홀</li>

<li><input type="radio" name="chk_info" value="컨벤션">컨벤션</li>

 <li><input type="radio" name="chk_info" value="호텔">호텔</li>

<li><input type="radio" name="chk_info" value="하우스">하우스</li>

<li><input type="radio" name="chk_info" value="제품">채플</li>

  <li><input type="radio" name="chk_info" value="전통">전통</li>

<li><input type="radio" name="chk_info" value="야외">야외</li>

<li><input type="radio" name="chk_info" value="중고">종교</li>

<li><input type="radio" name="chk_info" value="기타">기타</li>

  

  

  </div>

  

  

  <div class="serve_right_box1">

<p>식사메뉴</p>

 

 <li><input type="radio" name="chk_info" value="전체">전체</li>

<li><input type="radio" name="chk_info" value="뷔페">뷔페</li>

<li><input type="radio" name="chk_info" value="양식">양식</li>

 <li><input type="radio" name="chk_info" value="한식">한식</li>

<li><input type="radio" name="chk_info" value="중식">중식</li>

<li><input type="radio" name="chk_info" value="일식">일식</li>

  <li><input type="radio" name="chk_info" value="기타">기타</li>

 

 </div>

 

 

    <div class="serve_right_box2">

<p>식사가격</p>

 

 <li><input type="radio" name="chk_info" value="전체">전체</li>

<li><input type="radio" name="chk_info" value="1~3만원">1~3만원</li>

<li><input type="radio" name="chk_info" value="3~4만원">3~4만원</li>

 <li><input type="radio" name="chk_info" value="4~5만원">4~5만원</li>

<li><input type="radio" name="chk_info" value="5~6만원">5~6만원</li>

<li><input type="radio" name="chk_info" value="6만원이상">6만원이상</li>

 

 

 </div>

 

 

   <div class="serve_right_box3">

<p>보증인원</p>

 

 <li><input type="radio" name="chk_info" value="전체">전체</li>

<li><input type="radio" name="chk_info" value="50~100명">50~100명</li>

<li><input type="radio" name="chk_info" value="100~200명">100~200명</li>

 <li><input type="radio" name="chk_info" value="200~250명">200~250명</li>

<li><input type="radio" name="chk_info" value="250~300명">250~300명</li>

<li><input type="radio" name="chk_info" value="300~400명">300~400명</li>

  <li><input type="radio" name="chk_info" value="500명이상">500명 이상</li>

  

  <img src="/web/imge/btn_result_reset.jpg">

 </div> 

 

 <div class="bottom_servw">

 

  <img src="/web/imge/banner_customer.jpg">

  </div>

</div>

 

<!--//오른쪽버튼end -->

 

   </div>

</div>

 </div>

        

 

   

 

 

 

                <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="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>

          

          </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>

 <? } ?>

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

php 프로그램에서 if 문이나 for 문 등의 끝에 사용되는 닫는 코드(" } ")입니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 채택해 주셔서 감사드려요~! ^^

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인