コード例 #1
0
ファイル: orderaddress.php プロジェクト: peb317/gbamn
    $list[$i]['addr'] = $row['ad_name'] . $sep . $row['ad_tel'] . $sep . $row['ad_hp'] . $sep . $row['ad_zip1'] . $sep . $row['ad_zip2'] . $sep . $row['ad_addr1'] . $sep . $row['ad_addr2'] . $sep . $row['ad_addr3'] . $sep . $row['ad_jibeon'] . $sep . $row['ad_subject'];
    $list[$i]['addr'] = get_text($list[$i]['addr']);
    $list[$i]['ad_name'] = get_text($list[$i]['ad_name']);
    $list[$i]['ad_subject'] = get_text($list[$i]['ad_subject']);
    $list[$i]['del_href'] = $_SERVER['SCRIPT_NAME'] . '?w=d&ad_id=' . $row['ad_id'];
    $list[$i]['print_addr'] = print_address($row['ad_addr1'], $row['ad_addr2'], $row['ad_addr3'], $row['ad_jibeon']);
}
$action_url = G5_HTTPS_SHOP_URL . '/orderaddressupdate.php';
$write_pages = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'];
$list_page = $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&page=';
$pid = $pid ? $pid : '';
// Page ID
$at = apms_page_thema($pid);
include_once G5_LIB_PATH . '/apms.thema.lib.php';
$skin_row = array();
$skin_row = apms_rows('order_' . MOBILE_ . 'skin, order_' . MOBILE_ . 'set');
$order_skin_path = G5_SKIN_PATH . '/apms/order/' . $skin_row['order_' . MOBILE_ . 'skin'];
$order_skin_url = G5_SKIN_URL . '/apms/order/' . $skin_row['order_' . MOBILE_ . 'skin'];
// 스킨설정
$wset = array();
if ($skin_row['order_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['order_' . MOBILE_ . 'set']);
}
$g5['title'] = '배송지 목록';
include_once G5_PATH . '/head.sub.php';
@(include_once THEMA_PATH . '/head.sub.php');
$skin_path = $order_skin_path;
$skin_url = $order_skin_url;
include_once $skin_path . '/orderaddress.skin.php';
@(include_once THEMA_PATH . '/tail.sub.php');
include_once G5_PATH . '/tail.sub.php';
コード例 #2
0
ファイル: itemrelation.php プロジェクト: peb317/gbamn
if (!defined('_GNUBOARD_')) {
    $is_item = false;
    include_once './_common.php';
    include_once G5_LIB_PATH . '/thumbnail.lib.php';
    $it = apms_it($it_id);
    $ca_id = $ca_id ? $ca_id : $it['ca_id'];
    $ca = sql_fetch(" select as_item_set, as_mobile_item_set from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' ");
    $at = apms_ca_thema($ca_id, $ca, 1);
    if (!defined('THEMA_PATH')) {
        include_once G5_LIB_PATH . '/apms.thema.lib.php';
    }
    $item_skin = apms_itemview_skin($at['item'], $ca_id, $it['ca_id']);
    // 출력수
    if (!$rrows || !$rmods) {
        $itemrows = apms_rows('irelation_' . MOBILE_ . 'mods', 'irelation_' . MOBILE_ . 'rows');
    }
    $wset = array();
    if ($ca['as_' . MOBILE_ . 'item_set']) {
        $wset = apms_unpack($ca['as_' . MOBILE_ . 'item_set']);
    }
    // 데모
    if ($is_demo) {
        @(include THEMA_PATH . '/assets/demo.config.php');
    }
    $item_skin_path = G5_SKIN_PATH . '/apms/item/' . $item_skin;
    $item_skin_url = G5_SKIN_URL . '/apms/item/' . $item_skin;
} else {
    $page = 0;
}
$sql_common = " from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it_id}' and b.it_use='1' ";
コード例 #3
0
ファイル: event.php プロジェクト: peb317/gbamn
 $where = '';
 if ($etype) {
     $where .= " and ev_type = '{$etype}'";
 }
 if ($etype) {
     $qstr .= '&etype=' . $etype;
 }
 if ($eimg) {
     $qstr .= '&eimg=' . $eimg;
 }
 // 배너이미지
 if ($eimg != 's') {
     $eimg = 'm';
 }
 $skin_row = array();
 $skin_row = apms_rows('event_' . MOBILE_ . 'mods, event_' . MOBILE_ . 'rows, event_' . MOBILE_ . 'skin, event_' . MOBILE_ . 'set');
 $skin_name = $skin_row['event_' . MOBILE_ . 'skin'];
 $list_mods = $skin_row['event_' . MOBILE_ . 'mods'];
 $list_rows = $skin_row['event_' . MOBILE_ . 'rows'];
 // 스킨설정
 $wset = array();
 if ($skin_row['event_' . MOBILE_ . 'set']) {
     $wset = apms_unpack($skin_row['event_' . MOBILE_ . 'set']);
 }
 // 데모
 if ($is_demo) {
     $pid = 'iev';
     @(include THEMA_PATH . '/assets/demo.config.php');
 }
 include_once './_head.php';
 $skin_path = G5_SKIN_PATH . '/apms/event/' . $skin_name;
コード例 #4
0
ファイル: itemuseview.php プロジェクト: peb317/gbamn
    $view['is_edit_href'] = './itemuseform.php?it_id=' . $view['it_id'] . '&is_id=' . $is_id . '&page=' . $page . '&w=u&move=3';
    $hash = md5($view['is_id'] . $view['is_time'] . $view['is_ip']);
    $view['is_del_href'] = './itemuseformupdate.php?it_id=' . $view['it_id'] . '&is_id=' . $is_id . '&w=d&move=2&hash=' . $hash;
}
$view['is_time'] = strtotime($view['is_time']);
$view['is_photo'] = apms_photo_url($view['mb_id']);
$view['is_content'] = apms_content(conv_content($view['is_content'], 1));
$view['it_href'] = './item.php?it_id=' . $view['it_id'];
// Page ID
$pid = $pid ? $pid : 'iuse';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
$skin_row = array();
$skin_row = apms_rows('use_' . MOBILE_ . 'rows, use_' . MOBILE_ . 'skin, use_' . MOBILE_ . 'set');
$skin_name = $skin_row['use_' . MOBILE_ . 'skin'];
// 스킨설정
$wset = array();
if ($skin_row['use_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['use_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/use/' . $skin_name;
$skin_url = G5_SKIN_URL . '/apms/use/' . $skin_name;
// 셋업
$setup_href = '';
if ($is_demo || $is_admin == 'super') {
コード例 #5
0
ファイル: skin.setup.php プロジェクト: peb317/gbamn
         //상품후기
         $row = apms_rows();
         $skin_set = $row['use_' . MOBILE_ . 'set'];
         $skin_pc = $row['use_skin'];
         $skin_mobile = $row['use_mobile_skin'];
         $skin_name = G5_IS_MOBILE ? $skin_mobile : $skin_pc;
         if ($name) {
             $skin_name = $name;
         }
         $skin_path = G5_SKIN_PATH . '/apms/use/' . $skin_name;
         $skin_url = G5_SKIN_URL . '/apms/use/' . $skin_name;
         $title = '상품후기';
     } else {
         if ($skin == 'order') {
             //주문/결제
             $row = apms_rows();
             $skin_set = $row['order_' . MOBILE_ . 'set'];
             $skin_pc = $row['order_skin'];
             $skin_mobile = $row['order_mobile_skin'];
             $skin_name = G5_IS_MOBILE ? $skin_mobile : $skin_pc;
             if ($name) {
                 $skin_name = $name;
             }
             $skin_path = G5_SKIN_PATH . '/apms/order/' . $skin_name;
             $skin_url = G5_SKIN_URL . '/apms/order/' . $skin_name;
             $title = '주문/결제';
         } else {
             alert_close('값이 넘어오지 않았습니다.');
         }
     }
 }
コード例 #6
0
ファイル: itemqaview.php プロジェクト: peb317/gbamn
    $view['iq_del_href'] = './itemqaformupdate.php?it_id=' . $view['it_id'] . '&iq_id=' . $iq_id . '&w=d&move=2&hash=' . $hash;
}
$view['iq_time'] = strtotime($view['iq_time']);
$view['iq_photo'] = apms_photo_url($view['mb_id']);
$view['iqa_photo'] = $view['pt_id'] ? apms_photo_url($view['pt_id']) : apms_photo_url($config['cf_admin']);
$view['iq_question'] = apms_content(conv_content($view['iq_question'], 1));
$view['iq_answer'] = apms_content(conv_content($view['iq_answer'], 1));
$view['it_href'] = './item.php?it_id=' . $view['it_id'];
// Page ID
$pid = $pid ? $pid : 'iqa';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
$skin_row = array();
$skin_row = apms_rows('qa_' . MOBILE_ . 'rows, qa_' . MOBILE_ . 'skin, qa_' . MOBILE_ . 'set');
$skin_name = $skin_row['qa_' . MOBILE_ . 'skin'];
// 스킨설정
$wset = array();
if ($skin_row['qa_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['qa_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/qa/' . $skin_name;
$skin_url = G5_SKIN_URL . '/apms/qa/' . $skin_name;
// 셋업
$setup_href = '';
if ($is_demo || $is_admin == 'super') {
コード例 #7
0
ファイル: itemuse.php プロジェクト: peb317/gbamn
    if (USE_G5_THEME && defined('G5_THEME_PATH')) {
        require_once G5_SHOP_PATH . '/yc/itemuse.php';
        return;
    }
    include_once G5_LIB_PATH . '/thumbnail.lib.php';
    $it = apms_it($it_id);
    $ca_id = $ca_id ? $ca_id : $it['ca_id'];
    $ca = sql_fetch(" select as_item_set, as_mobile_item_set from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' ");
    $at = apms_ca_thema($ca_id, $ca, 1);
    if (!defined('THEMA_PATH')) {
        include_once G5_LIB_PATH . '/apms.thema.lib.php';
    }
    $item_skin = apms_itemview_skin($at['item'], $ca_id, $it['ca_id']);
    // 출력수
    if (!$urows) {
        $itemrows = apms_rows('iuse_' . MOBILE_ . 'rows');
    }
    $wset = array();
    if ($ca['as_' . MOBILE_ . 'item_set']) {
        $wset = apms_unpack($ca['as_' . MOBILE_ . 'item_set']);
    }
    // 데모
    if ($is_demo) {
        @(include THEMA_PATH . '/assets/demo.config.php');
    }
    $item_skin_path = G5_SKIN_PATH . '/apms/item/' . $item_skin;
    $item_skin_url = G5_SKIN_URL . '/apms/item/' . $item_skin;
} else {
    if (USE_G5_THEME && defined('G5_THEME_PATH')) {
        require_once G5_SHOP_PATH . '/yc/itemuse.php';
        return;
コード例 #8
0
ファイル: myshop.php プロジェクト: peb317/gbamn
if (isset($ca_id) && $ca_id) {
    $where .= " and (ca_id like '{$ca_id}%' or ca_id2 like '{$ca_id}%' or ca_id3 like '{$ca_id}%')";
    $qstr .= '&ca_id=' . $ca_id;
}
// 정렬
$list_sort_href = $_SERVER['PHP_SELF'] . '?id=' . $id . $qstr . '&sort=';
if ($sort) {
    $qstr .= '&sort=' . $sort;
}
if ($sortodr) {
    $qstr .= '&sortodr=' . $sortodr;
}
// 상품리스트
$list = array();
$skin_row = array();
$skin_row = apms_rows('myshop_' . MOBILE_ . 'mods, myshop_' . MOBILE_ . 'rows, myshop_' . MOBILE_ . 'img_width, myshop_' . MOBILE_ . 'img_height, myshop_' . MOBILE_ . 'skin, myshop_' . MOBILE_ . 'set');
$skin_name = $skin_row['myshop_' . MOBILE_ . 'skin'];
$list_mods = $skin_row['myshop_' . MOBILE_ . 'mods'];
$list_rows = $skin_row['myshop_' . MOBILE_ . 'rows'];
$thumb_w = $skin_row['myshop_' . MOBILE_ . 'img_width'];
$thumb_h = $skin_row['myshop_' . MOBILE_ . 'img_height'];
// 스킨설정
$wset = array();
if ($skin_row['myshop_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['myshop_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/myshop/' . $skin_name;
コード例 #9
0
ファイル: item.php プロジェクト: peb317/gbamn
        $edit_href = G5_SHOP_URL . '/partner/?ap=item&w=u&it_id=' . $it_id . '&fn=' . $ca['pt_form'];
    }
    $write_href = $is_admin == 'super' || IS_PARTNER ? G5_SHOP_URL . '/partner/?ap=item&fn=' . $ca['pt_form'] : '';
} else {
    if ($is_admin == 'super') {
        $item_href = G5_ADMIN_URL . '/shop_admin/itemlist.php';
        $edit_href = G5_ADMIN_URL . '/shop_admin/itemform.php?w=u&it_id=' . $it_id . '&fn=' . $ca['pt_form'];
    }
    $write_href = $is_admin == 'super' ? G5_ADMIN_URL . '/shop_admin/itemform.php?fn=' . $ca['pt_form'] : '';
}
$list_href = $itempage ? './list.php?ca_id=' . $ca_id . '&page=' . $itempage : './list.php?ca_id=' . $ca_id;
$it_head_html = conv_content($it['it_' . MOBILE_ . 'head_html'], 1);
$it_tail_html = conv_content($it['it_' . MOBILE_ . 'tail_html'], 1);
// Rows
$itemrows = array();
$itemrows = apms_rows('icomment_' . MOBILE_ . 'rows, iuse_' . MOBILE_ . 'rows, iqa_' . MOBILE_ . 'rows, irelation_' . MOBILE_ . 'mods, irelation_' . MOBILE_ . 'rows');
// 스킨경로
$item_skin = apms_itemview_skin($at['item'], $ca_id, $it['ca_id']);
// 스킨설정
$wset = array();
if ($ca['as_' . MOBILE_ . 'item_set']) {
    $wset = apms_unpack($ca['as_' . MOBILE_ . 'item_set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$item_skin_path = G5_SKIN_PATH . '/apms/item/' . $item_skin;
$item_skin_url = G5_SKIN_URL . '/apms/item/' . $item_skin;
// 셋업
$setup_href = '';
コード例 #10
0
ファイル: itemqa.php プロジェクト: peb317/gbamn
    if (USE_G5_THEME && defined('G5_THEME_PATH')) {
        require_once G5_SHOP_PATH . '/yc/itemqa.php';
        return;
    }
    include_once G5_LIB_PATH . '/thumbnail.lib.php';
    $it = apms_it($it_id);
    $ca_id = $ca_id ? $ca_id : $it['ca_id'];
    $ca = sql_fetch(" select as_item_set, as_mobile_item_set from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' ");
    $at = apms_ca_thema($ca_id, $ca, 1);
    if (!defined('THEMA_PATH')) {
        include_once G5_LIB_PATH . '/apms.thema.lib.php';
    }
    $item_skin = apms_itemview_skin($at['item'], $ca_id, $it['ca_id']);
    // 출력수
    if (!$qrows) {
        $itemrows = apms_rows('iqa_' . MOBILE_ . 'rows');
    }
    $wset = array();
    if ($ca['as_' . MOBILE_ . 'item_set']) {
        $wset = apms_unpack($ca['as_' . MOBILE_ . 'item_set']);
    }
    // 데모
    if ($is_demo) {
        @(include THEMA_PATH . '/assets/demo.config.php');
    }
    $item_skin_path = G5_SKIN_PATH . '/apms/item/' . $item_skin;
    $item_skin_url = G5_SKIN_URL . '/apms/item/' . $item_skin;
    $is_author = $is_member && $it['pt_id'] && $it['pt_id'] == $member['mb_id'] ? true : false;
    $author_id = $it['pt_id'] ? $it['pt_id'] : $config['cf_admin'];
    $author_photo = apms_photo_url($author_id);
} else {
コード例 #11
0
ファイル: search.php プロジェクト: peb317/gbamn
$category = array();
$sql = " select b.ca_id, b.ca_name, count(*) as cnt {$sql_common} {$sql_where} group by b.ca_id order by b.ca_id ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $category[$i] = $row;
}
// Page ID
$pid = $pid ? $pid : 'isearch';
$at = apms_page_thema($pid);
if (!defined('THEMA_PATH')) {
    include_once G5_LIB_PATH . '/apms.thema.lib.php';
}
// 리스트
$list = array();
$skin_row = array();
$skin_row = apms_rows('search_' . MOBILE_ . 'set');
$skin_name = $default['de_' . MOBILE_ . 'search_list_skin'];
$thumb_w = $default['de_' . MOBILE_ . 'search_img_width'];
$thumb_h = $default['de_' . MOBILE_ . 'search_img_height'];
$list_mods = $default['de_' . MOBILE_ . 'search_list_mod'];
$list_rows = $default['de_' . MOBILE_ . 'search_list_row'];
// 스킨설정
$wset = array();
if ($skin_row['search_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['search_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/search/' . $skin_name;
コード例 #12
0
ファイル: apms.thema.php プロジェクト: peb317/gbamn
		</tbody>
		</table>
	</div>

	<?php 
    echo $frm_submit;
    ?>

	<br>

	<div class="local_desc01 local_desc">
		<p><b>● Shop 페이지 설정</b> - 페이지별 기본 출력 목록수, 페이지 스킨 등</p>
	</div>

	<?php 
    $rows = apms_rows();
    ?>
	<div class="tbl_head01 tbl_wrap">
		<table>
	    <thead>
		<tr>
		<th width=80 rowspan=2>구분</th>
		<th width=80 rowspan=2>항목</th>
		<th colspan=2>PC</th>
		<th colspan=2>모바일</th>
		<th colspan=2>PC 썸네일</th>
		<th colspan=2>모바일 썸네일</th>
		<th colspan=2>페이지스킨</th>
		<th rowspan=2>설명</th>
		</tr>
		<tr>
コード例 #13
0
ファイル: itemcomment.php プロジェクト: peb317/gbamn
}
if (!$is_comment) {
    return;
}
if (!$is_item) {
    if (!$ca_id) {
        $ca_id = $it['ca_id'];
    }
    if (!$item_skin_path) {
        $ca = sql_fetch(" select as_item_set, as_mobile_item_set from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' ");
        $at = apms_ca_thema($ca_id, $ca, 1);
        include_once G5_LIB_PATH . '/apms.thema.lib.php';
        $item_skin = apms_itemview_skin($at['item'], $ca_id, $it['ca_id']);
        // 출력수
        if (!$crows) {
            $itemrows = apms_rows('icomment_' . MOBILE_ . 'rows');
        }
        $wset = array();
        if ($ca['as_' . MOBILE_ . 'item_set']) {
            $wset = apms_unpack($ca['as_' . MOBILE_ . 'item_set']);
        }
        // 데모
        if ($is_demo) {
            @(include THEMA_PATH . '/assets/demo.config.php');
        }
        $item_skin_path = G5_SKIN_PATH . '/apms/item/' . $item_skin;
        $item_skin_url = G5_SKIN_URL . '/apms/item/' . $item_skin;
    }
    // 파트너 체크
    if (!$it['it_id']) {
        $it = sql_fetch(" select pt_id from {$g5['g5_shop_item_table']} where it_id = '{$it_id}' ");
コード例 #14
0
ファイル: listtype.php プロジェクト: peb317/gbamn
if ($i == 0 && $ca_id_len > 2) {
    $ca_id_pre = substr($ca_id, 0, $len1);
    $result = sql_query(" select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '{$ca_id_pre}%' and length(ca_id) = {$ca_id_len} and ca_use = '1' order by ca_order, ca_id ");
    for ($i = 0; $row = sql_fetch_array($result); $i++) {
        $row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1'  ");
        $cate[$i]['ca_id'] = $row['ca_id'];
        // 현재 분류와 일치체크
        $cate[$i]['name'] = $row['ca_name'];
        $cate[$i]['cnt'] = $row2['cnt'];
        $cate[$i]['on'] = $row['ca_id'] === $ca_id ? true : false;
    }
}
$is_cate = $i > 0 ? true : false;
// Rows
$skin_row = array();
$skin_row = apms_rows('type_' . MOBILE_ . 'mods, type_' . MOBILE_ . 'rows, type_' . MOBILE_ . 'img_width, type_' . MOBILE_ . 'img_height, type_' . MOBILE_ . 'skin, type_' . MOBILE_ . 'set');
$skin_name = $skin_row['type_' . MOBILE_ . 'skin'];
$list_mods = $skin_row['type_' . MOBILE_ . 'mods'];
$list_rows = $skin_row['type_' . MOBILE_ . 'rows'];
$thumb_w = $skin_row['type_' . MOBILE_ . 'img_width'];
$thumb_h = $skin_row['type_' . MOBILE_ . 'img_height'];
// 스킨설정
$wset = array();
if ($skin_row['type_' . MOBILE_ . 'set']) {
    $wset = apms_unpack($skin_row['type_' . MOBILE_ . 'set']);
}
// 데모
if ($is_demo) {
    @(include THEMA_PATH . '/assets/demo.config.php');
}
$skin_path = G5_SKIN_PATH . '/apms/type/' . $skin_name;