채택완료

갤러리부분 질문좀 드리겠습니다

2016-11-10 (목) 10:31:42 1,956

이미지가 출력이 안되는데 왜그러는걸까요 ㅠㅠ?

알려주시면 감사하겠습니다 

Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가include_once(G5_LIB_PATH.'/thumbnail.lib.php'); // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);$sql = " select * from {$g5['board_table']} where bo_table = '{$bo_table}' ";$board = sql_fetch($sql); if ($options)	list($width, $height, $wrap_width, $content_length) = explode(',', $options);if (!$width) $width = 450;if (!$height) $height = 187;if (!$content_length) $content_length = 120; ?><!-- Thema내의 중복사용 주석 처리 --> 	<!--<link href="<?=$latest_skin_url?>/css/bootstrap.min.css" rel="stylesheet">--> <!-- Thema내의 중복사용 주석 처리 -->	<link href="/go/cubeportfolio.min.css" rel="stylesheet" />      <style>.bo {width:100%;height:500px auto; background:#F9F9F9;border-bottom: 1px solid #ccc; } .cbp-l-grid-projects-title p {padding-top:25px;color: #999; font-size:14px;} .cbp-l-grid-projects-title {padding-left:20px;padding-top:17px;}   </style><script src="<?php echo G5_JS_URL; ?>/jquery.fancylist.js"></script> <h2 id="container_title"><?php echo ($board['bo_mobile_subject'] ? $board['bo_mobile_subject'] : $board['bo_subject']) ?><span class="sound_only"> 목록</span></h2> <div class="bo"><div class="container"> 		<div class="col-lg-12"> 				<p style="margin-bottom: 30px; margin-top: 30px;text-align:center;font-weight: 300; color: #333;font-size: 1.9em;">				아로파트너스 투자상품</p> 		<div id="grid-container"  >		<ul>		<?phpfor ($i=0; $i<count($list); $i++) {		$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $width, $height);?> 						<li class="cbp-item graphic logo" style=" border: 1px solid #ddd;background:#fff; ">							<div class="cbp-caption">								<div class="cbp-caption-defaultWrap">									<img src="<?php echo $thumb['src']?>" alt="" /> 									<div class="cbp-l-grid-projects-title">							<a href="<?php echo $list[$i]['href']?>" style="font-weight:bold;"><?=cut_str(get_text($list[$i]['subject']),20)?></a> 								<p>목표금액: / 만기: 개월</p>								<p>연이율</p>								<h4>12.5%</h4>						 </div>								</div>								 							</div> </li>  <?php	} if (count($list) == 0) { //게시물이 없을 때  ?>		게시물이 없습니다.<?php }  ?>                           </ul>								</div>    <?php if ($list_href || $is_checkbox || $write_href) { ?>    <div class="bo_fx">        <ul class="btn_bo_adm">            <?php if ($list_href) { ?>            <li><a href="<?php echo $list_href ?>" class="btn_b01"> 목록</a></li>            <?php } ?>            <?php if ($is_checkbox) { ?>            <li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>            <li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>            <li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>            <?php } ?>        </ul>         <ul class="btn_bo_user">            <li><?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a><?php } ?></li>        </ul>    </div>    <?php } ?>     </form></div> <script>$(window).on("load", function() {    $("#gall_ul").fancyList(".gall_li", "gall_clear");});</script> <?php if($is_checkbox) { ?><noscript><p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p></noscript><?php } ?> <!-- 페이지 --><?php echo $write_pages; ?> <fieldset id="bo_sch">    <legend>게시물 검색</legend>     <form name="fsearch" method="get">    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">    <input type="hidden" name="sca" value="<?php echo $sca ?>">    <input type="hidden" name="sop" value="and">    <label for="sfl" class="sound_only">검색대상</label>    <select name="sfl" id="sfl">        <option value="wr_subject"<?php echo get_selected($sfl, "wr_subject", true); ?>>제목</option>        <option value="wr_content"<?php echo get_selected($sfl, "wr_content"); ?>>내용</option>        <option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content"); ?>>제목+내용</option>        <option value="mb_id,1"<?php echo get_selected($sfl, "mb_id,1"); ?>>회원아이디</option>        <option value="mb_id,0"<?php echo get_selected($sfl, "mb_id,0"); ?>>회원아이디(코)</option>        <option value="wr_name,1"<?php echo get_selected($sfl, "wr_name,1"); ?>>글쓴이</option>        <option value="wr_name,0"<?php echo get_selected($sfl, "wr_name,0"); ?>>글쓴이(코)</option>    </select>    <input name="stx" value="<?php echo stripslashes($stx) ?>" placeholder="검색어(필수)" required id="stx" class="required frm_input" size="15" maxlength="20">    <input type="submit" value="검색">    </form></fieldset> <?php if ($is_checkbox) { ?><script>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 fboardlist_submit(f) {    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(document.pressed + "할 게시물을 하나 이상 선택하세요.");        return false;    }     if(document.pressed == "선택복사") {        select_copy("copy");        return;    }     if(document.pressed == "선택이동") {        select_copy("move");        return;    }     if(document.pressed == "선택삭제") {        if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))            return false;         f.removeAttribute("target");        f.action = "./board_list_update.php";    }     return true;} // 선택한 게시물 복사 및 이동function select_copy(sw) {    var f = document.fboardlist;     if (sw == 'copy')        str = "복사";    else        str = "이동";     var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");     f.sw.value = sw;    f.target = "move";    f.action = "./move.php";    f.submit();}</script><?php } ?><!-- 게시판 목록 끝 --><script src="/go/jquery.cubeportfolio.min.js"></script><script src="/go/animate.js"></script><script src="/go/custom.js"></script>
|

답변 1개

채택된 답변
+20 포인트
2016-11-10 (목) 10:40:05

이미지가 출력이 안되면

이미지 생성관련된 get_list_thumbnail 호출부분을 체크해봐야합니다.

단순히 이미지가 안나온다고 해당 페이지소스를 전부 올려놓으면..

오타가 있는지 찾아봐 주는정도만 가능합니다.

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