리자

1단계 분류의 상, 하단 이미지를 하위 분류에 모두 반영되도록 하는 코드

shop/list.php 의

$himg = "$g4[path]/data/category/{$ca_id}_h";
if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>";
}



$himg = "$g4[path]/data/category/{$ca_id}_h";
if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>";
}
else
{
$himg = "$g4[path]/data/category/".substr($ca_id,0,2)."_h";
if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>";
}
}

게 수정하여 주십시오.







$timg = "$g4[path]/data/category/{$ca_id}_t";
if (file_exists($timg))
echo "<br><img src='$timg' border=0>";
else



$timg = "$g4[path]/data/category/{$ca_id}_t";
if (file_exists($timg))
echo "<br><img src='$timg' border=0>";
else
{
$timg = "$g4[path]/data/category/".substr($ca_id,0,2)."_t";
if (file_exists($timg)) {
echo "<img src='$timg' border=0><br>";
}
}

게 수정하십시오.
|

댓글 1개

확인했습니다^^ 감사합니다!
댓글을 작성하시려면 로그인이 필요합니다. 로그인

영카트4 팁자료실

영카트4와 관련된 팁과 자료를 공개하는 곳입니다. 영카트의 팁은 기본으로 제공하는 기능이 아니므로 고객지원의 대상이 아닙니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 231
19년 전 조회 192
19년 전 조회 500
19년 전 조회 968
19년 전 조회 1,115
19년 전 조회 623
19년 전 조회 642
19년 전 조회 979
19년 전 조회 272
19년 전 조회 381
19년 전 조회 392
19년 전 조회 384
19년 전 조회 1,306
19년 전 조회 1,013
19년 전 조회 1,686
20년 전 조회 1,332
19년 전 조회 238
19년 전 조회 518
19년 전 조회 395
19년 전 조회 458
🐛 버그신고