latest 첨부파일2번째사진

latest 첨부파일2번째사진

QA

latest 첨부파일2번째사진

본문

latest 첨부파일2번째사진

 

치료전후사진을 만들어서 

1번째는 전 사진

2번째는 후 사진

사진을 넣어서 저장하구

 

라테스트로 

불러왓는데 첫번째 사진만 불러와서요

 

아래소스입니다.

라테스트로 첨부파일 두번째 파일은 가져와서 후사진이 보이게 하고싶습니다!

도와주세요!ㅜㅜ

 

 

 

 

 

 

 

 

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

include_once(G5_LIB_PATH.'/thumbnail.lib.php');

$sql = " select * from {$g5['board_table']} where bo_table = '{$bo_table}' ";
$board = sql_fetch($sql);
    
if (!$width) $width = 162;
if (!$height) $height = 110;

if (count($list) == 0) { //게시물이 없을 때
        echo "<ul><li>게시물이 없습니다.</li></ul>";
        exit;
}

$listHtml_s = "<ul style='margin-top:0px; margin-left:0px;'>";
$indexNum = 0;
for ($i=0; $i<count($list); $i++) {
    $cut_subject = cut_str(strip_tags($list[$i]['wr_subject']),8);
    $indexNum ++;
    if($indexNum % 3 == 0){
        $style_non_margin = "margin-right:0px; margin-bottom:0px;";
    }
    else{
        $style_non_margin = "margin-right:12px; margin-bottom:40px;";
    }

    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $width, $height);
    $listHtml_s .= "<li id='over_story".$indexNum."' style='float:left; {$style_non_margin}'>";
    /*$listHtml_s .= "<a href='".$list[$i]['href']."' style='display:block'><img src='".$thumb['src']."' style='width:{$width}px; height:{$height}px;'></a>";*/

    $listHtml_s .= "<a href='/bbs/board.php?bo_table=befe' style='display:block'>
                            <img src='".$thumb['src']."' style='width:{$width}px; height:{$height}px;'>
                        </a>";

    $listHtml_s .= "<div style='  font-size:14px; text-align:center; font-weight:bold;  color:#5f6568; margin-top:10px; '>".$cut_subject."</div>";
}

    $listHtml_s .= "</ul><div style='clear:both'></div>";
    echo $listHtml_s;

?>

이 질문에 댓글 쓰기 :

답변 2


  $wr_content = $list[$i]['wr_content'];
  $matches = get_editor_image($wr_content, false);
  $con_img1 = $matches[1][0];
  $con_img2 = $matches[1][1];
 
  $list[$i]['file'] = get_file($bo_table, $list[$i]['wr_id']);
  $file_img1 = $list[$i]['file'][0]['path'].'/'.$list[$i]['file'][0]['file'];
  $file_img2 = $list[$i]['file'][1]['path'].'/'.$list[$i]['file'][1]['file'];

 

썸네일의 경우는 thumbnail()을 사용하시면 됩니다.

 

답변을 작성하시기 전에 로그인 해주세요.
전체 123,643 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT