쇼핑몰: #342 쿠폰 리스트 마크업 수정2

This commit is contained in:
whitedot
2013-11-28 13:51:15 +09:00
5 changed files with 37 additions and 29 deletions

View File

@ -79,7 +79,7 @@ $result = sql_query($sql);
</table>
</div>
<div class="win_btn"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
<div class="win_btn"><button type="button" onclick="window.close();">창닫기</button></div>
</div>
<?php

View File

@ -161,20 +161,24 @@ if(!$it['it_use'] || $it['it_tel_inq'] || $is_soldout)
if($is_orderable) {
// 선택 옵션
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
$option_item = get_item_options($it['it_id'], $it['it_option_subject']);
// 추가 옵션
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
$supply_item = get_item_supply($it['it_id'], $it['it_supply_subject']);
// 상품 선택옵션 수
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
$row = sql_fetch($sql);
$opt_count = $row['cnt'];
$option_count = 0;
if($it['it_option_subject']) {
$temp = explode(',', $it['it_option_subject']);
$option_count = count($temp);
}
// 상품 추가옵션 수
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
$row = sql_fetch($sql);
$spl_count = $row['cnt'];
$supply_count = 0;
if($it['it_supply_subject']) {
$temp = explode(',', $it['it_supply_subject']);
$supply_count = count($temp);
}
}
function pg_anchor($anc_id) {