diff --git a/adm/shop_admin/iteminfo.php b/adm/shop_admin/iteminfo.php index 341734e74..3db3fc387 100644 --- a/adm/shop_admin/iteminfo.php +++ b/adm/shop_admin/iteminfo.php @@ -66,7 +66,7 @@ include_once(G4_PATH.'/head.sub.php'); - + '; + $str = ''; + + if($img_id) + $str .= ' id="'.$img_id.'"'. + $str .= '>'; } return $str; } // 상품 이미지를 얻는다 -function get_it_image($img, $width=0, $height=0, $id="", $type='') +function get_it_image($img, $width=0, $height=0, $id='', $img_id='') { - $str = get_image($img, $width, $height, $type); + $str = get_image($img, $width, $height, $img_id); if ($id) { $str = ''.$str.''; } @@ -214,9 +219,11 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_ $sql .= " order by it_order, it_id desc limit $items "; $result = sql_query($sql); + /* if (!mysql_num_rows($result)) { return false; } + */ $file = G4_SHOP_PATH.'/'.$skin_file; if (!file_exists($file)) { diff --git a/shop/list.php b/shop/list.php index da3573f97..a4ab2e0fb 100644 --- a/shop/list.php +++ b/shop/list.php @@ -42,7 +42,7 @@ if ($is_admin) // 상품 출력순서가 있다면 if ($sort != "") { - $order_by = $sort . " , "; + $order_by = $sort . ' '.$sortodr. ' , '; } // 상품 (하위 분류의 상품을 모두 포함한다.) @@ -91,7 +91,10 @@ if ($is_admin) echo '
'.$error.'
'; } - $qstr1 .= 'ca_id='.$ca_id.'&skin='.$skin.'&ev_id='.$ev_id.'&sort='.$sort; + $qstr1 .= 'ca_id='.$ca_id; + if($skin) + $qstr1 .= '&skin='.$skin; + $qstr1 .='&ev_id='.$ev_id.'&sort='.$sort.'&'.$sortodr; echo get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr1.'&page='); ?> diff --git a/shop/list.skin.10.php b/shop/list.skin.10.php index f52436e1f..635f3a7dc 100644 --- a/shop/list.skin.10.php +++ b/shop/list.skin.10.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) ?>
  • - + @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/list.skin.11.php b/shop/list.skin.11.php index 4b354ddc0..c6a8a8e39 100644 --- a/shop/list.skin.11.php +++ b/shop/list.skin.11.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) ?>
  • - + @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/list.skin.12.php b/shop/list.skin.12.php index cc63ead67..59ce62a44 100644 --- a/shop/list.skin.12.php +++ b/shop/list.skin.12.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) ?>
  • - + @@ -39,6 +39,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/list.skin.13.php b/shop/list.skin.13.php index f8da714c4..cc12d72e0 100644 --- a/shop/list.skin.13.php +++ b/shop/list.skin.13.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) ?>
  • - + @@ -42,6 +42,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) 구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/list.sort.php b/shop/list.sort.php index 33bb96870..75ae24e32 100644 --- a/shop/list.sort.php +++ b/shop/list.sort.php @@ -1,7 +1,10 @@
    @@ -11,8 +14,8 @@ $sct_sort_href = $_SERVER['PHP_SELF'].'?ca_id='.$ca_id.'&skin='.$skin.'& '; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/maintype11.inc.php b/shop/maintype11.inc.php index b0eeb0be4..38b31c2a4 100644 --- a/shop/maintype11.inc.php +++ b/shop/maintype11.inc.php @@ -20,7 +20,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { ?>
  • - + @@ -33,6 +33,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { 구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/maintype12.inc.php b/shop/maintype12.inc.php index 4a38027d5..851a32065 100644 --- a/shop/maintype12.inc.php +++ b/shop/maintype12.inc.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
  • - +

    @@ -35,6 +35,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
    구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?> diff --git a/shop/maintype13.inc.php b/shop/maintype13.inc.php index 55017d4ff..3f3f72b71 100644 --- a/shop/maintype13.inc.php +++ b/shop/maintype13.inc.php @@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
  • - +

    @@ -38,6 +38,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
    구글플러스에 공유
  • - 1) echo ''; + +if($i == 1) echo '

    등록된 상품이 없습니다.

    '; ?>