echo "<tr><td align=center>".it_name_icon($row)."</td></tr>"; 이거를요
echo "<tr><td align=center><a href=$g4[shop_path]/item.php?it_id=$row[it_id]>".$row[it_name]."</a></td></tr>";
echo "<tr><td height=25 align=center>".$icon."</td></tr>";
요렇게 바꿨는데 아이콘이 안나와요.
.$icon. 이거말고 딴거 넣어야 하나요?
echo "<tr><td align=center><a href=$g4[shop_path]/item.php?it_id=$row[it_id]>".$row[it_name]."</a></td></tr>";
echo "<tr><td height=25 align=center>".$icon."</td></tr>";
요렇게 바꿨는데 아이콘이 안나와요.
.$icon. 이거말고 딴거 넣어야 하나요?
댓글 2개
lib/shop.lib.php 에
function _icon($it, $it_name="", $url=1)
{
global $g4;
$str = "";
if ($it[it_type1]) $str .= " <img src='$g4[shop_img_path]/icon_type1.gif' border='0' align='absmiddle' />";
if ($it[it_type2]) $str .= " <img src='$g4[shop_img_path]/icon_type2.gif' border='0' align='absmiddle' />";
if ($it[it_type3]) $str .= " <img src='$g4[shop_img_path]/icon_type3.gif' border='0' align='absmiddle' />";
if ($it[it_type4]) $str .= " <img src='$g4[shop_img_path]/icon_type4.gif' border='0' align='absmiddle' />";
if ($it[it_type5]) $str .= " <img src='$g4[shop_img_path]/icon_type5.gif' border='0' align='absmiddle' />";
// 품절
$stock = get_it_stock_qty($it[it_id]);
if ($stock <= 0)
$str .= " <img src='$g4[shop_img_path]/icon_pumjul.gif' border='0' align='absmiddle' /> ";
return $str;
}
이렇게 만드신 다음에
echo "<tr><td align=center>"._icon($row)."</td></tr>";
이 코드를 넣어보시기 바랍니다.
function _icon($it, $it_name="", $url=1)
{
global $g4;
$str = "";
if ($it[it_type1]) $str .= " <img src='$g4[shop_img_path]/icon_type1.gif' border='0' align='absmiddle' />";
if ($it[it_type2]) $str .= " <img src='$g4[shop_img_path]/icon_type2.gif' border='0' align='absmiddle' />";
if ($it[it_type3]) $str .= " <img src='$g4[shop_img_path]/icon_type3.gif' border='0' align='absmiddle' />";
if ($it[it_type4]) $str .= " <img src='$g4[shop_img_path]/icon_type4.gif' border='0' align='absmiddle' />";
if ($it[it_type5]) $str .= " <img src='$g4[shop_img_path]/icon_type5.gif' border='0' align='absmiddle' />";
// 품절
$stock = get_it_stock_qty($it[it_id]);
if ($stock <= 0)
$str .= " <img src='$g4[shop_img_path]/icon_pumjul.gif' border='0' align='absmiddle' /> ";
return $str;
}
이렇게 만드신 다음에
echo "<tr><td align=center>"._icon($row)."</td></tr>";
이 코드를 넣어보시기 바랍니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기