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>";
}
}
게 수정하십시오.
$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개