모바일 리스트 스킨 오류 수정
This commit is contained in:
@ -177,7 +177,7 @@ $pg_anchor .= '</ul>';
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
||||
<td>
|
||||
<?php echo help("기본으로 제공하는 스킨은 ".G4_SHOP_DIR."/list.skin.*.php 입니다."); ?>
|
||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
||||
<select id="ca_skin" name="ca_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
|
||||
</select>
|
||||
@ -186,9 +186,9 @@ $pg_anchor .= '</ul>';
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
||||
<td>
|
||||
<?php echo help("기본으로 제공하는 스킨은 ".G4_MOBILE_DIR.'/'.G4_SHOP_DIR."/list.skin.*.php 입니다."); ?>
|
||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_MSHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
||||
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
||||
<?php echo get_list_skin_options("^list.skin.(.*)\.php", G4_MSHOP_PATH, $ca['ca_mobile_skin']); ?>
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $ca['ca_mobile_skin']); ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -67,8 +67,9 @@ if ($is_admin)
|
||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_MSHOP_PATH.'/'.$ca['ca_mobile_skin'];
|
||||
$list_file = G4_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
|
||||
if (file_exists($list_file)) {
|
||||
/*
|
||||
$list_row = $ca['ca_mobile_list_row'];
|
||||
$img_width = $ca['ca_mobile_img_width'];
|
||||
$img_height = $ca['ca_mobile_img_height'];
|
||||
@ -78,10 +79,28 @@ if ($is_admin)
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
echo '<div class="sct_wrap">';
|
||||
include $list_file;
|
||||
echo '</div>';
|
||||
echo '<div class="sct_wrap">';
|
||||
include $list_file;
|
||||
echo '</div>';
|
||||
*/
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ca['ca_list_mod'] * $ca['ca_list_row'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ca['ca_skin'], $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);
|
||||
$list->set_category($ca['ca_id']);
|
||||
$list->set_is_page(true);
|
||||
$list->set_from_record($from_record);
|
||||
echo $list->run();
|
||||
|
||||
// where 된 전체 상품수
|
||||
$total_count = $list->total_count;
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $items);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user