테스트 사이트 - 개발 중인 베타 버전입니다

메인화면에 출력되는 상품에 테두리 넣기

· 13년 전 · 64 · 2
메인화면에 출력되는 상품에 테두리 넣는 방법알려주세요 ~

maintype10.inc.php 에

echo "</tr>\n\n<tr>\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}

이렇게 수정하는걸로 알았는데 안되네요...


그리고 메인에 히트상품과 추천상품출력이되는데 여기도 icon_type1.gif 이런 아이콘들이 출력되게하는 방법도 알려주세요

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

shop/maintype10.inc.php 의

<tr><td align=center><?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a></td></tr>



<tr><td align=center><?=$href?><?=preg_replace("#(<img)#", "$1 style='border:1px solid #000;'", get_it_image($row[it_id]."_s", $img_width, $img_height))?></a></td></tr>

로 수정해 봤습니다.

색깔 변경시 #000 를 다른 값으로 변경하시기 바랍니다.
shop/maintype10.inc.php 를 아래와 같이 수정했습니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i > 0 && $i % $list_mod == 0) {
echo "</tr>\n\n<tr>\n";
}

$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";

$sql2 = " select * from $g4[yc4_item_table] where it_id = '$row[it_id]' ";
$row2 = sql_fetch($sql2);

// 특정상품아이콘
$icon = "";
if ($row2[it_type1]) $icon .= " <img src='$g4[shop_img_path]/icon_type1.gif' border=0 align=absmiddle>";
if ($row2[it_type2]) $icon .= " <img src='$g4[shop_img_path]/icon_type2.gif' border=0 align=absmiddle>";
if ($row2[it_type3]) $icon .= " <img src='$g4[shop_img_path]/icon_type3.gif' border=0 align=absmiddle>";
if ($row2[it_type4]) $icon .= " <img src='$g4[shop_img_path]/icon_type4.gif' border=0 align=absmiddle>";
if ($row2[it_type5]) $icon .= " <img src='$g4[shop_img_path]/icon_type5.gif' border=0 align=absmiddle>";
?>
<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?><?=preg_replace("#(<img)#", "$1 style='border:1px solid #000;'", get_it_image($row[it_id]."_s", $img_width, $img_height))?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row[it_name])?></a> <?=$icon?></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>
</table></td>
<?
/*
// 이미지 오른쪽에 구분선을 두는 경우 (이미지로 대체 가능)
if ($i%$list_mod!=$list_mod-1)
echo "<td width=1 bgcolor=#eeeeee></td>";
*/
}

// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo "<td>&nbsp;</td>\n";
?>
</tr>
</table>

게시글 목록

번호 제목
56073
56067
56065
56060
56058
56055
56051
56048
56044
56043
56042
56039
56035
56032
56030
56028
56025
56018
56012
56010