$nav_ca_id = $ca_id;
include G4_SHOP_PATH.'/navigation1.inc.php';
// 상단 이미지
$himg = G4_DATA_URL.'/category/'.$ca_id.'_h';
if (file_exists($himg)) {
echo '
';
}
// 상단 HTML
echo '
'.stripslashes($ca['ca_head_html']).'
';
include G4_SHOP_PATH.'/listcategory3.inc.php';
// 상품 출력순서가 있다면
if ($sort != "") {
$order_by = $sort . " , ";
}
// 상품 (하위 분류의 상품을 모두 포함한다.)
$sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
// 하위분류 포함
// 판매가능한 상품만
$sql_common = " from {$g4['shop_item_table']}
where (ca_id like '{$ca_id}%'
or ca_id2 like '{$ca_id}%'
or ca_id3 like '{$ca_id}%')
and it_use = '1' ";
$error = '
등록된 상품이 없습니다.
';
// 리스트 유형별로 출력
$list_file = G4_SHOP_PATH.'/'.$ca['ca_skin'];
if (file_exists($list_file)) {
//display_type(2, "maintype10.inc.php", 4, 2, 100, 100, $ca[ca_id]);
$list_mod = $ca['ca_list_mod'];
$list_row = $ca['ca_list_row'];
$img_width = $ca['ca_img_width'];
$img_height = $ca['ca_img_height'];
include G4_SHOP_PATH.'/list.sub.php';
include G4_SHOP_PATH.'/list.sort.php';
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
$result = sql_query($sql);
echo '
';
include $list_file;
echo '
';
}
else
{
$i = 0;
$error = '
'.$ca['ca_skin'].' 파일을 찾을 수 없습니다.
관리자에게 알려주시면 감사하겠습니다.
';
}
if ($i==0)
{
echo '
'.$error.'
';
}
$qstr1 .= 'ca_id='.$ca_id.'&skin='.$skin.'&ev_id='.$ev_id.'&sort='.$sort;
echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page=');
?>
'.stripslashes($ca['ca_tail_html']).'
';
// 하단 이미지
$timg = G4_DATA_PATH.'/category/'.$ca_id.'_t';
if (file_exists($timg))
echo '