쇼핑몰: #111 인덱스 유효성 오류 관련 추가 작업

This commit is contained in:
whitedot
2013-05-02 09:56:48 +09:00
parent c3b61b7a84
commit 0c5bb51c6d
2 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,6 @@ function get_image($img, $width=0, $height=0, $type='')
$str .= ' id="'.$img_id.'">';
}
return $str;
}
@ -52,7 +51,7 @@ function get_it_image($img, $width=0, $height=0, $id="", $type='')
{
$str = get_image($img, $width, $height, $type);
if ($id) {
$str = '<a href="'.G4_SHOP_URL.'/item.php?it_id='.$id.'" alt="">'.$str.'</a>';
$str = '<a href="'.G4_SHOP_URL.'/item.php?it_id='.$id.'">'.$str.'</a>';
}
return $str;
}

View File

@ -12,7 +12,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<li class="sidx_it_li <?php echo $sidx_it_last; ?>">
<a href="<?php echo $href; ?>" class="sidx_it_a">
<span><?php echo get_it_image($row['it_id']."_s", $img_width, $img_height, $row['it_id'], $type); ?></span>
<span><?php echo get_it_image($row['it_id']."_s", $img_width, $img_height, '', $type); ?></span>
<b><?php echo stripslashes($row['it_name']); ?></b>
<?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?>
</a>