관심 감사합니다~
<div class="gall_con">
<img style="cursor:pointer;" src=" <?php
if (!$list[$i]['is_notice']) {
$query = " select wr_content from ".$write_table." where wr_parent = '".$list[$i]['wr_id']."' and wr_is_comment > 0 ";
/*여러개의 글 검사 할 때*/
$result = sql_query($query);
for($j=0; $row = sql_fetch_array($result); $j++) {
preg_match_all("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $row['wr_content'],$matches);
echo get_view_thumbnail($matches[1][0], $board['bo_gallery_width'], false);
}
/*여러개의 글 검사 할 때*/
//$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
// if($thumb['src']) {
// $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';
// }
// echo $img_content;
}
?>" onclick="window.open('<?php
if (!$list[$i]['is_notice']) {
$query = " select wr_content from ".$write_table." where wr_parent = '".$list[$i]['wr_id']."' and wr_is_comment > 0 ";
/*여러개의 글 검사 할 때*/
$result = sql_query($query);
for($j=0; $row = sql_fetch_array($result); $j++) {
preg_match_all("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $row['wr_content'],$matches);
echo get_view_thumbnail($matches[1][0], $board['bo_gallery_width'], false);
}
/*여러개의 글 검사 할 때*/
//$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
// if($thumb['src']) {
// $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';
// }
// echo $img_content;
}
?>','asd','scrollbars=yes,width=650,height=750,top=10,left=20');">
</div>
그걸 위해 이렇게 되었습니다. src=""에 넣어야 하니 그렇고,,뒤에 window.open으로 띄우려니 이렇게 정말 복잡해졌습니다..ㅋ
나오긴 나옵니다.