latest.skin.php 클릭시 해당 게시물로 가는것이 아니고 목록으로 갑니다.
본문
latest.skin.php
메인에서 이미지 클릭시 해당 게시물로 가는것이 아니고 목록으로 갑니다.
어떻게 수정해야하는지 부탁드립니다.
<? for ($i=0; $i<count($list); $i++) { ?>
<li >
<?
if($list[$i][file][0][view]){
$src = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$get_img = getimagesize($src); // 파일정보를 가져옴
// 관리자가 이미지 사이즈를 바꾸었을때를 대비하여 리사이징 크기를 이름에 포함과 이미지 재 첨부시 바뀜
$img_step1 = explode("_",$list[$i][file][0][file]);
$img_step2 = explode(".",$img_step1[1]);
$new_imgname = $img_step2[0];
$thumb_file_list = "{$thumb_path}/{$re_img_width}x{$re_img_height}_{$new_imgname}_{$list[$i][wr_id]}_list";
if(!file_exists($thumb_file_list)){
// gd lib 체크
$gd = gd_info();
$gdversion = substr(preg_replace("/[^0-9]/", "", $gd['GD Version']), 0, 2); // gd 버전이 2.0 이상인지 체크
if(!$gdversion){
$thumb_file_view = $src; // gd 2.0 이하면 강제적으로 줄임
}else{
if($img_width > $get_img[0] || $img_height > $get_img[1]){
$thumb_file_list = $src;
}else{
createThumb_list($img_width,$img_height,$src, $thumb_file_list, $get_img); // list 페이지 썸네일
}
}
}
echo '<div align="center" style="padding-left:5px;">';
// echo '<img class="besticon" src="./img/new.png">';
$img = "<a href='./$sub3_link?bo_table=$bo_table&wr_id={$list[$i]['wr_id']};'><img src=\"$thumb_file_list\" border=\"0\" width=\"$img_width\" height=\"$img_height\"/><br/><br/></a>";
}else{
// no 이미지를 비율적으로 만들어났음
$img = "<a class=price' href='./$sub3_link?bo_table=$bo_table&wr_id={$list[$i]['wr_id']};'><img src=\"$latest_skin_path/img/no_image.gif\" border=\"0\" height=\"{$img_height}\" width=\"{$img_width}\"/><BR><span style=\"font-size:9pt;\"><font face=\"돋움\" color=\"#333333\">{$list[$i]['subject']}</span>*/</a>";
}
echo $img;
echo '</div>';
?>
</li>
<? } ?>
<li >
<?
if($list[$i][file][0][view]){
$src = $list[$i][file][0][path]."/".$list[$i][file][0][file];
$get_img = getimagesize($src); // 파일정보를 가져옴
// 관리자가 이미지 사이즈를 바꾸었을때를 대비하여 리사이징 크기를 이름에 포함과 이미지 재 첨부시 바뀜
$img_step1 = explode("_",$list[$i][file][0][file]);
$img_step2 = explode(".",$img_step1[1]);
$new_imgname = $img_step2[0];
$thumb_file_list = "{$thumb_path}/{$re_img_width}x{$re_img_height}_{$new_imgname}_{$list[$i][wr_id]}_list";
if(!file_exists($thumb_file_list)){
// gd lib 체크
$gd = gd_info();
$gdversion = substr(preg_replace("/[^0-9]/", "", $gd['GD Version']), 0, 2); // gd 버전이 2.0 이상인지 체크
if(!$gdversion){
$thumb_file_view = $src; // gd 2.0 이하면 강제적으로 줄임
}else{
if($img_width > $get_img[0] || $img_height > $get_img[1]){
$thumb_file_list = $src;
}else{
createThumb_list($img_width,$img_height,$src, $thumb_file_list, $get_img); // list 페이지 썸네일
}
}
}
echo '<div align="center" style="padding-left:5px;">';
// echo '<img class="besticon" src="./img/new.png">';
$img = "<a href='./$sub3_link?bo_table=$bo_table&wr_id={$list[$i]['wr_id']};'><img src=\"$thumb_file_list\" border=\"0\" width=\"$img_width\" height=\"$img_height\"/><br/><br/></a>";
}else{
// no 이미지를 비율적으로 만들어났음
$img = "<a class=price' href='./$sub3_link?bo_table=$bo_table&wr_id={$list[$i]['wr_id']};'><img src=\"$latest_skin_path/img/no_image.gif\" border=\"0\" height=\"{$img_height}\" width=\"{$img_width}\"/><BR><span style=\"font-size:9pt;\"><font face=\"돋움\" color=\"#333333\">{$list[$i]['subject']}</span>*/</a>";
}
echo $img;
echo '</div>';
?>
</li>
<? } ?>
답변을 작성하시기 전에 로그인 해주세요.