리스트 썸네일 생성 코드 추가
This commit is contained in:
@ -14,11 +14,22 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
echo "<tr>\n";
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height);
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
<td width='{$td_width}%' align=center valign=top>
|
<td width='{$td_width}%' align=center valign=top>
|
||||||
<br>
|
<br>
|
||||||
<table width=98% cellpadding=2 cellspacing=0>
|
<table width=98% cellpadding=2 cellspacing=0>
|
||||||
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>
|
<tr><td align=center>".get_it_image($row['it_id'].'/'.$it_img, $img_width , $img_height, $row[it_id])."</td></tr>
|
||||||
<tr><td align=center>".it_name_icon($row)."</td></tr>";
|
<tr><td align=center>".it_name_icon($row)."</td></tr>";
|
||||||
|
|
||||||
if ($row[it_cust_amount] && !$row[it_gallery])
|
if ($row[it_cust_amount] && !$row[it_gallery])
|
||||||
|
|||||||
Reference in New Issue
Block a user