get_it_image 함수 수정에 따른 코드 수정

This commit is contained in:
chicpro
2013-01-31 11:36:13 +09:00
parent ecd23c8927
commit 64bbdc7e3f
9 changed files with 58 additions and 76 deletions

View File

@ -66,7 +66,7 @@ for ($i=1; $i<=$tv_idx; $i++)
if(file_exists($tv_filepath.'/'.$tv_filename) && $tv_filename != "")
break;
}
$img = get_it_image($tv_it_id, $tv_filename, $tv_div['img_width'], $tv_div['img_height'], $tv_it_id);
$img = get_it_image($tv_it_id, $tv_div['img_width'], $tv_div['img_height'], $tv_it_id);
$img = str_replace("\"", "\\\"", $img);
$img = preg_replace("/\<a /", "<a title='$it_name' ", $img);
echo "goods_link[$i] = \"{$img}<br/><span class=small>".cut_str($it_name,10,"")."</span>\";\n";

View File

@ -188,7 +188,7 @@ else
<table cellpadding=0 cellspacing=0>
<tr><td height=22></td></tr>
<tr><td colspan=3 align=center>
<table cellpadding=1 cellspacing=0 bgcolor=#E4E4E4><tr><td id="middle_image"><?=get_large_image($filename, $it['it_id'], false)?><?=get_it_image($it['it_id'], $filename, $default['de_mimg_width'], $default['de_mimg_height']);?></a></td></tr></table></td></tr>
<table cellpadding=1 cellspacing=0 bgcolor=#E4E4E4><tr><td id="middle_image"><?=get_large_image($filename, $it['it_id'], false)?><?=get_it_image($it['it_id'], $default['de_mimg_width'], $default['de_mimg_height']);?></a></td></tr></table></td></tr>
<tr><td colspan=3 height=10></td></tr>
<tr>
<td colspan=3 align=center>
@ -200,8 +200,8 @@ else
if (file_exists($filepath.'/'.$filename) && $filename != "")
{
echo get_large_image($filename, $it['it_id'], false);
echo get_it_image($it['it_id'], $filename, 40, 40, "", "item_view_thumbnail");
echo "</a> &nbsp;";
echo "<img id=\"".$filename."\" src=\"".G4_DATA_URL."/item/".$it['it_id']."/".it_img_thumb($filename, $filepath, 40, 40)."\" class=\"item_view_thumbnail\" />";
echo "&nbsp;";
}
}
?>

View File

@ -26,9 +26,12 @@ include_once(G4_PATH.'/head.sub.php');
<?
for ($i=1; $i<=10; $i++)
{
$filepath = G4_DATA_PATH.'/item/'.$it_id;
$filename = $row['it_img'.$i];
if (file_exists(G4_DATA_PATH."/item/{$it_id}/{$filename}") && $filename != "")
echo get_it_image($it_id, $filename, 50, 50, "", "image_thumbnail")."&nbsp;";
if (file_exists($filepath.'/'.$filename) && $filename != "") {
echo "<img id=\"".$filename."\" src=\"".G4_DATA_URL."/item/".$it_id."/".it_img_thumb($filename, $filepath, 50, 50)."\" class=\"image_thumbnail\" />";
echo "&nbsp;";
}
}
?>
&nbsp;</td>

View File

@ -14,21 +14,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
echo "<tr>\n";
}
// 리스트 썸네일 이미지
$filepath = G4_DATA_PATH.'/item/'.$row['it_id'];
for($k=1; $k<=10; $k++) {
$idx = 'it_img'.$k;
if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) {
$filename = $row[$idx];
break;
}
}
echo "
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row['it_id'], $filename, $img_width , $img_height, $row['it_id'])."</td></tr>
<tr><td align=center>".get_it_image($row['it_id'], $img_width , $img_height, $row['it_id'])."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])

View File

@ -11,21 +11,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
}
$href = "<a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}' class=item>";
// 리스트 썸네일 이미지
$filepath = G4_DATA_PATH.'/item/'.$row['it_id'];
for($k=1; $k<=10; $k++) {
$idx = 'it_img'.$k;
if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) {
$filename = $row[$idx];
break;
}
}
?>
<td width="<?=$td_width?>%" align=center valign=top>
<table width=98% cellpadding=1 cellspacing=0 border=0>
<tr><td height=5></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row['it_id'], $filename, $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row['it_id'], $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row['it_name'])?></a></td></tr>
<!--시중가격<tr><td align=center><strike><?=display_amount($row[it_cust_amount])?></strike></td></tr>-->
<tr><td align=center><span class=amount><?=display_amount(get_amount($row), $row['it_tel_inq'])?></span></td></tr>