마이페이지 주문내역 쿼리 수정 및 사용하지 않는 파일 삭제

This commit is contained in:
chicpro
2013-09-24 16:18:21 +09:00
parent aa1e9fa9c4
commit c5fc1319f8
6 changed files with 2 additions and 120 deletions

View File

@ -1,42 +0,0 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// $list_row 상품 수
for ($i=1; $row=sql_fetch_array($result); $i++)
{
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
if ($i == 1) echo '<ul class="sct sct_10">';
?>
<li class="sct_li">
<a href="<?php echo $href; ?>" class="sct_a">
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
<b><?php echo stripslashes($row['it_name']); ?></b>
<?php if ($row['it_cust_price']) { ?>
<s><?php echo display_price($row['it_cust_price']); ?></s>
<?php } ?>
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
<?php if ($row['it_basic']) { ?>
<p><?php echo $row['it_basic']; ?></p>
<?php } ?>
<span class="sct_icon">
<?php echo display_item_icon($row); // 이미지 아이콘?>
</span>
</a>
<div class="sct_sns">
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_URL.'/img/shop/sns_fb.png'); ?>
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_URL.'/img/shop/sns_twt.png'); ?>
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_URL.'/img/shop/sns_goo.png'); ?>
</div>
</li>
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -1,24 +0,0 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$sct_sort_href = $_SERVER['PHP_SELF'].'?';
if($ca_id)
$sct_sort_href .= 'ca_id='.$ca_id;
else if($ev_id)
$sct_sort_href .= 'ev_id='.$ev_id;
if($skin)
$sct_sort_href .= '&amp;skin='.$skin;
$sct_sort_href .= '&amp;sort=';
?>
<!-- 상품 정렬 선택 시작 { -->
<section id="sct_sort">
<h2>상품 정렬</h2>
<ul>
<li><a href="<?php echo $sct_sort_href; ?>it_price&amp;sortodr=asc" class="btn01">낮은가격순</a></li>
<li><a href="<?php echo $sct_sort_href; ?>it_price&amp;sortodr=desc" class="btn01">높은가격순</a></li>
<li><a href="<?php echo $sct_sort_href; ?>it_name&amp;sortodr=asc" class="btn01">상품명순</a></li>
</ul>
</section>
<!-- } 상품 정렬 선택 끝 -->

View File

@ -1,17 +0,0 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 상품수
$items = $list_row;
$sql = "select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row['cnt'];
// 전체 페이지 계산
$total_page = ceil($total_count / $items);
// 페이지가 없으면 첫 페이지 (1 페이지)
if ($page == "") $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $items;
?>

View File

@ -1,33 +0,0 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// $list_row 출력할 이미지 수
for ($i=1; $row=sql_fetch_array($result); $i++) {
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
if ($i == 1) echo '<ul class="sct sct_10">';
?>
<li class="sct_li">
<a href="<?php echo $href; ?>" class="sct_a">
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
<b><?php echo stripslashes($row['it_name']); ?></b>
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
<span class="sct_icon">
<?php echo display_item_icon($row); // 이미지 아이콘?>
</span>
</a>
<div class="sct_sns">
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_URL.'/img/shop/sns_fb.png'); ?>
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_URL.'/img/shop/sns_twt.png'); ?>
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_URL.'/img/shop/sns_goo.png'); ?>
</div>
</li>
<?php
}
if ($i > 1) echo '</ul>';
if($i == 1) echo '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
?>

View File

@ -21,9 +21,8 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
$sql = " select *,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g5['g5_shop_order_table']}
where a.mb_id = '{$member['mb_id']}'
group by a.od_id
order by a.od_id desc
where mb_id = '{$member['mb_id']}'
order by od_id desc
$limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)

View File

@ -25,7 +25,6 @@ $sql = " select *,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g5['g5_shop_order_table']}
where mb_id = '{$member['mb_id']}'
group by od_id
order by od_id desc
$limit ";
$result = sql_query($sql);