안녕하세요 질문좀 드리겠습니다..
<?php
} else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_mobile_gallery_width'].'px;height:'.$board['bo_mobile_gallery_height'].'px">no image</span>';
}
echo $img_content;
}
?>
이미지 출력소스만 부르면 완전 먹통이 되는데 혹시 왜그런걸까요 ㅠㅠ?
<?php include_once('../../../../common.php'); /* 출력할 페이지 리스트 */ $sop = strtolower($sop);if ($sop != 'and' && $sop != 'or') $sop = 'and'; // 분류 선택 또는 검색어가 있다면$stx = trim($stx);if ($sca || $stx) { $sql_search = get_sql_search($sca, $sfl, $stx, $sop); // 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용) $sql = " select MIN(wr_num) as min_wr_num from {$write_table} "; $row = sql_fetch($sql); $min_spt = (int)$row['min_wr_num']; if (!$spt) $spt = $min_spt; $sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config['cf_search_part']})) "; // 원글만 얻는다. (코멘트의 내용도 검색하기 위함) $sql = " select distinct wr_parent from {$write_table} where {$sql_search} "; $result = sql_query($sql); $total_count = mysql_num_rows($result);} else { $sql_search = ""; $total_count = $board['bo_count_write'];} if(G5_IS_MOBILE) { $page_rows = $board['bo_mobile_page_rows'];} else { $page_rows = $board['bo_page_rows'];} if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) // 년도 2자리$today2 = G5_TIME_YMD; $list = array();$i = 0;$notice_count = 0;$notice_array = array(); // 공지 처리if (!$sca && !$stx && $pg==1 ) { $arr_notice = explode(',', trim($board['bo_notice'])); for ($k=0; $k<count($arr_notice); $k++) { if (trim($arr_notice[$k])=='') continue; $row = sql_fetch(" select * from {$write_table} where wr_id = '{$arr_notice[$k]}' "); if (!$row['wr_id']) continue; if($page == 1) { $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']); $list[$i]['is_notice'] = true; $i++; } $notice_array[] = $row['wr_id']; $notice_count++; }} $total_page = ceil($total_count / $page_rows); // 전체 페이지 계산$from_record = ( $pg - 1) * $page_rows; // 시작 열을 구함$nextPg = $pg + 1;if($page > 1 && $notice_count) $from_record -= $notice_count; if($page == 1 && $notice_count) $page_rows -= $notice_count; // 관리자라면 CheckBox 보임$is_checkbox = false;if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id'] || $board['bo_admin'] == $member['mb_id'])) $is_checkbox = true; // 정렬에 사용하는 QUERY_STRING$qstr2 = 'bo_table='.$bo_table.'&sop='.$sop; // 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 1 로 설정$bo_gallery_cols = $board['bo_gallery_cols'] ? $board['bo_gallery_cols'] : 1;$td_width = (int)(100 / $bo_gallery_cols); // 정렬// 인덱스 필드가 아니면 정렬에 사용하지 않음//if (!$sst || ($sst && !(strstr($sst, 'wr_id') || strstr($sst, "wr_datetime")))) {if (!$sst) { if ($board['bo_sort_field']) { $sst = $board['bo_sort_field']; } else { $sst = "wr_num, wr_reply"; $sod = ""; }} else { // 게시물 리스트의 정렬 대상 필드가 아니라면 공백으로 (nasca 님 09.06.16) // 리스트에서 다른 필드로 정렬을 하려면 아래의 코드에 해당 필드를 추가하세요. // $sst = preg_match("/^(wr_subject|wr_datetime|wr_hit|wr_good|wr_nogood)$/i", $sst) ? $sst : ""; $sst = preg_match("/^(wr_datetime|wr_hit|wr_good|wr_nogood)$/i", $sst) ? $sst : "";} if ($sst) { $sql_order = " order by {$sst} {$sod} ";} if ($sca || $stx) { $sql = " select distinct wr_parent from {$write_table} where {$sql_search} {$sql_order} limit {$from_record}, $page_rows ";} else { $sql = " select * from {$write_table} where wr_is_comment = 0 "; if($notice_count && !empty($notice_array)) $sql .= " and wr_id not in (".implode(', ', $notice_array).") "; $sql .= " {$sql_order} limit {$from_record}, $page_rows ";}$result = sql_query($sql); $k = 0; while ($row = sql_fetch_array($result)){ // 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다 if ($sca || $stx) $row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' "); $list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']); if (strstr($sfl, 'subject')) { $list[$i]['subject'] = search_font($stx, $list[$i]['subject']); } $list[$i]['is_notice'] = false; $list_num = $total_count - ($page - 1) * $page_rows; if($page == 1) $list_num -= $notice_count; $list[$i]['num'] = $list_num - $k; $i++; $k++;}?> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <style type="text/css"> .Pstyle { opacity: 0; display: none; position: relative; width: auto; border: 5px solid #fff; padding: 20px; background-color: #fff;} .Pstyle ul {margin:0;padding:0; list-style:none}.Pstyle li { height:80px; } .b-close { position: absolute; right: 5px; top: 5px; padding: 5px; display: inline-block; cursor: pointer;} .pa {padding-left:10px;padding-right:10px; } .pa a {text-decoration:none} .pa ul{margin:0;padding:0;list-style:none} .pa li{background:#fff; width:100%; height:80px; margin-bottom:5px; padding-top:10px; padding-bottom:10px;} .pa li img {width:100px;padding-left:10px;padding-right:10px; height:80px; float:left;} .pa li #tex { color:#000; height:23px;margin-bottom:2px;font-size:16px;font-weight:bold} .pa .pbox { width:100%;} .pa .pbox p { height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .pa .pbox .yt {margin-top:3px;}</style> <div class="pa"> <ul> <?php for ($i=0; $i<count($list); $i++) { ?> <li> <?php if ($is_checkbox) { ?> <div class="td_chk" style="float:left;" > <label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label> <input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>"> </div><?php } ?> <div style="width:120px; height:80px;float:left;"> <?php } else { $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']); if($thumb['src']) { $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'">'; } else { $img_content = '<span style="width:'.$board['bo_mobile_gallery_width'].'px;height:'.$board['bo_mobile_gallery_height'].'px">no image</span>'; } echo $img_content; } ?> </div> <div class="td_subject"> <?php echo $list[$i]['icon_reply']; if ($is_category && $list[$i]['ca_name']) { ?> <a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a> <?php } ?> <a href="<?php echo $list[$i]['href'] ?>"> <div class="pbox"> <p id="tex"> <?php echo $list[$i]['icon_reply']; if ($is_category && $list[$i]['ca_name']) { ?> <?php } ?> <?php if ($list[$i]['is_notice']) echo "공지"; ?> <?php echo $list[$i]['subject'] ?> </p> <p style="color:#999;font-size:12px; "> <span><?php echo $list[$i]['wr_10']?> <?php echo $list[$i]['wr_9']?></span> </p> <p style="height:20px; margin-top:3px"> <i class="fa fa-star" style="color:#ff0000;font-size:12px;"></i> <span style=" color:#999;font-size:12px; "> <?php echo ($list[$i]['wr_7'] > 0?$list[$i]['wr_7']:'0'); ?>점 / <?php echo number_format((int)$list[$i]['wr_5']); ?>명</span> <i class="fa fa-heart" style="color:#999;font-size:10px;"></i> <span style="color:#999;font-size:12px;"><? echo $list[$i]['wr_good']; ?></span> </p> <p class="yt" style="color:#4e4e56;font-size:12px;"><?php echo $list[$i]['wr_content'] ?></p> </div> </a> </li> <?php } ?> </ul></div> <?if( $pg >= $total_page ){?> <div class="m_more01 morebox" id="more2" ><span>END</span></div> <?}else{?> <div class="m_more01 morebox" id="more<?=$nextPg?>" onclick="addList(<?=$nextPg?>)"><span name=mc id="<?=$nextPg?>">MORE ▼</span></div> <?}?>
답변 2개 / 댓글 1개
제일 위하고 아래 지워야 할 것 같은데요?
} else {
...
...
...
}
답변에 대한 댓글 1개
인클라우드를 안했네요 ㅠ;
답변을 작성하려면 로그인이 필요합니다.