Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -24,7 +24,14 @@ function print_menu2($key, $no)
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
continue;
|
||||
|
||||
$str .= '<li class="gnb_2depth"><a href="'.$menu[$key][$i][2].'">'.$menu[$key][$i][1].'</a></li>';
|
||||
if ($menu[$key][$i][4] == 1 && $gnb_grp_style == false) $gnb_grp_div = 'gnb_grp_div';
|
||||
else if ($menu[$key][$i][4] != 1 && $gnb_grp_style == true) $gnb_grp_div = 'gnb_grp_div';
|
||||
else $gnb_grp_div = '';
|
||||
|
||||
if ($menu[$key][$i][4] == 1) $gnb_grp_style = 'gnb_grp_style';
|
||||
else $gnb_grp_style = '';
|
||||
|
||||
$str .= '<li class="gnb_2depth"><a href="'.$menu[$key][$i][2].'" class="'.$gnb_grp_style.' '.$gnb_grp_div.'">'.$menu[$key][$i][1].'</a></li>';
|
||||
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
}
|
||||
@ -74,9 +81,9 @@ function imageview(id, w, h)
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_URL?>/">
|
||||
<a href="<?=G4_SHOP_URL?>/">
|
||||
<img src="<?=G4_ADMIN_URL?>/img/snb_home.jpg" alt="" width="28" height="28">
|
||||
홈페이지 메인
|
||||
쇼핑몰 메인
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
<?
|
||||
$menu['menu100'] = array (
|
||||
array('100000', '환경설정', G4_ADMIN_URL.'/config_form.php', 'config'),
|
||||
array('', '기본환경설정', G4_ADMIN_URL.'/config_form.php', 'cf_basic'),
|
||||
array('', '관리권한설정', G4_ADMIN_URL.'/auth_list.php', 'cf_auth'),
|
||||
array('100300', '메일 테스트', G4_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'),
|
||||
array('100000', '환경설정', G4_ADMIN_URL.'/config_form.php', 'config'),
|
||||
array('', '기본환경설정', G4_ADMIN_URL.'/config_form.php', 'cf_basic'),
|
||||
array('', '관리권한설정', G4_ADMIN_URL.'/auth_list.php', 'cf_auth'),
|
||||
array('100300', '메일 테스트', G4_ADMIN_URL.'/sendmail_test.php', 'cf_mailtest'),
|
||||
//array('100400', '버전정보', G4_ADMIN_URL.'/version.php', 'cf_version'),
|
||||
array('100800', '세션파일 일괄삭제',G4_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1),
|
||||
array('100900', '캐쉬파일 일괄삭제',G4_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1),
|
||||
array('100500', 'phpinfo()', G4_ADMIN_URL.'/phpinfo.php', 'cf_phpinfo'),
|
||||
//array('100600', '업그레이드', G4_ADMIN_URL.'/upgrade.php', 'cf_upgrade'),
|
||||
//array('100700', '복구/최적화', G4_ADMIN_URL.'/repair.php', 'cf_repair'),
|
||||
array('100800', '세션파일 일괄삭제',G4_ADMIN_URL.'/session_file_delete.php', 'cf_session'),
|
||||
array('100900', '캐쉬파일 일괄삭제',G4_ADMIN_URL.'/cache_file_delete.php', 'cf_cache'),
|
||||
//array('', 'phpMyAdmin', ''.$g4['path'].'/'.$g4['phpmyadmin_dir'].'', 'cf_phpmyadmin')
|
||||
);
|
||||
?>
|
||||
@ -1,10 +1,10 @@
|
||||
<?
|
||||
$menu['menu200'] = array (
|
||||
array('200000', '회원관리', G4_ADMIN_URL.'/member_list.php', 'member'),
|
||||
array('200100', '회원관리', G4_ADMIN_URL.'/member_list.php', 'mb_list'),
|
||||
array('200200', '포인트관리', G4_ADMIN_URL.'/point_list.php', 'mb_point'),
|
||||
array('200300', '회원메일발송', G4_ADMIN_URL.'/mail_list.php', 'mb_mail'),
|
||||
array('200800', '접속자집계', G4_ADMIN_URL.'/visit_list.php', 'mb_visit'),
|
||||
array('200900', '투표관리', G4_ADMIN_URL.'/poll_list.php', 'mb_poll')
|
||||
array('200000', '회원관리', G4_ADMIN_URL.'/member_list.php', 'member'),
|
||||
array('200100', '회원관리', G4_ADMIN_URL.'/member_list.php', 'mb_list'),
|
||||
array('200300', '회원메일발송', G4_ADMIN_URL.'/mail_list.php', 'mb_mail'),
|
||||
array('200800', '접속자집계', G4_ADMIN_URL.'/visit_list.php', 'mb_visit', 1),
|
||||
array('200200', '포인트관리', G4_ADMIN_URL.'/point_list.php', 'mb_point'),
|
||||
array('200900', '투표관리', G4_ADMIN_URL.'/poll_list.php', 'mb_poll')
|
||||
);
|
||||
?>
|
||||
@ -3,7 +3,7 @@ $menu['menu300'] = array (
|
||||
array('300000', '게시판관리', ''.G4_ADMIN_URL.'/board_list.php', 'board'),
|
||||
array('300100', '게시판관리', ''.G4_ADMIN_URL.'/board_list.php', 'bbs_board'),
|
||||
array('300200', '게시판그룹관리', ''.G4_ADMIN_URL.'/boardgroup_list.php', 'bbs_group'),
|
||||
array('300300', '인기검색어관리', ''.G4_ADMIN_URL.'/popular_list.php', 'bbs_poplist'),
|
||||
array('300400', '인기검색어순위', ''.G4_ADMIN_URL.'/popular_rank.php', 'bbs_poprank'),
|
||||
array('300300', '인기검색어관리', ''.G4_ADMIN_URL.'/popular_list.php', 'bbs_poplist', 1),
|
||||
array('300400', '인기검색어순위', ''.G4_ADMIN_URL.'/popular_rank.php', 'bbs_poprank', 1),
|
||||
);
|
||||
?>
|
||||
@ -1,23 +1,23 @@
|
||||
<?
|
||||
$menu['menu400'] = array (
|
||||
array('', '쇼핑몰관리', G4_ADMIN_URL.'/shop_admin/'),
|
||||
array('400100', '쇼핑몰설정', G4_ADMIN_URL.'/shop_admin/configform.php'),
|
||||
array('400200', '분류관리', G4_ADMIN_URL.'/shop_admin/categorylist.php'),
|
||||
array('400300', '상품관리', G4_ADMIN_URL.'/shop_admin/itemlist.php'),
|
||||
array('400400', '주문관리', G4_ADMIN_URL.'/shop_admin/orderlist.php'),
|
||||
array('400410', '주문개별관리', G4_ADMIN_URL.'/shop_admin/orderstatuslist.php'),
|
||||
array('400420', '주문통합관리', G4_ADMIN_URL.'/shop_admin/orderlist2.php'),
|
||||
array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php'),
|
||||
array('400610', '상품유형관리', G4_ADMIN_URL.'/shop_admin/itemtypelist.php'),
|
||||
array('400620', '상품재고관리', G4_ADMIN_URL.'/shop_admin/itemstocklist.php'),
|
||||
array('400630', '이벤트관리', G4_ADMIN_URL.'/shop_admin/itemevent.php'),
|
||||
array('400640', '이벤트일괄처리', G4_ADMIN_URL.'/shop_admin/itemeventlist.php'),
|
||||
array('400650', '사용후기', G4_ADMIN_URL.'/shop_admin/itempslist.php'),
|
||||
array('400660', '상품문의', G4_ADMIN_URL.'/shop_admin/itemqalist.php'),
|
||||
array('400700', '내용관리', G4_ADMIN_URL.'/shop_admin/contentlist.php'),
|
||||
array('400710', 'FAQ 관리', G4_ADMIN_URL.'/shop_admin/faqmasterlist.php'),
|
||||
array('400720', '새창관리', G4_ADMIN_URL.'/shop_admin/newwinlist.php'),
|
||||
array('400730', '배너관리', G4_ADMIN_URL.'/shop_admin/bannerlist.php'),
|
||||
array('400740', '배송회사관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php')
|
||||
array('400000', '쇼핑몰관리', G4_ADMIN_URL.'/shop_admin/', 'shop_config'),
|
||||
array('400100', '쇼핑몰설정', G4_ADMIN_URL.'/shop_admin/configform.php', 'scf_config'),
|
||||
array('400400', '주문내역', G4_ADMIN_URL.'/shop_admin/orderlist.php', 'scf_order', 1),
|
||||
array('400410', '주문개별내역', G4_ADMIN_URL.'/shop_admin/orderstatuslist.php', 'scf_order_by', 1),
|
||||
array('400420', '주문통합내역', G4_ADMIN_URL.'/shop_admin/orderlist2.php', 'scf_order_all', 1),
|
||||
array('400200', '분류관리', G4_ADMIN_URL.'/shop_admin/categorylist.php', 'scf_cate'),
|
||||
array('400300', '상품관리', G4_ADMIN_URL.'/shop_admin/itemlist.php', 'scf_item'),
|
||||
array('400660', '상품문의', G4_ADMIN_URL.'/shop_admin/itemqalist.php', 'scf_item_qna'),
|
||||
array('400650', '사용후기', G4_ADMIN_URL.'/shop_admin/itempslist.php', 'scf_ps'),
|
||||
array('400620', '상품재고관리', G4_ADMIN_URL.'/shop_admin/itemstocklist.php', 'scf_item_stock'),
|
||||
array('400610', '상품유형관리', G4_ADMIN_URL.'/shop_admin/itemtypelist.php', 'scf_item_type'),
|
||||
array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1),
|
||||
array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1),
|
||||
array('400630', '이벤트관리', G4_ADMIN_URL.'/shop_admin/itemevent.php', 'scf_event'),
|
||||
array('400640', '이벤트일괄처리', G4_ADMIN_URL.'/shop_admin/itemeventlist.php', 'scf_event_mng'),
|
||||
array('400700', '내용관리', G4_ADMIN_URL.'/shop_admin/contentlist.php', 'scf_contents', 1),
|
||||
array('400710', 'FAQ 관리', G4_ADMIN_URL.'/shop_admin/faqmasterlist.php', 'scf_faq', 1),
|
||||
array('400730', '배너관리', G4_ADMIN_URL.'/shop_admin/bannerlist.php', 'scf_banner', 1),
|
||||
array('400720', '팝업레이어관리', G4_ADMIN_URL.'/shop_admin/newwinlist.php', 'scf_poplayer', 1)
|
||||
);
|
||||
?>
|
||||
@ -1,12 +1,12 @@
|
||||
<?
|
||||
$menu['menu500'] = array (
|
||||
array('', '쇼핑몰현황/기타', G4_ADMIN_URL.'/shop_admin/itemsellrank.php'),
|
||||
array('500100', '상품판매순위', G4_ADMIN_URL.'/shop_admin/itemsellrank.php'),
|
||||
array('500110', '매출현황', G4_ADMIN_URL.'/shop_admin/sale1.php'),
|
||||
array('500120', '주문내역출력', G4_ADMIN_URL.'/shop_admin/orderprint.php'),
|
||||
array('500130', '전자결제내역', G4_ADMIN_URL.'/shop_admin/ordercardhistory.php'),
|
||||
array('500140', '보관함현황', G4_ADMIN_URL.'/shop_admin/wishlist.php'),
|
||||
array('500200', 'SMS 문자전송', G4_ADMIN_URL.'/shop_admin/smssend.php'),
|
||||
array('500210', '가격비교사이트', G4_ADMIN_URL.'/shop_admin/price.php')
|
||||
array('500000', '쇼핑몰현황/기타', G4_ADMIN_URL.'/shop_admin/itemsellrank.php', 'shop_stats'),
|
||||
array('500110', '매출현황', G4_ADMIN_URL.'/shop_admin/sale1.php', 'sst_order_stats'),
|
||||
array('500100', '상품판매순위', G4_ADMIN_URL.'/shop_admin/itemsellrank.php', 'sst_rank'),
|
||||
array('500120', '주문내역출력', G4_ADMIN_URL.'/shop_admin/orderprint.php', 'sst_print_order', 1),
|
||||
array('500130', '전자결제내역', G4_ADMIN_URL.'/shop_admin/ordercardhistory.php', 'sst_pg', 1),
|
||||
array('500140', '보관함현황', G4_ADMIN_URL.'/shop_admin/wishlist.php', 'sst_wish'),
|
||||
array('500200', 'SMS 문자전송', G4_ADMIN_URL.'/shop_admin/smssend.php', 'sst_sms'),
|
||||
array('500210', '가격비교사이트', G4_ADMIN_URL.'/shop_admin/price.php', 'sst_compare', 1)
|
||||
);
|
||||
?>
|
||||
@ -8,7 +8,7 @@ $html_title = '배너';
|
||||
if ($w=="u")
|
||||
{
|
||||
$html_title .= ' 수정';
|
||||
$sql = " select * from {$g4['yc4_banner_table']} where bn_id = '$bn_id' ";
|
||||
$sql = " select * from {$g4['shop_banner_table']} where bn_id = '$bn_id' ";
|
||||
$bn = sql_fetch($sql);
|
||||
}
|
||||
else
|
||||
|
||||
@ -21,9 +21,9 @@ if ($w=="")
|
||||
{
|
||||
if (!$bn_bimg_name) alert('배너 이미지를 업로드 하세요.');
|
||||
|
||||
sql_query(" alter table {$g4['yc4_banner_table']} auto_increment=1 ");
|
||||
sql_query(" alter table {$g4['shop_banner_table']} auto_increment=1 ");
|
||||
|
||||
$sql = " insert into {$g4['yc4_banner_table']}
|
||||
$sql = " insert into {$g4['shop_banner_table']}
|
||||
set bn_alt = '$bn_alt',
|
||||
bn_url = '$bn_url',
|
||||
bn_position = '$bn_position',
|
||||
@ -40,7 +40,7 @@ if ($w=="")
|
||||
}
|
||||
else if ($w=="u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_banner_table']}
|
||||
$sql = " update {$g4['shop_banner_table']}
|
||||
set bn_alt = '$bn_alt',
|
||||
bn_url = '$bn_url',
|
||||
bn_position = '$bn_position',
|
||||
@ -56,7 +56,7 @@ else if ($w=="d")
|
||||
{
|
||||
@unlink(G4_DATA_PATH."/banner/$bn_id");
|
||||
|
||||
$sql = " delete from {$g4['yc4_banner_table']} where bn_id = $bn_id ";
|
||||
$sql = " delete from {$g4['shop_banner_table']} where bn_id = $bn_id ";
|
||||
$result = sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '배너관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_banner_table']} ";
|
||||
$sql_common = " from {$g4['shop_banner_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
@ -54,7 +54,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$sql = " select * from {$g4['yc4_banner_table']}
|
||||
$sql = " select * from {$g4['shop_banner_table']}
|
||||
order by bn_order, bn_id desc
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$category_path = G4_DATA_PATH."/category";
|
||||
|
||||
$sql_common = " from {$g4['yc4_category_table']} ";
|
||||
$sql_common = " from {$g4['shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql_common .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||
|
||||
@ -22,7 +22,7 @@ if ($w == "")
|
||||
|
||||
$len2 = $len + 1;
|
||||
|
||||
$sql = " select MAX(SUBSTRING(ca_id,$len2,2)) as max_subid from {$g4['yc4_category_table']}
|
||||
$sql = " select MAX(SUBSTRING(ca_id,$len2,2)) as max_subid from {$g4['shop_category_table']}
|
||||
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
@ -42,7 +42,7 @@ if ($w == "")
|
||||
|
||||
if ($ca_id) // 2단계이상 분류
|
||||
{
|
||||
$sql = " select * from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$ca = sql_fetch($sql);
|
||||
$html_title = $ca['ca_name'] . " 하위분류추가";
|
||||
$ca['ca_name'] = "";
|
||||
@ -62,7 +62,7 @@ if ($w == "")
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " select * from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$ca = sql_fetch($sql);
|
||||
if (!$ca['ca_id'])
|
||||
alert("자료가 없습니다.");
|
||||
@ -103,7 +103,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_id">분류코드</label></th>
|
||||
<td colspan="3">
|
||||
|
||||
@ -85,7 +85,7 @@ if ($w == "")
|
||||
// 소문자로 변환
|
||||
$ca_id = strtolower($ca_id);
|
||||
|
||||
$sql = " insert {$g4['yc4_category_table']}
|
||||
$sql = " insert {$g4['shop_category_table']}
|
||||
set ca_id = '$ca_id',
|
||||
ca_name = '$ca_name',
|
||||
$sql_common ";
|
||||
@ -93,7 +93,7 @@ if ($w == "")
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_category_table']}
|
||||
$sql = " update {$g4['shop_category_table']}
|
||||
set ca_name = '$ca_name',
|
||||
$sql_common
|
||||
where ca_id = '$ca_id' ";
|
||||
@ -102,7 +102,7 @@ else if ($w == "u")
|
||||
// 하위분류를 똑같은 설정으로 반영
|
||||
if ($sub_category) {
|
||||
$len = strlen($ca_id);
|
||||
$sql = " update {$g4['yc4_category_table']}
|
||||
$sql = " update {$g4['shop_category_table']}
|
||||
set $sql_common
|
||||
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
|
||||
if ($is_admin != 'super')
|
||||
@ -115,7 +115,7 @@ else if ($w == "d")
|
||||
// 분류의 길이
|
||||
$len = strlen($ca_id);
|
||||
|
||||
$sql = " select COUNT(*) as cnt from {$g4['yc4_category_table']}
|
||||
$sql = " select COUNT(*) as cnt from {$g4['shop_category_table']}
|
||||
where SUBSTRING(ca_id,1,$len) = '$ca_id'
|
||||
and ca_id <> '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -123,7 +123,7 @@ else if ($w == "d")
|
||||
alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오.");
|
||||
|
||||
$str = $comma = "";
|
||||
$sql = " select it_id from {$g4['yc4_item_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select it_id from {$g4['shop_item_table']} where ca_id = '$ca_id' ";
|
||||
$result = sql_query($sql);
|
||||
$i=0;
|
||||
while ($row = mysql_fetch_array($result))
|
||||
@ -146,7 +146,7 @@ else if ($w == "d")
|
||||
@unlink("{$g4['category_path']}/$ca_id"."_t");
|
||||
|
||||
// 분류 삭제
|
||||
$sql = " delete from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " delete from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ if ($stx != "") {
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
$sql_common = " from {$g4['yc4_category_table']} ";
|
||||
$sql_common = " from {$g4['shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql_common .= " $where ca_mb_id = '{$member['mb_id']}' ";
|
||||
$sql_common .= $sql_search;
|
||||
@ -111,7 +111,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$stx;
|
||||
$class = 'class="cate_list_lbl"'; // 2단 이상 분류의 label 에 스타일 부여 - 지운아빠 2013-04-02
|
||||
// 상위단계의 분류명
|
||||
$p_ca_id = substr($row['ca_id'], 0, $level*2);
|
||||
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$p_ca_id' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$p_ca_id' ";
|
||||
$temp = sql_fetch($sql);
|
||||
$p_ca_name = $temp['ca_name'].'의하위';
|
||||
} else
|
||||
@ -129,7 +129,7 @@ $qstr = $qstr."&sca=".$sca."&page=".$page."&save_stx=".$stx;
|
||||
$s_del = '<a href="javascript:del(\'./categoryformupdate.php?w=d&ca_id='.$row['ca_id'].'&'.$qstr.'\');">삭제</a>';
|
||||
|
||||
// 해당 분류에 속한 상품의 갯수
|
||||
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_item_table']}
|
||||
$sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']}
|
||||
where ca_id = '{$row['ca_id']}'
|
||||
or ca_id2 = '{$row['ca_id']}'
|
||||
or ca_id3 = '{$row['ca_id']}' ";
|
||||
|
||||
@ -16,7 +16,7 @@ for ($i=0; $i<count($_POST['ca_id']); $i++)
|
||||
alert("\'{$_POST['ca_mb_id'][$i]}\' 은(는) 존재하는 회원아이디가 아닙니다.", "./categorylist.php?page=$page&sort1=$sort1&sort2=$sort2");
|
||||
}
|
||||
|
||||
$sql = " update {$g4['yc4_category_table']}
|
||||
$sql = " update {$g4['shop_category_table']}
|
||||
set ca_name = '{$_POST['ca_name'][$i]}',
|
||||
ca_mb_id = '{$_POST['ca_mb_id'][$i]}',
|
||||
ca_use = '{$_POST['ca_use'][$i]}',
|
||||
|
||||
@ -5,14 +5,14 @@ $name = '';
|
||||
|
||||
if ($it_id)
|
||||
{
|
||||
$sql = " select it_name from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$code = $it_id;
|
||||
$name = $row['it_name'];
|
||||
}
|
||||
else if ($ca_id)
|
||||
{
|
||||
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$code = $ca_id;
|
||||
$name = $row['ca_name'];
|
||||
|
||||
@ -5,41 +5,6 @@ include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// 설정테이블에 필드 추가
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_hp_use` TINYINT NOT NULL DEFAULT '0' ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_escrow_use` TINYINT NOT NULL DEFAULT '0' ", false);
|
||||
|
||||
// 쏜다넷 smskey 필드 추가 : 101201
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_xonda_smskey` VARCHAR( 255 ) NOT NULL ");
|
||||
|
||||
// 비회원에 대한 개인정보 수집에 대한 내용
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_guest_privacy` TEXT NOT NULL ");
|
||||
|
||||
// 현금영수증 발급
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_taxsave_use` TINYINT NOT NULL ");
|
||||
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_kcp_site_key` VARCHAR( 255 ) NOT NULL ");
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_dacom_mertkey` VARCHAR( 255 ) NOT NULL ");
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_vbank_use` VARCHAR( 255 ) NOT NULL ");
|
||||
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_settle_case` VARCHAR( 255 ) NOT NULL ");
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_escrow1` VARCHAR( 255 ) NOT NULL ");
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_escrow2` VARCHAR( 255 ) NOT NULL ");
|
||||
@mysql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_escrow3` VARCHAR( 255 ) NOT NULL ");
|
||||
|
||||
// SMS 아이코드 추가 (icodekorea.com)
|
||||
$sql = " ALTER TABLE `{$g4['yc4_default_table']}` ADD `de_sms_use` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `de_icode_id` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `de_icode_pw` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `de_icode_server_ip` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `de_icode_server_port` VARCHAR( 255 ) NOT NULL ";
|
||||
sql_query($sql, false);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
if (!function_exists("get_sock")) {
|
||||
function get_sock($url)
|
||||
{
|
||||
@ -100,11 +65,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$pg_anchor ="<ul class=\"anchor\">
|
||||
<li><a href=\"#frm_info\">사업자정보</a></li>
|
||||
<li><a href=\"#frm_index\">초기화면</a></li>
|
||||
<li><a href=\"#frm_payment\">결제정보</a></li>
|
||||
<li><a href=\"#frm_delivery\">배송정보</a></li>
|
||||
<li><a href=\"#frm_etc\">기타정보</a></li>
|
||||
<li><a href=\"#frm_sms\">SMS정보</a></li>
|
||||
<li><a href=\"#frm_index\">쇼핑몰 초기화면</a></li>
|
||||
<li><a href=\"#frm_payment\">결제설정</a></li>
|
||||
<li><a href=\"#frm_delivery\">배송설정</a></li>
|
||||
<li><a href=\"#frm_etc\">기타설정</a></li>
|
||||
<li><a href=\"#frm_sms\">SMS설정</a></li>
|
||||
</ul>
|
||||
";
|
||||
?>
|
||||
@ -184,9 +149,9 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</section>
|
||||
|
||||
<section id="frm_index" class="cbox">
|
||||
<h2>쇼핑몰 첫 화면</h2>
|
||||
<h2>쇼핑몰 초기화면</h2>
|
||||
<?=$pg_anchor?>
|
||||
<p><?=help("상품관리에서 히트상품으로 선택한 상품들을 설정값대로 초기화면에 출력합니다.\n히트상품으로 체크한 상품이 없다면 초기화면에 출력하지 않습니다.\n추천상품과 신상품도 같은 방법으로 사용합니다.", -150)?></p>
|
||||
<p><?=help("상품관리에서 선택한 상품의 타입대로 쇼핑몰 초기화면에 출력합니다. (상품 타입 히트/추천/최신/인기/할인)\n각 타입별로 선택된 상품이 없으면 쇼핑몰 초기화면에 출력하지 않습니다.")?></p>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -198,14 +163,18 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<td>
|
||||
<label for="de_type1_list_use">출력</label> <input type="checkbox" name="de_type1_list_use" value="1" id="de_type1_list_use" <?=$default['de_type1_list_use']?"checked":"";?>>
|
||||
<label for="de_type1_list_skin">스킨 </label>
|
||||
<select name="de_type1_list_skin" id="de_type1_list_skin"><?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?></select><script>document.getElementById('de_type1_list_skin').value='<?=$default['de_type1_list_skin']?>';</script>
|
||||
<label for="de_type1_list_mod">1라인이미지수</label>
|
||||
<input type="text" name="de_type1_list_mod" value="<?=$default['de_type1_list_mod']?>" id="de_type1_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type1_list_row">라인</label>
|
||||
|
||||
<select name="de_type1_list_skin" id="de_type1_list_skin">
|
||||
<?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type1_list_skin']);?>
|
||||
</select>
|
||||
<label for="de_type1_list_row">출력할 줄 수</label>
|
||||
|
||||
<input type="text" name="de_type1_list_row" value="<?=$default['de_type1_list_row']?>" id="de_type1_list_row" class="frm_input" size="3">
|
||||
<label for="de_type1_img_width">폭</label>
|
||||
<label for="de_type1_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type1_list_mod" value="<?=$default['de_type1_list_mod']?>" id="de_type1_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type1_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type1_img_width" value="<?=$default['de_type1_img_width']?>" id="de_type1_img_width" class="frm_input" size="3">
|
||||
<label for="de_type1_img_height">높이</label>
|
||||
<label for="de_type1_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type1_img_height" value="<?=$default['de_type1_img_height']?>" id="de_type1_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
@ -215,15 +184,16 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<label for="de_type2_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type2_list_use" value="1" id="de_type2_list_use" <?=$default['de_type2_list_use']?"checked":"";?>>
|
||||
<label for="de_type2_list_skin">스킨</label>
|
||||
<select id="de_type2_list_skin" name="de_type2_list_skin"><?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?></select>
|
||||
<script>document.getElementById('de_type2_list_skin').value='<?=$default['de_type2_list_skin']?>';</script>
|
||||
<label for="de_type2_list_mod">1라인이미지수</label>
|
||||
<input type="text" name="de_type2_list_mod" value="<?=$default['de_type2_list_mod']?>" id="de_type2_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type2_list_row">라인</label>
|
||||
<select name="de_type2_list_skin" id="de_type2_list_skin">
|
||||
<?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type2_list_skin']);?>
|
||||
</select>
|
||||
<label for="de_type2_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type2_list_row" value="<?=$default['de_type2_list_row']?>" id="de_type2_list_row" class="frm_input" size="3">
|
||||
<label for="de_type2_img_width">폭</label>
|
||||
<label for="de_type2_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type2_list_mod" value="<?=$default['de_type2_list_mod']?>" id="de_type2_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type2_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type2_img_width" value="<?=$default['de_type2_img_width']?>" id="de_type2_img_width" class="frm_input" size="3">
|
||||
<label for="de_type2_img_height">높이</label>
|
||||
<label for="de_type2_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type2_img_height" value="<?=$default['de_type2_img_height']?>" id="de_type2_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
@ -233,15 +203,16 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<label for="de_type3_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type3_list_use" value="1" id="de_type3_list_use" <?=$default['de_type3_list_use']?"checked":"";?>>
|
||||
<label for="de_type3_list_skin">스킨</label>
|
||||
<select id="de_type3_list_skin" name="de_type3_list_skin"><?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?></select>
|
||||
<script>document.getElementById('de_type3_list_skin').value='<?=$default['de_type3_list_skin']?>';</script>
|
||||
<label for="de_type3_list_mod">1라인이미지수</label>
|
||||
<input type="text" name="de_type3_list_mod" value="<?=$default['de_type3_list_mod']?>" id="de_type3_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type3_list_row">라인</label>
|
||||
<select name="de_type3_list_skin" id="de_type3_list_skin">
|
||||
<?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type3_list_skin']);?>
|
||||
</select>
|
||||
<label for="de_type3_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type3_list_row" value="<?=$default['de_type3_list_row']?>" id="de_type3_list_row" class="frm_input" size="3">
|
||||
<label for="de_type3_img_width">폭</label>
|
||||
<label for="de_type3_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type3_list_mod" value="<?=$default['de_type3_list_mod']?>" id="de_type3_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type3_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type3_img_width" value="<?=$default['de_type3_img_width']?>" id="de_type3_img_width" class="frm_input" size="3">
|
||||
<label for="de_type3_img_height">높이</label>
|
||||
<label for="de_type3_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type3_img_height" value="<?=$default['de_type3_img_height']?>" id="de_type3_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
@ -251,15 +222,16 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<label for="de_type4_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type4_list_use" value="1" id="de_type4_list_use" <?=$default['de_type4_list_use']?"checked":"";?>>
|
||||
<label for="de_type4_list_skin">스킨</label>
|
||||
<select id="de_type4_list_skin" name="de_type4_list_skin"><?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?></select>
|
||||
<script>document.getElementById('de_type4_list_skin').value='<?=$default['de_type4_list_skin']?>';</script>
|
||||
<label for="de_type4_list_mod">1라인이미지수</label>
|
||||
<input type="text" name="de_type4_list_mod" value="<?=$default['de_type4_list_mod']?>" id="de_type4_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type4_list_row">라인</label>
|
||||
<select name="de_type4_list_skin" id="de_type4_list_skin">
|
||||
<?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type4_list_skin']);?>
|
||||
</select>
|
||||
<label for="de_type4_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type4_list_row" value="<?=$default['de_type4_list_row']?>" id="de_type4_list_row" class="frm_input" size="3">
|
||||
<label for="de_type4_img_width">폭</label>
|
||||
<label for="de_type4_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type4_list_mod" value="<?=$default['de_type4_list_mod']?>" id="de_type4_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type4_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type4_img_width" value="<?=$default['de_type4_img_width']?>" id="de_type4_img_width" class="frm_input" size="3">
|
||||
<label for="de_type4_img_height">높이</label>
|
||||
<label for="de_type4_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type4_img_height" value="<?=$default['de_type4_img_height']?>" id="de_type4_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
@ -269,15 +241,16 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<label for="de_type5_list_use">출력</label>
|
||||
<input type="checkbox" name="de_type5_list_use" value="1" id="de_type5_list_use" <?=$default['de_type5_list_use']?"checked":"";?>>
|
||||
<label for="de_type5_list_skin">스킨</label>
|
||||
<select id="de_type5_list_skin" name="de_type5_list_skin"><?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH);?></select>
|
||||
<script>document.getElementById('de_type5_list_skin').value='<?=$default['de_type5_list_skin']?>';</script>
|
||||
<label for="de_type5_list_mod">1라인이미지수</label>
|
||||
<input type="text" name="de_type5_list_mod" value="<?=$default['de_type5_list_mod']?>" id="de_type5_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type5_list_row">라인</label>
|
||||
<select id="de_type5_list_skin" name="de_type5_list_skin">
|
||||
<?=get_list_skin_options("^maintype(.*)\.php", G4_SHOP_PATH, $default['de_type5_list_skin']);?>
|
||||
</select>
|
||||
<label for="de_type5_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type5_list_row" value="<?=$default['de_type5_list_row']?>" id="de_type5_list_row" class="frm_input" size="3">
|
||||
<label for="de_type5_img_width">폭</label>
|
||||
<label for="de_type5_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_type5_list_mod" value="<?=$default['de_type5_list_mod']?>" id="de_type5_list_mod" class="frm_input" size="3">
|
||||
<label for="de_type5_img_width">이미지 폭</label>
|
||||
<input type="text" name="de_type5_img_width" value="<?=$default['de_type5_img_width']?>" id="de_type5_img_width" class="frm_input" size="3">
|
||||
<label for="de_type5_img_height">높이</label>
|
||||
<label for="de_type5_img_height">이미지 높이</label>
|
||||
<input type="text" name="de_type5_img_height" value="<?=$default['de_type5_img_height']?>" id="de_type5_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
@ -292,57 +265,53 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_bank_account">은행계좌번호</label></th>
|
||||
<td colspan="3">
|
||||
<textarea name="de_bank_account" id="de_bank_account"><?=$default['de_bank_account']?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_bank_use">무통장입금사용</label></th>
|
||||
<td>
|
||||
<?=help("주문시 무통장으로 입금을 가능하게 할것인지를 설정합니다.\n사용할 경우 은행계좌번호를 반드시 입력하여 주십시오.", 50)?>
|
||||
<select id="de_bank_use" name="de_bank_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_bank_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_bank_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_bank_use').value="<?=$default['de_bank_use']?>";</script>
|
||||
</td>
|
||||
<th scope="row"><label for="de_iche_use">계좌이체 결제사용</label></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_bank_account">은행계좌번호</label></th>
|
||||
<td>
|
||||
<textarea name="de_bank_account" id="de_bank_account"><?=$default['de_bank_account']?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_iche_use">계좌이체 결제사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("주문시 실시간 계좌이체를 가능하게 할것인지를 설정합니다.", 50)?>
|
||||
<select id="de_iche_use" name="de_iche_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_iche_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_iche_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_iche_use').value="<?=$default['de_iche_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_vbank_use">가상계좌 결제사용</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("주문자가 현금거래를 원할 경우, 해당 거래건에 대해 주문자에게 고유로 발행되는 일회용 계좌번호입니다.", 50)?>
|
||||
<select name="de_vbank_use" id="de_vbank_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_vbank_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_vbank_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.fconfig.de_vbank_use.value="<?=$default['de_vbank_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_hp_use">휴대폰결제사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("주문시 신용카드 결제를 가능하게 할것인지를 설정합니다.", 50)?>
|
||||
<td>
|
||||
<?=help("주문시 휴대폰 결제를 가능하게 할것인지를 설정합니다.", 50)?>
|
||||
<select id="de_hp_use" name="de_hp_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_hp_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_hp_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_hp_use').value="<?=$default['de_hp_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -350,51 +319,49 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<td>
|
||||
<?=help("주문시 신용카드 결제를 가능하게 할것인지를 설정합니다.", 50)?>
|
||||
<select id="de_card_use" name="de_card_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예<option>
|
||||
<option value="0" <?=get_selected($default['de_card_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_card_use'], 1)?>>사용<option>
|
||||
</select>
|
||||
<script>document.getElementById('de_card_use').value="<?=$default['de_card_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_card_max_amount">카드결제최소금액</label></th>
|
||||
<td>
|
||||
<?=help("신용카드의 경우 1000원 미만은 결제가 가능하지 않습니다.\n1000원 이상으로 설정하십시오.")?>
|
||||
<?=help("신용카드는 경우 1000원 미만은 결제가 불가능합니다.\n카드결제최소금액을 1000원 이상으로 설정하십시오.")?>
|
||||
<input type="text" name="de_card_max_amount" value="<?=$default['de_card_max_amount']?>" id="de_card_max_amount" class="frm_input" size="10"> 원
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_taxsave_use">현금영수증발급사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("현금 입금후 주문자가 주문상세내역에서 현금영수증 발급을 가능하게 할것인지를 설정합니다.\n\n관리자는 설정에 관계없이 주문관리 > 수정에서 발급이 가능합니다.\n\n현금영수증의 취소 기능은 없으므로 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50)?>
|
||||
현금영수증의 취소 기능은 없으므로 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.
|
||||
<th scope="row"><label for="de_taxsave_use">현금영수증<br>발급사용</label></th>
|
||||
<td>
|
||||
<?=help("관리자는 설정에 관계없이 <a href=\"".G4_ADMIN_URL."/shop_admin/orderlist.php\">주문내역</a> > 수정에서 발급이 가능합니다.\n현금영수증 발급 취소는 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50)?>
|
||||
<select id="de_taxsave_use" name="de_taxsave_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_taxsave_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_taxsave_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_taxsave_use').value="<?=$default['de_taxsave_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_use_point">포인트 사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("환경설정 > 기본환경설정과 동일한 설정입니다.")?>
|
||||
<input type="checkbox" name="cf_use_point" value="1" id="cf_use_point"<?=$config['cf_use_point']?' checked':'';?> class="frm_input"> 사용
|
||||
<td>
|
||||
<?=help("<a href=\"".G4_ADMIN_URL."/config_form.php#frm_board\" target=\"_blank\">환경설정 > 기본환경설정</a>과 동일한 설정입니다.")?>
|
||||
<input type="checkbox" name="cf_use_point" value="1" id="cf_use_point"<?=$config['cf_use_point']?' checked':'';?>> 사용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_point_settle">포인트 결제사용</label></th>
|
||||
<th scope="row"><label for="de_point_settle">포인트결제 비율</label></th>
|
||||
<td>
|
||||
<?=help("회원의 포인트가 설정값 이상일 경우만 주문시 결제에 사용할 수 있습니다.\n\n포인트 사용을 하지 않는 경우에는 의미가 없습니다.")?>
|
||||
<?=help("회원의 포인트가 설정값 이상일 경우만 주문시 결제에 사용할 수 있습니다.\n포인트 사용을 하지 않는 경우에는 의미가 없습니다.")?>
|
||||
<input type="text" name="de_point_settle" value="<?=$default['de_point_settle']?>" id="de_point_settle" class="frm_input" size="10"> 점
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_point_per">포인트결제 %</label></th>
|
||||
<td>
|
||||
<?=help("회원의 포인트가 포인트 결제사용 포인트 보다 클 경우 주문금액의 몇% 까지 사용 가능하게 할지를 설정합니다.")?>
|
||||
<?=help("회원 보유 포인트가 결제액보다 많을 경우, 결제액에서 포인트로 결제 가능한 비율을 설정합니다.")?>
|
||||
<select id="de_point_per" name="de_point_per">
|
||||
<? for ($i=100; $i>0; $i=$i-5) echo "<option value='$i'>{$i}\n"; ?>
|
||||
<? for ($i=100; $i>0; $i=$i-5) echo '<option value="'.$i.'" '.get_selected($default['de_point_per'], $i).'>'.$i.'</option>'.PHP_EOL; ?>
|
||||
</select>%
|
||||
<script>
|
||||
document.getElementById('de_point_per').value='<?=$default['de_point_per']?>';
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -402,34 +369,37 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<td>
|
||||
<?=help("신용카드, 계좌이체 결제시 포인트를 부여할지를 설정합니다. (기본값은 '아니오')", 50)?>
|
||||
<select id="de_card_point" name="de_card_point">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<option value="0" <?=get_selected($default['de_card_point'], 0)?>>아니오</option>
|
||||
<option value="1" <?=get_selected($default['de_card_point'], 1)?>>예</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_card_point').value="<?=$default['de_card_point']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_point_days">주문완료 포인트</label></th>
|
||||
<td>
|
||||
<?=help("설정값 이후에 포인트를 부여합니다.(주문자가 회원일 경우에만 해당)\n\n주문취소, 반품 등을 고려하여 적당한 기간을 입력하십시오. (기본값은 7)\n\n0 으로 설정하는 경우 주문과 동시에 포인트를 부여합니다.", -150)?>
|
||||
주문 완료 <input type="text" name="de_point_days" value="<?=$default['de_point_days']?>" id="de_point_days" class="frm_input" size="5"> 일 이후에 포인트를 부여
|
||||
<?=help("주문자가 회원일 경우에만 주문완료 포인트를 지급합니다. 주문취소, 반품 등을 고려하여 적당한 기간을 입력하십시오. (기본값은 7)\n0 으로 설정하는 경우 주문완료와 동시에 포인트를 부여합니다.", -150)?>
|
||||
주문 완료 <input type="text" name="de_point_days" value="<?=$default['de_point_days']?>" id="de_point_days" class="frm_input" size="2"> 일 이후에 포인트를 부여
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_kcp_mid">KCP SITE CODE</label></th>
|
||||
<td>
|
||||
<?=help("KCP 에서 부여받는 SITE CODE 를 입력하세요.<br>SR 로 시작하는 영대문자, 숫자 혼용 총 5자리 코드를 입력하시면 됩니다.<br>만약, 사이트코드가 SR로 시작하지 않는다면 KCP에 사이트코드를 변경 요청해 주십시오.<br>예) SRZ89");?>
|
||||
<?=help("KCP 에서 받은 SR 로 시작하는 영대문자, 숫자 혼용 총 5자리 SITE CODE 를 입력하세요.\n만약, 사이트코드가 SR로 시작하지 않는다면 KCP에 사이트코드 변경 요청을 하십시오. 예) SRZ89");?>
|
||||
<input type="hidden" name="de_card_pg" value="kcp">
|
||||
<span style="font:bold 15px Verdana;">SR</span> <input type="text" name="de_kcp_mid" value="<?=$default['de_kcp_mid']?>" id="de_kcp_mid" class="frm_input" size="2" maxlength="3" style="font:bold 15px Verdana;"> 영대문자, 숫자 혼용 3자리
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_kcp_site_key">KCP SITE KEY</label></th>
|
||||
<td>
|
||||
<?=help("25자리 영대문자와 숫자 - 그리고 _ 로 이루어 집니다.<br>SITE KEY 발급은 KCP로 문의하세요.<br>1544-8660<br>예) 1Q9YRV83gz6TukH8PjH0xFf__");?>
|
||||
<?=help("25자리 영대문자와 숫자 - 그리고 _ 로 이루어 집니다. SITE KEY 발급 KCP 전화: 1544-8660\n예) 1Q9YRV83gz6TukH8PjH0xFf__");?>
|
||||
<input type="text" name="de_kcp_site_key" value="<?=$default['de_kcp_site_key']?>" id="de_kcp_site_key" class="frm_input" size="32" maxlength="25">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">에스크로 사용</th>
|
||||
<td colspan="3">
|
||||
<?=help("일반결제와 에스크로 결제를 선택하실 수 있습니다.<br/>반드시 KCP 관리자 > 고객센터 > 서비스변경 및 추가 > 에스크로 신청 메뉴에서 에스크로를 사용 선택하고, 결제수단별로 적용 신청한 후 사용하셔야 합니다.<br/>에스크로 사용시 배송과의 연동은 되지 않으며 에스크로 결제만 지원됩니다.")?>
|
||||
<td>
|
||||
<?=help("에스크로 결제를 사용하시려면, 반드시 <strong>KCP 관리자 > 고객센터 > 서비스변경 및 추가 > 에스크로 신청 메뉴에서 에스크로를 사용 선택하고, 결제수단별로 적용 신청한 후 사용</strong>하셔야 합니다.\n에스크로 사용시 배송과의 연동은 되지 않으며 에스크로 결제만 지원됩니다.")?>
|
||||
<input type="radio" name="de_escrow_use" value="0" <?=$default['de_escrow_use']==0?"checked":"";?> id="de_escrow_use1">
|
||||
<label for="de_escrow_use1">일반결제 사용</label>
|
||||
<input type="radio" name="de_escrow_use" value="1"<?=$default['de_escrow_use']==1?"checked":"";?> id="de_escrow_use2">
|
||||
@ -438,42 +408,46 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">신용카드 결제테스트</th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("신용카드를 테스트 하실 경우에 체크하세요. 결제단위 최소 1,000원")?>
|
||||
<input type="radio" name="de_card_test" value="0" <?=$default['de_card_test']==0?"checked":"";?> id="de_card_test1">
|
||||
<label for="de_card_test1">실결제 </label>
|
||||
<input type="radio" name="de_card_test" value="1" <?=$default['de_card_test']==1?"checked":"";?> id="de_card_test2">
|
||||
<input type="radio" name="de_card_test" value="0" <?=$default['de_card_test']==0?"checked":"";?> id="de_card_test1">
|
||||
<label for="de_card_test2">테스트결제</label>
|
||||
|
||||
[ <a href="https://admin8.kcp.co.kr/assist/login.LoginAction.do" target="_blank">실결제 관리자</a> |
|
||||
<a href="http://testadmin8.kcp.co.kr/assist/login.LoginAction.do" target="_blank">테스트 관리자</a> ]
|
||||
<span id="test_tip" style="margin:0 10px; color:#ff3300;">테스트결제 팁 더보기</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" id="test_tip_help" style="display:none">
|
||||
<strong>일반결제 사용시 테스트 결제</strong><br />
|
||||
· 신용카드 : 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)<br />
|
||||
· 계좌이체 : 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.<br />
|
||||
· 가상계좌 : 1원 이상, 모든 은행이 테스트 되는 것은 아니며 "VB10 : 해당 은행 계좌 없음" 자주 발생함. (광주은행, 하나은행)<br />
|
||||
· 휴대폰 : 1004원, 실결제가 되며 다음날 새벽에 일괄 취소됨.<br />
|
||||
<br />
|
||||
<strong>에스크로 사용시 테스트 결제</strong><br />
|
||||
· 신용카드 : 1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다. (BC, 현대, 롯데, 삼성카드)<br />
|
||||
· 계좌이체 : 150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.<br />
|
||||
· 가상계좌 : 1원 이상, 입금통보는 제대로 되지 않음.<br />
|
||||
· 휴대폰 : 테스트 지원되지 않음.<br />
|
||||
<br />
|
||||
<div style="float:left; color:#ff3300;">
|
||||
* 테스트결제의 경우 상점관리자(<a href='http://testadmin8.kcp.co.kr/assist/login.LoginAction.do' target='_blank'>http://testadmin8.kcp.co.kr/assist/login.LoginAction.do</a>)의 로그인 정보가 사용하시는 것과 다르므로 아이디/패스워드를 KCP로 문의하시기 바랍니다. (기술지원 1544-8661)<br>
|
||||
* 참고로 일반결제의 테스트 사이트코드는 T0000 이며, 에스크로 결제의 테스트 사이트코드는 T0007 입니다.
|
||||
<input type="radio" name="de_card_test" value="1" <?=$default['de_card_test']==1?"checked":"";?> id="de_card_test2">
|
||||
<div id="scf_cardtest">
|
||||
<a href="https://admin8.kcp.co.kr/assist/login.LoginAction.do" target="_blank">실결제 관리자</a>
|
||||
<a href="http://testadmin8.kcp.co.kr/assist/login.LoginAction.do" target="_blank">테스트 관리자</a>
|
||||
</div>
|
||||
<div id="scf_cardtest_tip">
|
||||
<strong>일반결제 사용시 테스트 결제</strong>
|
||||
<dl>
|
||||
<dt>신용카드</dt><dd>1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다.<br>(BC, 현대, 롯데, 삼성카드)</dd>
|
||||
<dt>계좌이체</dt><dd>150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.</dd>
|
||||
<dt>가상계좌</dt><dd>1원 이상, 모든 은행이 테스트 되는 것은 아니며 "VB10 : 해당 은행 계좌 없음" 자주 발생함.<br>(광주은행, 하나은행)</dd>
|
||||
<dt>휴대폰</dt><dd>1004원, 실결제가 되며 다음날 새벽에 일괄 취소됨</dd>
|
||||
</dl>
|
||||
<strong>에스크로 사용시 테스트 결제</strong><br>
|
||||
<dl>
|
||||
<dt>신용카드</dt><dd>1000원 이상, 모든 카드가 테스트 되는 것은 아니므로 여러가지 카드로 결제해 보셔야 합니다.<br>(BC, 현대, 롯데, 삼성카드)</dd>
|
||||
<dt>계좌이체</dt><dd>150원 이상, 계좌번호, 비밀번호는 가짜로 입력해도 되며, 주민등록번호는 공인인증서의 것과 일치해야 합니다.</dd>
|
||||
<dt>가상계좌</dt><dd>1원 이상, 입금통보는 제대로 되지 않음.</dd>
|
||||
<dt>휴대폰</dt><dd>테스트 지원되지 않음.</dd>
|
||||
</dl>
|
||||
<ul>
|
||||
<li>테스트결제는 <a href="http://testadmin8.kcp.co.kr/assist/login.LoginAction.do" target="_blank">상점관리자</a>의 로그인 정보를 KCP로 문의하시기 바랍니다. (기술지원 1544-8661)</li>
|
||||
<li><b>일반결제</b>의 테스트 사이트코드는 <b>T0000</b> 이며, <b>에스크로 결제</b>의 테스트 사이트코드는 <b>T0007</b> 입니다.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
$('#scf_cardtest_tip').attr('class','scf_cardtest_tip');
|
||||
$('<button type="button" id="scf_cardtest_btn">테스트결제 팁 더보기</button>').appendTo('#scf_cardtest');
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">공통 URL</th>
|
||||
<td colspan="3">
|
||||
<?=help("가상계좌 사용시 이 주소를 \"KCP 관리자 > 상점정보관리 > 정보변경 > 공통URL 정보 > 공통URL 변경후\"에 넣으셔야 상점에 자동으로 입금 통보됩니다.")?>
|
||||
<td>
|
||||
<?=help("가상계좌 사용시 다음 주소를 <strong>KCP 관리자 > 상점정보관리 > 정보변경 > 공통URL 정보 > 공통URL 변경후</strong>에 넣으셔야 상점에 자동으로 입금 통보됩니다.")?>
|
||||
<?=G4_SHOP_URL?>/settle_kcp_common.php
|
||||
</td>
|
||||
</tr>
|
||||
@ -515,7 +489,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<th scope="row"><label for="de_allthegate_mid">올더게이트 몰ID</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<input type="text" name="de_allthegate_mid" value="<?=$default['de_allthegate_mid']?>" id="de_allthegate_mid" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
@ -551,7 +525,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<th scope="row"><label for="de_kspay_id">KSPAY 상점아이디</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<input type="text" name="de_kspay_id" value="<?=$default['de_kspay_id']?>" id="de_kspay_id" size="40">
|
||||
</td>
|
||||
</tr>
|
||||
@ -565,62 +539,56 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_send_cost_case">배송비유형</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("'상한'으로 설정한 경우는 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n\n'없음'으로 설정한 경우에는 배송비상한가, 배송비를 무시하며 착불의 경우도 없음으로 설정하여 사용합니다.", 50);?>
|
||||
<select id="de_send_cost_case" name="de_send_cost_case">
|
||||
<option value="상한">상한</option>
|
||||
<option value="없음">없음</option>
|
||||
<td>
|
||||
<?=help("<strong>상한</strong>으로 설정한 경우, 주문총액이 배송비상한가 미만일 경우 배송비를 받습니다.\n<strong>없음</strong>으로 설정한 경우, 배송비상한가 및 배송비를 무시하며 착불의 경우도 없음으로 설정됩니다.", 50);?>
|
||||
<select name="de_send_cost_case" id="de_send_cost_case">
|
||||
<option value="상한" <?=get_selected($default['de_send_cost_case'], "상한")?>>상한</option>
|
||||
<option value="없음" <?=get_selected($default['de_send_cost_case'], "없음")?>>없음</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_send_cost_case').value="<?=$default['de_send_cost_case']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_send_cost_limit">배송비상한가</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("배송비유형이 '상한'일 경우에만 해당되며 배송비상한가를 여러개 두고자 하는 경우는 <b>;</b> 로 구분합니다.\n\n예를 들어 20000원 미만일 경우 4000원, 30000원 미만일 경우 3000원 으로 사용할 경우에는 배송비상한가를 20000;30000 으로 입력하고 배송비를 4000;3000 으로 입력합니다.", 50);?>
|
||||
<input type="text" name="de_send_cost_limit" value="<?=$default['de_send_cost_limit']?>" size="40" class="frm_input" id="de_send_cost_limit"> 원
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_send_cost_list">배송비</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<input type="text" name="de_send_cost_list" value="<?=$default['de_send_cost_list']?>" size="40" class="frm_input" id="de_send_cost_list"> 원
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_hope_date_use">희망배송일사용</label></th>
|
||||
<td>
|
||||
<?=help("'예'로 설정한 경우 주문서에서 희망배송일을 입력 받습니다.", 50);?>
|
||||
<select id="de_hope_date_use" name="de_hope_date_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<?=help("'예'로 설정한 경우 주문서에서 희망배송일을 입력 받습니다.");?>
|
||||
<select name="de_hope_date_use" id="de_hope_date_use">
|
||||
<option value="0" <?=get_selected($default['de_hope_date_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_hope_date_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_hope_date_use').value="<?=$default['de_hope_date_use']?>";</script>
|
||||
</td>
|
||||
<th scope="row"><label for="de_hope_date_after">희망배송일날짜</label></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_hope_date_after">희망배송일지정</label></th>
|
||||
<td>
|
||||
<?=help("설정한날 이후의 날짜부터 일주일까지 선택박스 형식으로 출력합니다.", 50);?>
|
||||
<?=help("설정한 날로부터 일주일까지 선택박스 형식으로 출력합니다.");?>
|
||||
<input type="text" name="de_hope_date_after" value="<?=$default['de_hope_date_after']?>" id="de_hope_date_after" class="frm_input" size="5"> 일
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송정보</th>
|
||||
<td colspan="3">
|
||||
<br /><?=editor_html('de_baesong_content', $default['de_baesong_content']);?>
|
||||
</td>
|
||||
<td><?=editor_html('de_baesong_content', $default['de_baesong_content']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">교환/반품</th>
|
||||
<td colspan="3">
|
||||
<br /><?=editor_html('de_change_content', $default['de_change_content']);?>
|
||||
</td>
|
||||
<td><?=editor_html('de_change_content', $default['de_change_content']);?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -632,49 +600,47 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">관련상품출력</th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("$cart_dir/item.sub.adding.php 에서 $cart_dir/maintype1.inc.php 를 include 하여 출력합니다.");?>
|
||||
<label for="de_rel_list_mod">1라인이미지수</label>
|
||||
<label for="de_rel_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_rel_list_mod" value="<?=$default['de_rel_list_mod']?>" id="de_rel_list_mod" class="frm_input" size="3">
|
||||
<label for="de_rel_img_width">, 이미지폭</label>
|
||||
<label for="de_rel_img_width">이미지폭</label>
|
||||
<input type="text" name="de_rel_img_width" value="<?=$default['de_rel_img_width']?>" id="de_rel_img_width" class="frm_input" size="3">
|
||||
<label for="de_rel_img_height">, 이미지높이</label>
|
||||
<label for="de_rel_img_height">이미지높이</label>
|
||||
<input type="text" name="de_rel_img_height" value="<?=$default['de_rel_img_height']?>" id="de_rel_img_height" class="frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_simg_width">이미지(소) 폭</label></th>
|
||||
<th scope="row">이미지(소)</th>
|
||||
<td>
|
||||
<?=help("상품관리의 상품입력에서 이미지(대) 입력으로 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값으로 생성하여 줍니다.");?>
|
||||
<?=help("상품관리의 상품입력에서 이미지(대) 를 기준 자동생성해 줄때 이미지(소)의 폭과 높이를 설정한 값(단위:픽셀)로 생성합니다.");?>
|
||||
<label for="de_simg_width"><span class="sound_only">이미지(소) </span>폭</label>
|
||||
<input type="text" name="de_simg_width" value="<?=$default['de_simg_width']?>" id="de_simg_width" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
<th scope="row"><label for="de_simg_height">이미지(소) 높이</label></th>
|
||||
<td>
|
||||
/
|
||||
<label for="de_simg_height"><span class="sound_only">이미지(소) </span>높이</label>
|
||||
<input type="text" name="de_simg_height" value="<?=$default['de_simg_height']?>" id="de_simg_height" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_mimg_width">이미지(중) 폭</label></th>
|
||||
<th scope="row">이미지(중)</th>
|
||||
<td>
|
||||
<?=help("상품관리의 상품입력에서 이미지(대) 입력으로 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값으로 생성하여 줍니다.");?>
|
||||
<?=help("상품관리의 상품입력에서 이미지(대) 를 기준 자동생성해 줄때 이미지(중)의 폭과 높이를 설정한 값(단위:픽셀)로 생성합니다.");?>
|
||||
<label for="de_mimg_width"><span class="sound_only">이미지(중) </span>폭</label>
|
||||
<input type="text" name="de_mimg_width" value="<?=$default['de_mimg_width']?>" id="de_mimg_width" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
<th scope="row"><label for="de_mimg_height">이미지(중) 높이</label></th>
|
||||
<td>
|
||||
/
|
||||
<label for="de_mimg_height"><span class="sound_only">이미지(중) </span>높이</label>
|
||||
<input type="text" name="de_mimg_height" value="<?=$default['de_mimg_height']?>" id="de_mimg_height" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">로고이미지</th>
|
||||
<td colspan="3">
|
||||
<?=help("쇼핑몰에 사용하는 로고이미지 입니다.\n이미지 파일만 업로드 가능합니다.");?>
|
||||
<td>
|
||||
<?=help("쇼핑몰 로고를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다.");?>
|
||||
<input type="file" name="logo_img" id="logo_img">
|
||||
<?
|
||||
$logo_img = G4_DATA_PATH."/common/logo_img";
|
||||
@ -689,8 +655,8 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">메인이미지</th>
|
||||
<td colspan="3">
|
||||
<?=help("쇼핑몰에 사용하는 메인이미지 입니다.\n이미지 파일만 업로드 가능합니다.");?>
|
||||
<td>
|
||||
<?=help("쇼핑몰 메인이미지를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다.");?>
|
||||
<input type="file" name="main_img">
|
||||
<?
|
||||
$main_img = G4_DATA_PATH."/common/main_img";
|
||||
@ -705,68 +671,68 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_item_ps_use">사용후기</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("고객이 특정 상품에 사용후기를 작성하였을 경우 바로 출력할것인지 관리자 승인 후 출력할것인지를 설정합니다.", 50);?>
|
||||
<select id="de_item_ps_use" name="de_item_ps_use">
|
||||
<option value="0">관리자 승인없이 출력</option>
|
||||
<option value="1">관리자 승인 후 출력</option>
|
||||
<td>
|
||||
<?=help("사용후기가 올라오면, 즉시 출력 혹은 관리자 승인 후 출력 여부를 설정합니다.", 50);?>
|
||||
<select name="de_item_ps_use" id="de_item_ps_use">
|
||||
<option value="0" <?=get_selected($default['de_item_ps_use'], 0)?>>즉시 출력</option>
|
||||
<option value="1" <?=get_selected($default['de_item_ps_use'], 1)?>>관리자 승인 후 출력</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_item_ps_use').value="<?=$default['de_item_ps_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<?/*?>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_scroll_banner_use">스크롤배너 사용</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("'예'로 설정한 경우 쇼핑몰 우측에 스크롤배너가 출력됩니다.", 50);?>
|
||||
<select id="de_scroll_banner_use" name="de_scroll_banner_use">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
<select name="de_scroll_banner_use" id="de_scroll_banner_use">
|
||||
<option value="0" <?=get_selected($default['de_scroll_banner_use'], 0)?>>사용안함</option>
|
||||
<option value="1" <?=get_selected($default['de_scroll_banner_use'], 1)?>>사용</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_scroll_banner_use').value="<?=$default['de_scroll_banner_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<?*/?>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_level_sell">상품구입 권한</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("설정을 1로 하게되면 모든 방문자에게 판매를 할 수 있지만 설정을 변경하여 특정회원을 대상으로 판매를 할 수 있습니다.");?>
|
||||
<td>
|
||||
<?=help("권한을 1로 설정하면 누구나 구입할 수 있습니다. 특정회원만 구입할 수 있도록 하려면 해당 권한으로 설정하십시오.");?>
|
||||
<?=get_member_level_select('de_level_sell', 1, 10, $default['de_level_sell']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_code_dup_use">코드 중복검사</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("분류, 상품을 입력(추가) 할 때 코드 중복검사를 사용할 경우 체크하시면 됩니다.");?>
|
||||
<td>
|
||||
<?=help("분류, 상품 등을 추가할 때 자동으로 코드 중복검사를 하려면 체크하십시오.");?>
|
||||
<input type="checkbox" name="de_code_dup_use" value="1" id="de_code_dup_use"<?=$default['de_code_dup_use']?' checked':'';?>> 사용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_different_msg">장바구니 메세지</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("상품을 장바구니에 담은 후에는 가격 수정이 불가하므로 비회원가격과 회원가격이 다른 경우에는 장바구니에 담기 전에 미리 메세지를 출력하여 로그인 한 후 구입을 하도록 유도합니다.", -150);?>
|
||||
<td>
|
||||
<?=help("장바구니에 담긴 상품의 가격 수정은 불가능합니다. 따라서 비회원가격과 회원가격이 다른 경우, 장바구니에 담기 전에 미리 메세지를 출력하여 로그인하도록 안내합니다.", -150);?>
|
||||
<input type="checkbox" name="de_different_msg" value="1" id="de_different_msg"<?=$default['de_different_msg']?'checked':'';?>>
|
||||
<label for="de_different_msg">비회원가격과 회원가격이 다른 상품을 장바구니에 담는 경우 "가격이 다릅니다"라는 메세지를 출력합니다.</label>
|
||||
안내메세지 출력 사용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">비회원에 대한<br/>개인정보수집 내용</th>
|
||||
<td colspan="3">
|
||||
<br /><?=editor_html('de_guest_privacy', $default['de_guest_privacy']);?>
|
||||
</td>
|
||||
<td><?=editor_html('de_guest_privacy', $default['de_guest_privacy']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">MYSQL USER</th>
|
||||
<td><?=G4_MYSQL_USER?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">MYSQL DB</th>
|
||||
<td><?=G4_MYSQL_DB?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">서버 IP</th>
|
||||
<td><?=($_SERVER['SERVER_ADDR']?$_SERVER['SERVER_ADDR']:$_SERVER['LOCAL_ADDR']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_register">프로그램 등록번호</label></th>
|
||||
<td>
|
||||
<?=help("정식구입자께만 발급해 드리고 있습니다.\n등록번호가 틀린 경우 주문서를 확인 하실 수 없습니다.\n등록번호는 서버 IP, MYSQL USER, DB 를 알려주셔야 발급이 가능합니다.", -180, -160);?>
|
||||
<?=help("정품에 한해 발급해 드립니다. 등록번호가 없거나 틀리면, 주문서를 확인할 수 없습니다.\n등록번호는 서버 IP, MYSQL USER, DB 를 알려주셔야 발급이 가능합니다.", -180, -160);?>
|
||||
<input type="text" name="de_register" value="<?=$default['de_register']?>" id="de_register" class="frm_input" required size="30">
|
||||
</td>
|
||||
</tr>
|
||||
@ -825,82 +791,85 @@ function byte_check(el_cont, el_byte)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.sms_box{float:left;width:225px}
|
||||
.sms_box h3{display:inline-block;width:225px;text-align:center}
|
||||
.sms_box ul{margin:0 auto;padding:0 !important;width:163px;list-style:none}
|
||||
.sms_box ul li{text-align:center}
|
||||
.sms_box textarea{margin-top:54px;width:115px;height:85px;background:#c4ffff;font-size: 8pt; font-family:굴림체;overflow:hidden}
|
||||
.sms_img{width:163px;height:191px;background:url(./img/sms_back.gif) no-repeat 0 0}
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<section id="frm_sms" class="cbox" >
|
||||
<h2>SMS정보</h2>
|
||||
<h2>SMS설정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<?
|
||||
$sms_title = array (1=>"회원가입시", "주문서작성시", "입금확인시", "상품배송시");
|
||||
$sms_daesang = array (1=>"고객님께 발송", "관리자께 발송", "고객님께 발송", "고객님께 발송");
|
||||
?>
|
||||
|
||||
<? for ($i=1; $i<=4; $i++) { ?>
|
||||
<div class="sms_box">
|
||||
<h3><?=$sms_title[$i]?></h3>
|
||||
<ul>
|
||||
<li>(<?=$sms_daesang[$i]?>)</li>
|
||||
<li class="sms_img">
|
||||
<p><?=help('주의! 80 bytes 까지만 전송됩니다. (영문 한글자 : 1byte , 한글 한글자 : 2bytes , 특수문자의 경우 1 또는 2 bytes 임)')?></p>
|
||||
|
||||
<section>
|
||||
<h3>사전에 정의된 문자프리셋</h3>
|
||||
<dl>
|
||||
<dt>회원가입시</dt>
|
||||
<dd>{이름} {회원아이디} {회사명}</dd>
|
||||
<dt>주문서작성</dt>
|
||||
<dd>{이름} {보낸분} {받는분} {주문번호} {주문금액} {회사명}</dd>
|
||||
<dt>입금확인시</dt>
|
||||
<dd>{이름} {입금액} {주문번호} {회사명}</dd>
|
||||
<dt>상품배송시</dt>
|
||||
<dd>{이름} {택배회사} {운송장번호} {주문번호} {회사명}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<div id="scf_sms">
|
||||
<?
|
||||
$scf_sms_title = array (1=>"회원가입시 고객님께 발송", "주문시 관리자에게 발송", "입금확인시 고객님께 발송", "상품배송시 고객님께 발송");
|
||||
for ($i=1; $i<=4; $i++) {
|
||||
?>
|
||||
<section class="scf_sms_box">
|
||||
<h3><?=$scf_sms_title[$i]?></h3>
|
||||
<span><?=$scf_sms_to[$i]?></span>
|
||||
<div class="scf_sms_img">
|
||||
<textarea id="de_sms_cont<?=$i?>" name="de_sms_cont<?=$i?>" ONKEYUP="byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');"><?=$default["de_sms_cont".$i]?></textarea>
|
||||
</li>
|
||||
<li>
|
||||
<span id="byte<?=$i?>">0 / 80 바이트</span>
|
||||
<br />
|
||||
<input type="checkbox" name="de_sms_use<?=$i?>" value="1" id="de_sms_use<?=$i?>" <?=($default["de_sms_use".$i] ? " checked" : "")?>>
|
||||
<label for="de_sms_use<?=$i?>">사용</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<span id="byte<?=$i?>" class="scf_sms_cnt">0 / 80 바이트</span>
|
||||
<label for="de_sms_use<?=$i?>"><span class="sound_only"><?=$scf_sms_title?></span>사용</label>
|
||||
<input type="checkbox" name="de_sms_use<?=$i?>" value="1" id="de_sms_use<?=$i?>" <?=($default["de_sms_use".$i] ? " checked" : "")?>>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');
|
||||
</script>
|
||||
<? } ?>
|
||||
<script>
|
||||
byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');
|
||||
</script>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_3">
|
||||
<col class="grid_6">
|
||||
<col class="grid_15">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_sms_use">SMS 사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("서비스 회사를 선택하신 경우에만 SMS 를 사용합니다.\n위의 개별적인 기능별 사용(회원가입시, 주문서작성시 ...)보다 우선합니다.\n아이코드의 경우 무료테스트 환경을 지원합니다.");?>
|
||||
<td>
|
||||
<?=help("SMS 를 사용하려면 서비스 회사를 선택해야 합니다. 개별 기능 (회원가입시, 주문서작성시 발송 등)보다 우선합니다.\n아이코드는 무료 문자메세지 발송 테스트 환경을 지원합니다.");?>
|
||||
<select id="de_sms_use" name="de_sms_use">
|
||||
<option value="">사용안함</option>
|
||||
<option value="icode">아이코드</option>
|
||||
<option value="" <?=get_selected($default['de_sms_use'], '')?>>사용안함</option>
|
||||
<option value="icode" <?=get_selected($default['de_sms_use'], 'icode')?>>아이코드</option>
|
||||
</select>
|
||||
<script>document.getElementById('de_sms_use').value="<?=$default['de_sms_use']?>";</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_sms_hp">관리자 핸드폰번호</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("쇼핑몰관리자 또는 보내시는분의 핸드폰번호를 입력하세요.\n\n주문서작성시 쇼핑몰관리자가 문자메세지를 받으시려면 반드시 입력하셔야 합니다.\n\n숫자만 입력하세요.\n예) 0101234567");?>
|
||||
<td>
|
||||
<?=help("주문서작성시 쇼핑몰관리자가 문자메세지를 받아볼 번호를 숫자만으로 입력하세요. 예) 0101234567");?>
|
||||
<input type="text" name="de_sms_hp" value="<?=$default['de_sms_hp']?>" id="de_sms_hp" class="frm_input" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_icode_id">아이코드 회원아이디</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("아이코드에서 사용하시는 회원아이디를 입력합니다.");?>
|
||||
<input type="text" name="de_icode_id" value="<?=$default['de_icode_id']?>" id="de_icode_id" class="frm_input" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_icode_pw">아이코드 패스워드</label></th>
|
||||
<td colspan="3">
|
||||
<td>
|
||||
<?=help("아이코드에서 사용하시는 패스워드를 입력합니다.");?>
|
||||
<input type="password" name="de_icode_pw" value="<?=$default['de_icode_pw']?>" class="frm_input" id="de_icode_pw">
|
||||
</td>
|
||||
@ -910,24 +879,24 @@ function byte_check(el_cont, el_byte)
|
||||
<td>
|
||||
<input type="hidden" name="de_icode_server_ip" value="<?=$default['de_icode_server_ip']?>">
|
||||
<?
|
||||
if ($userinfo['payment'] == "A") {
|
||||
echo "충전제";
|
||||
echo "<input type=hidden name=de_icode_server_port value='7295'>";
|
||||
}
|
||||
else if ($userinfo['payment'] == "C") {
|
||||
echo "정액제";
|
||||
echo "<input type=hidden name=de_icode_server_port value='7296'>";
|
||||
}
|
||||
else {
|
||||
echo "가입해주세요.";
|
||||
echo "<input type=hidden name=de_icode_server_port value='7295'>";
|
||||
if ($userinfo['payment'] == 'A') {
|
||||
echo '충전제';
|
||||
echo '<input type="hidden" name="de_icode_server_port" value="7295">';
|
||||
} else if ($userinfo['payment'] == 'C') {
|
||||
echo '정액제';
|
||||
echo '<input type="hidden" name="de_icode_server_port" value="7296">';
|
||||
} else {
|
||||
echo '가입해주세요.';
|
||||
echo '<input type="hidden" name="de_icode_server_port" value="7295">';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<th scope="row">아이코드 서비스 신청(회원가입)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">아이코드 SMS 신청<br>회원가입</th>
|
||||
<td>
|
||||
<?=help("이 페이지에서 회원가입 하시면 문자 건당 16원에 제공 받을 수 있습니다.");?>
|
||||
<a href="http://icodekorea.com/res/join_company_fix_a.php?sellid=sir2" target="_blank">http://www.icodekorea.com</a>
|
||||
<?=help("아래 링크에서 회원가입 하시면 문자 건당 16원에 제공 받을 수 있습니다.");?>
|
||||
<a href="http://icodekorea.com/res/join_company_fix_a.php?sellid=sir2" target="_blank">아이코드 회원가입</a>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($userinfo['payment'] == 'A') { ?>
|
||||
@ -966,11 +935,7 @@ function byte_check(el_cont, el_byte)
|
||||
-->
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<br>회원가입시 : {이름} {회원아이디} {회사명}
|
||||
<br>주문서작성 : {이름} {보낸분} {받는분} {주문번호} {주문금액} {회사명}
|
||||
<br>입금확인시 : {이름} {입금액} {주문번호} {회사명}
|
||||
<br>상품배송시 : {이름} {택배회사} {운송장번호} {주문번호} {회사명}
|
||||
<p>주의) 80 bytes 까지만 전송됩니다. (영문 한글자 : 1byte , 한글 한글자 : 2bytes , 특수문자의 경우 1 또는 2 bytes 임)
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
@ -993,14 +958,10 @@ function fconfig_check(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
// document.fconfig.de_admin_company_name.focus();
|
||||
|
||||
$(function() {
|
||||
$("#test_tip").bind("click", function() {
|
||||
$("#test_tip_help").toggle();
|
||||
$("#scf_cardtest_btn").bind("click", function() {
|
||||
$("#scf_cardtest_tip").toggle();
|
||||
})
|
||||
.css("cursor", "pointer")
|
||||
.css("text-decoration", "underline");
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ $de_kcp_mid = substr($_POST['de_kcp_mid'],0,3);
|
||||
//
|
||||
// 영카트 default
|
||||
//
|
||||
$sql = " update {$g4['yc4_default_table']}
|
||||
$sql = " update {$g4['shop_default_table']}
|
||||
set de_admin_company_owner = '$de_admin_company_owner',
|
||||
de_admin_company_name = '$de_admin_company_name',
|
||||
de_admin_company_saupja_no = '$de_admin_company_saupja_no',
|
||||
|
||||
@ -6,7 +6,7 @@ include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
// 상단, 하단 파일경로 필드 추가
|
||||
$sql = " ALTER TABLE `{$g4['yc4_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
||||
$sql = " ALTER TABLE `{$g4['shop_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `co_include_tail` VARCHAR( 255 ) NOT NULL ";
|
||||
sql_query($sql, false);
|
||||
|
||||
@ -17,7 +17,7 @@ if ($w == "u")
|
||||
$html_title .= " 수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
$sql = " select * from {$g4['yc4_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
@ -75,7 +75,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<?=help("내용별로 하단+우측의 내용이 다를 경우 하단+우측 디자인 파일의 경로를 입력합니다.\n입력이 없으면 기본 하단 파일을 사용합니다.\n하단 내용과 달리 PHP 코드를 사용할 수 있습니다.\n");?>
|
||||
<input type="text" name="co_include_tail" value="<?=$co['co_include_tail']?>" id="co_include_tail" class="frm_input" size="60">
|
||||
<input type="text" name="co_include_tail" value="<?=$co['co_include_tail']?>" id="co_include_tail" class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -27,19 +27,19 @@ if ($w == "")
|
||||
//if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
|
||||
$sql = " select co_id from {$g4['yc4_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select co_id from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['co_id'])
|
||||
alert("이미 같은 ID로 등록된 내용이 있습니다.");
|
||||
|
||||
$sql = " insert {$g4['yc4_content_table']}
|
||||
$sql = " insert {$g4['shop_content_table']}
|
||||
set co_id = '$co_id',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_content_table']}
|
||||
$sql = " update {$g4['shop_content_table']}
|
||||
set $sql_common
|
||||
where co_id = '$co_id' ";
|
||||
sql_query($sql);
|
||||
@ -49,7 +49,7 @@ else if ($w == "d")
|
||||
@unlink(G4_DATA_PATH."/content/{$co_id}_h");
|
||||
@unlink(G4_DATA_PATH."/content/{$co_id}_t");
|
||||
|
||||
$sql = " delete from {$g4['yc4_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " delete from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '내용관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_content_table']} ";
|
||||
$sql_common = " from {$g4['shop_content_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
|
||||
@ -9,7 +9,7 @@ if ($w == "u") {
|
||||
$html_title .= ' 수정';
|
||||
$readonly = ' readonly';
|
||||
|
||||
$sql = " select * from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' ";
|
||||
$sql = " select * from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
|
||||
$dl = sql_fetch($sql);
|
||||
if (!$dl['dl_id']) alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
|
||||
@ -16,19 +16,19 @@ $sql_common .= "set dl_company = '$dl_company',
|
||||
dl_order = '$dl_order' ";
|
||||
|
||||
if ($w == "") {
|
||||
$sql = " alter table {$g4['yc4_delivery_table']} auto_increment=1 ";
|
||||
$sql = " alter table {$g4['shop_delivery_table']} auto_increment=1 ";
|
||||
sql_query($sql);
|
||||
|
||||
$sql = " insert {$g4['yc4_delivery_table']} $sql_common ";
|
||||
$sql = " insert {$g4['shop_delivery_table']} $sql_common ";
|
||||
sql_query($sql);
|
||||
|
||||
$dl_id = mysql_insert_id();
|
||||
} else if ($w == "u") {
|
||||
$sql = " update {$g4['yc4_delivery_table']} $sql_common where dl_id = '$dl_id' ";
|
||||
$sql = " update {$g4['shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
|
||||
sql_query($sql);
|
||||
} else if ($w == "d") {
|
||||
// Master 삭제
|
||||
$sql = " delete from {$g4['yc4_delivery_table']} where dl_id = '$dl_id' ";
|
||||
$sql = " delete from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '배송회사관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_delivery_table']} ";
|
||||
$sql_common = " from {$g4['shop_delivery_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
|
||||
@ -7,11 +7,11 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '배송일괄처리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
//sql_query(" update $g4[yc4_cart_table] set ct_status = '완료' where ct_status = '배송' ");
|
||||
//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
|
||||
|
||||
// 배송회사리스트 ---------------------------------------------
|
||||
$delivery_options = "";
|
||||
$sql = " select * from {$g4['yc4_delivery_table']} order by dl_order ";
|
||||
$sql = " select * from {$g4['shop_delivery_table']} order by dl_order ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$delivery_options .= "<option value='{$row['dl_id']}'>{$row['dl_company']}";
|
||||
@ -33,8 +33,8 @@ if ($sel_ca_id != "") {
|
||||
|
||||
if ($sel_field == "") $sel_field = "od_id";
|
||||
|
||||
$sql_common = " from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_common = " from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -44,7 +44,7 @@ if ($chk_misu) {
|
||||
$total_count = mysql_num_rows($result);
|
||||
}
|
||||
else {
|
||||
$row = sql_fetch("select count(od_id) as cnt from {$g4['yc4_order_table']} $sql_search ");
|
||||
$row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
|
||||
$total_count = $row['cnt'];
|
||||
}
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
// 배송회사와 운송장번호가 있는것만 수정
|
||||
if ($_POST['dl_id'][$m] && trim($_POST['od_invoice'][$m]))
|
||||
{
|
||||
$sql = "update {$g4['yc4_order_table']}
|
||||
$sql = "update {$g4['shop_order_table']}
|
||||
set od_invoice_time = '{$_POST['od_invoice_time'][$m]}',
|
||||
dl_id = '{$_POST['dl_id'][$m]}',
|
||||
od_invoice = '{$_POST['od_invoice'][$m]}'
|
||||
@ -37,7 +37,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
|
||||
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
|
||||
$uq_id = $_POST['uq_id'][$m];
|
||||
$sql = " update {$g4['yc4_cart_table']}
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
set ct_status = '배송'
|
||||
where ct_status in ('주문', '준비')
|
||||
and uq_id = '$uq_id' ";
|
||||
@ -46,16 +46,16 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
include "./ordermail.inc.php";
|
||||
|
||||
// 재고 반영
|
||||
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g4['yc4_cart_table']}
|
||||
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g4['shop_cart_table']}
|
||||
where uq_id = '$uq_id'
|
||||
and ct_stock_use = '0' ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
|
||||
{
|
||||
$sql3 =" update {$g4['yc4_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
|
||||
$sql3 =" update {$g4['shop_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
|
||||
sql_query($sql3);
|
||||
|
||||
$sql4 = " update {$g4['yc4_cart_table']}
|
||||
$sql4 = " update {$g4['shop_cart_table']}
|
||||
set ct_stock_use = '1',
|
||||
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
|
||||
where uq_id = '$uq_id'
|
||||
@ -67,10 +67,10 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
// 일괄배송처리시 SMS 문자 일괄전송
|
||||
if ($default['de_sms_use4'] && $_POST['send_sms'])
|
||||
{
|
||||
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
|
||||
$sql = " select dl_company from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||
$sql = " select dl_company from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||
$dl = sql_fetch($sql);
|
||||
|
||||
$sms_contents = $default['de_sms_cont4'];
|
||||
@ -93,7 +93,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = "update {$g4['yc4_order_table']}
|
||||
$sql = "update {$g4['shop_order_table']}
|
||||
set od_invoice_time = '',
|
||||
dl_id = '',
|
||||
od_invoice = ''
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$html_title = 'FAQ 상세';
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
|
||||
if ($w == "u")
|
||||
@ -15,7 +15,7 @@ if ($w == "u")
|
||||
$html_title .= " 수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_table']} where fa_id = '$fa_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_table']} where fa_id = '$fa_id' ";
|
||||
$fa = sql_fetch($sql);
|
||||
if (!$fa['fa_id']) alert("등록된 자료가 없습니다.");
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ $sql_common = " fa_subject = '$fa_subject',
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
$sql = " insert {$g4['yc4_faq_table']}
|
||||
$sql = " insert {$g4['shop_faq_table']}
|
||||
set fm_id ='$fm_id',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
@ -25,14 +25,14 @@ if ($w == "")
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_faq_table']}
|
||||
$sql = " update {$g4['shop_faq_table']}
|
||||
set $sql_common
|
||||
where fa_id = '$fa_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_faq_table']} where fa_id = '$fa_id' ";
|
||||
$sql = " delete from {$g4['shop_faq_table']} where fa_id = '$fa_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,10 +7,10 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = 'FAQ 상세관리 : '.$fm['fm_subject'];
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
|
||||
$sql_common = " from {$g4['yc4_faq_table']} where fm_id = '$fm_id' ";
|
||||
$sql_common = " from {$g4['shop_faq_table']} where fm_id = '$fm_id' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
@ -49,7 +49,7 @@ $result = sql_query($sql);
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ");
|
||||
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g4['shop_faq_table']} where fm_id = '{$row['fm_id']}' ");
|
||||
$cnt = $row1[cnt];
|
||||
|
||||
$s_mod = icon("수정", "./faqform.php?w=u&fm_id={$row['fm_id']}&fa_id={$row['fa_id']}");
|
||||
|
||||
@ -11,7 +11,7 @@ if ($w == "u")
|
||||
$html_title .= ' 수정';
|
||||
$readonly = ' readonly';
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
if (!$fm['fm_id']) alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
|
||||
@ -22,17 +22,17 @@ $sql_common = " set fm_subject = '$fm_subject',
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
$sql = " alter table {$g4['yc4_faq_master_table']} auto_increment=1 ";
|
||||
$sql = " alter table {$g4['shop_faq_master_table']} auto_increment=1 ";
|
||||
sql_query($sql);
|
||||
|
||||
$sql = " insert {$g4['yc4_faq_master_table']} $sql_common ";
|
||||
$sql = " insert {$g4['shop_faq_master_table']} $sql_common ";
|
||||
sql_query($sql);
|
||||
|
||||
$fm_id = mysql_insert_id();
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_faq_master_table']} $sql_common where fm_id = '$fm_id' ";
|
||||
$sql = " update {$g4['shop_faq_master_table']} $sql_common where fm_id = '$fm_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
@ -41,11 +41,11 @@ else if ($w == "d")
|
||||
@unlink(G4_DATA_PATH."/faq/{$fm_id}_t");
|
||||
|
||||
// FAQ삭제
|
||||
$sql = " delete from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " delete from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// FAQ상세삭제
|
||||
$sql = " delete from {$g4['yc4_faq_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " delete from {$g4['shop_faq_table']} where fm_id = '$fm_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = 'FAQ관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_faq_master_table']} ";
|
||||
$sql_common = " from {$g4['shop_faq_master_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
@ -59,7 +59,7 @@ $result = sql_query($sql);
|
||||
<?
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
|
||||
$sql1 = " select COUNT(*) as cnt from {$g4['shop_faq_table']} where fm_id = '{$row['fm_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
$cnt = $row1['cnt'];
|
||||
|
||||
|
||||
@ -32,8 +32,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
// 미수금이 없고 운송장번호가 없는 자료를 구함
|
||||
$sql = " select a.od_id,
|
||||
a.*, "._MISU_QUERY_."
|
||||
from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
group by a.od_id
|
||||
/*having misu <= 0 and a.od_invoice = '' and ordercancel = 0*/
|
||||
/*having orderamount - receiptamount = 0 and a.od_invoice = ''*/
|
||||
@ -102,8 +102,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
// 미수금이 있고 송장번호가 없는 자료를 구함
|
||||
$sql = " select a.od_id,
|
||||
a.*, "._MISU_QUERY_."
|
||||
from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
|
||||
group by a.od_id
|
||||
/* having receiptamount <= 0 */
|
||||
having misu > 0
|
||||
@ -171,7 +171,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</tr>
|
||||
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<?
|
||||
$sql = " select * from {$g4[yc4_item_ps_table]}
|
||||
$sql = " select * from {$g4[shop_item_ps_table]}
|
||||
where is_confirm = 0
|
||||
order by is_id desc
|
||||
limit $max_limit ";
|
||||
@ -216,7 +216,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</tr>
|
||||
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<?
|
||||
$sql = " select * from {$g4['yc4_item_qa_table']}
|
||||
$sql = " select * from {$g4['shop_item_qa_table']}
|
||||
where iq_answer = ''
|
||||
order by iq_id desc
|
||||
limit $max_limit ";
|
||||
|
||||
@ -33,7 +33,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<select name=dl_id>
|
||||
<option value=''>배송회사를 선택하세요.
|
||||
<?
|
||||
$sql = "select * from {$g4['yc4_delivery_table']} order by dl_order desc, dl_id desc ";
|
||||
$sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
echo "<option value='{$row['dl_id']}'>{$row['dl_company']}\n";
|
||||
|
||||
@ -23,7 +23,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
|
||||
|
||||
if ($od_id && $od_invoice)
|
||||
{
|
||||
$sql = " select od_id, uq_id, dl_id, od_invoice from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = " select od_id, uq_id, dl_id, od_invoice from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
//echo $sql; echo "<br/>";
|
||||
//print_r2($row);
|
||||
@ -33,7 +33,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
|
||||
if ($row['dl_id'] && $row['od_invoice'] && !$re)
|
||||
continue;
|
||||
|
||||
$sql = " update {$g4['yc4_order_table']}
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_invoice = '$od_invoice',
|
||||
od_invoice_time = '$od_invoice_time',
|
||||
dl_id = '{$_POST['dl_id']}'
|
||||
@ -42,7 +42,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
|
||||
|
||||
if ($ct_status)
|
||||
{
|
||||
$sql = " update {$g4['yc4_cart_table']}
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
set ct_status = '$ct_status'
|
||||
where uq_id = '{$row['uq_id']}'
|
||||
and ct_status in ('주문', '준비', '배송', '완료') ";
|
||||
|
||||
@ -10,17 +10,17 @@ if ($is_admin != "super")
|
||||
if (!trim($it_id))
|
||||
alert("복사할 상품코드가 없습니다.");
|
||||
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g4['yc4_item_table']} where it_id = '$new_it_id' ");
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$new_it_id' ");
|
||||
if ($row['cnt'])
|
||||
alert('이미 존재하는 상품코드 입니다.');
|
||||
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' limit 1 ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' limit 1 ";
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
|
||||
// 상품테이블의 필드가 추가되어도 수정하지 않도록 필드명을 추출하여 insert 퀴리를 생성한다. (상품코드만 새로운것으로 대체)
|
||||
$sql_common = "";
|
||||
$fields = mysql_list_fields(G4_MYSQL_DB, $g4['yc4_item_table']);
|
||||
$fields = mysql_list_fields(G4_MYSQL_DB, $g4['shop_item_table']);
|
||||
$columns = mysql_num_fields($fields);
|
||||
for ($i = 0; $i < $columns; $i++) {
|
||||
$fld = mysql_field_name($fields, $i);
|
||||
@ -29,7 +29,7 @@ for ($i = 0; $i < $columns; $i++) {
|
||||
}
|
||||
}
|
||||
|
||||
$sql = " insert {$g4['yc4_item_table']}
|
||||
$sql = " insert {$g4['shop_item_table']}
|
||||
set it_id = '$new_it_id'
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
@ -52,10 +52,10 @@ if(is_file($img_path.$mimg))
|
||||
copy($img_path.$mimg,$img_path.$new_it_id."_m");
|
||||
|
||||
// 상품요약정보 복사
|
||||
$sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$sql = " INSERT INTO `{$g4['yc4_item_info_table']}` (`ii_id`, `it_id`, `ii_gubun`, `ii_article`, `ii_title`, `ii_value`)
|
||||
$sql = " INSERT INTO `{$g4['shop_item_info_table']}` (`ii_id`, `it_id`, `ii_gubun`, `ii_article`, `ii_title`, `ii_value`)
|
||||
VALUES (NULL, '$new_it_id', '{$row['ii_gubun']}', '{$row['ii_article']}', '".addslashes($row['ii_title'])."', '".addslashes($row['ii_value'])."') ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '이벤트관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_event_table']} ";
|
||||
$sql_common = " from {$g4['shop_event_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
@ -53,7 +53,7 @@ $result = sql_query($sql);
|
||||
$s_vie = icon("보기", G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}");
|
||||
|
||||
$href = "";
|
||||
$sql = " select count(ev_id) as cnt from {$g4['yc4_event_item_table']} where ev_id = '{$row['ev_id']}' ";
|
||||
$sql = " select count(ev_id) as cnt from {$g4['shop_event_item_table']} where ev_id = '{$row['ev_id']}' ";
|
||||
$ev = sql_fetch($sql);
|
||||
if ($ev[cnt]) {
|
||||
$href = "<a href='javascript:;' onclick='itemeventwin({$row['ev_id']});'>";
|
||||
|
||||
@ -12,7 +12,7 @@ if ($w == "u")
|
||||
$html_title .= " 수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
$sql = " select * from {$g4['yc4_event_table']} where ev_id = '$ev_id' ";
|
||||
$sql = " select * from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
|
||||
$ev = sql_fetch($sql);
|
||||
if (!$ev['ev_id'])
|
||||
alert("등록된 자료가 없습니다.");
|
||||
|
||||
@ -32,14 +32,14 @@ if ($w == "")
|
||||
{
|
||||
$ev_id = G4_SERVER_TIME;
|
||||
|
||||
$sql = " insert {$g4['yc4_event_table']}
|
||||
$sql = " insert {$g4['shop_event_table']}
|
||||
$sql_common
|
||||
, ev_id = '$ev_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_event_table']}
|
||||
$sql = " update {$g4['shop_event_table']}
|
||||
$sql_common
|
||||
where ev_id = '$ev_id' ";
|
||||
sql_query($sql);
|
||||
@ -50,7 +50,7 @@ else if ($w == "d")
|
||||
@unlink(G4_DATA_PATH."/event/{$ev_id}_h");
|
||||
@unlink(G4_DATA_PATH."/event/{$ev_id}_t");
|
||||
|
||||
$sql = " delete from {$g4['yc4_event_table']} where ev_id = '$ev_id' ";
|
||||
$sql = " delete from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -24,8 +24,8 @@ if ($sel_field == "") {
|
||||
$sel_field = "it_name";
|
||||
}
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']} a
|
||||
left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
|
||||
$sql_common = " from {$g4['shop_item_table']} a
|
||||
left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
|
||||
$sql_common .= $sql_search;
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -66,7 +66,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<?
|
||||
// 이벤트 옵션처리
|
||||
$event_option = "<option value=''>이벤트를 선택하세요";
|
||||
$sql1 = " select ev_id, ev_subject from {$g4['yc4_event_table']} order by ev_id desc ";
|
||||
$sql1 = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
|
||||
$result1 = sql_query($sql1);
|
||||
while ($row1=mysql_fetch_array($result1))
|
||||
$event_option .= "<option value='{$row1['ev_id']}'>".conv_subject($row1['ev_subject'], 20,"…");
|
||||
@ -80,7 +80,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<select name="sel_ca_id">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++)
|
||||
{
|
||||
@ -133,7 +133,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
|
||||
$sql = " select ev_id from {$g4['yc4_event_item_table']}
|
||||
$sql = " select ev_id from {$g4['shop_event_item_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and ev_id = '$ev_id' ";
|
||||
$ev = sql_fetch($sql);
|
||||
|
||||
@ -8,14 +8,14 @@ auth_check($auth[$sub_menu], "w");
|
||||
|
||||
for ($i=0; $i<count($_POST['it_id']); $i++)
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_event_item_table']}
|
||||
$sql = " delete from {$g4['shop_event_item_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and it_id = '{$_POST['it_id'][$i]}' ";
|
||||
sql_query($sql);
|
||||
|
||||
if ($_POST['ev_chk'][$i])
|
||||
{
|
||||
$sql = "insert into {$g4['yc4_event_item_table']}
|
||||
$sql = "insert into {$g4['shop_event_item_table']}
|
||||
set ev_id = '$ev_id',
|
||||
it_id = '{$_POST['it_id'][$i]}' ";
|
||||
sql_query($sql);
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$sql = " select ev_subject from {$g4['yc4_event_table']} where ev_id = '$ev_id' ";
|
||||
$sql = " select ev_subject from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
|
||||
$ev = sql_fetch($sql);
|
||||
|
||||
$g4['title'] = '['.$ev['ev_subject'].'] 이벤트상품';
|
||||
@ -27,8 +27,8 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
<tr><td colspan=20 height=3 bgcolor=#F8F8F8></td></tr>
|
||||
|
||||
<?
|
||||
$sql = " select b.it_id, b.it_name, b.it_use from {$g4['yc4_event_item_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id=b.it_id)
|
||||
$sql = " select b.it_id, b.it_name, b.it_use from {$g4['shop_event_item_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id=b.it_id)
|
||||
where a.ev_id = '$ev_id'
|
||||
order by b.it_id desc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -6,7 +6,7 @@ check_demo();
|
||||
|
||||
auth_check($auth[$sub_menu], "d");
|
||||
|
||||
$sql = " delete from {$g4['yc4_event_item_table']} where ev_id = '$ev_id' and it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_event_item_table']} where ev_id = '$ev_id' and it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url("./itemeventwin.php?ev_id=$ev_id");
|
||||
|
||||
@ -6,23 +6,23 @@ include_once(G4_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
/*
|
||||
// 상품테이블에 분류 필드 추가
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `ca_id2` VARCHAR( 255 ) NOT NULL AFTER `ca_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `ca_id3` VARCHAR( 255 ) NOT NULL AFTER `ca_id2` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id2` VARCHAR( 255 ) NOT NULL AFTER `ca_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `ca_id3` VARCHAR( 255 ) NOT NULL AFTER `ca_id2` ", FALSE);
|
||||
|
||||
// 사용후기 테이블에 이름, 패스워드 필드 추가
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_ps_table]` ADD `is_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_ps_table]` ADD `is_password` VARCHAR( 255 ) NOT NULL AFTER `is_name` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_ps_table]` ADD `is_password` VARCHAR( 255 ) NOT NULL AFTER `is_name` ", FALSE);
|
||||
|
||||
// 상품문의 테이블에 이름, 패스워드 필드 추가
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_qa_table]` ADD `iq_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_qa_table]` ADD `iq_password` VARCHAR( 255 ) NOT NULL AFTER `iq_name` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_name` VARCHAR( 255 ) NOT NULL AFTER `mb_id` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_qa_table]` ADD `iq_password` VARCHAR( 255 ) NOT NULL AFTER `iq_name` ", FALSE);
|
||||
|
||||
// 회원권한별 상품가격 틀리게 적용하는 필드 추가
|
||||
// it_amount : 비회원가격
|
||||
// it_amount2 : 회원가격
|
||||
// it_amount3 : 특별회원가격
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `it_amount2` INT NOT NULL AFTER `it_amount` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[yc4_item_table]` ADD `it_amount3` INT NOT NULL AFTER `it_amount2` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount2` INT NOT NULL AFTER `it_amount` ", FALSE);
|
||||
sql_query(" ALTER TABLE `$g4[shop_item_table]` ADD `it_amount3` INT NOT NULL AFTER `it_amount2` ", FALSE);
|
||||
*/
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
@ -40,7 +40,7 @@ if ($w == "")
|
||||
$it['ca_id3'] = get_cookie("ck_ca_id3");
|
||||
if (!$it['ca_id'])
|
||||
{
|
||||
$sql = " select ca_id from {$g4['yc4_category_table']} order by ca_id limit 1 ";
|
||||
$sql = " select ca_id from {$g4['shop_category_table']} order by ca_id limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['ca_id'])
|
||||
alert("등록된 분류가 없습니다. 우선 분류를 등록하여 주십시오.");
|
||||
@ -57,7 +57,7 @@ else if ($w == "u")
|
||||
|
||||
if ($is_admin != 'super')
|
||||
{
|
||||
$sql = " select it_id from {$g4['yc4_item_table']} a, {$g4['yc4_category_table']} b
|
||||
$sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id
|
||||
and b.ca_mb_id = '{$member['mb_id']}' ";
|
||||
@ -66,13 +66,13 @@ else if ($w == "u")
|
||||
alert("\'{$member['mb_id']}\' 님께서 수정 할 권한이 없는 상품입니다.");
|
||||
}
|
||||
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
if (!$ca_id)
|
||||
$ca_id = $it['ca_id'];
|
||||
|
||||
$sql = " select * from {$g4['yc4_category_table']} where ca_id = '$ca_id' ";
|
||||
$sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$ca = sql_fetch($sql);
|
||||
}
|
||||
else
|
||||
@ -135,7 +135,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<option value="">= 기본분류 =</option>
|
||||
<?
|
||||
$script = "";
|
||||
$sql = " select * from {$g4['yc4_category_table']} ";
|
||||
$sql = " select * from {$g4['shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||
$sql .= " order by ca_id ";
|
||||
@ -325,7 +325,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
</tr>
|
||||
<? if ($it['it_id']) { ?>
|
||||
<?
|
||||
$sql = " select distinct ii_gubun from {$g4['yc4_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
|
||||
$sql = " select distinct ii_gubun from {$g4['shop_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
|
||||
$ii = sql_fetch($sql, false);
|
||||
if ($ii) {
|
||||
$item_info_gubun = item_info_gubun($ii['ii_gubun']);
|
||||
@ -490,14 +490,14 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<?
|
||||
$str = array();
|
||||
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_amount
|
||||
from {$g4['yc4_item_relation_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
|
||||
from {$g4['shop_item_relation_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
where a.it_id = '$it_id'
|
||||
order by b.ca_id, b.it_name ";
|
||||
$result = sql_query($sql);
|
||||
while($row=sql_fetch_array($result))
|
||||
{
|
||||
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
|
||||
$sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
// 김선용 2006.10
|
||||
@ -537,7 +537,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<option value=''>분류별 관련상품</option>
|
||||
<option value=''>----------------------</option>
|
||||
<?
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where length(ca_id) = 2 order by ca_id ";
|
||||
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where length(ca_id) = 2 order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
echo "<option value='{$row['ca_id']}'>{$row['ca_name']}\n";
|
||||
@ -548,13 +548,13 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
<?
|
||||
/*
|
||||
$sql = " select ca_id, it_id, it_name, it_amount
|
||||
from $g4[yc4_item_table]
|
||||
from $g4[shop_item_table]
|
||||
where it_id <> '$it_id'
|
||||
order by ca_id, it_name ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ";
|
||||
$sql2 = " select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
// 김선용 2006.10
|
||||
@ -667,8 +667,8 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
$str = "";
|
||||
$comma = "";
|
||||
$sql = " select b.ev_id, b.ev_subject
|
||||
from {$g4['yc4_event_item_table']} a
|
||||
left join {$g4['yc4_event_table']} b on (a.ev_id=b.ev_id)
|
||||
from {$g4['shop_event_item_table']} a
|
||||
left join {$g4['shop_event_table']} b on (a.ev_id=b.ev_id)
|
||||
where a.it_id = '$it_id'
|
||||
order by b.ev_id desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -686,7 +686,7 @@ $pg_anchor ="<ul class=\"anchor\">
|
||||
이벤트 선택후 <FONT COLOR="#0E87F9">더블클릭하면 왼쪽에 추가됨</FONT><br>
|
||||
<select size=6 style='width:250px; background-color:#F6F6F6;' ondblclick="event_add(this);">
|
||||
<?
|
||||
$sql = " select ev_id, ev_subject from {$g4['yc4_event_table']} order by ev_id desc ";
|
||||
$sql = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
echo "<option value='{$row['ev_id']}'>".get_text($row['ev_subject']);
|
||||
|
||||
@ -3,20 +3,20 @@ $sub_menu = '400300';
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select ca_id, it_id, it_name, it_amount
|
||||
from {$g4['yc4_item_table']}
|
||||
from {$g4['shop_item_table']}
|
||||
where ca_id like '$ca_id%'
|
||||
and it_id <> '$it_id'
|
||||
order by ca_id, it_name ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for($i=0;$row=sql_fetch_array($result);$i++) {
|
||||
//$sql2 = " select count(*) as cnt from $g4[yc4_item_relation_table] where it_id = '$row[it_id]' ";
|
||||
$sql2 = " select count(*) as cnt from {$g4['yc4_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
|
||||
//$sql2 = " select count(*) as cnt from $g4[shop_item_relation_table] where it_id = '$row[it_id]' ";
|
||||
$sql2 = " select count(*) as cnt from {$g4['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if ($row2['cnt'])
|
||||
continue;
|
||||
|
||||
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
|
||||
$sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$ca_name = addslashes($row2['ca_name']);
|
||||
|
||||
|
||||
@ -18,8 +18,8 @@ function itemdelete($it_id)
|
||||
|
||||
$str = $comma = $od_id = "";
|
||||
$sql = " select b.od_id
|
||||
from {$g4['yc4_cart_table']} a,
|
||||
{$g4['yc4_order_table']} b
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_order_table']} b
|
||||
where a.uq_id = b.uq_id
|
||||
and a.it_id = '$it_id'
|
||||
and a.ct_status != '쇼핑' ";
|
||||
@ -55,34 +55,34 @@ function itemdelete($it_id)
|
||||
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
|
||||
|
||||
// 장바구니 삭제
|
||||
$sql = " delete from {$g4['yc4_cart_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 이벤트삭제
|
||||
$sql = " delete from {$g4['yc4_event_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 사용후기삭제
|
||||
$sql = " delete from {$g4['yc4_item_ps_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 상품문의삭제
|
||||
$sql = " delete from {$g4['yc4_item_qa_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 관련상품삭제
|
||||
$sql = " delete from {$g4['yc4_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
// 상품요약정보삭제
|
||||
$sql = " delete from {$g4['yc4_item_info_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_item_info_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함
|
||||
//------------------------------------------------------------------------
|
||||
$sql = " select it_explan from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select it_explan from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
$imgs = get_editor_image($it['it_explan']);
|
||||
@ -103,7 +103,7 @@ function itemdelete($it_id)
|
||||
|
||||
|
||||
// 상품 삭제
|
||||
$sql = " delete from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
@ -226,13 +226,13 @@ if ($w == "" || $w == "u")
|
||||
|
||||
|
||||
// 관련상품을 우선 삭제함
|
||||
sql_query(" delete from {$g4['yc4_item_relation_table']} where it_id = '$it_id' ");
|
||||
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' ");
|
||||
|
||||
// 관련상품의 반대도 삭제
|
||||
sql_query(" delete from {$g4['yc4_item_relation_table']} where it_id2 = '$it_id' ");
|
||||
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id' ");
|
||||
|
||||
// 이벤트상품을 우선 삭제함
|
||||
sql_query(" delete from {$g4['yc4_event_item_table']} where it_id = '$it_id' ");
|
||||
sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
|
||||
|
||||
|
||||
$sql_common = " ca_id = '$ca_id',
|
||||
@ -284,14 +284,14 @@ if ($w == "")
|
||||
alert("상품 코드가 없으므로 상품을 추가하실 수 없습니다.");
|
||||
}
|
||||
|
||||
$sql = " insert {$g4['yc4_item_table']}
|
||||
$sql = " insert {$g4['shop_item_table']}
|
||||
set it_id = '$it_id',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_item_table']}
|
||||
$sql = " update {$g4['shop_item_table']}
|
||||
set $sql_common
|
||||
where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
@ -300,7 +300,7 @@ else if ($w == "d")
|
||||
{
|
||||
if ($is_admin != 'super')
|
||||
{
|
||||
$sql = " select it_id from {$g4['yc4_item_table']} a, {$g4['yc4_category_table']} b
|
||||
$sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id
|
||||
and b.ca_mb_id = '{$member['mb_id']}' ";
|
||||
@ -320,13 +320,13 @@ if ($w == "" || $w == "u")
|
||||
{
|
||||
if (trim($it_id2[$i]))
|
||||
{
|
||||
$sql = " insert into {$g4['yc4_item_relation_table']}
|
||||
$sql = " insert into {$g4['shop_item_relation_table']}
|
||||
set it_id = '$it_id',
|
||||
it_id2 = '$it_id2[$i]' ";
|
||||
sql_query($sql, false);
|
||||
|
||||
// 관련상품의 반대로도 등록
|
||||
$sql = " insert into {$g4['yc4_item_relation_table']}
|
||||
$sql = " insert into {$g4['shop_item_relation_table']}
|
||||
set it_id = '$it_id2[$i]',
|
||||
it_id2 = '$it_id' ";
|
||||
sql_query($sql, false);
|
||||
@ -339,7 +339,7 @@ if ($w == "" || $w == "u")
|
||||
{
|
||||
if (trim($ev_id[$i]))
|
||||
{
|
||||
$sql = " insert into {$g4['yc4_event_item_table']}
|
||||
$sql = " insert into {$g4['shop_event_item_table']}
|
||||
set ev_id = '$ev_id[$i]',
|
||||
it_id = '$it_id' ";
|
||||
sql_query($sql, false);
|
||||
|
||||
@ -7,7 +7,7 @@ $it_id = trim($_GET['it_id']);
|
||||
if ($_GET['gubun']) {
|
||||
$gubun = $_GET['gubun'];
|
||||
} else {
|
||||
$sql = " select ii_gubun from {$g4['yc4_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
|
||||
$sql = " select ii_gubun from {$g4['shop_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
|
||||
$row = sql_fetch($sql);
|
||||
$gubun = $row['ii_gubun'] ? $row['ii_gubun'] : "wear";
|
||||
}
|
||||
@ -57,7 +57,7 @@ if ($article) {
|
||||
$el_title = $value[0];
|
||||
$el_example = $value[1];
|
||||
|
||||
$sql = " select ii_value from {$g4['yc4_item_info_table']} where it_id = '$it_id' and ii_gubun = '$gubun' and ii_article = '$key' ";
|
||||
$sql = " select ii_value from {$g4['shop_item_info_table']} where it_id = '$it_id' and ii_gubun = '$gubun' and ii_article = '$key' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['ii_value']) $el_value = $row['ii_value'];
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
// 기존의 상품요약정보를 삭제하고 다시 만든다.
|
||||
sql_query(" delete from {$g4['yc4_item_info_table']} where it_id = '{$_POST['it_id']}' ");
|
||||
sql_query(" delete from {$g4['shop_item_info_table']} where it_id = '{$_POST['it_id']}' ");
|
||||
|
||||
$gubun = "";
|
||||
foreach ($_POST as $key=>$value) {
|
||||
@ -13,7 +13,7 @@ foreach ($_POST as $key=>$value) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sql = " insert {$g4['yc4_item_info_table']}
|
||||
$sql = " insert {$g4['shop_item_info_table']}
|
||||
set it_id = '{$_POST['it_id']}',
|
||||
ii_gubun = '$gubun',
|
||||
ii_article = '$key',
|
||||
|
||||
@ -9,7 +9,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
// 분류
|
||||
$ca_list = "";
|
||||
$sql = " select * from {$g4['yc4_category_table']} ";
|
||||
$sql = " select * from {$g4['shop_category_table']} ";
|
||||
if ($is_admin != 'super')
|
||||
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
|
||||
$sql .= " order by ca_id ";
|
||||
@ -43,8 +43,8 @@ if ($sca != "") {
|
||||
|
||||
if ($sfl == "") $sfl = "it_name";
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']} a ,
|
||||
{$g4['yc4_category_table']} b
|
||||
$sql_common = " from {$g4['shop_item_table']} a ,
|
||||
{$g4['shop_category_table']} b
|
||||
where (a.ca_id = b.ca_id";
|
||||
if ($is_admin != 'super')
|
||||
$sql_common .= " and b.ca_mb_id = '{$member['mb_id']}'";
|
||||
@ -87,7 +87,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
|
||||
<select name="sca">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=sql_fetch_array($result1); $i++)
|
||||
{
|
||||
|
||||
@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
|
||||
// 판매가격 일괄수정
|
||||
for ($i=0; $i<count($_POST['it_id']); $i++)
|
||||
{
|
||||
$sql = "update {$g4['yc4_item_table']}
|
||||
$sql = "update {$g4['shop_item_table']}
|
||||
set ca_id = '{$_POST['ca_id'][$i]}',
|
||||
it_name = '{$_POST['it_name'][$i]}',
|
||||
it_cust_amount = '{$_POST['it_cust_amount'][$i]}',
|
||||
|
||||
@ -6,9 +6,9 @@ include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$sql = " select *
|
||||
from {$g4['yc4_item_ps_table']} a
|
||||
from {$g4['shop_item_ps_table']} a
|
||||
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
|
||||
left join {$g4['yc4_item_table']} c on (a.it_id = c.it_id)
|
||||
left join {$g4['shop_item_table']} c on (a.it_id = c.it_id)
|
||||
where is_id = '$is_id' ";
|
||||
$is = sql_fetch($sql);
|
||||
if (!$is['is_id'])
|
||||
|
||||
@ -9,7 +9,7 @@ if ($w == 'd')
|
||||
else
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$iv = sql_fetch(" select * from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ");
|
||||
$iv = sql_fetch(" select * from {$g4['shop_item_ps_table']} where is_id = '$is_id' ");
|
||||
if (!$iv['is_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
|
||||
@ -17,7 +17,7 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
$sql = "update {$g4['yc4_item_ps_table']}
|
||||
$sql = "update {$g4['shop_item_ps_table']}
|
||||
set is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_confirm = '$is_confirm'
|
||||
@ -28,7 +28,7 @@ if ($w == "u")
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
$sql = "delete from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
|
||||
$sql = "delete from {$g4['shop_item_ps_table']} where is_id = '$is_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url("./itempslist.php?$qstr");
|
||||
|
||||
@ -28,8 +28,8 @@ if (!$sst) {
|
||||
$sod = "desc";
|
||||
}
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_ps_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id = b.it_id)
|
||||
$sql_common = " from {$g4['shop_item_ps_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id = b.it_id)
|
||||
left join {$g4['member_table']} c on (a.mb_id = c.mb_id) ";
|
||||
$sql_common .= $sql_search;
|
||||
|
||||
@ -62,7 +62,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
<select name="sca">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
@ -5,7 +5,7 @@ include_once('./_common.php');
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$sql = " select *
|
||||
from {$g4['yc4_item_qa_table']} a
|
||||
from {$g4['shop_item_qa_table']} a
|
||||
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
|
||||
where iq_id = '$iq_id' ";
|
||||
$iq = sql_fetch($sql);
|
||||
|
||||
@ -9,7 +9,7 @@ if ($w == 'd')
|
||||
else
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$iq = sql_fetch(" select * from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ");
|
||||
$iq = sql_fetch(" select * from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ");
|
||||
if (!$iq['iq_id']) {
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
@ -17,7 +17,7 @@ if (!$iq['iq_id']) {
|
||||
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
||||
|
||||
if ($w == "u") {
|
||||
$sql = "update {$g4['yc4_item_qa_table']}
|
||||
$sql = "update {$g4['shop_item_qa_table']}
|
||||
set iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question',
|
||||
iq_answer = '$iq_answer'
|
||||
@ -26,7 +26,7 @@ if ($w == "u") {
|
||||
|
||||
goto_url("./itemqaform.php?w=$w&iq_id=$iq_id&$qstr");
|
||||
} else if ($w == "d") {
|
||||
$sql = "delete from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
$sql = "delete from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url("./itemqalist.php?$qstr");
|
||||
|
||||
@ -28,8 +28,8 @@ if (!$sst) {
|
||||
$sod = "desc";
|
||||
}
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_qa_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id = b.it_id)
|
||||
$sql_common = " from {$g4['shop_item_qa_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id = b.it_id)
|
||||
left join {$g4['member_table']} c on (a.mb_id = c.mb_id) ";
|
||||
$sql_common .= $sql_search;
|
||||
|
||||
@ -62,7 +62,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
|
||||
<select name="sca">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
@ -23,7 +23,7 @@ $sql = " select a.it_id,
|
||||
SUM(IF(ct_status = '반품',ct_qty, 0)) as ct_status_7,
|
||||
SUM(IF(ct_status = '품절',ct_qty, 0)) as ct_status_8,
|
||||
SUM(ct_qty) as ct_status_sum
|
||||
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b ";
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b ";
|
||||
$sql .= " where a.it_id = b.it_id ";
|
||||
if ($fr_date && $to_date)
|
||||
{
|
||||
@ -66,7 +66,7 @@ $qstr1 = "$qstr&sort1=$sort1&sort2=$sort2&fr_date=$fr_date&to_date=$to_date&sel_
|
||||
<select name="sel_ca_id">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
@ -22,7 +22,7 @@ if ($sel_field == "") $sel_field = "it_name";
|
||||
if ($sort1 == "") $sort1 = "it_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from $g4[yc4_item_table] ";
|
||||
$sql_common = " from $g4[shop_item_table] ";
|
||||
$sql_common .= $sql_search;
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -60,7 +60,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<select name="sel_ca_id">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
@ -122,7 +122,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
|
||||
|
||||
$sql1 = " select SUM(ct_qty) as sum_qty
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and ct_stock_use = '0'
|
||||
and ct_status in ('주문', '준비') ";
|
||||
|
||||
@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
|
||||
// 재고 일괄수정
|
||||
for ($i=0; $i<count($_POST['it_id']); $i++)
|
||||
{
|
||||
$sql = "update {$g4['yc4_item_table']}
|
||||
$sql = "update {$g4['shop_item_table']}
|
||||
set it_stock_qty = '{$_POST['it_stock_qty'][$i]}',
|
||||
it_use = '{$_POST['it_use'][$i]}'
|
||||
where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
|
||||
@ -45,7 +45,7 @@ if (!$sst) {
|
||||
}
|
||||
$sql_order = "order by $sst $sod";
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']} ";
|
||||
$sql_common = " from {$g4['shop_item_table']} ";
|
||||
$sql_common .= $sql_search;
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -89,7 +89,7 @@ $qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
|
||||
<select name="sca" title="검색분류">
|
||||
<option value="">전체분류</option>
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=sql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], "w");
|
||||
|
||||
for ($i=0; $i<count($_POST['it_id']); $i++)
|
||||
{
|
||||
$sql = "update {$g4['yc4_item_table']}
|
||||
$sql = "update {$g4['shop_item_table']}
|
||||
set it_type1 = '{$_POST['it_type1'][$i]}',
|
||||
it_type2 = '{$_POST['it_type2'][$i]}',
|
||||
it_type3 = '{$_POST['it_type3'][$i]}',
|
||||
|
||||
@ -9,7 +9,7 @@ $html_title = "새창";
|
||||
if ($w == "u")
|
||||
{
|
||||
$html_title .= " 수정";
|
||||
$sql = " select * from {$g4['yc4_new_win_table']} where nw_id = '$nw_id' ";
|
||||
$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
|
||||
$nw = sql_fetch($sql);
|
||||
if (!$nw['nw_id']) alert("등록된 자료가 없습니다.");
|
||||
}
|
||||
|
||||
@ -23,22 +23,22 @@ $sql_common = " nw_begin_time = '$nw_begin_time',
|
||||
|
||||
if($w == "")
|
||||
{
|
||||
$sql = " alter table {$g4['yc4_new_win_table']} auto_increment=1 ";
|
||||
$sql = " alter table {$g4['shop_new_win_table']} auto_increment=1 ";
|
||||
sql_query($sql);
|
||||
|
||||
$sql = " insert {$g4['yc4_new_win_table']} set $sql_common ";
|
||||
$sql = " insert {$g4['shop_new_win_table']} set $sql_common ";
|
||||
sql_query($sql);
|
||||
|
||||
$nw_id = mysql_insert_id();
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
$sql = " update {$g4['yc4_new_win_table']} set $sql_common where nw_id = '$nw_id' ";
|
||||
$sql = " update {$g4['shop_new_win_table']} set $sql_common where nw_id = '$nw_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_new_win_table']} where nw_id = '$nw_id' ";
|
||||
$sql = " delete from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '새창관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from {$g4['yc4_new_win_table']} ";
|
||||
$sql_common = " from {$g4['shop_new_win_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
|
||||
@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g4['title'] = '전자결제내역';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_card_history_table']}` ADD INDEX `od_id` ( `od_id` ) ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_card_history_table']}` ADD INDEX `od_id` ( `od_id` ) ", false);
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
@ -24,8 +24,8 @@ if ($sel_field == "") $sel_field = "a.od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g4['yc4_card_history_table']} a
|
||||
left join {$g4['yc4_order_table']} b on (a.od_id = b.od_id)
|
||||
$sql_common = " from {$g4['shop_card_history_table']} a
|
||||
left join {$g4['shop_order_table']} b on (a.od_id = b.od_id)
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
|
||||
@ -11,7 +11,7 @@ for ($i=0; $i<$cnt; $i++)
|
||||
{
|
||||
$ct_id = $_POST['ct_id'][$i];
|
||||
|
||||
$sql = " select * from {$g4['yc4_cart_table']}
|
||||
$sql = " select * from {$g4['shop_cart_table']}
|
||||
where uq_id = '$uq_id'
|
||||
and ct_id = '$ct_id' ";
|
||||
$ct = sql_fetch($sql);
|
||||
@ -24,7 +24,7 @@ for ($i=0; $i<$cnt; $i++)
|
||||
{
|
||||
$stock_use = 0;
|
||||
// 재고에 다시 더한다.
|
||||
$sql =" update {$g4['yc4_item_table']} set it_stock_qty = it_stock_qty + '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' ";
|
||||
$sql =" update {$g4['shop_item_table']} set it_stock_qty = it_stock_qty + '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
@ -36,14 +36,14 @@ for ($i=0; $i<$cnt; $i++)
|
||||
{
|
||||
$stock_use = 1;
|
||||
// 재고에서 뺀다.
|
||||
$sql =" update {$g4['yc4_item_table']} set it_stock_qty = it_stock_qty - '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' ";
|
||||
$sql =" update {$g4['shop_item_table']} set it_stock_qty = it_stock_qty - '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
/* 주문 수정에서 "품절" 선택시 해당 상품 자동 품절 처리하기
|
||||
else if ($ct_status == '품절') {
|
||||
$stock_use = 1;
|
||||
// 재고에서 뺀다.
|
||||
$sql =" update $g4[yc4_item_table] set it_stock_qty = 0 where it_id = '$ct[it_id]' ";
|
||||
$sql =" update $g4[shop_item_table] set it_stock_qty = 0 where it_id = '$ct[it_id]' ";
|
||||
sql_query($sql);
|
||||
} */
|
||||
}
|
||||
@ -62,7 +62,7 @@ for ($i=0; $i<$cnt; $i++)
|
||||
// 히스토리에 남길때는 작업|시간|IP|그리고 나머지 자료
|
||||
$ct_history="\n$ct_status|$now|$REMOTE_ADDR";
|
||||
|
||||
$sql = " update {$g4['yc4_cart_table']}
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
set ct_point_use = '$point_use',
|
||||
ct_stock_use = '$stock_use',
|
||||
ct_status = '$ct_status',
|
||||
@ -78,7 +78,7 @@ $qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search&page=$pag
|
||||
$url = "./orderform.php?od_id=$od_id&$qstr";
|
||||
|
||||
// 1.06.06
|
||||
$od = sql_fetch(" select od_receipt_point from {$g4['yc4_order_table']} where od_id = '$od_id' ");
|
||||
$od = sql_fetch(" select od_receipt_point from {$g4['shop_order_table']} where od_id = '$od_id' ");
|
||||
if ($od['od_receipt_point'])
|
||||
alert("포인트로 결제한 주문은,\\n\\n주문상태 변경으로 인해 포인트의 가감이 발생하는 경우\\n\\n회원관리 > 포인트관리에서 수작업으로 포인트를 맞추어 주셔야 합니다.\\n\\n만약, 미수금이 발생하는 경우에는 DC에 금액을 음수로 입력하시면 해결됩니다.", $url);
|
||||
else
|
||||
|
||||
@ -9,13 +9,13 @@ auth_check($auth[$sub_menu], "d");
|
||||
if ($od_id && $uq_id)
|
||||
{
|
||||
// 장바구니 삭제
|
||||
sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ");
|
||||
sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$uq_id' ");
|
||||
|
||||
// 카드결제내역 삭제
|
||||
sql_query(" delete from {$g4['yc4_card_history_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
sql_query(" delete from {$g4['shop_card_history_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
|
||||
// 주문서 삭제
|
||||
sql_query(" delete from {$g4['yc4_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
|
||||
}
|
||||
|
||||
if ($return_url)
|
||||
|
||||
@ -24,7 +24,7 @@ include_once(G4_ADMIN_PATH.'/admin.head.php');
|
||||
if (!isset($cart_not_delete)) {
|
||||
if (!$hours) $hours = 6;
|
||||
$beforehours = date("Y-m-d H:i:s", ( G4_SERVER_TIME - (60 * 60 * $hours) ) );
|
||||
$sql = " delete from {$g4['yc4_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
|
||||
$sql = " delete from {$g4['shop_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
@ -37,7 +37,7 @@ if (!isset($cart_not_delete)) {
|
||||
//------------------------------------------------------------------------------
|
||||
if (!isset($order_not_point)) {
|
||||
$beforedays = date("Y-m-d H:i:s", ( time() - (60 * 60 * 24 * (int)$default['de_point_days']) ) );
|
||||
$sql = " select * from {$g4['yc4_cart_table']}
|
||||
$sql = " select * from {$g4['shop_cart_table']}
|
||||
where ct_status = '$cart_title2'
|
||||
and ct_point_use = '0'
|
||||
and ct_time <= '$beforedays' ";
|
||||
@ -45,7 +45,7 @@ if (!isset($order_not_point)) {
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 회원 ID 를 얻는다.
|
||||
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ");
|
||||
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ");
|
||||
|
||||
// 회원이면서 포인트가 0보다 크다면
|
||||
if ($tmp_row['mb_id'] && $row['ct_point'] > 0)
|
||||
@ -55,7 +55,7 @@ if (!isset($order_not_point)) {
|
||||
insert_point($tmp_row['mb_id'], $po_point, $po_content, "@delivery", $tmp_row['mb_id'], "{$tmp_row['od_id']},{$row['uq_id']},{$row['ct_id']}");
|
||||
}
|
||||
|
||||
sql_query("update {$g4['yc4_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
|
||||
sql_query("update {$g4['shop_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
@ -64,7 +64,7 @@ if (!isset($order_not_point)) {
|
||||
//------------------------------------------------------------------------------
|
||||
// 주문서 정보
|
||||
//------------------------------------------------------------------------------
|
||||
$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$od = sql_fetch($sql);
|
||||
if (!$od['od_id']) {
|
||||
alert($alt_msg1);
|
||||
@ -83,7 +83,7 @@ if ($default['de_card_test']) {
|
||||
// 로그인 아이디 / 비번
|
||||
// 일반 : test1234 / test12345
|
||||
// 에스크로 : escrow / escrow913
|
||||
$g4['yc4_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
|
||||
$g4['shop_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
|
||||
}
|
||||
|
||||
$sql = " select a.ct_id,
|
||||
@ -102,7 +102,7 @@ $sql = " select a.ct_id,
|
||||
a.it_opt5,
|
||||
a.it_opt6,
|
||||
b.it_name
|
||||
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '{$od['uq_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
@ -388,7 +388,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
<tr><td colspan=2 height=1 bgcolor=#84C718></td></tr>
|
||||
|
||||
<?
|
||||
$sql = " select dl_company, dl_url, dl_tel from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||
$sql = " select dl_company, dl_url, dl_tel from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
|
||||
$dl = sql_fetch($sql);
|
||||
?>
|
||||
<tr class=ht>
|
||||
@ -444,7 +444,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
<? if ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') { ?>
|
||||
<?
|
||||
// 주문서
|
||||
$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$result = sql_query($sql);
|
||||
$od = sql_fetch_array($result);
|
||||
|
||||
@ -486,7 +486,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
<?
|
||||
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')
|
||||
{
|
||||
$pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
|
||||
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
|
||||
echo " <a href='$pg_url' target=_new>결제대행사</a>";
|
||||
}
|
||||
?>
|
||||
@ -524,7 +524,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
<td>
|
||||
<input type=text class=ed name=od_receipt_hp size=10 value='<? echo $od['od_receipt_hp'] ?>'>원
|
||||
<?
|
||||
$pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
|
||||
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
|
||||
echo " <a href='$pg_url' target=_new>결제대행사</a>";
|
||||
?>
|
||||
</td>
|
||||
@ -549,7 +549,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
value='<? echo $od['od_receipt_card'] ?>'>원
|
||||
|
||||
<?
|
||||
$card_url = $g4['yc4_cardpg'][$default['de_card_pg']];
|
||||
$card_url = $g4['shop_cardpg'][$default['de_card_pg']];
|
||||
?>
|
||||
<a href='<? echo $card_url ?>' target=_new>결제대행사</a>
|
||||
</td>
|
||||
@ -599,7 +599,7 @@ if ($od['od_receipt_point'] > 0)
|
||||
<select name=dl_id>
|
||||
<option value=''>배송시 선택하세요.
|
||||
<?
|
||||
$sql = "select * from {$g4['yc4_delivery_table']} order by dl_order desc, dl_id desc ";
|
||||
$sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
echo "<option value='{$row['dl_id']}'>{$row['dl_company']}\n";
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
$sub_menu = '400400';
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " update {$g4['yc4_order_table']}
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_shop_memo = '$od_shop_memo',
|
||||
od_name = '$od_name',
|
||||
od_tel = '$od_tel',
|
||||
|
||||
@ -11,9 +11,9 @@ $where = " where ";
|
||||
$sql_search = "";
|
||||
if ($search != "")
|
||||
{
|
||||
if ($sel_field != "")
|
||||
if ($sel_field != "")
|
||||
{
|
||||
$sql_search .= " $where $sel_field like '%$search%' ";
|
||||
$sql_search .= " $where $sel_field like '%$search%' ";
|
||||
$where = " and ";
|
||||
}
|
||||
|
||||
@ -25,8 +25,8 @@ if ($sel_field == "") $sel_field = "od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_common = " from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_search ";
|
||||
|
||||
// 김선용 200805 : 조인 사용으로 전체카운트가 일정레코드 이상일 때 지연시간 문제가 심각하므로 변경
|
||||
@ -49,12 +49,27 @@ $sql = " select a.*, "._MISU_QUERY_."
|
||||
order by $sort1 $sort2
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql, false);
|
||||
if (!$result) {
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_temp_hp` INT NOT NULL AFTER `od_temp_card` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_receipt_hp` INT NOT NULL AFTER `od_receipt_card` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `od_hp_time` DATETIME NOT NULL AFTER `od_card_time` ", false);
|
||||
|
||||
$lines = array();
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
}
|
||||
//echo $sql;
|
||||
|
||||
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
|
||||
// 김선용 200805 : sel_ca_id - 쓰레기 코드
|
||||
@ -129,96 +144,6 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<th>관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($row[od_settle_case])
|
||||
{
|
||||
$s_receipt_way = $row['od_settle_case'];
|
||||
$s_br = '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
|
||||
{
|
||||
//$s_receipt_way = "무통장입금";
|
||||
$s_receipt_way = cut_str($row['od_bank_account'],8,"");
|
||||
$s_br = "<br />";
|
||||
}
|
||||
|
||||
if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
|
||||
{
|
||||
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
|
||||
if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
|
||||
; // 화면 출력하지 않음
|
||||
else
|
||||
{
|
||||
$s_receipt_way .= $s_br."카드";
|
||||
if ($row['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= "<span><span>(미승인)</span></span>";
|
||||
$s_br = "<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($row['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br."포인트";
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr');");
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['od_name'], $row['od_email'], '');
|
||||
|
||||
$tot_cnt = "";
|
||||
if ($row['mb_id'])
|
||||
{
|
||||
$sql2 = " select count(*) as cnt from {$g4['yc4_order_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$tot_cnt = '('.$row2['cnt'].')';
|
||||
}
|
||||
|
||||
$list = $i%2;
|
||||
?>
|
||||
<tr class="orderlist">
|
||||
<td title="주문일시 : <?=$row['od_time']?>"><a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$row['od_id']?>&uq_id=<?=$row['uq_id']?>"><?=$row['od_id']?></a></td>
|
||||
<!-- <td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'><span title='$od_deposit_name'>".cut_str($row['od_name'],8,"")."</span></a></td> -->
|
||||
<td><?=$mb_nick?></td>
|
||||
<td><a href="<?=$_SERVER['PHP_SELF']?>?sort1=<?=$sort1?>&sort2=<?=$sort2?>&sel_field=mb_id&search=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td><?=$row['itemcount']?>건 <?=$tot_cnt?></td>
|
||||
<td class="order_sum"><?=number_format($row['orderamount'])?></td>
|
||||
<td><?=number_format($row['ordercancel'])?></td>
|
||||
<td><?=number_format($row['od_dc_amount'])?></td>
|
||||
<td class="order_sum"><?=number_format($row['receiptamount'])?></td>
|
||||
<td><?=number_format($row['receiptcancel'])?></td>
|
||||
<td class="order_outstanding"><?=number_format($row['misu'])?></td>
|
||||
<td><?=$s_receipt_way?></td>
|
||||
<td><a href="./orderform.php?od_id=<?=$row[od_id]?>&<?=$qstr?>">수정</a> <a href="javascript:del('./orderdelete.php?od_id=<?=$row['od_id']?>&uq_id=<?=$row['uq_id']?>&mb_id=<?=$row['mb_id']?>&<?=$qstr?>)">삭제</a></td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
}
|
||||
mysql_free_result($result);
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="12" class="orderlist"><span>자료가 한건도 없습니다.</span></td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr class="orderlist">
|
||||
<td colspan="3">합 계</td>
|
||||
@ -232,10 +157,85 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $i<count($lines[$i]); $i++)
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($lines[$i]['od_settle_case'])
|
||||
{
|
||||
$s_receipt_way = $lines[$i]['od_settle_case'];
|
||||
$s_br = '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
|
||||
{
|
||||
//$s_receipt_way = "무통장입금";
|
||||
$s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
|
||||
$s_br = "<br />";
|
||||
}
|
||||
|
||||
if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
|
||||
{
|
||||
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
|
||||
if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
|
||||
; // 화면 출력하지 않음
|
||||
else
|
||||
{
|
||||
$s_receipt_way .= $s_br."카드";
|
||||
if ($lines[$i]['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= "<span><span>(미승인)</span></span>";
|
||||
$s_br = "<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($lines[$i]['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br."포인트";
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}&mb_id={$lines[$i]['mb_id']}&$qstr');");
|
||||
|
||||
$mb_nick = get_sideview($lines[$i]['mb_id'], $lines[$i]['od_name'], $lines[$i]['od_email'], '');
|
||||
|
||||
$tot_cnt = "";
|
||||
if ($lines[$i]['mb_id'])
|
||||
{
|
||||
$sql2 = " select count(*) as cnt from {$g4['shop_order_table']} where mb_id = '{$lines[$i]['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$tot_cnt = '('.$row2['cnt'].')';
|
||||
}
|
||||
|
||||
$list = $i%2;
|
||||
?>
|
||||
<tr class="orderlist">
|
||||
<td title="주문일시 : <?=$lines[$i]['od_time']?>"><a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$lines[$i]['od_id']?>&uq_id=<?=$lines[$i]['uq_id']?>"><?=$lines[$i]['od_id']?></a></td>
|
||||
<!-- <td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$lines[$i]['od_name']}'><span title='$od_deposit_name'>".cut_str($lines[$i]['od_name'],8,"")."</span></a></td> -->
|
||||
<td><?=$mb_nick?></td>
|
||||
<td><a href="<?=$_SERVER['PHP_SELF']?>?sort1=<?=$sort1?>&sort2=<?=$sort2?>&sel_field=mb_id&search=<?=$lines[$i]['mb_id']?>"><?=$lines[$i]['mb_id']?></a></td>
|
||||
<td><?=$lines[$i]['itemcount']?>건 <?=$tot_cnt?></td>
|
||||
<td class="order_sum"><?=number_format($lines[$i]['orderamount'])?></td>
|
||||
<td><?=number_format($lines[$i]['ordercancel'])?></td>
|
||||
<td><?=number_format($lines[$i]['od_dc_amount'])?></td>
|
||||
<td class="order_sum"><?=number_format($lines[$i]['receiptamount'])?></td>
|
||||
<td><?=number_format($lines[$i]['receiptcancel'])?></td>
|
||||
<td class="order_outstanding"><?=number_format($lines[$i]['misu'])?></td>
|
||||
<td><?=$s_receipt_way?></td>
|
||||
<td><a href="./orderform.php?od_id=<?=$lines[$i]['od_id']?>&<?=$qstr?>">수정</a> <a href="javascript:del('./orderdelete.php?od_id=<?=$lines[$i]['od_id']?>&uq_id=<?=$lines[$i]['uq_id']?>&mb_id=<?=$lines[$i]['mb_id']?>&<?=$qstr?>)">삭제</a></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
mysql_free_result($result);
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="12" class="orderlist"><span>자료가 한건도 없습니다.</span></td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</form>
|
||||
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
|
||||
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
|
||||
|
||||
<p><span class="order_care">주의)</span> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.</p>
|
||||
|
||||
|
||||
@ -25,12 +25,12 @@ if ($sel_field == "") $sel_field = "od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_common = " from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id=b.uq_id)
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$row = sql_fetch("select count(od_id) as cnt from {$g4['yc4_order_table']} $sql_search ");
|
||||
$row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
@ -46,6 +46,27 @@ $sql = " select a.od_id,
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$lines = array();
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
}
|
||||
|
||||
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
@ -91,6 +112,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<colgroup width=60>
|
||||
<colgroup width=55>
|
||||
<tr><td colspan=12 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<thead>
|
||||
<tr align=center class=ht>
|
||||
<td><a href='<?=title_sort("od_id", 1)."&$qstr1";?>'>주문번호</a></td>
|
||||
<td><a href='<?=title_sort("od_name")."&$qstr1";?>'>주문자</a></td>
|
||||
@ -117,89 +139,88 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr><td colspan=12 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr class=ht>
|
||||
<td colspan=3 align=center>합 계</td>
|
||||
<td align=center><?=(int)$tot_itemcount?>건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_orderamount)?></FONT></td>
|
||||
<td align=right><?=number_format($tot_ordercancel)?></td>
|
||||
<td align=right><?=number_format($tot_dc_amount)?></td>
|
||||
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_receiptamount)?></FONT></td>
|
||||
<td align=right><?=number_format($tot_receiptcancel)?></td>
|
||||
<td align=right><FONT COLOR='#FF6600'><?=number_format($tot_misu)?></FONT></td>
|
||||
<td colspan=2></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $i<count($lines); $i++)
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($row['od_settle_case'])
|
||||
if ($lines[$i]['od_settle_case'])
|
||||
{
|
||||
$s_receipt_way = $row['od_settle_case'];
|
||||
$s_receipt_way = $lines[$i]['od_settle_case'];
|
||||
$s_br = '<br/>';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
|
||||
if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
|
||||
{
|
||||
//$s_receipt_way = "무통장입금";
|
||||
$s_receipt_way = cut_str($row['od_bank_account'],8,"");
|
||||
$s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
|
||||
$s_br = "<br>";
|
||||
}
|
||||
|
||||
if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
|
||||
if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
|
||||
{
|
||||
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
|
||||
if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
|
||||
if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
|
||||
; // 화면 출력하지 않음
|
||||
else
|
||||
{
|
||||
$s_receipt_way .= $s_br."카드";
|
||||
if ($row['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= "<span class=small><span class=point style='font-size:8pt;'>(미승인)</span></span>";
|
||||
$s_br = "<br>";
|
||||
if ($lines[$i]['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= '<span class="small"><span class="point" style="font-size:8pt;">(미승인)</span></span>';
|
||||
$s_br = '<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($row['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br."포인트";
|
||||
if ($lines[$i]['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br.'포인트';
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr&list=2');");
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}&mb_id={$lines[$i]['mb_id']}&$qstr&list=2');");
|
||||
|
||||
if ($i>0)
|
||||
echo "<tr><td colspan=12 height=1 bgcolor='#CCCCCC'></td></tr>";
|
||||
echo '<tr><td colspan="12" height="1" bgcolor="#CCCCCC"></td></tr>';
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list ht'>
|
||||
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}'>{$row['od_id']}</a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'><span title='$od_deposit_name'>".cut_str($row['od_name'],30,"")."</span></a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$row['mb_id']}'>{$row['mb_id']}</a></td>
|
||||
<td align=center>{$row['itemcount']}건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($row['orderamount'])."</font></td>
|
||||
<td align=right>".number_format($row['ordercancel'])."</td>
|
||||
<td align=right>".number_format($row['od_dc_amount'])."</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($row['receiptamount'])."</font></td>
|
||||
<td align=right>".number_format($row['receiptcancel'])."</td>
|
||||
<td align=right><FONT COLOR='#FF6600'>".number_format($row['misu'])."</FONT></td>
|
||||
<tr class=\"list$list ht\">
|
||||
<td align=center title='주문일시 : {$lines[$i]['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}'>{$lines[$i]['od_id']}</a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$lines[$i]['od_name']}'><span title='$od_deposit_name'>".cut_str($lines[$i]['od_name'],30,"")."</span></a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$lines[$i]['mb_id']}'>{$lines[$i]['mb_id']}</a></td>
|
||||
<td align=center>{$lines[$i]['itemcount']}건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($lines[$i]['orderamount'])."</font></td>
|
||||
<td align=right>".number_format($lines[$i]['ordercancel'])."</td>
|
||||
<td align=right>".number_format($lines[$i]['od_dc_amount'])."</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($lines[$i]['receiptamount'])."</font></td>
|
||||
<td align=right>".number_format($lines[$i]['receiptcancel'])."</td>
|
||||
<td align=right><FONT COLOR='#FF6600'>".number_format($lines[$i]['misu'])."</FONT></td>
|
||||
<td align=center>$s_receipt_way</td>
|
||||
<td align=center>$s_mod $s_del</a></td>
|
||||
</tr>";
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
|
||||
// 상품개별출력
|
||||
$sql2 = " select c.it_name,
|
||||
b.*
|
||||
from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.uq_id = b.uq_id)
|
||||
left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
|
||||
where od_id = '{$row['od_id']}' ";
|
||||
from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
|
||||
left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
|
||||
where od_id = '{$lines[$i]['od_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=sql_fetch_array($result2); $k++)
|
||||
{
|
||||
@ -236,18 +257,8 @@ if ($i == 0)
|
||||
?>
|
||||
</form>
|
||||
<tr><td colspan=12 bgcolor='#CCCCCC'></td></tr>
|
||||
<tr class=ht>
|
||||
<td colspan=3 align=center>합 계</td>
|
||||
<td align=center><?=(int)$tot_itemcount?>건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_orderamount)?></FONT></td>
|
||||
<td align=right><?=number_format($tot_ordercancel)?></td>
|
||||
<td align=right><?=number_format($tot_dc_amount)?></td>
|
||||
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_receiptamount)?></FONT></td>
|
||||
<td align=right><?=number_format($tot_receiptcancel)?></td>
|
||||
<td align=right><FONT COLOR='#FF6600'><?=number_format($tot_misu)?></FONT></td>
|
||||
<td colspan=2></td>
|
||||
</tr>
|
||||
<tr><td colspan=12 bgcolor='#CCCCCC'></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width=100%>
|
||||
|
||||
@ -7,7 +7,7 @@ if (!defined("_ORDERMAIL_")) exit;
|
||||
// 주문자님께 메일발송 체크를 했다면
|
||||
if ($od_send_mail)
|
||||
{
|
||||
$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' ");
|
||||
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' ");
|
||||
|
||||
$addmemo = nl2br(stripslashes($addmemo));
|
||||
|
||||
@ -25,7 +25,7 @@ if ($od_send_mail)
|
||||
b.it_opt4_subject,
|
||||
b.it_opt5_subject,
|
||||
b.it_opt6_subject
|
||||
from {$g4['yc4_cart_table']} a inner join {$g4['yc4_item_table']} b on (b.it_id=a.it_id)
|
||||
from {$g4['shop_cart_table']} a inner join {$g4['shop_item_table']} b on (b.it_id=a.it_id)
|
||||
where a.uq_id = '{$od['uq_id']}'
|
||||
order by a.ct_id ";
|
||||
$result = sql_query($sql);
|
||||
@ -100,7 +100,7 @@ if ($od_send_mail)
|
||||
// 배송정보
|
||||
$is_delivery = false;
|
||||
if ((int)$od[dl_id] > 0) {
|
||||
$dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
|
||||
|
||||
$delivery_list['dl_url'] = $dl['dl_url'];
|
||||
if (strpos($delivery_list['dl_url'], "=")) $delivery_list['dl_url'] .= $od['od_invoice'];
|
||||
@ -133,7 +133,7 @@ if ($od_send_mail)
|
||||
$od_shop_memo .= ", 송장번호";
|
||||
*/
|
||||
|
||||
sql_query(" update {$g4['yc4_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
|
||||
sql_query(" update {$g4['shop_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
|
||||
|
||||
$admin = get_admin('super');
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ if ($csv == 'csv')
|
||||
|
||||
|
||||
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice
|
||||
FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
|
||||
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
|
||||
where a.uq_id = b.uq_id
|
||||
and b.it_id = c.it_id ";
|
||||
if ($case == 1) // 출력기간
|
||||
@ -96,7 +96,7 @@ if ($csv == 'xls')
|
||||
|
||||
|
||||
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.it_opt1, b.it_opt2, b.it_opt3, b.it_opt4, b.it_opt5, b.it_opt6
|
||||
FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b, {$g4['yc4_item_table']} c
|
||||
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
|
||||
where a.uq_id = b.uq_id
|
||||
and b.it_id = c.it_id ";
|
||||
if ($case == 1) // 출력기간
|
||||
@ -169,7 +169,7 @@ function get_order($uq_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$sql = " select * from {$g4['yc4_order_table']} where uq_id = '$uq_id' ";
|
||||
$sql = " select * from {$g4['shop_order_table']} where uq_id = '$uq_id' ";
|
||||
return sql_fetch($sql);
|
||||
}
|
||||
|
||||
@ -180,13 +180,13 @@ if ($case == 1)
|
||||
{
|
||||
$fr_date = date_conv($fr_date);
|
||||
$to_date = date_conv($to_date);
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id
|
||||
and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['yc4_order_table']} a, {$g4['yc4_cart_table']} b
|
||||
$sql = " SELECT DISTINCT a.uq_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
|
||||
where a.uq_id = b.uq_id
|
||||
and a.od_id between '$fr_od_id' and '$to_od_id' ";
|
||||
}
|
||||
@ -241,7 +241,7 @@ if (mysql_num_rows($result) == 0)
|
||||
$tot_total_amount = 0;
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$sql1 = " select * from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ";
|
||||
$sql1 = " select * from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
// 1.03.02
|
||||
@ -286,7 +286,7 @@ if (mysql_num_rows($result) == 0)
|
||||
b.it_opt5_subject,
|
||||
b.it_opt6_subject,
|
||||
b.it_name
|
||||
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.it_id = b.it_id
|
||||
and a.uq_id = '{$row['uq_id']}' ";
|
||||
if ($ct_status)
|
||||
|
||||
@ -24,7 +24,7 @@ if ($od_hp_time)
|
||||
alert("휴대폰 결제일시 오류입니다.");
|
||||
}
|
||||
|
||||
$sql = " update {$g4['yc4_order_table']}
|
||||
$sql = " update {$g4['shop_order_table']}
|
||||
set od_deposit_name = '$od_deposit_name',
|
||||
od_bank_account = '$od_bank_account',
|
||||
od_bank_time = '$od_bank_time',
|
||||
|
||||
@ -31,7 +31,7 @@ if ($od_sms_baesong_check)
|
||||
{
|
||||
$sms_contents = $default['de_sms_cont4'];
|
||||
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
|
||||
$sql = " select dl_company from $g4[yc4_delivery_table] where dl_id = '$dl_id' ";
|
||||
$sql = " select dl_company from $g4[shop_delivery_table] where dl_id = '$dl_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$sms_contents = preg_replace("/{택배회사}/", $row['dl_company'], $sms_contents);
|
||||
$sms_contents = preg_replace("/{운송장번호}/", $od_invoice, $sms_contents);
|
||||
|
||||
@ -26,9 +26,9 @@ if ($sel_field == "") $sel_field = "od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.uq_id = b.uq_id)
|
||||
left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
|
||||
$sql_common = " from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
|
||||
left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
|
||||
$sql_search ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
@ -71,6 +71,17 @@ $sql = " select a.od_id,
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$lines = array();
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_amount += $row['ct_amount'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_amount += $row['ct_sub_amount'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
}
|
||||
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
?>
|
||||
@ -130,6 +141,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<colgroup width=30>
|
||||
<colgroup width=30>
|
||||
<tr><td colspan=11 height=3 bgcolor=#0E87F9></td></tr>
|
||||
<thead>
|
||||
<tr align=center class=ht>
|
||||
<td><a href="<?=title_sort("od_id")."&$qstr1";?>">주문번호</a></td>
|
||||
<td><a href="<?=title_sort("od_name")."&$qstr1";?>">주문자</a></td>
|
||||
@ -143,48 +155,8 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<td><a href="<?=title_sort("ct_status")."&$qstr1";?>">상태</a></td>
|
||||
<td>수정</td>
|
||||
</tr>
|
||||
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<tr><td colspan=11 height=3 bgcolor=#F8F8F8></td></tr>
|
||||
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$od_deposit_name = "";
|
||||
if ($row['od_deposit_name'] != "")
|
||||
$od_deposit_name = "title='입금자 : {$row['od_deposit_name']}'";
|
||||
|
||||
$href = "$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=c.it_id&search=$row[it_id]";
|
||||
$it_name = "<a href='$href'>".cut_str($row['it_name'],35)."</a><br>";
|
||||
$it_name .= print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}");
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list center'>
|
||||
<td align=center title='주문일시 : {$row['od_time']}'><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_id&search={$row['od_id']}'>{$row['od_id']}</a></td>
|
||||
<td align=center $od_deposit_name><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'>".cut_str($row['od_name'],10,"")."</a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$row['mb_id']}'>{$row['mb_id']}</a></td>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td align=left>$it_name</td>
|
||||
<td align=right>".number_format($row['ct_amount'])." </td>
|
||||
<td align=center>$row[ct_qty]</td>
|
||||
<td align=right>".number_format($row['ct_sub_amount'])." </td>
|
||||
<td align=right>".number_format($row['ct_sub_point'])." </td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search={$row['ct_status']}'>{$row['ct_status']}</a></td>
|
||||
<td align=center>$s_mod</td>
|
||||
</tr>";
|
||||
|
||||
$tot_amount += $row['ct_amount'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_amount += $row['ct_sub_amount'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=11 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
?>
|
||||
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr class=ht>
|
||||
<td colspan=5 align=right>합 계 </td>
|
||||
<td align=right><?=number_format($tot_amount)?> </td>
|
||||
@ -194,6 +166,45 @@ if ($i == 0)
|
||||
<td colspan=2></td>
|
||||
</tr>
|
||||
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<tr><td colspan=11 height=3 bgcolor=#F8F8F8></td></tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $i<count($lines); $i++) {
|
||||
|
||||
$od_deposit_name = "";
|
||||
if ($lines[$i]['od_deposit_name'] != "")
|
||||
$od_deposit_name = "title='입금자 : {$lines[$i]['od_deposit_name']}'";
|
||||
|
||||
$href = "$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=c.it_id&search=$lines[$i][it_id]";
|
||||
$it_name = "<a href='$href'>".cut_str($lines[$i]['it_name'],35)."</a><br>";
|
||||
$it_name .= print_item_options($lines[$i]['it_id'], $lines[$i]['it_opt1'], $lines[$i]['it_opt2'], $lines[$i]['it_opt3'], $lines[$i]['it_opt4'], $lines[$i]['it_opt5'], $lines[$i]['it_opt6']);
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}");
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list center'>
|
||||
<td align=center title='주문일시 : {$lines[$i]['od_time']}'><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_id&search={$lines[$i]['od_id']}'>{$lines[$i]['od_id']}</a></td>
|
||||
<td align=center $od_deposit_name><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$lines[$i]['od_name']}'>".cut_str($lines[$i]['od_name'],10,"")."</a></td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$lines[$i]['mb_id']}'>{$lines[$i]['mb_id']}</a></td>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($lines[$i]['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td align=left>$it_name</td>
|
||||
<td align=right>".number_format($lines[$i]['ct_amount'])." </td>
|
||||
<td align=center>{$lines[$i]['ct_qty']}</td>
|
||||
<td align=right>".number_format($lines[$i]['ct_sub_amount'])." </td>
|
||||
<td align=right>".number_format($lines[$i]['ct_sub_point'])." </td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search={$lines[$i]['ct_status']}'>{$lines[$i]['ct_status']}</a></td>
|
||||
<td align=center>$s_mod</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=11 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
?>
|
||||
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width=100%>
|
||||
|
||||
@ -47,7 +47,7 @@ $sql = " select uq_id,
|
||||
od_dc_amount,
|
||||
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
|
||||
(od_refund_amount + od_cancel_card) as receiptcancel
|
||||
from {$g4['yc4_order_table']}
|
||||
from {$g4['shop_order_table']}
|
||||
where SUBSTRING(od_time,1,10) between '$fr_date' and '$to_date'
|
||||
order by od_time desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -58,7 +58,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ $sql = " select uq_id,
|
||||
od_dc_amount,
|
||||
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
|
||||
(od_refund_amount + od_cancel_card) as receiptcancel
|
||||
from {$g4['yc4_order_table']}
|
||||
from {$g4['shop_order_table']}
|
||||
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
|
||||
order by od_time desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -58,7 +58,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ $sql = " select od_id,
|
||||
od_dc_amount,
|
||||
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
|
||||
(od_refund_amount + od_cancel_card) as receiptcancel
|
||||
from {$g4['yc4_order_table']}
|
||||
from {$g4['shop_order_table']}
|
||||
where SUBSTRING(od_time,1,10) = '$date'
|
||||
order by od_id desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -33,7 +33,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ $sql = " select uq_id,
|
||||
od_dc_amount,
|
||||
(od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount,
|
||||
(od_refund_amount + od_cancel_card) as receiptcancel
|
||||
from {$g4['yc4_order_table']}
|
||||
from {$g4['shop_order_table']}
|
||||
where SUBSTRING(od_time,1,4) between '$fr_year' and '$to_year'
|
||||
order by od_time desc ";
|
||||
$result = sql_query($sql);
|
||||
@ -53,7 +53,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ if ($sort2 == "") $sort2 = "desc";
|
||||
$sql = " select a.it_id,
|
||||
b.it_name,
|
||||
COUNT(a.it_id) as it_id_cnt
|
||||
from {$g4['yc4_wish_table']} a, {$g4['yc4_item_table']} b ";
|
||||
from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b ";
|
||||
$sql .= " where a.it_id = b.it_id ";
|
||||
if ($fr_date && $to_date)
|
||||
{
|
||||
@ -58,7 +58,7 @@ $qstr1 = "fr_date=$fr_date&to_date=$to_date&sel_ca_id=$sel_ca_id";
|
||||
<select name="sel_ca_id">
|
||||
<option value=''>전체분류
|
||||
<?
|
||||
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
|
||||
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
|
||||
$result1 = sql_query($sql1);
|
||||
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
|
||||
$len = strlen($row1['ca_id']) / 2 - 1;
|
||||
|
||||
@ -90,6 +90,9 @@ h2 {font-size:1.2em}
|
||||
.gnb_1depth_over .gnb_sub_ul {left:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
.gnb_1depth_over2 .gnb_sub_ul {right:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
|
||||
.gnb_js .gnb_grp_style {background:#f7f7f7 !important}
|
||||
.gnb_js .gnb_grp_div {border-top:1px solid #eee}
|
||||
|
||||
/* 중간 레이아웃 */
|
||||
#wrapper {z-index:5;margin:30px auto;width:1000px;min-height:630px;height:auto !important;height:630px;zoom:1}
|
||||
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -164,11 +167,6 @@ fieldset span {display:block;margin-bottom:10px}
|
||||
fieldset p {color:#4c5f67}
|
||||
fieldset button, .fieldset_submit {padding:0 15px;height:23px;border:0;background:#74868b;color:#fff;font-size:1em;line-height:2.1em;vertical-align:middle;cursor:pointer}
|
||||
fieldset button:focus, .fieldset_submit:focus {padding:0 15px;height:23px;border:0;background:#555;color:#fff;font-size:1em;line-height:2.1em;vertical-align:middle}
|
||||
/* 캡챠 입력상자 */
|
||||
.fs_input,
|
||||
fieldset textarea {padding:3px 3px 4px;border:1px solid #ccc;background:#f7f7f7;vertical-align:middle}
|
||||
.fs_input:focus,
|
||||
fieldset textarea:focus {padding:4px 4px 5px;border:0;background:#494949;color:#fff}
|
||||
|
||||
.readonly {}
|
||||
|
||||
@ -290,6 +288,31 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
#session_del p span,
|
||||
#cache_del p span {color:#ff3061}
|
||||
|
||||
/* 쇼핑몰 설정 */
|
||||
#frm_payment textarea {height:50px}
|
||||
|
||||
#scf_cardtest_btn {margin-left:5px;vertical-align:middle}
|
||||
#scf_cardtest_tip {margin:10px 0 0;padding:10px;border:3px solid #ddd}
|
||||
#scf_cardtest_tip strong {display:inline-block;margin:0 0 5px}
|
||||
#scf_cardtest_tip dl {margin:0 0 15px;padding:0;zoom:1}
|
||||
#scf_cardtest_tip dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#scf_cardtest_tip dt {float:left;width:100px}
|
||||
#scf_cardtest_tip dd {padding:0;overflow:hidden}
|
||||
.scf_cardtest_tip {display:none}
|
||||
|
||||
#frm_sms dl {border-bottom:1px solid #ddd;zoom:1}
|
||||
#frm_sms dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#frm_sms dt {clear:both;float:left;padding:5px 0;width:100px}
|
||||
#frm_sms dd {padding:5px 0;overflow:hidden}
|
||||
#scf_sms {padding:0 0 10px;border-bottom:1px solid #ddd;zoom:1}
|
||||
#scf_sms:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.scf_sms_box {float:left;margin:0 31px;width:163px;text-align:center}
|
||||
.scf_sms_box h3 {margin:0 0 10px}
|
||||
.scf_sms_img {margin:0 0 10px;width:163px;height:191px;background:url('../adm/shop_admin/img/sms_back.gif') no-repeat 0 0;text-align:center}
|
||||
.scf_sms_img textarea {margin:54px 0 0;width:115px;height:85px;border:0;background:transparent;font-size:0.95em;overflow:hidden}
|
||||
.scf_sms_img span {display:block}
|
||||
.scf_sms_cnt {display:block}
|
||||
|
||||
/* 분류관리 목록 */
|
||||
.cate_list_lbl {display:inline-block;padding-left:15px;background:url('../adm/shop_admin/img/icon_reply.gif') 0 2px no-repeat}
|
||||
|
||||
|
||||
@ -24,8 +24,8 @@ if (G4_HTTPS_DOMAIN) {
|
||||
}
|
||||
|
||||
// 미수금에 대한 QUERY 문
|
||||
// 테이블 a 는 주문서 ($g4[yc4_order_table])
|
||||
// 테이블 b 는 장바구니 ($g4[yc4_cart_table])
|
||||
// 테이블 a 는 주문서 ($g4[shop_order_table])
|
||||
// 테이블 b 는 장바구니 ($g4[shop_cart_table])
|
||||
define(_MISU_QUERY_, "
|
||||
count(distinct a.od_id) as ordercount, /* 주문서건수 */
|
||||
count(b.ct_id) as itemcount, /* 상품건수 */
|
||||
@ -49,42 +49,29 @@ define(_MISU_QUERY_, "
|
||||
//------------------------------------------------------------------------------
|
||||
// 쇼핑몰 변수 모음 시작
|
||||
//------------------------------------------------------------------------------
|
||||
define('YC4_TABLE_PREFIX', 'yc4_');
|
||||
define('SHOP_TABLE_PREFIX', 'yc4_');
|
||||
|
||||
// 쇼핑몰 테이블명
|
||||
$g4['yc4_default_table'] = YC4_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블
|
||||
$g4['yc4_banner_table'] = YC4_TABLE_PREFIX.'banner'; // 배너 테이블
|
||||
$g4['yc4_card_history_table'] = YC4_TABLE_PREFIX.'card_history'; // 전자결제이력 테이블
|
||||
$g4['yc4_cart_table'] = YC4_TABLE_PREFIX.'cart'; // 장바구니 테이블
|
||||
$g4['yc4_category_table'] = YC4_TABLE_PREFIX.'category'; // 상품분류 테이블
|
||||
$g4['yc4_content_table'] = YC4_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블
|
||||
$g4['yc4_delivery_table'] = YC4_TABLE_PREFIX.'delivery'; // 배송정보 테이블
|
||||
$g4['yc4_event_table'] = YC4_TABLE_PREFIX.'event'; // 이벤트 테이블
|
||||
$g4['yc4_event_item_table'] = YC4_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블
|
||||
$g4['yc4_faq_table'] = YC4_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블
|
||||
$g4['yc4_faq_master_table'] = YC4_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블
|
||||
$g4['yc4_item_table'] = YC4_TABLE_PREFIX.'item'; // 상품 테이블
|
||||
$g4['yc4_item_ps_table'] = YC4_TABLE_PREFIX.'item_ps'; // 상품 사용후기 테이블
|
||||
$g4['yc4_item_qa_table'] = YC4_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블
|
||||
$g4['yc4_item_relation_table'] = YC4_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블
|
||||
$g4['yc4_new_win_table'] = YC4_TABLE_PREFIX.'new_win'; // 새창 테이블
|
||||
$g4['yc4_onlinecalc_table'] = YC4_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블
|
||||
$g4['yc4_order_table'] = YC4_TABLE_PREFIX.'order'; // 주문서 테이블
|
||||
$g4['yc4_wish_table'] = YC4_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블
|
||||
$g4['yc4_item_info_table'] = YC4_TABLE_PREFIX.'item_info'; // 상품요약정보 테이블 (상품정보고시)
|
||||
|
||||
|
||||
// 신용카드결제대행사 URL
|
||||
$g4[yc4_cardpg][kcp] = "http://admin.kcp.co.kr";
|
||||
$g4[yc4_cardpg][banktown] = "http://ebiz.banktown.com/index.cs";
|
||||
$g4[yc4_cardpg][telec] = "http://www.ebizpro.co.kr";
|
||||
$g4[yc4_cardpg][inicis] = "https://iniweb.inicis.com/DefaultWebApp/index.html";
|
||||
$g4[yc4_cardpg][allthegate] = "http://www.allthegate.com/login/r_login.jsp";
|
||||
$g4[yc4_cardpg][allat] = "http://www.allatbiz.net/servlet/AllatBizSrvX/bizcon/jspx/login/login.jsp?next=/servlet/AllatBizSrvX/bizable/jspx/login/login.jsp";
|
||||
$g4[yc4_cardpg][tgcorp] = "https://npg.tgcorp.com/mdbop/login.jsp";
|
||||
$g4[yc4_cardpg][kspay] = "http://nims.ksnet.co.kr:7001/pg_infoc/src/login.jsp"; // ksnet
|
||||
$g4[yc4_cardpg][dacom] = "https://pgweb.dacom.net";
|
||||
$g4[yc4_cardpg][dacom_xpay] = "https://pgweb.dacom.net";
|
||||
$g4['shop_default_table'] = SHOP_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블
|
||||
$g4['shop_banner_table'] = SHOP_TABLE_PREFIX.'banner'; // 배너 테이블
|
||||
$g4['shop_card_history_table'] = SHOP_TABLE_PREFIX.'card_history'; // 전자결제이력 테이블
|
||||
$g4['shop_cart_table'] = SHOP_TABLE_PREFIX.'cart'; // 장바구니 테이블
|
||||
$g4['shop_category_table'] = SHOP_TABLE_PREFIX.'category'; // 상품분류 테이블
|
||||
$g4['shop_content_table'] = SHOP_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블
|
||||
$g4['shop_delivery_table'] = SHOP_TABLE_PREFIX.'delivery'; // 배송정보 테이블
|
||||
$g4['shop_event_table'] = SHOP_TABLE_PREFIX.'event'; // 이벤트 테이블
|
||||
$g4['shop_event_item_table'] = SHOP_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블
|
||||
$g4['shop_faq_table'] = SHOP_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블
|
||||
$g4['shop_faq_master_table'] = SHOP_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블
|
||||
$g4['shop_item_table'] = SHOP_TABLE_PREFIX.'item'; // 상품 테이블
|
||||
$g4['shop_item_ps_table'] = SHOP_TABLE_PREFIX.'item_ps'; // 상품 사용후기 테이블
|
||||
$g4['shop_item_qa_table'] = SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블
|
||||
$g4['shop_item_relation_table'] = SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블
|
||||
$g4['shop_new_win_table'] = SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블
|
||||
$g4['shop_onlinecalc_table'] = SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블
|
||||
$g4['shop_order_table'] = SHOP_TABLE_PREFIX.'order'; // 주문서 테이블
|
||||
$g4['shop_wish_table'] = SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블
|
||||
$g4['shop_item_info_table'] = SHOP_TABLE_PREFIX.'item_info'; // 상품요약정보 테이블 (상품정보고시)
|
||||
//------------------------------------------------------------------------------
|
||||
// 쇼핑몰 변수 모음 끝
|
||||
//------------------------------------------------------------------------------
|
||||
@ -94,7 +81,7 @@ $g4[yc4_cardpg][dacom_xpay] = "https://pgweb.dacom.net";
|
||||
// 쇼핑몰 필수 실행코드 모음 시작
|
||||
//==============================================================================
|
||||
// 쇼핑몰 설정값 배열변수
|
||||
$default = sql_fetch(" select * from {$g4['yc4_default_table']} ");
|
||||
$default = sql_fetch(" select * from {$g4['shop_default_table']} ");
|
||||
|
||||
// uniqid 테이블이 없을 경우 생성
|
||||
if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
|
||||
@ -105,17 +92,17 @@ if(!sql_query(" select uq_id from {$g4['uniqid_table']} limit 1 ", false)) {
|
||||
}
|
||||
|
||||
// uq_id 필드추가
|
||||
$sql = " select uq_id from {$g4['yc4_cart_table']} limit 1 ";
|
||||
$sql = " select uq_id from {$g4['shop_cart_table']} limit 1 ";
|
||||
$result = sql_query($sql, false);
|
||||
if(!$result) {
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `ct_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_card_history_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_card_history_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD INDEX uq_id (uq_id) ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` ADD UNIQUE uq_id (uq_id) ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_order_table']}` DROP INDEX index1", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `ct_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_card_history_table']}` ADD `uq_id` BIGINT(20) unsigned NOT NULL AFTER `od_id` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_card_history_table']}` MODIFY COLUMN od_id BIGINT(20) unsigned NOT NULL ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD INDEX uq_id (uq_id) ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD UNIQUE uq_id (uq_id) ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` DROP INDEX index1", false);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@ -48,7 +48,6 @@ if (!$select_db) {
|
||||
<?
|
||||
// 테이블 생성 ------------------------------------
|
||||
$file = implode('', file('./gnuboard4s.sql'));
|
||||
eval("\$file = \"$file\";");
|
||||
|
||||
$file = preg_replace('/^--.*$/m', '', $file);
|
||||
$file = preg_replace('/`g4s_([^`]+`)/', '`'.$table_prefix.'$1', $file);
|
||||
@ -57,6 +56,17 @@ for ($i=0; $i<count($f); $i++) {
|
||||
if (trim($f[$i]) == '') continue;
|
||||
mysql_query($f[$i]) or die(mysql_error());
|
||||
}
|
||||
|
||||
// 쇼핑몰 테이블 생성 -----------------------------
|
||||
$file = implode('', file('./shop.sql'));
|
||||
|
||||
$file = preg_replace('/^--.*$/m', '', $file);
|
||||
$file = preg_replace('/`shop_([^`]+`)/', '`'.$shop_prefix.'$1', $file);
|
||||
$f = explode(';', $file);
|
||||
for ($i=0; $i<count($f); $i++) {
|
||||
if (trim($f[$i]) == '') continue;
|
||||
mysql_query($f[$i]) or die(mysql_error());
|
||||
}
|
||||
// 테이블 생성 ------------------------------------
|
||||
?>
|
||||
|
||||
@ -71,7 +81,7 @@ $download_point = -20;
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// config 테이블 설정
|
||||
$sql = " insert into `{$table_prefix}config`
|
||||
set cf_title = '그누보드4s',
|
||||
set cf_title = '쇼핑몰',
|
||||
cf_admin = '$admin_id',
|
||||
cf_use_point = '1',
|
||||
cf_use_norobot = '1',
|
||||
@ -144,6 +154,96 @@ $sql = " insert into `{$table_prefix}member`
|
||||
mb_ip = '{$_SERVER['REMOTE_ADDR']}'
|
||||
";
|
||||
@mysql_query($sql);
|
||||
|
||||
// 내용관리 생성
|
||||
@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '<p align=center><b>회사소개에 대한 내용을 입력하십시오.</b>' ") or die(mysql_error() . "<p>" . $sql);
|
||||
@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'privacy', co_html = '1', co_subject = '개인정보 취급방침', co_content= '<p align=center><b>개인정보 취급방침에 대한 내용을 입력하십시오.' ") or die(mysql_error() . "<p>" . $sql);
|
||||
@mysql_query(" insert into `{$shop_prefix}content` set co_id = 'provision', co_html = '1', co_subject = '서비스 이용약관', co_content= '<p align=center><b>서비스 이용약관에 대한 내용을 입력하십시오.' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// 온라인견적
|
||||
@mysql_query(" insert into `{$shop_prefix}onlinecalc` set oc_id = '1', oc_subject = '온라인견적' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// FAQ Master
|
||||
@mysql_query(" insert into `{$shop_prefix}faq_master` set fm_id = '1', fm_subject = '자주하시는 질문' ") or die(mysql_error() . "<p>" . $sql);
|
||||
|
||||
// default 설정 (쇼핑몰 설정)
|
||||
$sql = " insert into `{$shop_prefix}default`
|
||||
set de_admin_company_name = '회사명',
|
||||
de_admin_company_saupja_no = '123-45-67890',
|
||||
de_admin_company_owner = '대표자명',
|
||||
de_admin_company_tel = '02-123-4567',
|
||||
de_admin_company_fax = '02-123-4568',
|
||||
de_admin_tongsin_no = '제 OO구 - 123호',
|
||||
de_admin_buga_no = '12345호',
|
||||
de_admin_company_zip = '123-456',
|
||||
de_admin_company_addr = 'OO도 OO시 OO구 OO동 123-45',
|
||||
de_admin_info_name = '정보책임자명',
|
||||
de_admin_info_email = '정보책임자 E-mail',
|
||||
de_type1_list_use = '1',
|
||||
de_type1_list_skin = 'maintype10.inc.php',
|
||||
de_type1_list_mod = '3',
|
||||
de_type1_list_row = '2',
|
||||
de_type1_img_width = '$simg_width',
|
||||
de_type1_img_height = '$simg_height',
|
||||
de_type2_list_use = '1',
|
||||
de_type2_list_skin = 'maintype20.inc.php',
|
||||
de_type2_list_mod = '3',
|
||||
de_type2_list_row = '2',
|
||||
de_type2_img_width = '$simg_width',
|
||||
de_type2_img_height = '$simg_height',
|
||||
de_type3_list_use = '1',
|
||||
de_type3_list_skin = 'maintype30.inc.php',
|
||||
de_type3_list_mod = '1',
|
||||
de_type3_list_row = '3',
|
||||
de_type3_img_width = '$simg_width',
|
||||
de_type3_img_height = '$simg_height',
|
||||
de_type4_list_use = '1',
|
||||
de_type4_list_skin = 'maintype40.inc.php',
|
||||
de_type4_list_mod = '3',
|
||||
de_type4_list_row = '1',
|
||||
de_type4_img_width = '$simg_width',
|
||||
de_type4_img_height = '$simg_height',
|
||||
de_type5_list_use = '1',
|
||||
de_type5_list_skin = 'maintype50.inc.php',
|
||||
de_type5_list_mod = '3',
|
||||
de_type5_list_row = '1',
|
||||
de_type5_img_width = '$simg_width',
|
||||
de_type5_img_height = '$simg_height',
|
||||
de_bank_use = '1',
|
||||
de_bank_account = 'OO은행 12345-67-89012 예금주명',
|
||||
de_vbank_use = '0',
|
||||
de_iche_use = '0',
|
||||
de_card_use = '0',
|
||||
de_card_max_amount = '1000',
|
||||
de_point_settle = '10000',
|
||||
de_point_per = '5',
|
||||
de_card_point = '0',
|
||||
de_point_days = '7',
|
||||
de_card_pg = 'kcp',
|
||||
de_kcp_mid = 'T0000',
|
||||
de_send_cost_case = '상한',
|
||||
de_send_cost_limit = '20000;30000;40000',
|
||||
de_send_cost_list = '4000;3000;2000',
|
||||
de_hope_date_use = '0',
|
||||
de_hope_date_after = '3',
|
||||
de_baesong_content = '<b>배송 안내 입력전입니다.</b>',
|
||||
de_change_content = '<b>교환/반품 안내 입력전입니다.</b>',
|
||||
de_rel_list_mod = '4',
|
||||
de_rel_img_width = '$simg_width',
|
||||
de_rel_img_height = '$simg_height',
|
||||
de_simg_width = '$simg_width',
|
||||
de_simg_height = '$simg_height',
|
||||
de_mimg_width = '$mimg_width',
|
||||
de_mimg_height = '$mimg_height',
|
||||
de_item_ps_use = '1',
|
||||
de_level_sell = '1',
|
||||
de_code_dup_use = '1',
|
||||
de_sms_cont1 = '{이름}님의 회원가입을 축하드립니다.\nID:{회원아이디}\n{회사명}',
|
||||
de_sms_cont2 = '{이름}님께서 주문하셨습니다.\n{주문번호}\n{주문금액}원\n{회사명}',
|
||||
de_sms_cont3 = '{이름}님 입금 감사합니다.\n{입금액}원\n주문번호:\n{주문번호}\n{회사명}',
|
||||
de_sms_cont4 = '{이름}님 배송합니다.\n택배:{택배회사}\n운송장번호:\n{운송장번호}\n{회사명}'
|
||||
";
|
||||
mysql_query($sql) or die(mysql_error() . "<p>" . $sql);
|
||||
?>
|
||||
|
||||
<li>DB설정 완료</li>
|
||||
@ -158,7 +258,15 @@ $dir_arr = array (
|
||||
$data_path.'/file',
|
||||
$data_path.'/log',
|
||||
$data_path.'/member',
|
||||
$data_path.'/session'
|
||||
$data_path.'/session',
|
||||
$data_path.'/banner',
|
||||
$data_path.'/category',
|
||||
$data_path.'/common',
|
||||
$data_path.'/content',
|
||||
$data_path.'/event',
|
||||
$data_path.'/faq',
|
||||
$data_path.'/item',
|
||||
$data_path.'/onlinecalc'
|
||||
);
|
||||
|
||||
for ($i=0; $i<count($dir_arr); $i++) {
|
||||
@ -228,7 +336,7 @@ fclose($f);
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<p class="st_strong">축하합니다. 그누보드4s 설치가 완료되었습니다.</p>
|
||||
<p class="st_strong">축하합니다. 쇼핑몰 설치가 완료되었습니다.</p>
|
||||
|
||||
<h2>환경설정 변경은 다음의 과정을 따르십시오.</h2>
|
||||
|
||||
|
||||
579
install/shop.sql
Normal file
579
install/shop.sql
Normal file
@ -0,0 +1,579 @@
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_banner`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_banner`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_banner` (
|
||||
`bn_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`bn_alt` varchar(255) NOT NULL DEFAULT '',
|
||||
`bn_url` varchar(255) NOT NULL DEFAULT '',
|
||||
`bn_position` varchar(255) NOT NULL DEFAULT '',
|
||||
`bn_border` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bn_new_win` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bn_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`bn_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`bn_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`bn_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`bn_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`bn_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_card_history`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_card_history`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_card_history` (
|
||||
`cd_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`od_id` bigint(20) unsigned NOT NULL,
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`cd_mall_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`cd_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`cd_app_no` varchar(20) NOT NULL DEFAULT '',
|
||||
`cd_app_rt` varchar(8) NOT NULL DEFAULT '',
|
||||
`cd_trade_ymd` date NOT NULL DEFAULT '0000-00-00',
|
||||
`cd_trade_hms` time NOT NULL DEFAULT '00:00:00',
|
||||
`cd_quota` char(2) NOT NULL DEFAULT '',
|
||||
`cd_opt01` varchar(255) NOT NULL DEFAULT '',
|
||||
`cd_opt02` varchar(255) NOT NULL DEFAULT '',
|
||||
`cd_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`cd_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`cd_id`),
|
||||
KEY `od_id` (`od_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_cart`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_cart`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_cart` (
|
||||
`ct_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '0',
|
||||
`it_opt1` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt2` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt3` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt4` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt5` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt6` varchar(255) NOT NULL DEFAULT '',
|
||||
`ct_status` enum('쇼핑','주문','준비','배송','완료','취소','반품','품절') NOT NULL DEFAULT '쇼핑',
|
||||
`ct_history` text NOT NULL,
|
||||
`ct_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_point` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_point_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`ct_stock_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`ct_qty` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ct_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
`ct_send_cost` varchar(255) NOT NULL,
|
||||
`ct_direct` tinyint(4) NOT NULL,
|
||||
PRIMARY KEY (`ct_id`),
|
||||
KEY `on_uid` (`on_uid`),
|
||||
KEY `uq_id` (`uq_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_category`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_category`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_category` (
|
||||
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
||||
`ca_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt1_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt2_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt3_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt4_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt5_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_opt6_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_sell_email` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`ca_stock_qty` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_explan_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`ca_head_html` text NOT NULL,
|
||||
`ca_tail_html` text NOT NULL,
|
||||
`ca_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_include_head` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_include_tail` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`ca_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_content`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_content`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_content` (
|
||||
`co_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`co_content` longtext NOT NULL,
|
||||
`co_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`co_include_head` varchar(255) NOT NULL,
|
||||
`co_include_tail` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`co_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_default`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_default`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_default` (
|
||||
`de_admin_company_owner` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_saupja_no` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_tel` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_fax` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_tongsin_no` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_zip` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type1_list_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type1_list_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type1_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type1_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type1_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type1_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type2_list_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type2_list_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type2_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type2_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type2_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type2_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type3_list_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type3_list_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type3_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type3_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type3_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type3_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type4_list_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type4_list_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type4_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type4_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type4_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type4_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type5_list_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type5_list_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_type5_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type5_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type5_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_type5_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_rel_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`de_rel_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_rel_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_bank_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_bank_account` text NOT NULL,
|
||||
`de_card_test` int(11) NOT NULL DEFAULT '0',
|
||||
`de_card_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_card_point` int(11) NOT NULL DEFAULT '0',
|
||||
`de_card_pg` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_card_max_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`de_banktown_mid` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_banktown_auth_key` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_telec_mid` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_point_settle` int(11) NOT NULL DEFAULT '0',
|
||||
`de_level_sell` int(11) NOT NULL DEFAULT '0',
|
||||
`de_send_cost_case` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_send_cost_limit` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_send_cost_list` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_hope_date_use` int(11) NOT NULL DEFAULT '0',
|
||||
`de_hope_date_after` int(11) NOT NULL DEFAULT '0',
|
||||
`de_baesong_content` text NOT NULL,
|
||||
`de_change_content` text NOT NULL,
|
||||
`de_point_days` int(11) NOT NULL DEFAULT '0',
|
||||
`de_simg_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_simg_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_mimg_width` int(11) NOT NULL DEFAULT '0',
|
||||
`de_mimg_height` int(11) NOT NULL DEFAULT '0',
|
||||
`de_scroll_banner_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_cart_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_register` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_sms_cont1` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_sms_cont2` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_sms_cont3` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_sms_cont4` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_sms_use1` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_sms_use2` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_sms_use3` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_sms_use4` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_sms_hp` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_kcp_mid` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_iche_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_item_ps_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_code_dup_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_point_per` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_admin_buga_no` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_different_msg` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_sms_use` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_icode_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_icode_pw` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_icode_server_ip` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_icode_server_port` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_kcp_site_key` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_vbank_use` varchar(255) NOT NULL DEFAULT '',
|
||||
`de_taxsave_use` tinyint(4) NOT NULL,
|
||||
`de_guest_privacy` text NOT NULL,
|
||||
`de_hp_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`de_escrow_use` tinyint(4) NOT NULL DEFAULT '0'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_delivery`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_delivery`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_delivery` (
|
||||
`dl_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`dl_company` varchar(255) NOT NULL DEFAULT '',
|
||||
`dl_url` varchar(255) NOT NULL DEFAULT '',
|
||||
`dl_tel` varchar(255) NOT NULL DEFAULT '',
|
||||
`dl_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`dl_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_event`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_event`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_event` (
|
||||
`ev_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`it_group` int(11) NOT NULL DEFAULT '0',
|
||||
`ev_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`ev_img_width` int(11) NOT NULL DEFAULT '0',
|
||||
`ev_img_height` int(11) NOT NULL DEFAULT '0',
|
||||
`ev_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`ev_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`ev_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`ev_head_html` text NOT NULL,
|
||||
`ev_tail_html` text NOT NULL,
|
||||
`ev_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ev_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_event_item`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_event_item`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_event_item` (
|
||||
`ev_id` int(11) NOT NULL DEFAULT '0',
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`ev_id`,`it_id`),
|
||||
KEY `it_id` (`it_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_faq`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_faq`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_faq` (
|
||||
`fa_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`fm_id` int(11) NOT NULL DEFAULT '0',
|
||||
`fa_subject` text NOT NULL,
|
||||
`fa_content` text NOT NULL,
|
||||
`fa_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`fa_id`),
|
||||
KEY `fm_id` (`fm_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_faq_master`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_faq_master`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_faq_master` (
|
||||
`fm_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`fm_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`fm_head_html` text NOT NULL,
|
||||
`fm_tail_html` text NOT NULL,
|
||||
`fm_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`fm_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_item`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_item`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_item` (
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '',
|
||||
`ca_id` varchar(10) NOT NULL DEFAULT '0',
|
||||
`ca_id2` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_id3` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_gallery` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_maker` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_origin` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt1_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt2_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt3_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt4_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt5_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt6_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt1` text NOT NULL,
|
||||
`it_opt2` text NOT NULL,
|
||||
`it_opt3` text NOT NULL,
|
||||
`it_opt4` text NOT NULL,
|
||||
`it_opt5` text NOT NULL,
|
||||
`it_opt6` text NOT NULL,
|
||||
`it_type1` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_type2` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_type3` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_type4` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_type5` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_basic` text NOT NULL,
|
||||
`it_explan` mediumtext NOT NULL,
|
||||
`it_explan_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_cust_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount2` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount3` int(11) NOT NULL DEFAULT '0',
|
||||
`it_point` int(11) NOT NULL DEFAULT '0',
|
||||
`it_sell_email` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_stock_qty` int(11) NOT NULL DEFAULT '0',
|
||||
`it_head_html` text NOT NULL,
|
||||
`it_tail_html` text NOT NULL,
|
||||
`it_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`it_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`it_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
`it_order` int(11) NOT NULL DEFAULT '0',
|
||||
`it_tel_inq` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`it_id`),
|
||||
KEY `ca_id` (`ca_id`),
|
||||
KEY `it_name` (`it_name`),
|
||||
KEY `it_order` (`it_order`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_item_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_item_info`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_item_info` (
|
||||
`ii_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`it_id` varchar(10) NOT NULL,
|
||||
`ii_gubun` varchar(50) NOT NULL,
|
||||
`ii_article` varchar(50) NOT NULL,
|
||||
`ii_title` varchar(255) NOT NULL,
|
||||
`ii_value` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`ii_id`),
|
||||
UNIQUE KEY `it_id` (`it_id`,`ii_gubun`,`ii_article`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_item_ps`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_item_ps`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_item_ps` (
|
||||
`is_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '0',
|
||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`is_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`is_password` varchar(255) NOT NULL DEFAULT '',
|
||||
`is_score` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`is_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`is_content` text NOT NULL,
|
||||
`is_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`is_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
`is_confirm` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`is_id`),
|
||||
KEY `index1` (`it_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_item_qa`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_item_qa`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_item_qa` (
|
||||
`iq_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '',
|
||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`iq_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_password` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_question` text NOT NULL,
|
||||
`iq_answer` text NOT NULL,
|
||||
`iq_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`iq_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`iq_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_item_relation`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_item_relation`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_item_relation` (
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '',
|
||||
`it_id2` varchar(10) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`it_id`,`it_id2`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_new_win`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_new_win`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_new_win` (
|
||||
`nw_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`nw_disable_hours` int(11) NOT NULL DEFAULT '0',
|
||||
`nw_left` int(11) NOT NULL DEFAULT '0',
|
||||
`nw_top` int(11) NOT NULL DEFAULT '0',
|
||||
`nw_height` int(11) NOT NULL DEFAULT '0',
|
||||
`nw_width` int(11) NOT NULL DEFAULT '0',
|
||||
`nw_subject` text NOT NULL,
|
||||
`nw_content` text NOT NULL,
|
||||
`nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`nw_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_onlinecalc`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_onlinecalc`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_onlinecalc` (
|
||||
`oc_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`oc_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`oc_category` text NOT NULL,
|
||||
`oc_head_html` text NOT NULL,
|
||||
`oc_tail_html` text NOT NULL,
|
||||
PRIMARY KEY (`oc_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_order`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_order`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_order` (
|
||||
`od_id` bigint(20) unsigned NOT NULL,
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_pwd` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_name` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_email` varchar(100) NOT NULL DEFAULT '',
|
||||
`od_tel` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_hp` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_zip1` char(3) NOT NULL DEFAULT '',
|
||||
`od_zip2` char(3) NOT NULL DEFAULT '',
|
||||
`od_addr1` varchar(100) NOT NULL DEFAULT '',
|
||||
`od_addr2` varchar(100) NOT NULL DEFAULT '',
|
||||
`od_deposit_name` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_b_name` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_b_tel` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_b_hp` varchar(20) NOT NULL DEFAULT '',
|
||||
`od_b_zip1` char(3) NOT NULL DEFAULT '',
|
||||
`od_b_zip2` char(3) NOT NULL DEFAULT '',
|
||||
`od_b_addr1` varchar(100) NOT NULL DEFAULT '',
|
||||
`od_b_addr2` varchar(100) NOT NULL DEFAULT '',
|
||||
`od_memo` text NOT NULL,
|
||||
`od_send_cost` int(11) NOT NULL DEFAULT '0',
|
||||
`od_temp_bank` int(11) NOT NULL DEFAULT '0',
|
||||
`od_temp_card` int(11) NOT NULL DEFAULT '0',
|
||||
`od_temp_hp` int(11) NOT NULL,
|
||||
`od_temp_point` int(11) NOT NULL DEFAULT '0',
|
||||
`od_receipt_bank` int(11) NOT NULL DEFAULT '0',
|
||||
`od_receipt_card` int(11) NOT NULL DEFAULT '0',
|
||||
`od_receipt_hp` int(11) NOT NULL,
|
||||
`od_receipt_point` int(11) NOT NULL DEFAULT '0',
|
||||
`od_bank_account` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_bank_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`od_card_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`od_hp_time` datetime NOT NULL,
|
||||
`od_cancel_card` int(11) NOT NULL DEFAULT '0',
|
||||
`od_dc_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`od_refund_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`od_shop_memo` text NOT NULL,
|
||||
`dl_id` int(11) NOT NULL DEFAULT '0',
|
||||
`od_invoice` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_invoice_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`od_hope_date` date NOT NULL DEFAULT '0000-00-00',
|
||||
`od_settle_case` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_escrow1` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_escrow2` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_escrow3` varchar(255) NOT NULL DEFAULT '',
|
||||
`od_cash_no` varchar(255) NOT NULL,
|
||||
`od_cash_receipt_no` varchar(255) NOT NULL,
|
||||
`od_cash_app_time` varchar(255) NOT NULL,
|
||||
`od_cash_reg_stat` varchar(255) NOT NULL,
|
||||
`od_cash_reg_desc` varchar(255) NOT NULL,
|
||||
`od_cash_tr_code` varchar(255) NOT NULL,
|
||||
`od_cash_id_info` varchar(255) NOT NULL,
|
||||
`od_cash` tinyint(4) NOT NULL,
|
||||
`od_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`od_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`od_id`),
|
||||
UNIQUE KEY `uq_id` (`uq_id`),
|
||||
KEY `index2` (`mb_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `yc4_wish`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `yc4_wish`;
|
||||
CREATE TABLE IF NOT EXISTS `yc4_wish` (
|
||||
`wi_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`it_id` varchar(10) NOT NULL DEFAULT '0',
|
||||
`wi_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`wi_ip` varchar(25) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`wi_id`),
|
||||
KEY `index1` (`mb_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
@ -564,7 +564,7 @@ function create_table_item_info()
|
||||
{
|
||||
global $g4;
|
||||
return sql_query("
|
||||
CREATE TABLE IF NOT EXISTS `{$g4['yc4_item_info_table']}` (
|
||||
CREATE TABLE IF NOT EXISTS `{$g4['shop_item_info_table']}` (
|
||||
`ii_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`it_id` varchar(10) NOT NULL,
|
||||
`ii_gubun` varchar(50) NOT NULL,
|
||||
|
||||
@ -7,7 +7,7 @@ function get_cart_count($uq_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$sql = " select count(ct_id) as cnt from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ";
|
||||
$sql = " select count(ct_id) as cnt from {$g4['shop_cart_table']} where uq_id = '$uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$cnt = (int)$row[cnt];
|
||||
return $cnt;
|
||||
@ -59,13 +59,13 @@ function get_it_stock_qty($it_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$sql = " select it_stock_qty from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||
$sql = " select it_stock_qty from {$g4['shop_item_table']} where it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$jaego = (int)$row['it_stock_qty'];
|
||||
|
||||
// 재고에서 빼지 않았고 주문인것만
|
||||
$sql = " select SUM(ct_qty) as sum_qty
|
||||
from {$g4['yc4_cart_table']}
|
||||
from {$g4['shop_cart_table']}
|
||||
where it_id = '$it_id'
|
||||
and ct_stock_use = 0
|
||||
and ct_status in ('주문', '준비') ";
|
||||
@ -205,7 +205,7 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_
|
||||
// 1.02.00
|
||||
// it_order 추가
|
||||
$sql = " select *
|
||||
from {$g4['yc4_item_table']}
|
||||
from {$g4['shop_item_table']}
|
||||
where it_use = '1'
|
||||
and it_type{$type} = '1' ";
|
||||
if ($ca_id) $sql .= " and ca_id like '$ca_id%' ";
|
||||
@ -234,7 +234,7 @@ function display_category($no, $list_mod, $list_row, $img_width, $img_height, $c
|
||||
// 상품의 갯수
|
||||
$items = $list_mod * $list_row;
|
||||
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_use = '1'";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_use = '1'";
|
||||
if ($ca_id)
|
||||
$sql .= " and ca_id LIKE '{$ca_id}%' ";
|
||||
$sql .= " order by it_order, it_id desc limit $items ";
|
||||
@ -270,7 +270,7 @@ function get_star_image($it_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['yc4_item_ps_table']} where it_id = '$it_id' ";
|
||||
$sql = "select (SUM(is_score) / COUNT(*)) as score from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
return (int)get_star($row['score']);
|
||||
@ -408,7 +408,7 @@ function print_item_options()
|
||||
it_opt4_subject,
|
||||
it_opt5_subject,
|
||||
it_opt6_subject
|
||||
from {$g4['yc4_item_table']}
|
||||
from {$g4['shop_item_table']}
|
||||
where it_id = '$it_id' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
@ -500,8 +500,8 @@ function display_event($no, $event, $list_mod, $list_row, $img_width, $img_heigh
|
||||
// 1.02.00
|
||||
// b.it_order 추가
|
||||
$sql = " select b.*
|
||||
from {$g4['yc4_event_item_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_event_item_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.it_id = b.it_id
|
||||
and b.it_use = '1'
|
||||
and a.ev_id = '$event' ";
|
||||
@ -537,7 +537,7 @@ function get_goods($uq_id)
|
||||
global $g4;
|
||||
|
||||
// 상품명만들기
|
||||
$row = sql_fetch(" select a.it_id, b.it_name from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b where a.it_id = b.it_id and a.uq_id = '$uq_id' order by ct_id limit 1 ");
|
||||
$row = sql_fetch(" select a.it_id, b.it_name from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b where a.it_id = b.it_id and a.uq_id = '$uq_id' order by ct_id limit 1 ");
|
||||
// 상품명에 "(쌍따옴표)가 들어가면 오류 발생함
|
||||
$goods['it_id'] = $row['it_id'];
|
||||
$goods['full_name']= $goods['name'] = addslashes($row['it_name']);
|
||||
@ -545,7 +545,7 @@ function get_goods($uq_id)
|
||||
$goods['full_name'] = preg_replace ("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $goods['full_name']);
|
||||
|
||||
// 상품건수
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g4['yc4_cart_table']} where uq_id = '$uq_id' ");
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g4['shop_cart_table']} where uq_id = '$uq_id' ");
|
||||
$cnt = $row['cnt'] - 1;
|
||||
if ($cnt)
|
||||
$goods['full_name'] .= " 외 {$cnt}건";
|
||||
@ -556,9 +556,9 @@ function get_goods($uq_id)
|
||||
|
||||
|
||||
// 패턴의 내용대로 해당 디렉토리에서 정렬하여 <select> 태그에 적용할 수 있게 반환
|
||||
function get_list_skin_options($pattern, $dirname="./")
|
||||
function get_list_skin_options($pattern, $dirname='./', $sval='')
|
||||
{
|
||||
$str = "";
|
||||
$str = '<option value="">선택</option>'.PHP_EOL;
|
||||
|
||||
unset($arr);
|
||||
$handle = opendir($dirname);
|
||||
@ -570,8 +570,13 @@ function get_list_skin_options($pattern, $dirname="./")
|
||||
closedir($handle);
|
||||
|
||||
sort($arr);
|
||||
foreach($arr as $key=>$value) {
|
||||
$str .= "<option value=\"$arr[$key]\">$arr[$key]</option>\n";
|
||||
foreach($arr as $value) {
|
||||
if($value == $sval)
|
||||
$selected = ' selected="selected"';
|
||||
else
|
||||
$selected = '';
|
||||
|
||||
$str .= '<option value="'.$value.'"'.$selected.'>'.$value.'</option>'.PHP_EOL;
|
||||
}
|
||||
|
||||
return $str;
|
||||
@ -622,10 +627,10 @@ function get_new_od_id()
|
||||
global $g4;
|
||||
|
||||
// 주문서 테이블 Lock 걸고
|
||||
sql_query(" LOCK TABLES {$g4['yc4_order_table']} READ, {$g4['yc4_order_table']} WRITE ", FALSE);
|
||||
sql_query(" LOCK TABLES {$g4['shop_order_table']} READ, {$g4['shop_order_table']} WRITE ", FALSE);
|
||||
// 주문서 번호를 만든다.
|
||||
$date = date("ymd", time()); // 2002년 3월 7일 일경우 020307
|
||||
$sql = " select max(od_id) as max_od_id from {$g4['yc4_order_table']} where SUBSTRING(od_id, 1, 6) = '$date' ";
|
||||
$sql = " select max(od_id) as max_od_id from {$g4['shop_order_table']} where SUBSTRING(od_id, 1, 6) = '$date' ";
|
||||
$row = sql_fetch($sql);
|
||||
$od_id = $row['max_od_id'];
|
||||
if ($od_id == 0)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
<?
|
||||
include_once('../common.php');
|
||||
|
||||
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP)
|
||||
die('<p><3E><><EFBFBD><EFBFBD> <20><><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</p><p>'.G4_EXTEND_DIR.'/shop.extend.php <20><> define(\'G4_USE_SHOP\', true); <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</p>');
|
||||
?>
|
||||
@ -3,7 +3,7 @@ include_once("./_common.php");
|
||||
|
||||
if ($_COOKIE['ck_bn_id'] != $bn_id)
|
||||
{
|
||||
$sql = " update {$g4['yc4_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
|
||||
$sql = " update {$g4['shop_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
|
||||
sql_query($sql);
|
||||
// 하루 동안
|
||||
set_cookie("ck_bn_id", $bn_id, 60*60*24);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?
|
||||
// 배너 출력
|
||||
$sql = " select * from {$g4['yc4_banner_table']}
|
||||
$sql = " select * from {$g4['shop_banner_table']}
|
||||
where '".G4_TIME_YMDHIS."' between bn_begin_time and bn_end_time
|
||||
and bn_position = '$position'
|
||||
order by bn_order, bn_id desc ";
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?=$g4[shop_path]?>/cart.php'><img src='<?=G4_SHOP_URL?>/img/bar_cart.gif' border=0></a></td></tr>
|
||||
<?
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '".get_session('ss_uq_id')."'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
|
||||
@ -12,7 +12,7 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
|
||||
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_URL?>/img/bar_category.gif'></td></tr>
|
||||
<?
|
||||
// 1단계 분류 판매가능한것만
|
||||
$hsql = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$hsql = " select ca_id, ca_name from {$g4['shop_category_table']}
|
||||
where length(ca_id) = '2'
|
||||
and ca_use = '1'
|
||||
order by ca_id ";
|
||||
@ -24,7 +24,7 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
$menubody = "";
|
||||
$onmouseover = "";
|
||||
$onmouseout = "";
|
||||
$sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
|
||||
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
|
||||
where LENGTH(ca_id) = '4'
|
||||
and SUBSTRING(ca_id,1,2) = '{$row['ca_id']}'
|
||||
and ca_use = '1'
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0>
|
||||
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_URL?>/img/bar_event.gif'></td></tr>
|
||||
<?
|
||||
$hsql = " select ev_id, ev_subject from {$g4['yc4_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hsql = " select ev_id, ev_subject from {$g4['shop_event_table']} where ev_use = '1' order by ev_id desc ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
|
||||
@ -54,7 +54,7 @@ echo "\n";
|
||||
for ($i=1; $i<=$tv_idx; $i++)
|
||||
{
|
||||
$tv_it_id = get_session("ss_tv[$i]");
|
||||
$rowx = sql_fetch(" select it_name from $g4[yc4_item_table] where it_id = '$tv_it_id' ");
|
||||
$rowx = sql_fetch(" select it_name from $g4[shop_item_table] where it_id = '$tv_it_id' ");
|
||||
$it_name = get_text(addslashes($rowx['it_name']));
|
||||
$img = get_it_image($tv_it_id."_s", $tv_div['img_width'], $tv_div['img_height'], $tv_it_id);
|
||||
$img = str_replace('"', '\"', preg_replace("/\<a /", "<a title=\"$it_name\" ", $img));
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?=G4_SHOP_URL?>/wishlist.php'><img src='<?=G4_SHOP_URL?>/img/bar_wishlist.gif' border=0></a></td></tr>
|
||||
<?
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['yc4_wish_table']} a, {$g4['yc4_item_table']} b
|
||||
$hsql = " select a.it_id, b.it_name from {$g4['shop_wish_table']} a, {$g4['shop_item_table']} b
|
||||
where a.mb_id = '{$member['mb_id']}'
|
||||
and a.it_id = b.it_id
|
||||
order by a.wi_id desc ";
|
||||
|
||||
@ -61,8 +61,8 @@ $sql = " select a.ct_id,
|
||||
b.it_id,
|
||||
b.it_name,
|
||||
b.ca_id
|
||||
from {$g4['yc4_cart_table']} a,
|
||||
{$g4['yc4_item_table']} b
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.uq_id = '$s_uq_id'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
@ -195,7 +195,7 @@ if ($i == 0) {
|
||||
}
|
||||
|
||||
// 이미 주문된 내역을 보여주는것이므로 배송비를 주문서에서 얻는다.
|
||||
$sql = "select od_send_cost from {$g4['yc4_order_table']} where od_id = '$od_id' ";
|
||||
$sql = "select od_send_cost from {$g4['shop_order_table']} where od_id = '$od_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['od_send_cost'] > 0)
|
||||
$send_cost = $row['od_send_cost'];
|
||||
|
||||
@ -32,14 +32,14 @@ if ($member['mb_level'] < $default['de_level_sell'])
|
||||
|
||||
if ($act == "d") // 삭제이면
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_cart_table']}
|
||||
$sql = " delete from {$g4['shop_cart_table']}
|
||||
where ct_id = '$ct_id'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($act == "alldelete") // 모두 삭제이면
|
||||
{
|
||||
$sql = " delete from {$g4['yc4_cart_table']}
|
||||
$sql = " delete from {$g4['shop_cart_table']}
|
||||
where uq_id = '$tmp_uq_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
@ -64,7 +64,7 @@ else if ($act == "allupdate") // 수량 변경이면 : 모두 수정이면
|
||||
|
||||
for ($i=0; $i<$fldcnt; $i++)
|
||||
{
|
||||
$sql = " update {$g4['yc4_cart_table']}
|
||||
$sql = " update {$g4['shop_cart_table']}
|
||||
set ct_qty = '{$_POST['ct_qty'][$i]}'
|
||||
where ct_id = '{$_POST['ct_id'][$i]}'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
@ -85,7 +85,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
// 비회원가격과 회원가격이 다르다면
|
||||
if (!$is_member && $default['de_different_msg'])
|
||||
{
|
||||
$sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
|
||||
$error .= "\"{$_POST['it_name'][$i]}\" 의 비회원가격과 회원가격이 다릅니다. 로그인 후 구입하여 주십시오.\\n\\n";
|
||||
@ -95,7 +95,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
//--------------------------------------------------------
|
||||
// 변조 검사
|
||||
//--------------------------------------------------------
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
$amount = get_amount($it);
|
||||
@ -110,7 +110,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
//--------------------------------------------------------
|
||||
|
||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']} where it_id = '{$_POST['it_id'][$i]}' and uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$sum_qty = $row['cnt'];
|
||||
|
||||
@ -132,7 +132,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
if (!$config['cf_use_point']) $_POST['it_point'][$i] = 0;
|
||||
|
||||
// 장바구니에 Insert
|
||||
$sql = " insert {$g4['yc4_cart_table']}
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id'][$i]}',
|
||||
ct_status = '쇼핑',
|
||||
@ -157,7 +157,7 @@ else // 장바구니에 담기
|
||||
// 비회원가격과 회원가격이 다르다면
|
||||
if (!$is_member && $default['de_different_msg'])
|
||||
{
|
||||
$sql = " select it_amount, it_amount2 from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
|
||||
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">";
|
||||
@ -170,7 +170,7 @@ else // 장바구니에 담기
|
||||
// 변조 검사
|
||||
//--------------------------------------------------------
|
||||
$opt_amount = 0;
|
||||
$sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
|
||||
$it = sql_fetch($sql);
|
||||
for ($i=1; $i<=6; $i++) {
|
||||
//$dst_opt = $_POST["it_opt".$i];
|
||||
@ -211,7 +211,7 @@ else // 장바구니에 담기
|
||||
// 재고 검사
|
||||
//--------------------------------------------------------
|
||||
// 이미 장바구니에 있는 같은 상품의 수량합계를 구한다.
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']}
|
||||
$sql = " select SUM(ct_qty) as cnt from {$g4['shop_cart_table']}
|
||||
where it_id = '{$_POST['it_id']}'
|
||||
and uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -226,17 +226,17 @@ else // 장바구니에 담기
|
||||
//--------------------------------------------------------
|
||||
|
||||
// 바로구매에 있던 장바구니 자료를 지운다.
|
||||
$result = sql_query(" delete from {$g4['yc4_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
||||
$result = sql_query(" delete from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_direct = 1 ", false);
|
||||
if (!$result) {
|
||||
// 삭제중 에러가 발생했다면 필드가 없다는 것이므로 바로구매 필드를 생성한다.
|
||||
sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
|
||||
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` ADD `ct_direct` TINYINT NOT NULL ");
|
||||
}
|
||||
|
||||
// 포인트 사용하지 않는다면
|
||||
if (!$config['cf_use_point']) { $_POST['it_point'] = 0; }
|
||||
|
||||
// 장바구니에 Insert
|
||||
$sql = " insert {$g4['yc4_cart_table']}
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id']}',
|
||||
it_opt1 = '{$_POST['it_opt1']}',
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 내용
|
||||
$sql = " select * from {$g4['yc4_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert("등록된 내용이 없습니다.");
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select * from {$g4['yc4_event_table']}
|
||||
$sql = " select * from {$g4['shop_event_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and ev_use = 1 ";
|
||||
$ev = sql_fetch($sql);
|
||||
@ -62,8 +62,8 @@ $sql_list1 = " select a.ca_id,
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by a.it_order, a.it_id desc ";
|
||||
|
||||
$sql_common = " from {$g4['yc4_item_table']} a
|
||||
left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id)
|
||||
$sql_common = " from {$g4['shop_item_table']} a
|
||||
left join {$g4['shop_event_item_table']} b on (a.it_id=b.it_id)
|
||||
where b.ev_id = '$ev_id'
|
||||
and a.it_use = '1' ";
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
if (!$fm_id) $fm_id = 1;
|
||||
|
||||
// FAQ MASTER
|
||||
$sql = " select * from {$g4['yc4_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
if (!$fm['fm_id'])
|
||||
alert('등록된 내용이 없습니다.');
|
||||
@ -30,7 +30,7 @@ echo "<br>";
|
||||
echo "<table width=95% align=center cellpadding=1 cellspacing=0>\n";
|
||||
echo "<tr><td class=bg_faq><table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor=#FFFFFF>\n";
|
||||
|
||||
$sql = " select * from {$g4['yc4_faq_table']}
|
||||
$sql = " select * from {$g4['shop_faq_table']}
|
||||
where fm_id = '$fm_id'
|
||||
order by fa_order , fa_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -35,7 +35,7 @@ if (!$saved) {
|
||||
|
||||
// 조회수 증가
|
||||
if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
sql_query(" update {$g4['yc4_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
sql_query(" update {$g4['shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
|
||||
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
|
||||
}
|
||||
|
||||
@ -43,8 +43,8 @@ if ($_COOKIE['ck_it_id'] != $it_id) {
|
||||
$sql = " select a.*,
|
||||
b.ca_name,
|
||||
b.ca_use
|
||||
from {$g4['yc4_item_table']} a,
|
||||
{$g4['yc4_category_table']} b
|
||||
from {$g4['shop_item_table']} a,
|
||||
{$g4['shop_category_table']} b
|
||||
where a.it_id = '$it_id'
|
||||
and a.ca_id = b.ca_id ";
|
||||
$it = sql_fetch($sql);
|
||||
@ -57,7 +57,7 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
||||
|
||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||
$sql = " select ca_include_head, ca_include_tail
|
||||
from {$g4['yc4_category_table']}
|
||||
from {$g4['shop_category_table']}
|
||||
where ca_id = '{$it['ca_id']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
@ -88,7 +88,7 @@ if ($is_admin)
|
||||
include G4_SHOP_PATH.'/listcategory.inc.php';
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
|
||||
$sql = " select it_id, it_name from {$g4['shop_item_table']}
|
||||
where it_id > '$it_id'
|
||||
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
|
||||
and it_use = '1'
|
||||
@ -104,7 +104,7 @@ if ($row['it_id']) {
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
|
||||
$sql = " select it_id, it_name from {$g4['shop_item_table']}
|
||||
where it_id < '$it_id'
|
||||
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
|
||||
and it_use = '1'
|
||||
@ -121,8 +121,8 @@ if ($row['it_id']) {
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt
|
||||
from {$g4['yc4_item_relation_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
|
||||
from {$g4['shop_item_relation_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
|
||||
where a.it_id = '{$it['it_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_relation_count = $row['cnt'];
|
||||
@ -407,7 +407,7 @@ function click_item(id)
|
||||
<tr><td rowspan=2 width=31 valign=top bgcolor=#CACDE2><img src='<?=G4_SHOP_URL?>/img/item_t01.gif'></td><td height=2 bgcolor=#CACDE2></td></tr>
|
||||
<tr><td style='padding:15px'>
|
||||
<?
|
||||
$sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$sql = " select * from {$g4['shop_item_info_table']} where it_id = '$it_id' order by ii_id ";
|
||||
$result = sql_query($sql, false);
|
||||
if (@mysql_num_rows($result)) {
|
||||
?>
|
||||
@ -496,8 +496,8 @@ include_once('./itemqa.inc.php');
|
||||
$td_width = (int)(100 / $list_mod);
|
||||
|
||||
$sql = " select b.*
|
||||
from {$g4['yc4_item_relation_table']} a
|
||||
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
|
||||
from {$g4['shop_item_relation_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
where a.it_id = '{$it['it_id']}'
|
||||
and b.it_use='1' ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -24,7 +24,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<td width=11><img src='<?=G4_SHOP_URL?>/img/corner02.gif'></td>
|
||||
</tr>
|
||||
<?
|
||||
$sql_common = " from {$g4['yc4_item_qa_table']} where it_id = '{$it['it_id']}' ";
|
||||
$sql_common = " from {$g4['shop_item_qa_table']} where it_id = '{$it['it_id']}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user