채택완료

첨부이미지 추출방법 질문드립니다.

2016-07-18 (월) 18:37:28 2,856
Copy
<?php            $bo_table = 'portfolio'; //출력할 게시판이름			$bo_row = '10'; //출력할 갯수            $sql = "SELECT * FROM g5_write_{$bo_table}                    WHERE wr_is_comment = '0'                    ORDER BY wr_num                    LIMIT 0, {$bo_row}";            $rst = sql_query($sql);            $board = array('bo_table' => $bo_table);            $i = 0;            while($row = sql_fetch_array($rst)) {                $row = get_list($row, $board, G5_URL);                $thumbnail = get_list_thumbnail($bo_table, $row['wr_id'], 900, 0);            ?>             <div class="col-sm-4 portfolio-item">                <a href="#portfolioModal<?php echo $i?>" class="portfolio-link" data-toggle="modal">                    <div class="caption">                        <div class="caption-content">                            <i class="fa fa-search-plus fa-3x"></i>                        </div>                    </div>                    <img src="<?php echo $thumbnail['src']?>" class="img-responsive img-centered" alt="<?php echo $thumbnail['alt']?>">                </a>            </div>            <div class="portfolio-modal modal fade" id="portfolioModal<?php echo $i?>" tabindex="-1" role="dialog" aria-hidden="true" style="z-index:9999">                <div class="modal-content">                    <div class="close-modal" data-dismiss="modal">                        <div class="lr">                            <div class="rl">                            </div>                        </div>                    </div>                    <div class="container">                        <div class="row">                            <div class="col-lg-8 col-lg-offset-2">                                <div class="modal-body">                                    <h2><?php echo $row['subject']?></h2>                                    <hr class="star-primary">                                    <img src="<?php echo $thumbnail['src']?>" class="img-responsive img-centered" alt="<?php echo $thumbnail['alt']?>"> 									<img src="<?php echo $thumbnail['src']?>">                                     <p><?php echo conv_content($row['wr_content'], 2)?></p>                                    <ul class="list-inline item-details">                                        <li>Client:                                            <strong><?php echo $row['name']?>                                            </strong>                                        </li>                                        <li>Date:                                            <strong><?php echo date('F d, Y', strtotime($row['wr_datetime']))?>                                            </strong>                                        </li>                                        <li>Category:                                            <strong><?php echo $row['ca_name']?>                                            </strong>                                        </li>                                    </ul>                                    <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>                                </div>                            </div>                        </div>                    </div>                </div>            </div>            <?php $i += 1;            } ?>

GSHN 부트스트랩 freelancer 테마에서 이미지리스트 뿌려주고 바로 볼수있는부분이 맘에들어 홈피에 적용해보려하는데요..클릭시 내용이 보여지는데 첨부파일은 1개만 나오도록 되어있네요..혹시 이미지 클릭시 내용부분에 첨부된 이미지를 전부 나오게하려면 어디를 어떻게 수정해야할까요? 도움 요청드립니다.

|

답변 1개

채택된 답변
+20 포인트

    $thumbnail = get_list_thumbnail($bo_table, $row['wr_id'], 900, 0);

부분을 수정 하면되는데

그냥 제작의뢰 가서 의뢰하시는 편이 좋을듯합니다 한 10-30만원 이면되요

위부분을 수정 하고 개발 하려면 어느정도 지식이있어야되요 

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