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

갤러리 게시판 목록에서 가로 2개씩 출력하게 하려면 어떻게 해야하는지좀 알려주세요. 채택완료

맹구맹구 11년 전 조회 7,328
코드는 아래와 같습니다.
어느부분을 수정해야
가로 2개씩으로 목록사진을 나오게할수 있을까요?
현재는 한개씩 웹진형으로 출력되고 있습니다.
 
부탁드립니다. 감사합니다
 
// 선택옵션으로 인해 셀합치기가 가변적으로 변함 $colspan = 7;
//if ($is_category) $colspan++; if ($is_checkbox) $colspan++; if ($is_good) $colspan++; if ($is_nogood) $colspan++;
// 썸네일 설정 $thumb_width = "400"; //썸네일 가로길이 $thumb_height = "400"; //썸네일 세로길이 $thumb_quality = "100"; //퀼리티 100이하로 설정 $list_content = "200"; //내용길이
$data_path = $g4[path]."/data/file/$bo_table"; $thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707); @chmod($thumb_path, 0707);
?>
       
                                   
  
     
                                          
"; $b_e=""; } else {$b_s=""; $b_e="";}     $sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";//카테고리내용갯수표시     $board1 = sql_fetch($sql1);//카테고리내용갯수표시 -> ($board1[cCount])     $str .= "$b_s$arr[$i]($board1[cCount])$b_e | ";     if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= " "; }     $cnt++;     }     if ($cnt0 == 0 ) { $bb_s=""; $bb_e=""; }     ?>      전체     
       
                           
        
           
                                   
                                           
                                                                           
    
            $rate = $thumb_width / $size[0];
            $height = (int)($size[1] * $rate);
            // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면             if ($height < $thumb_height)                 // 계산된 이미지 높이로 복사본 이미지 생성                 $dst = imagecreatetruecolor($thumb_width, $height);             else                 // 설정된 이미지 높이로 복사본 이미지 생성                 $dst = imagecreatetruecolor($thumb_width, $thumb_height);             imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);             imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $thumb_quality);             chmod($thumb_path.'/'.$list[$i][wr_id], 0606);         } else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ    $edit_img = $list[$i]['wr_content'];    if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------     $file = '../' . $tmp[0]; // 파일명     $size = getimagesize($file);     if ($size[2] == 1)      $src = imagecreatefromgif($file);     else if ($size[2] == 2)      $src = imagecreatefromjpeg($file);     else if ($size[2] == 3)      $src = imagecreatefrompng($file);     else      continue;
    $rate = $thumb_width / $size[0];     $height = (int)($size[1] * $rate);
    // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면     if ($height < $thumb_height)      // 계산된 이미지 높이로 복사본 이미지 생성      $dst = imagecreatetruecolor($thumb_width, $height);     else      // 설정된 이미지 높이로 복사본 이미지 생성      $dst = imagecreatetruecolor($thumb_width, $thumb_height);     imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);     imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $thumb_quality);     chmod($thumb_path.'/'.$list[$i][wr_id], 0606);    }      }  } //이미지     if (file_exists($thumb))         $thumfile = "";   else   //이미지가 없으면   $thumfile="";   //이미지가 아니면         if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file)){   $thumfile = "";      } ?>                  
                                                                            
                                                                                                                                                                                                                             
                                                                                                 
                                                                                                                                                                                          
                 {$list[$i][ca_name]} ";         }         $style = "";         if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";         if ($list[$i][wr_4] > 4 || $list[$i][wr_6]) {        echo "";        echo "불량자료로 신고가 접수된 게시물입니다";        echo "";        } else {      /*         echo "";         echo $list[$i][subject];         echo "";   */
        if ($list[$i][comment_cnt])             echo " {$list[$i][comment_cnt]}";
        // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }         // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
        echo " " . $list[$i][icon_new];         echo " " . $list[$i][icon_link];         echo " " . $list[$i][icon_hot];         echo " " . $list[$i][icon_secret];         echo $nobr_end;  }         ?>         
                                                                                                             
         수정                     http://".$_SERVER['SERVER_NAME']."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$list[$i][wr_id' target="_blank">http://".$_SERVER['SERVER_NAME']."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$list[$i][wr_id];
///////////////////////////////////////////////////////////////////////////////////////////// // 페이스북 ///////////////////////////////////////////////////////////////////////////////////////////// $face_url= $board_url; $face_url = urlencode($face_url); $face_subject = urlencode($subject_con);
// 추가 $face_content = strip_tags($list[$i][wr_content]); $face_content = substr($face_content,0,750)."..."; $face_content = urlencode($face_content);
if($view[file][0][file]){  $face_img = "http://".$_SERVER['SERVER_NAME']."/data/file/".$bo_table."/".$list[$i][file][0][file' target="_blank">http://".$_SERVER['SERVER_NAME']."/data/file/".$bo_table."/".$list[$i][file][0][file]; // 1번째 사진을 기본 썸네일로 지정  $face_img = urlencode($face_img);
} ///////////////////////////////////////////////////////////////////////////////////////////// $facebook_like = "http://".$_SERVER['SERVER_NAME']."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$wr_id' target="_blank">http://".$_SERVER['SERVER_NAME']."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$wr_id; ///////////////////////////////////////////////////////////////////////////////////////////// ?>
 &p%5Burl%5D=&p%5Bimages%5D%5B0%5D=&p%5Bsummary%5D=','window','width=600,height=430')" target="_blank" rel="noopener noreferrer">http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=&p%5Burl%5D=&p%5Bimages%5D%5B0%5D=&p%5Bsummary%5D=','window','width=600,height=430')" style="cursor:pointer" alt="게시글을 facebook으로 보내기">
                                                                                                     
           
     자세히보기      
               
    
  
                                                                                                                                                    
   
                                           
    "; } ?>     ", $write_pages);     $write_pages = str_replace("이전", "", $write_pages);     $write_pages = str_replace("다음", "", $write_pages);     $write_pages = str_replace("맨끝", "", $write_pages);     $write_pages = preg_replace("/([0-9]*)<\/span>/", "$1", $write_pages);     $write_pages = preg_replace("/([0-9]*)<\/b>/", "$1", $write_pages);     ?>         "; } ?>
댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
11년 전
이것 시작하는 것부터 끝까지 뜯어고쳐야 겠네요
방법은 저 밑에줄에 table로 시작하는 부분에 2개씩 보여주게 만들어 주는것이고 
gallery스킨 아무거나 받아보시면 자세하게 나와있습니다. 
ul li를 이용해서 스타일로 맞추면 바로 해결되겠네요
로그인 후 평가할 수 있습니다

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

많은 도움이 되었습니다. 감사합니다.
로그인 후 평가할 수 있습니다

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

11년 전
답변감사합니다..
조금만 자세히 알려주시면 안될까요??
죄송합니다 ㅠㅠ
로그인 후 평가할 수 있습니다

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

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

로그인

© 2025 SIRSOFT. All rights reserved.