배너관리 리스트에서 배너이미지 있을 경우만 출력되도록 수정

This commit is contained in:
chicpro
2013-07-25 16:34:28 +09:00
parent d6e2695df9
commit 34f7be94b7

View File

@ -63,12 +63,12 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
$width = 800;
else
$width = $size[0];
}
$bn_img = "";
if ($row['bn_url'] && $row['bn_url'] != "http://")
$bn_img .= '<a href="'.$row['bn_url'].'" '.$bn_new_win.'>';
$bn_img .= '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$width.'" alt="'.$row['bn_alt'].'"></a>';
$bn_img = "";
if ($row['bn_url'] && $row['bn_url'] != "http://")
$bn_img .= '<a href="'.$row['bn_url'].'" '.$bn_new_win.'>';
$bn_img .= '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$width.'" alt="'.$row['bn_alt'].'"></a>';
}
$bn_begin_time = substr($row['bn_begin_time'], 2, 14);
$bn_end_time = substr($row['bn_end_time'], 2, 14);