g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -1,9 +1,9 @@
<?php
define('G4_IS_ADMIN', true);
define('G5_IS_ADMIN', true);
include_once ('../../common.php');
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP)
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
include_once(G4_ADMIN_PATH.'/admin.lib.php');
include_once(G5_ADMIN_PATH.'/admin.lib.php');
?>

View File

@ -6,7 +6,7 @@ if (preg_match("/[^0-9a-z]/i", $ca_id)) {
die("{\"error\":\"분류코드는 영문자 숫자 만 입력 가능합니다.\"}");
}
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$ca_id}' ";
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$ca_id}' ";
$row = sql_fetch($sql);
if ($row['ca_name']) {
$ca_name = addslashes($row['ca_name']);

View File

@ -6,7 +6,7 @@ if (preg_match("/[^\w\-]/", $it_id)) { // \w : 0-9 A-Z a-z _
die("{\"error\":\"상품코드는 영문자 숫자 _ - 만 입력 가능합니다.\"}");
}
$sql = " select it_name from {$g4['shop_item_table']} where it_id = '{$it_id}' ";
$sql = " select it_name from {$g5['shop_item_table']} where it_id = '{$it_id}' ";
$row = sql_fetch($sql);
if ($row['it_name']) {
$it_name = addslashes($row['it_name']);

View File

@ -5,12 +5,12 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$html_title = '배너';
$g4['title'] = $html_title.'관리';
$g5['title'] = $html_title.'관리';
if ($w=="u")
{
$html_title .= ' 수정';
$sql = " select * from {$g4['shop_banner_table']} where bn_id = '$bn_id' ";
$sql = " select * from {$g5['shop_banner_table']} where bn_id = '$bn_id' ";
$bn = sql_fetch($sql);
}
else
@ -21,7 +21,7 @@ else
$bn['bn_end_time'] = date("Y-m-d 00:00:00", time()+(60*60*24*31));
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="fbanner" action="./bannerformupdate.php" method="post" enctype="multipart/form-data">
@ -42,7 +42,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="file" name="bn_bimg">
<?php
$bimg_str = "";
$bimg = G4_DATA_PATH."/banner/{$bn['bn_id']}";
$bimg = G5_DATA_PATH."/banner/{$bn['bn_id']}";
if (file_exists($bimg) && $bn['bn_id']) {
$size = @getimagesize($bimg);
if($size[0] && $size[0] > 750)
@ -51,9 +51,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="bn_bimg_del" value="1" id="bn_bimg_del"> <label for="bn_bimg_del">삭제</label>';
$bimg_str = '<img src="'.G4_DATA_URL.'/banner/'.$bn['bn_id'].'" width="'.$width.'">';
$bimg_str = '<img src="'.G5_DATA_URL.'/banner/'.$bn['bn_id'].'" width="'.$width.'">';
//$size = getimagesize($bimg);
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('bimg', $size[0], $size[1]);\"><input type=checkbox name=bn_bimg_del value='1'>삭제";
//echo "<img src='$g5[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('bimg', $size[0], $size[1]);\"><input type=checkbox name=bn_bimg_del value='1'>삭제";
//echo "<div id='bimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='$bimg' border=1></div>";
}
if ($bimg_str) {
@ -145,5 +145,5 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</form>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -9,21 +9,21 @@ if ($W == 'd')
else
auth_check($auth[$sub_menu], "w");
@mkdir(G4_DATA_PATH."/banner", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/banner", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/banner", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/banner", G5_DIR_PERMISSION);
$bn_bimg = $_FILES['bn_bimg']['tmp_name'];
$bn_bimg_name = $_FILES['bn_bimg']['name'];
if ($bn_bimg_del) @unlink(G4_DATA_PATH."/banner/$bn_id");
if ($bn_bimg_del) @unlink(G5_DATA_PATH."/banner/$bn_id");
if ($w=="")
{
if (!$bn_bimg_name) alert('배너 이미지를 업로드 하세요.');
sql_query(" alter table {$g4['shop_banner_table']} auto_increment=1 ");
sql_query(" alter table {$g5['shop_banner_table']} auto_increment=1 ");
$sql = " insert into {$g4['shop_banner_table']}
$sql = " insert into {$g5['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['shop_banner_table']}
$sql = " update {$g5['shop_banner_table']}
set bn_alt = '$bn_alt',
bn_url = '$bn_url',
bn_position = '$bn_position',
@ -54,16 +54,16 @@ else if ($w=="u")
}
else if ($w=="d")
{
@unlink(G4_DATA_PATH."/banner/$bn_id");
@unlink(G5_DATA_PATH."/banner/$bn_id");
$sql = " delete from {$g4['shop_banner_table']} where bn_id = $bn_id ";
$sql = " delete from {$g5['shop_banner_table']} where bn_id = $bn_id ";
$result = sql_query($sql);
}
if ($w == "" || $w == "u")
{
if ($_FILES['bn_bimg']['name']) upload_file($_FILES['bn_bimg']['tmp_name'], $bn_id, G4_DATA_PATH."/banner");
if ($_FILES['bn_bimg']['name']) upload_file($_FILES['bn_bimg']['tmp_name'], $bn_id, G5_DATA_PATH."/banner");
goto_url("./bannerform.php?w=u&amp;bn_id=$bn_id");
} else {

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '배너관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '배너관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_banner_table']} ";
$sql_common = " from {$g5['shop_banner_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -46,7 +46,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
</thead>
<tbody>
<?php
$sql = " select * from {$g4['shop_banner_table']}
$sql = " select * from {$g5['shop_banner_table']}
order by bn_order, bn_id desc
limit $from_record, $rows ";
$result = sql_query($sql);
@ -56,7 +56,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
// 새창 띄우기인지
$bn_new_win = ($row['bn_new_win']) ? 'target="_new"' : '';
$bimg = G4_DATA_PATH.'/banner/'.$row['bn_id'];
$bimg = G5_DATA_PATH.'/banner/'.$row['bn_id'];
if(file_exists($bimg)) {
$size = @getimagesize($bimg);
if($size[0] && $size[0] > 800)
@ -67,7 +67,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
$bn_img = "";
if ($row['bn_url'] && $row['bn_url'] != "http://")
$bn_img .= '<a href="'.$row['bn_url'].'" '.$bn_new_win.'>';
$bn_img .= '<img src="'.G4_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$width.'" alt="'.$row['bn_alt'].'"></a>';
$bn_img .= '<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$width.'" alt="'.$row['bn_alt'].'"></a>';
}
$bn_begin_time = substr($row['bn_begin_time'], 2, 14);
@ -101,8 +101,8 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
</section>
<p><?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?></p>
<p><?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?></p>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,13 +1,13 @@
<?php
$sub_menu = '400200';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$category_path = G4_DATA_PATH."/category";
$category_path = G5_DATA_PATH."/category";
$sql_common = " from {$g4['shop_category_table']} ";
$sql_common = " from {$g5['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['shop_category_table']}
$sql = " select MAX(SUBSTRING(ca_id,$len2,2)) as max_subid from {$g5['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['shop_category_table']} where ca_id = '$ca_id' ";
$sql = " select * from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
$ca = sql_fetch($sql);
$html_title = $ca['ca_name'] . " 하위분류추가";
$ca['ca_name'] = "";
@ -66,7 +66,7 @@ if ($w == "")
}
else if ($w == "u")
{
$sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
$sql = " select * from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
$ca = sql_fetch($sql);
if (!$ca['ca_id'])
alert("자료가 없습니다.");
@ -76,7 +76,7 @@ else if ($w == "u")
}
if (!isset($ca['ca_mobile_skin'])) {
sql_query(" ALTER TABLE `{$g4['shop_category_table']}`
sql_query(" ALTER TABLE `{$g5['shop_category_table']}`
ADD `ca_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `ca_skin`,
ADD `ca_mobile_img_width` INT(11) NOT NULL DEFAULT '0' AFTER `ca_list_row`,
ADD `ca_mobile_img_height` INT(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_img_width`,
@ -86,18 +86,18 @@ if (!isset($ca['ca_mobile_skin'])) {
}
// 인증사용필드추가
$sql = " select ca_hp_cert_use from {$g4['shop_category_table']} limit 1 ";
$sql = " select ca_hp_cert_use from {$g5['shop_category_table']} limit 1 ";
$result = sql_query($sql, false);
if(!$result) {
sql_query(" ALTER TABLE `{$g4['shop_category_table']}`
sql_query(" ALTER TABLE `{$g5['shop_category_table']}`
ADD `ca_hp_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ca_mb_id`,
ADD `ca_adult_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ca_hp_cert_use` ", false);
}
$qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = $html_title;
include_once (G5_ADMIN_PATH.'/admin.head.php');
$pg_anchor ='<ul class="anchor">
<li><a href="#anc_scatefrm_basic">필수입력</a></li>
@ -135,7 +135,7 @@ $pg_anchor .= '</ul>';
<?php } else { ?>
<input type="hidden" name="ca_id" value="<?php echo $ca['ca_id']; ?>">
<span class="frm_ca_id"><?php echo $ca['ca_id']; ?></span>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $ca_id; ?>" class="btn_frmline">미리보기</a>
<a href="<?php echo G5_SHOP_URL; ?>/list.php?ca_id=<?php echo $ca_id; ?>" class="btn_frmline">미리보기</a>
<a href="./categoryform.php?ca_id=<?php echo $ca_id; ?>&amp;<?php echo $qstr; ?>" class="btn_frmline">하위분류 추가</a>
<a href="./itemlist.php?sca=<?php echo $ca['ca_id']; ?>" class="btn_frmline">상품리스트</a>
<?php } ?>
@ -177,32 +177,32 @@ $pg_anchor .= '</ul>';
<tr>
<th scope="row"><label for="ca_skin">출력스킨</label></th>
<td>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', G5_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
<select id="ca_skin" name="ca_skin">
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
<td>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_MSHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', G5_MSHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
<select id="ca_mobile_skin" name="ca_mobile_skin">
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $ca['ca_mobile_skin']); ?>
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $ca['ca_mobile_skin']); ?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="ca_img_width">출력이미지 폭</label></th>
<td>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G4_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
<input type="text" name="ca_img_width" value="<?php echo $ca['ca_img_width']; ?>" id="ca_img_width" required class="required frm_input" size="5" > 픽셀
</td>
</tr>
<tr>
<th scope="row"><label for="ca_img_height">출력이미지 높이</label></th>
<td>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 높이가 기본값으로 설정됩니다.\n".G4_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 높이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
<input type="text" name="ca_img_height" value="<?php echo $ca['ca_img_height']; ?>" id="ca_img_height" required class="required frm_input" size="5" > 픽셀
</td>
</tr>
@ -223,14 +223,14 @@ $pg_anchor .= '</ul>';
<tr>
<th scope="row"><label for="ca_mobile_img_width">모바일 출력이미지 폭</label></th>
<td>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G4_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
<input type="text" name="ca_mobile_img_width" value="<?php echo $ca['ca_mobile_img_width']; ?>" id="ca_mobile_img_width" required class="required frm_input" size="5" > 픽셀
</td>
</tr>
<tr>
<th scope="row"><label for="ca_mobile_img_height">모바일 출력이미지 높이</label></th>
<td>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 높이가 기본값으로 설정됩니다.\n".G4_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
<?php echo help("쇼핑몰환경설정 &gt; 이미지(소) 높이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
<input type="text" name="ca_mobile_img_height" value="<?php echo $ca['ca_mobile_img_height']; ?>" id="ca_mobile_img_height" required class="required frm_input" size="5" > 픽셀
</td>
</tr>
@ -423,5 +423,5 @@ function fcategoryformcheck(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -26,19 +26,19 @@ if ($w == "" || $w == "u")
{
if ($ca_mb_id)
{
$sql = " select mb_id from {$g4['member_table']} where mb_id = '$ca_mb_id' ";
$sql = " select mb_id from {$g5['member_table']} where mb_id = '$ca_mb_id' ";
$row = sql_fetch($sql);
if (!$row['mb_id'])
alert("\'$ca_mb_id\' 은(는) 존재하는 회원아이디가 아닙니다.");
}
}
$g4['category_path'] = G4_DATA_PATH."/category";
@mkdir($g4['category_path'], G4_DIR_PERMISSION);
@chmod($g4['category_path'], G4_DIR_PERMISSION);
$g5['category_path'] = G5_DATA_PATH."/category";
@mkdir($g5['category_path'], G5_DIR_PERMISSION);
@chmod($g5['category_path'], G5_DIR_PERMISSION);
if ($ca_image1_del) @unlink("{$g4['category_path']}/{$ca_id}_1");
if ($ca_image0_del) @unlink("{$g4['category_path']}/{$ca_id}_0");
if ($ca_image1_del) @unlink("{$g5['category_path']}/{$ca_id}_1");
if ($ca_image0_del) @unlink("{$g5['category_path']}/{$ca_id}_0");
$sql_common = " ca_skin = '$ca_skin',
ca_mobile_skin = '$ca_mobile_skin',
@ -72,7 +72,7 @@ if ($w == "")
// 소문자로 변환
$ca_id = strtolower($ca_id);
$sql = " insert {$g4['shop_category_table']}
$sql = " insert {$g5['shop_category_table']}
set ca_id = '$ca_id',
ca_name = '$ca_name',
$sql_common ";
@ -80,7 +80,7 @@ if ($w == "")
}
else if ($w == "u")
{
$sql = " update {$g4['shop_category_table']}
$sql = " update {$g5['shop_category_table']}
set ca_name = '$ca_name',
$sql_common
where ca_id = '$ca_id' ";
@ -89,7 +89,7 @@ else if ($w == "u")
// 하위분류를 똑같은 설정으로 반영
if ($sub_category) {
$len = strlen($ca_id);
$sql = " update {$g4['shop_category_table']}
$sql = " update {$g5['shop_category_table']}
set $sql_common
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
if ($is_admin != 'super')
@ -102,7 +102,7 @@ else if ($w == "d")
// 분류의 길이
$len = strlen($ca_id);
$sql = " select COUNT(*) as cnt from {$g4['shop_category_table']}
$sql = " select COUNT(*) as cnt from {$g5['shop_category_table']}
where SUBSTRING(ca_id,1,$len) = '$ca_id'
and ca_id <> '$ca_id' ";
$row = sql_fetch($sql);
@ -110,7 +110,7 @@ else if ($w == "d")
alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오.");
$str = $comma = "";
$sql = " select it_id from {$g4['shop_item_table']} where ca_id = '$ca_id' ";
$sql = " select it_id from {$g5['shop_item_table']} where ca_id = '$ca_id' ";
$result = sql_query($sql);
$i=0;
while ($row = mysql_fetch_array($result))
@ -125,11 +125,11 @@ else if ($w == "d")
alert("이 분류와 관련된 상품이 총 {$i} 건 존재하므로 상품을 삭제한 후 분류를 삭제하여 주십시오.\\n\\n$str");
// 상, 하단 이미지 삭제
@unlink("{$g4['category_path']}/$ca_id"."_h");
@unlink("{$g4['category_path']}/$ca_id"."_t");
@unlink("{$g5['category_path']}/$ca_id"."_h");
@unlink("{$g5['category_path']}/$ca_id"."_t");
// 분류 삭제
$sql = " delete from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
$sql = " delete from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
sql_query($sql);
}

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '분류관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '분류관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -18,7 +18,7 @@ if ($stx != "") {
$page = 1;
}
$sql_common = " from {$g4['shop_category_table']} ";
$sql_common = " from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql_common .= " $where ca_mb_id = '{$member['mb_id']}' ";
$sql_common .= $sql_search;
@ -135,7 +135,7 @@ if ($sfl || $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['shop_category_table']} where ca_id = '$p_ca_id' ";
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '$p_ca_id' ";
$temp = sql_fetch($sql);
$p_ca_name = $temp['ca_name'].'의하위';
} else {
@ -153,7 +153,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$s_del = '<a href="./categoryformupdate.php?w=d&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'" onclick="return delete_confirm();"><span class="sound_only">'.get_text($row['ca_name']).' </span>삭제</a> ';
// 해당 분류에 속한 상품의 갯수
$sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']}
$sql1 = " select COUNT(*) as cnt from {$g5['shop_item_table']}
where ca_id = '{$row['ca_id']}'
or ca_id2 = '{$row['ca_id']}'
or ca_id3 = '{$row['ca_id']}' ";
@ -162,13 +162,13 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<tr>
<td class="td_code" rowspan="2">
<input type="hidden" name="ca_id[<?php echo $i; ?>]" value="<?php echo $row['ca_id']; ?>">
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $row['ca_id']; ?>"><?php echo $row['ca_id']; ?></a>
<a href="<?php echo G5_SHOP_URL; ?>/list.php?ca_id=<?php echo $row['ca_id']; ?>"><?php echo $row['ca_id']; ?></a>
</td>
<td class="td_scate" rowspan="2"><?php echo $s_level; ?> <input type="text" name="ca_name[<?php echo $i; ?>]" value="<?php echo get_text($row['ca_name']); ?>" id="ca_name_<?php echo $i; ?>" required class="frm_input required" size="<?php echo $s_level_input_size; ?>"></td>
<td class="td_scate_admin">
<label for="ca_skin<?php echo $i; ?>" class="sound_only">출력스킨</label>
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]">
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $row['ca_skin']); ?>
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
</select>
</td>
<td class="td_output">
@ -240,10 +240,10 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
</form>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -10,13 +10,13 @@ for ($i=0; $i<count($_POST['ca_id']); $i++)
{
if ($_POST['ca_mb_id'][$i])
{
$sql = " select mb_id from {$g4['member_table']} where mb_id = '{$_POST['ca_mb_id'][$i]}' ";
$sql = " select mb_id from {$g5['member_table']} where mb_id = '{$_POST['ca_mb_id'][$i]}' ";
$row = sql_fetch($sql);
if (!$row['mb_id'])
alert("\'{$_POST['ca_mb_id'][$i]}\' 은(는) 존재하는 회원아이디가 아닙니다.", "./categorylist.php?page=$page&amp;sort1=$sort1&amp;sort2=$sort2");
}
$sql = " update {$g4['shop_category_table']}
$sql = " update {$g5['shop_category_table']}
set ca_name = '{$_POST['ca_name'][$i]}',
ca_mb_id = '{$_POST['ca_mb_id'][$i]}',
ca_img_width = '{$_POST['ca_img_width'][$i]}',

View File

@ -5,14 +5,14 @@ $name = '';
if ($it_id)
{
$sql = " select it_name from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql = " select it_name from {$g5['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['shop_category_table']} where ca_id = '$ca_id' ";
$sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
$row = sql_fetch($sql);
$code = $ca_id;
$name = $row['ca_name'];

View File

@ -1,7 +1,7 @@
<?php
$sub_menu = '400100';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "r");
@ -59,8 +59,8 @@ if ($default['de_icode_id'] && $default['de_icode_pw']) {
);
}
$g4['title'] = '쇼핑몰설정';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '쇼핑몰설정';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$pg_anchor = '<ul class="anchor">
<li><a href="#anc_scf_info">사업자정보</a></li>
@ -177,7 +177,7 @@ $pg_anchor = '<ul class="anchor">
<td colspan="3">
<select name="de_shop_mobile_skin" id="de_shop_mobile_skin" required class="required">
<?php
$arr = get_skin_dir('shop', G4_MOBILE_PATH.'/'.G4_SKIN_DIR);
$arr = get_skin_dir('shop', G5_MOBILE_PATH.'/'.G5_SKIN_DIR);
for ($i=0; $i<count($arr); $i++) {
if ($i == 0) echo "<option value=\"\">선택</option>";
echo "<option value=\"".$arr[$i]."\"".get_selected($default['de_shop_mobile_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
@ -210,7 +210,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_type1_list_use" value="1" id="de_type1_list_use" <?php echo $default['de_type1_list_use']?"checked":""; ?>>
<label for="de_type1_list_skin">스킨</label>
<select name="de_type1_list_skin" id="de_type1_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type1_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $default['de_type1_list_skin']); ?>
</select>
<label for="de_type1_list_row">출력할 줄 수</label>
<input type="text" name="de_type1_list_row" value="<?php echo $default['de_type1_list_row']; ?>" id="de_type1_list_row" class="frm_input" size="3">
@ -229,7 +229,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_type2_list_use" value="1" id="de_type2_list_use" <?php echo $default['de_type2_list_use']?"checked":""; ?>>
<label for="de_type2_list_skin">스킨</label>
<select name="de_type2_list_skin" id="de_type2_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type2_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $default['de_type2_list_skin']); ?>
</select>
<label for="de_type2_list_row">출력할 줄 수</label>
<input type="text" name="de_type2_list_row" value="<?php echo $default['de_type2_list_row']; ?>" id="de_type2_list_row" class="frm_input" size="3">
@ -248,7 +248,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_type3_list_use" value="1" id="de_type3_list_use" <?php echo $default['de_type3_list_use']?"checked":""; ?>>
<label for="de_type3_list_skin">스킨</label>
<select name="de_type3_list_skin" id="de_type3_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type3_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $default['de_type3_list_skin']); ?>
</select>
<label for="de_type3_list_row">출력할 줄 수</label>
<input type="text" name="de_type3_list_row" value="<?php echo $default['de_type3_list_row']; ?>" id="de_type3_list_row" class="frm_input" size="3">
@ -267,7 +267,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_type4_list_use" value="1" id="de_type4_list_use" <?php echo $default['de_type4_list_use']?"checked":""; ?>>
<label for="de_type4_list_skin">스킨</label>
<select name="de_type4_list_skin" id="de_type4_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type4_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $default['de_type4_list_skin']); ?>
</select>
<label for="de_type4_list_row">출력할 줄 수</label>
<input type="text" name="de_type4_list_row" value="<?php echo $default['de_type4_list_row']; ?>" id="de_type4_list_row" class="frm_input" size="3">
@ -286,7 +286,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_type5_list_use" value="1" id="de_type5_list_use" <?php echo $default['de_type5_list_use']?"checked":""; ?>>
<label for="de_type5_list_skin">스킨</label>
<select name="de_type5_list_skin" id="de_type5_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type5_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $default['de_type5_list_skin']); ?>
</select>
<label for="de_type5_list_row">출력할 줄 수</label>
<input type="text" name="de_type5_list_row" value="<?php echo $default['de_type5_list_row']; ?>" id="de_type5_list_row" class="frm_input" size="3">
@ -322,7 +322,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_mobile_type1_list_use" value="1" id="de_mobile_type1_list_use" <?php echo $default['de_mobile_type1_list_use']?"checked":""; ?>>
<label for="de_mobile_type1_list_skin">스킨</label>
<select name="de_mobile_type1_list_skin" id="de_mobile_type1_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type1_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type1_list_skin']); ?>
</select>
<label for="de_mobile_type1_list_mod">출력할 이미지 수</label>
<input type="text" name="de_mobile_type1_list_mod" value="<?php echo $default['de_mobile_type1_list_mod']; ?>" id="de_mobile_type1_list_mod" class="frm_input" size="3">
@ -338,7 +338,7 @@ $pg_anchor = '<ul class="anchor">
<label for="de_mobile_type2_list_use">출력</label> <input type="checkbox" name="de_mobile_type2_list_use" value="1" id="de_mobile_type2_list_use" <?php echo $default['de_mobile_type2_list_use']?"checked":""; ?>>
<label for="de_mobile_type2_list_skin">스킨 </label>
<select name="de_mobile_type2_list_skin" id="de_mobile_type2_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type2_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type2_list_skin']); ?>
</select>
<label for="de_mobile_type2_list_mod">출력할 이미지 수</label>
<input type="text" name="de_mobile_type2_list_mod" value="<?php echo $default['de_mobile_type2_list_mod']; ?>" id="de_mobile_type2_list_mod" class="frm_input" size="3">
@ -355,7 +355,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_mobile_type3_list_use" value="1" id="de_mobile_type3_list_use" <?php echo $default['de_mobile_type3_list_use']?"checked":""; ?>>
<label for="de_mobile_type3_list_skin">스킨</label>
<select name="de_mobile_type3_list_skin" id="de_mobile_type3_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type3_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type3_list_skin']); ?>
</select>
<label for="de_mobile_type3_list_mod">출력할 이미지 수</label>
<input type="text" name="de_mobile_type3_list_mod" value="<?php echo $default['de_mobile_type3_list_mod']; ?>" id="de_mobile_type3_list_mod" class="frm_input" size="3">
@ -372,7 +372,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_mobile_type4_list_use" value="1" id="de_mobile_type4_list_use" <?php echo $default['de_mobile_type4_list_use']?"checked":""; ?>>
<label for="de_mobile_type4_list_skin">스킨</label>
<select name="de_mobile_type4_list_skin" id="de_mobile_type4_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type4_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type4_list_skin']); ?>
</select>
<label for="de_mobile_type4_list_mod">출력할 이미지 수</label>
<input type="text" name="de_mobile_type4_list_mod" value="<?php echo $default['de_mobile_type4_list_mod']; ?>" id="de_mobile_type4_list_mod" class="frm_input" size="3">
@ -389,7 +389,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="de_mobile_type5_list_use" value="1" id="de_mobile_type5_list_use" <?php echo $default['de_mobile_type5_list_use']?"checked":""; ?>>
<label for="de_mobile_type5_list_skin">스킨</label>
<select id="de_mobile_type5_list_skin" name="de_mobile_type5_list_skin">
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type5_list_skin']); ?>
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type5_list_skin']); ?>
</select>
<label for="de_mobile_type5_list_mod">출력할 이미지 수</label>
<input type="text" name="de_mobile_type5_list_mod" value="<?php echo $default['de_mobile_type5_list_mod']; ?>" id="de_mobile_type5_list_mod" class="frm_input" size="3">
@ -472,7 +472,7 @@ $pg_anchor = '<ul class="anchor">
<tr>
<th scope="row"><label for="de_taxsave_use">현금영수증<br>발급사용</label></th>
<td>
<?php echo help("관리자는 설정에 관계없이 <a href=\"".G4_ADMIN_URL."/shop_admin/orderlist.php\">주문내역</a> &gt; 수정에서 발급이 가능합니다.\n현금영수증 발급 취소는 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50); ?>
<?php echo help("관리자는 설정에 관계없이 <a href=\"".G5_ADMIN_URL."/shop_admin/orderlist.php\">주문내역</a> &gt; 수정에서 발급이 가능합니다.\n현금영수증 발급 취소는 PG사에서 지원하는 현금영수증 취소 기능을 사용하시기 바랍니다.", 50); ?>
<select id="de_taxsave_use" name="de_taxsave_use">
<option value="0" <?php echo get_selected($default['de_taxsave_use'], 0); ?>>사용안함</option>
<option value="1" <?php echo get_selected($default['de_taxsave_use'], 1); ?>>사용</option>
@ -482,7 +482,7 @@ $pg_anchor = '<ul class="anchor">
<tr>
<th scope="row"><label for="cf_use_point">포인트 사용</label></th>
<td>
<?php echo help("<a href=\"".G4_ADMIN_URL."/config_form.php#frm_board\" target=\"_blank\">환경설정 &gt; 기본환경설정</a>과 동일한 설정입니다."); ?>
<?php echo help("<a href=\"".G5_ADMIN_URL."/config_form.php#frm_board\" target=\"_blank\">환경설정 &gt; 기본환경설정</a>과 동일한 설정입니다."); ?>
<input type="checkbox" name="cf_use_point" value="1" id="cf_use_point"<?php echo $config['cf_use_point']?' checked':''; ?>> 사용
</td>
</tr>
@ -602,7 +602,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row">공통 URL</th>
<td>
<?php echo help("가상계좌 사용시 다음 주소를 <strong>KCP 관리자 > 상점정보관리 > 정보변경 > 공통URL 정보 > 공통URL 변경후</strong>에 넣으셔야 상점에 자동으로 입금 통보됩니다."); ?>
<?php echo G4_SHOP_URL; ?>/settle_kcp_common.php
<?php echo G5_SHOP_URL; ?>/settle_kcp_common.php
</td>
</tr>
</tbody>
@ -683,7 +683,7 @@ $pg_anchor = '<ul class="anchor">
<tr>
<th scope="row">관련상품출력</th>
<td>
<?php echo help(G4_SHOP_DIR.'/item.php 에서 스킨설정에서 설정된 스킨의 list.10.skin.php 를 include 하여 출력합니다.'); ?>
<?php echo help(G5_SHOP_DIR.'/item.php 에서 스킨설정에서 설정된 스킨의 list.10.skin.php 를 include 하여 출력합니다.'); ?>
<label for="de_rel_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_rel_list_mod" value="<?php echo $default['de_rel_list_mod']; ?>" id="de_rel_list_mod" class="frm_input" size="3">
<label for="de_rel_img_width">이미지폭</label>
@ -720,7 +720,7 @@ $pg_anchor = '<ul class="anchor">
<?php echo help("쇼핑몰 로고를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다."); ?>
<input type="file" name="logo_img" id="logo_img">
<?php
$logo_img = G4_DATA_PATH."/common/logo_img";
$logo_img = G5_DATA_PATH."/common/logo_img";
if (file_exists($logo_img))
{
$size = getimagesize($logo_img);
@ -729,7 +729,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="logo_img_del" value="1" id="logo_img_del">
<span class="scf_img_logoimg"></span>
<div id="logoimg" class="banner_or_img">
<img src="<?php echo G4_DATA_URL; ?>/common/logo_img" alt="">
<img src="<?php echo G5_DATA_URL; ?>/common/logo_img" alt="">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
@ -744,7 +744,7 @@ $pg_anchor = '<ul class="anchor">
<?php echo help("쇼핑몰 메인이미지를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다."); ?>
<input type="file" name="main_img">
<?php
$main_img = G4_DATA_PATH."/common/main_img";
$main_img = G5_DATA_PATH."/common/main_img";
if (file_exists($main_img))
{
$size = getimagesize($main_img);
@ -753,7 +753,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="main_img_del" value="1" id="main_img_del">
<span class="scf_img_mainimg"></span>
<div id="mainimg" class="banner_or_img">
<img src="<?php echo G4_DATA_URL; ?>/common/main_img" alt="">
<img src="<?php echo G5_DATA_URL; ?>/common/main_img" alt="">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
@ -768,7 +768,7 @@ $pg_anchor = '<ul class="anchor">
<?php echo help("모바일 쇼핑몰 로고를 직접 올릴 수 있습니다. 이미지 파일만 가능합니다."); ?>
<input type="file" name="mobile_logo_img" id="mobile_logo_img">
<?php
$mobile_logo_img = G4_DATA_PATH."/common/mobile_logo_img";
$mobile_logo_img = G5_DATA_PATH."/common/mobile_logo_img";
if (file_exists($mobile_logo_img))
{
$size = getimagesize($mobile_logo_img);
@ -777,7 +777,7 @@ $pg_anchor = '<ul class="anchor">
<input type="checkbox" name="mobile_logo_img_del" value="1" id="mobile_logo_img_del">
<span class="scf_img_mobilelogoimg"></span>
<div id="mobilelogoimg" class="banner_or_img">
<img src="<?php echo G4_DATA_URL; ?>/common/mobile_logo_img" alt="">
<img src="<?php echo G5_DATA_URL; ?>/common/mobile_logo_img" alt="">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
@ -830,11 +830,11 @@ $pg_anchor = '<ul class="anchor">
</tr>
<tr>
<th scope="row">MYSQL USER</th>
<td><?php echo G4_MYSQL_USER; ?></td>
<td><?php echo G5_MYSQL_USER; ?></td>
</tr>
<tr>
<th scope="row">MYSQL DB</th>
<td><?php echo G4_MYSQL_DB; ?></td>
<td><?php echo G5_MYSQL_DB; ?></td>
</tr>
<tr>
<th scope="row">서버 IP</th>
@ -1090,5 +1090,5 @@ $(function() {
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -9,20 +9,20 @@ auth_check($auth[$sub_menu], "w");
// 로그인을 바로 이 주소로 하는 경우 쇼핑몰설정값이 사라지는 현상을 방지
if (!$de_admin_company_owner) goto_url("./configform.php");
if ($logo_img_del) @unlink(G4_DATA_PATH."/common/logo_img");
if ($main_img_del) @unlink(G4_DATA_PATH."/common/main_img");
if ($mobile_logo_img_del) @unlink(G4_DATA_PATH."/common/mobile_logo_img");
if ($logo_img_del) @unlink(G5_DATA_PATH."/common/logo_img");
if ($main_img_del) @unlink(G5_DATA_PATH."/common/main_img");
if ($mobile_logo_img_del) @unlink(G5_DATA_PATH."/common/mobile_logo_img");
if ($_FILES['logo_img']['name']) upload_file($_FILES['logo_img']['tmp_name'], "logo_img", G4_DATA_PATH."/common");
if ($_FILES['main_img']['name']) upload_file($_FILES['main_img']['tmp_name'], "main_img", G4_DATA_PATH."/common");
if ($_FILES['mobile_logo_img']['name']) upload_file($_FILES['mobile_logo_img']['tmp_name'], "mobile_logo_img", G4_DATA_PATH."/common");
if ($_FILES['logo_img']['name']) upload_file($_FILES['logo_img']['tmp_name'], "logo_img", G5_DATA_PATH."/common");
if ($_FILES['main_img']['name']) upload_file($_FILES['main_img']['tmp_name'], "main_img", G5_DATA_PATH."/common");
if ($_FILES['mobile_logo_img']['name']) upload_file($_FILES['mobile_logo_img']['tmp_name'], "mobile_logo_img", G5_DATA_PATH."/common");
$de_kcp_mid = substr($_POST['de_kcp_mid'],0,3);
//
// 영카트 default
//
$sql = " update {$g4['shop_default_table']}
$sql = " update {$g5['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',
@ -152,7 +152,7 @@ $sql = " update {$g4['shop_default_table']}
sql_query($sql);
// 환경설정 > 포인트 사용
sql_query(" update {$g4['config_table']} set cf_use_point = '$cf_use_point' ");
sql_query(" update {$g5['config_table']} set cf_use_point = '$cf_use_point' ");
goto_url("./configform.php");
?>

View File

@ -1,24 +1,24 @@
<?php
$sub_menu = '500400';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
// 상단, 하단 파일경로 필드 추가
$sql = " ALTER TABLE `{$g4['shop_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
$sql = " ALTER TABLE `{$g5['shop_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
ADD `co_include_tail` VARCHAR( 255 ) NOT NULL ";
sql_query($sql, false);
$html_title = "내용";
$g4['title'] = $html_title.' 관리';
$g5['title'] = $html_title.' 관리';
if ($w == "u")
{
$html_title .= " 수정";
$readonly = " readonly";
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
$sql = " select * from {$g5['shop_content_table']} where co_id = '$co_id' ";
$co = sql_fetch($sql);
if (!$co['co_id'])
alert('등록된 자료가 없습니다.');
@ -29,7 +29,7 @@ else
$co['co_html'] = 2;
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" >
@ -50,7 +50,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<?php echo help('20자 이내의 영문자, 숫자, _ 만 가능합니다.'); ?>
<input type="text" value="<?php echo $co['co_id']; ?>" name="co_id" id ="co_id" required <?php echo $readonly; ?> class="required <?php echo $readonly; ?> frm_input" size="20" maxlength="20">
<?php if ($w == 'u') { ?><a href="<?php echo G4_SHOP_URL; ?>/content.php?co_id=<?php echo $co_id; ?>" class="btn_frmline">내용확인</a><?php } ?>
<?php if ($w == 'u') { ?><a href="<?php echo G5_SHOP_URL; ?>/content.php?co_id=<?php echo $co_id; ?>" class="btn_frmline">내용확인</a><?php } ?>
</td>
</tr>
<tr>
@ -80,7 +80,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="file" name="co_himg" id="co_himg">
<?php
$himg = G4_DATA_PATH.'/content/'.$co['co_id'].'_h';
$himg = G5_DATA_PATH.'/content/'.$co['co_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
@ -89,7 +89,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="co_himg_del" value="1" id="co_himg_del"> <label for="co_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_h" width="'.$width.'" alt="">';
$himg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -104,7 +104,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="file" name="co_timg" id="co_timg">
<?php
$timg = G4_DATA_PATH.'/content/'.$co['co_id'].'_t';
$timg = G5_DATA_PATH.'/content/'.$co['co_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
@ -113,7 +113,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="co_timg_del" value="1" id="co_timg_del"> <label for="co_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/content/'.$co['co_id'].'_t" width="'.$width.'" alt="">';
$timg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';
@ -156,5 +156,5 @@ function frmcontentform_check(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -10,11 +10,11 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
@mkdir(G4_DATA_PATH."/content", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/content", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
if ($co_himg_del) @unlink(G4_DATA_PATH."/content/{$co_id}_h");
if ($co_timg_del) @unlink(G4_DATA_PATH."/content/{$co_id}_t");
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
$sql_common = " co_include_head = '$co_include_head',
co_include_tail = '$co_include_tail',
@ -27,36 +27,36 @@ 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['shop_content_table']} where co_id = '$co_id' ";
$sql = " select co_id from {$g5['shop_content_table']} where co_id = '$co_id' ";
$row = sql_fetch($sql);
if ($row['co_id'])
alert("이미 같은 ID로 등록된 내용이 있습니다.");
$sql = " insert {$g4['shop_content_table']}
$sql = " insert {$g5['shop_content_table']}
set co_id = '$co_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
$sql = " update {$g4['shop_content_table']}
$sql = " update {$g5['shop_content_table']}
set $sql_common
where co_id = '$co_id' ";
sql_query($sql);
}
else if ($w == "d")
{
@unlink(G4_DATA_PATH."/content/{$co_id}_h");
@unlink(G4_DATA_PATH."/content/{$co_id}_t");
@unlink(G5_DATA_PATH."/content/{$co_id}_h");
@unlink(G5_DATA_PATH."/content/{$co_id}_t");
$sql = " delete from {$g4['shop_content_table']} where co_id = '$co_id' ";
$sql = " delete from {$g5['shop_content_table']} where co_id = '$co_id' ";
sql_query($sql);
}
if ($w == "" || $w == "u")
{
if ($_FILES['co_himg']['name']) upload_file($_FILES['co_himg']['tmp_name'], $co_id."_h", G4_DATA_PATH."/content");
if ($_FILES['co_timg']['name']) upload_file($_FILES['co_timg']['tmp_name'], $co_id."_t", G4_DATA_PATH."/content");
if ($_FILES['co_himg']['name']) upload_file($_FILES['co_himg']['tmp_name'], $co_id."_h", G5_DATA_PATH."/content");
if ($_FILES['co_timg']['name']) upload_file($_FILES['co_timg']['tmp_name'], $co_id."_t", G5_DATA_PATH."/content");
goto_url("./contentform.php?w=u&amp;co_id=$co_id");
}

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '내용관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '내용관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_content_table']} ";
$sql_common = " from {$g5['shop_content_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -46,7 +46,7 @@ $result = sql_query($sql);
<td class="td_odrnum"><?php echo $row['co_id']; ?></td>
<td><?php echo htmlspecialchars2($row['co_subject']); ?></td>
<td class="td_mng">
<a href="<?php echo G4_SHOP_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
<a href="<?php echo G5_SHOP_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
<a href="./contentform.php?w=u&amp;co_id=<?php echo $row['co_id']; ?>"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a>
<a href="./contentformupdate.php?w=d&amp;co_id=<?php echo $row['co_id']; ?>" onclick="return delete_confirm();"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a>
</td>
@ -61,8 +61,8 @@ $result = sql_query($sql);
</table>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,20 +4,20 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$g4['title'] = '쿠폰관리';
$g5['title'] = '쿠폰관리';
if ($w == 'u') {
$html_title = '쿠폰 수정';
$sql = " select * from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
$sql = " select * from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$cp = sql_fetch($sql);
if (!$cp['cp_id']) alert('등록된 자료가 없습니다.');
}
else
{
$html_title = '쿠폰 입력';
$cp['cp_start'] = G4_TIME_YMD;
$cp['cp_end'] = date('Y-m-d', (G4_SERVER_TIME + 86400 * 7));
$cp['cp_start'] = G5_TIME_YMD;
$cp['cp_end'] = date('Y-m-d', (G5_SERVER_TIME + 86400 * 7));
}
if($cp['cp_method'] == 1) {
@ -28,7 +28,7 @@ if($cp['cp_method'] == 1) {
$cp_target_btn = '상품검색';
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="fcouponform" action="./couponformupdate.php" method="post" onsubmit="return form_check(this);">
@ -256,5 +256,5 @@ function form_check(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -24,8 +24,8 @@ if(!$_POST['cp_start'] || !$_POST['cp_end'])
if($_POST['cp_start'] > $_POST['cp_end'])
alert('사용 시작일은 종료일 이전으로 입력해 주십시오.');
if($_POST['cp_end'] < G4_TIME_YMD)
alert('종료일은 오늘('.G4_TIME_YMD.')이후로 입력해 주십시오.');
if($_POST['cp_end'] < G5_TIME_YMD)
alert('종료일은 오늘('.G5_TIME_YMD.')이후로 입력해 주십시오.');
if(!$_POST['cp_price']) {
if($_POST['cp_type'])
@ -38,12 +38,12 @@ if($_POST['cp_type'] && ($_POST['cp_price'] < 1 || $_POST['cp_price'] > 99))
alert('할인비율을은 1과 99사이 값으로 입력해 주십시오.');
if($_POST['cp_method'] == 0) {
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$cp_target' ";
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_id = '$cp_target' ";
$row = sql_fetch($sql);
if(!$row['cnt'])
alert('입력하신 상품코드는 존재하지 않는 상품코드입니다.');
} else if($_POST['cp_method'] == 1) {
$sql = " select count(*) as cnt from {$g4['shop_category_table']} where ca_id = '$cp_target' ";
$sql = " select count(*) as cnt from {$g5['shop_category_table']} where ca_id = '$cp_target' ";
$row = sql_fetch($sql);
if(!$row['cnt'])
alert('입력하신 분류코드는 존재하지 않는 분류코드입니다.');
@ -53,7 +53,7 @@ if($w == '') {
if($_POST['chk_all_mb']) {
$mb_id = '전체회원';
} else {
$sql = " select mb_id from {$g4['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' ";
$sql = " select mb_id from {$g5['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' ";
$row = sql_fetch($sql);
if(!$row['mb_id'])
alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.');
@ -65,7 +65,7 @@ if($w == '') {
do {
$cp_id = get_coupon_id();
$sql3 = " select count(*) as cnt from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
$sql3 = " select count(*) as cnt from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$row3 = sql_fetch($sql3);
if(!$row3['cnt'])
@ -76,14 +76,14 @@ if($w == '') {
}
} while(1);
$sql = " INSERT INTO {$g4['shop_coupon_table']}
$sql = " INSERT INTO {$g5['shop_coupon_table']}
( cp_id, cp_subject, cp_method, cp_target, mb_id, cp_start, cp_end, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum, cp_datetime )
VALUES
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_price', '$cp_trunc', '$cp_minimum', '$cp_maximum', '".G4_TIME_YMDHIS."' ) ";
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_price', '$cp_trunc', '$cp_minimum', '$cp_maximum', '".G5_TIME_YMDHIS."' ) ";
sql_query($sql);
} else if($w == 'u') {
$sql = " select * from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
$sql = " select * from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$cp = sql_fetch($sql);
if(!$cp['cp_id'])
@ -93,7 +93,7 @@ if($w == '') {
$mb_id = '전체회원';
}
$sql = " update {$g4['shop_coupon_table']}
$sql = " update {$g5['shop_coupon_table']}
set cp_subject = '$cp_subject',
cp_method = '$cp_method',
cp_target = '$cp_target',

View File

@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], "r");
$token = get_token();
$sql_common = " from {$g4['shop_coupon_table']} ";
$sql_common = " from {$g5['shop_coupon_table']} ";
$sql_search = " where (1) ";
if ($stx) {
@ -47,8 +47,8 @@ $sql = " select *
limit {$from_record}, {$rows} ";
$result = sql_query($sql);
$g4['title'] = '쿠폰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '쿠폰관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$colspan = 8;
?>
@ -112,12 +112,12 @@ $colspan = 8;
for ($i=0; $row=sql_fetch_array($result); $i++) {
switch($row['cp_method']) {
case '0':
$sql3 = " select it_name from {$g4['shop_item_table']} where it_id = '{$row['cp_target']}' ";
$sql3 = " select it_name from {$g5['shop_item_table']} where it_id = '{$row['cp_target']}' ";
$row3 = sql_fetch($sql3);
$cp_target = get_text($row3['it_name']);
break;
case '1':
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['cp_target']}' ";
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$row['cp_target']}' ";
$row3 = sql_fetch($sql3);
$cp_target = get_text($row3['ca_name']);
break;
@ -133,7 +133,7 @@ $colspan = 8;
$link2 = '</a>';
// 쿠폰사용회수
$sql = " select count(*) as cnt from {$g4['shop_coupon_log_table']} where cp_id = '{$row['cp_id']}' ";
$sql = " select count(*) as cnt from {$g5['shop_coupon_log_table']} where cp_id = '{$row['cp_id']}' ";
$tmp = sql_fetch($sql);
$used_count = $tmp['cnt'];
?>
@ -170,7 +170,7 @@ $colspan = 8;
</form>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fcouponlist_submit(f)
@ -191,5 +191,5 @@ function fcouponlist_submit(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -17,7 +17,7 @@ for ($i=0; $i<$count; $i++)
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = " delete from {$g4['shop_coupon_table']} where cp_id = '{$_POST['cp_id'][$k]}' ";
$sql = " delete from {$g5['shop_coupon_table']} where cp_id = '{$_POST['cp_id'][$k]}' ";
sql_query($sql);
}

View File

@ -6,10 +6,10 @@ auth_check($auth[$sub_menu], "w");
$html_title = '회원검색';
$g4['title'] = $html_title;
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = $html_title;
include_once(G5_PATH.'/head.sub.php');
$sql_common = " from {$g4['member_table']} ";
$sql_common = " from {$g5['member_table']} ";
$sql_where = " where mb_id <> '{$config['cf_admin']}' and mb_leave_date = '' and mb_intercept_date ='' ";
if($_GET['mb_name'])
@ -72,7 +72,7 @@ $qstr1 = 'mb_name='.$_GET['mb_name'];
</table>
</form>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&amp;page='); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&amp;page='); ?>
<div class="btn_confirm">
<button type="button" onclick="window.close();">닫기</button>
@ -90,5 +90,5 @@ function sel_member_id(id)
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -18,18 +18,18 @@ if($_GET['sch_target'] == 1) {
$t_desc2 = '상품이';
}
$g4['title'] = $html_title.'검색';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = $html_title.'검색';
include_once(G5_PATH.'/head.sub.php');
if($_GET['sch_target'] == 1) {
$sql_common = " from {$g4['shop_category_table']} ";
$sql_common = " from {$g5['shop_category_table']} ";
$sql_where = " where ca_use = '1' ";
if($_GET['sch_word'])
$sql_where .= " and ca_name like '%$sch_word%' ";
$sql_select = " select ca_id as t_id, ca_name as t_name ";
$sql_order = " order by ca_name ";
} else {
$sql_common = " from {$g4['shop_item_table']} ";
$sql_common = " from {$g5['shop_item_table']} ";
$sql_where = " where it_use = '1' ";
if($GET['sch_word'])
$sql_where .= " and it_name like '%$sch_word%' ";
@ -97,7 +97,7 @@ $qstr1 = 'sch_target='.$_GET['sch_target'].'&amp;sch_word='.$_GET['sch_word'];
</table>
</form>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&amp;page='); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr1.'&amp;page='); ?>
<div class="btn_confirm">
<button type="button" onclick="window.close();">닫기</button>
@ -115,5 +115,5 @@ function sel_target_id(id)
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -5,13 +5,13 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$html_title = '배송업체';
$g4['title'] = $html_title;
$g5['title'] = $html_title;
if ($w == "u") {
$html_title .= ' 수정';
$readonly = ' readonly';
$sql = " select * from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
$sql = " select * from {$g5['shop_delivery_table']} where dl_id = '$dl_id' ";
$dl = sql_fetch($sql);
if (!$dl['dl_id']) alert('등록된 자료가 없습니다.');
}
@ -21,7 +21,7 @@ else
$dl['dl_url'] = "http://";
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="fdeliverycodeform" action="./deliverycodeformupdate.php" method="post">
@ -73,5 +73,5 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</form>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -16,19 +16,19 @@ $sql_common .= "set dl_company = '$dl_company',
dl_order = '$dl_order' ";
if ($w == "") {
$sql = " alter table {$g4['shop_delivery_table']} auto_increment=1 ";
$sql = " alter table {$g5['shop_delivery_table']} auto_increment=1 ";
sql_query($sql);
$sql = " insert {$g4['shop_delivery_table']} $sql_common ";
$sql = " insert {$g5['shop_delivery_table']} $sql_common ";
sql_query($sql);
$dl_id = mysql_insert_id();
} else if ($w == "u") {
$sql = " update {$g4['shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
$sql = " update {$g5['shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
sql_query($sql);
} else if ($w == "d") {
// Master 삭제
$sql = " delete from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
$sql = " delete from {$g5['shop_delivery_table']} where dl_id = '$dl_id' ";
sql_query($sql);
}

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '배송업체관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '배송업체관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_delivery_table']} ";
$sql_common = " from {$g5['shop_delivery_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -61,5 +61,5 @@ $result = sql_query($sql);
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,14 +4,14 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '배송일괄처리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '배송일괄처리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
//sql_query(" update $g5[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
// 배송회사리스트 ---------------------------------------------
$delivery_options = '<option value="">선택하세요</option>'.PHP_EOL;
$sql = " select * from {$g4['shop_delivery_table']} order by dl_order ";
$sql = " select * from {$g5['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'].'</option>'.PHP_EOL;
@ -33,7 +33,7 @@ if ($sel_ca_id != "") {
if ($sel_field == "") $sel_field = "od_id";
$sql_common = " from {$g4['shop_order_table']}
$sql_common = " from {$g5['shop_order_table']}
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@ -43,7 +43,7 @@ if ($chk_misu) {
$total_count = mysql_num_rows($result);
}
else {
$row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
$row = sql_fetch("select count(od_id) as cnt from {$g5['shop_order_table']} $sql_search ");
$total_count = $row['cnt'];
}
@ -152,11 +152,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$invoice_time = G4_TIME_YMDHIS;
$invoice_time = G5_TIME_YMDHIS;
if (!is_null_time($row['od_invoice_time']))
$invoice_time = $row['od_invoice_time'];
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], $row['mb_name'], $row['mb_email'], $row['mb_homepage']);
@ -216,8 +216,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,8 +1,8 @@
<?php
$sub_menu = '400500';
include_once('./_common.php');
include_once(G4_LIB_PATH.'/mailer.lib.php');
include_once(G4_LIB_PATH.'/icode.sms.lib.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
include_once(G5_LIB_PATH.'/icode.sms.lib.php');
check_demo();
@ -19,7 +19,7 @@ if ($default['de_sms_use'] == "icode")
}
if($_POST['send_escrow']) {
$sql = " select dl_id, dl_company from {$g4['shop_delivery_table']} order by dl_id asc ";
$sql = " select dl_id, dl_company from {$g5['shop_delivery_table']} order by dl_id asc ";
$result = sql_query($sql);
$dl_comp = array();
for($i=0; $row=sql_fetch_array($result); $i++) {
@ -38,7 +38,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
// 배송회사와 운송장번호가 있는것만 수정
if ($_POST['dl_id'][$m] && trim($_POST['od_invoice'][$m]))
{
$sql = "update {$g4['shop_order_table']}
$sql = "update {$g5['shop_order_table']}
set od_invoice_time = '{$_POST['od_invoice_time'][$m]}',
dl_id = '{$_POST['dl_id'][$m]}',
od_invoice = '{$_POST['od_invoice'][$m]}'
@ -51,7 +51,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$od_id = $_POST['od_id'][$m];
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
$sql = " update {$g4['shop_cart_table']}
$sql = " update {$g5['shop_cart_table']}
set ct_status = '배송'
where ct_status in ('주문', '준비')
and od_id = '$od_id' ";
@ -60,16 +60,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['shop_cart_table']}
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g5['shop_cart_table']}
where od_id = '$od_id'
and ct_stock_use = '0' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
{
$sql3 =" update {$g4['shop_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
$sql3 =" update {$g5['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['shop_cart_table']}
$sql4 = " update {$g5['shop_cart_table']}
set ct_stock_use = '1',
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
where od_id = '$od_id'
@ -81,10 +81,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['shop_order_table']} where od_id = '$od_id' ";
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g5['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
$sql = " select dl_company from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$sql = " select dl_company from {$g5['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$dl = sql_fetch($sql);
$sms_contents = $default['de_sms_cont4'];
@ -115,7 +115,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
}
else
{
$sql = "update {$g4['shop_order_table']}
$sql = "update {$g5['shop_order_table']}
set od_invoice_time = '',
dl_id = '',
od_invoice = ''

View File

@ -1,22 +1,22 @@
<?php
$sub_menu = '500410';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
$sql = " select * from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
$html_title = 'FAQ '.$fm['fm_subject'];;
$g4['title'] = $html_title.' 관리';
$g5['title'] = $html_title.' 관리';
if ($w == "u")
{
$html_title .= " 수정";
$readonly = " readonly";
$sql = " select * from {$g4['shop_faq_table']} where fa_id = '$fa_id' ";
$sql = " select * from {$g5['shop_faq_table']} where fa_id = '$fa_id' ";
$fa = sql_fetch($sql);
if (!$fa['fa_id']) alert("등록된 자료가 없습니다.");
@ -26,7 +26,7 @@ if ($w == "u")
else
$html_title .= ' 항목 입력';
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="frmfaqform" action="./faqformupdate.php" onsubmit="return frmfaqform_check(this);" method="post">
@ -47,7 +47,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<?php echo help('숫자가 작을수록 FAQ 페이지에서 먼저 출력됩니다.'); ?>
<input type="text" name="fa_order" value="<?php echo $fa['fa_order']; ?>" id="fa_order" class="frm_input" maxlength="10" size="10">
<?php if ($w == 'u') { ?><a href="<?php echo G4_SHOP_URL; ?>/faq.php?fm_id=<?php echo $fm_id; ?>" class="btn_frmline">내용보기</a><?php } ?>
<?php if ($w == 'u') { ?><a href="<?php echo G5_SHOP_URL; ?>/faq.php?fm_id=<?php echo $fm_id; ?>" class="btn_frmline">내용보기</a><?php } ?>
</td>
</tr>
<tr>
@ -95,5 +95,5 @@ function frmfaqform_check(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -16,7 +16,7 @@ $sql_common = " fa_subject = '$fa_subject',
if ($w == "")
{
$sql = " insert {$g4['shop_faq_table']}
$sql = " insert {$g5['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['shop_faq_table']}
$sql = " update {$g5['shop_faq_table']}
set $sql_common
where fa_id = '$fa_id' ";
sql_query($sql);
}
else if ($w == "d")
{
$sql = " delete from {$g4['shop_faq_table']} where fa_id = '$fa_id' ";
$sql = " delete from {$g5['shop_faq_table']} where fa_id = '$fa_id' ";
sql_query($sql);
}

View File

@ -4,14 +4,14 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = 'FAQ 상세관리';
if ($fm_subject) $g4['title'] .= ' : '.$fm_subject;
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = 'FAQ 상세관리';
if ($fm_subject) $g5['title'] .= ' : '.$fm_subject;
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
$sql = " select * from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
$sql_common = " from {$g4['shop_faq_table']} where fm_id = '$fm_id' ";
$sql_common = " from {$g5['shop_faq_table']} where fm_id = '$fm_id' ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -49,7 +49,7 @@ $result = sql_query($sql);
<?php
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g4['shop_faq_table']} where fm_id = '{$row['fm_id']}' ");
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g5['shop_faq_table']} where fm_id = '{$row['fm_id']}' ");
$cnt = $row1[cnt];
$s_mod = icon("수정", "");
@ -86,5 +86,5 @@ $result = sql_query($sql);
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,19 +1,19 @@
<?php
$sub_menu = '500410';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$html_title = 'FAQ';
$g4['title'] = $html_title.' 관리';
$g5['title'] = $html_title.' 관리';
if ($w == "u")
{
$html_title .= ' 수정';
$readonly = ' readonly';
$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
$sql = " select * from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
if (!$fm['fm_id']) alert('등록된 자료가 없습니다.');
}
@ -22,7 +22,7 @@ else
$html_title .= ' 입력';
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="frmfaqmasterform" action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
@ -42,7 +42,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="text" value="<?php echo get_text($fm['fm_subject']); ?>" name="fm_subject" id="fm_subject" required class="frm_input required" size="70">
<?php if ($w == 'u') { ?>
<a href="<?php echo G4_SHOP_URL; ?>/faq.php?fm_id=<?php echo $fm_id; ?>" class="btn_frmline">보기</a>
<a href="<?php echo G5_SHOP_URL; ?>/faq.php?fm_id=<?php echo $fm_id; ?>" class="btn_frmline">보기</a>
<a href="./faqlist.php?fm_id=<?php echo $fm_id; ?>" class="btn_frmline">상세보기</a>
<?php } ?>
</td>
@ -52,7 +52,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="file" name="fm_himg" id="fm_himg">
<?php
$himg = G4_DATA_PATH.'/faq/'.$fm['fm_id'].'_h';
$himg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
@ -61,7 +61,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="fm_himg_del" value="1" id="fm_himg_del"> <label for="fm_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_h" width="'.$width.'" alt="">';
$himg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -76,7 +76,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="file" name="fm_timg" id="fm_timg">
<?php
$timg = G4_DATA_PATH.'/faq/'.$fm['fm_id'].'_t';
$timg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
@ -85,7 +85,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="fm_timg_del" value="1" id="fm_timg_del"><label for="fm_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/faq/'.$fm['fm_id'].'_t" width="'.$width.'" alt="">';
$timg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';
@ -129,5 +129,5 @@ function frmfaqmasterform_check(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -10,11 +10,11 @@ if ($W == 'd')
else
auth_check($auth[$sub_menu], "w");
@mkdir(G4_DATA_PATH."/faq", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/faq", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/faq", G5_DIR_PERMISSION);
if ($fm_himg_del) @unlink(G4_DATA_PATH."/faq/{$fm_id}_h");
if ($fm_timg_del) @unlink(G4_DATA_PATH."/faq/{$fm_id}_t");
if ($fm_himg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
if ($fm_timg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
$sql_common = " set fm_subject = '$fm_subject',
fm_head_html = '$fm_head_html',
@ -22,37 +22,37 @@ $sql_common = " set fm_subject = '$fm_subject',
if ($w == "")
{
$sql = " alter table {$g4['shop_faq_master_table']} auto_increment=1 ";
$sql = " alter table {$g5['shop_faq_master_table']} auto_increment=1 ";
sql_query($sql);
$sql = " insert {$g4['shop_faq_master_table']} $sql_common ";
$sql = " insert {$g5['shop_faq_master_table']} $sql_common ";
sql_query($sql);
$fm_id = mysql_insert_id();
}
else if ($w == "u")
{
$sql = " update {$g4['shop_faq_master_table']} $sql_common where fm_id = '$fm_id' ";
$sql = " update {$g5['shop_faq_master_table']} $sql_common where fm_id = '$fm_id' ";
sql_query($sql);
}
else if ($w == "d")
{
@unlink(G4_DATA_PATH."/faq/{$fm_id}_h");
@unlink(G4_DATA_PATH."/faq/{$fm_id}_t");
@unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
@unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
// FAQ삭제
$sql = " delete from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
$sql = " delete from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
sql_query($sql);
// FAQ상세삭제
$sql = " delete from {$g4['shop_faq_table']} where fm_id = '$fm_id' ";
$sql = " delete from {$g5['shop_faq_table']} where fm_id = '$fm_id' ";
sql_query($sql);
}
if ($w == "" || $w == "u")
{
if ($_FILES['fm_himg']['name']) upload_file($_FILES['fm_himg']['tmp_name'], $fm_id."_h", G4_DATA_PATH."/faq");
if ($_FILES['fm_timg']['name']) upload_file($_FILES['fm_timg']['tmp_name'], $fm_id."_t", G4_DATA_PATH."/faq");
if ($_FILES['fm_himg']['name']) upload_file($_FILES['fm_himg']['tmp_name'], $fm_id."_h", G5_DATA_PATH."/faq");
if ($_FILES['fm_timg']['name']) upload_file($_FILES['fm_timg']['tmp_name'], $fm_id."_t", G5_DATA_PATH."/faq");
goto_url("./faqmasterform.php?w=u&amp;fm_id=$fm_id");
}

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = 'FAQ관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = 'FAQ관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_faq_master_table']} ";
$sql_common = " from {$g5['shop_faq_master_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -52,7 +52,7 @@ $result = sql_query($sql);
</thead>
<tbody>
<?php for ($i=0; $row=mysql_fetch_array($result); $i++) {
$sql1 = " select COUNT(*) as cnt from {$g4['shop_faq_table']} where fm_id = '{$row['fm_id']}' ";
$sql1 = " select COUNT(*) as cnt from {$g5['shop_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1['cnt'];
?>
@ -61,7 +61,7 @@ $result = sql_query($sql);
<td><a href="./faqlist.php?fm_id=<?php echo $row['fm_id']; ?>&amp;fm_subject=<?php echo $row['fm_subject']; ?>"><?php echo stripslashes($row['fm_subject']); ?></a></td>
<td class="td_num"><?php echo $cnt; ?></td>
<td class="td_mng">
<a href="<?php echo G4_SHOP_URL; ?>/faq.php?fm_id=<?php echo $row['fm_id']; ?>"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>보기</a>
<a href="<?php echo G5_SHOP_URL; ?>/faq.php?fm_id=<?php echo $row['fm_id']; ?>"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>보기</a>
<a href="./faqmasterform.php?w=u&amp;fm_id=<?php echo $row['fm_id']; ?>"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>수정</a>
<a href="./faqmasterformupdate.php?w=d&amp;fm_id=<?php echo $row['fm_id']; ?>" onclick="return delete_confirm();"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>삭제</a>
</td>
@ -77,8 +77,8 @@ $result = sql_query($sql);
</table>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
$max_limit = 7; // 몇행 출력할 것인지?
$g4['title'] = ' 쇼핑몰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = ' 쇼핑몰관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$pg_anchor = '<ul class="anchor">
<li><a href="#anc_sidx_rdy">입금완료미배송내역</a></li>
@ -33,14 +33,14 @@ $pg_anchor = '<ul class="anchor">
<?php
// 미수금이 없고 운송장번호가 없는 자료를 구함
$sql = " select *
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where od_receipt_price > 0 and od_misu <= 0 and od_invoice = ''
order by od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
@ -93,14 +93,14 @@ $pg_anchor = '<ul class="anchor">
<?php
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select *
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where od_misu > 0
order by od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
@ -149,14 +149,14 @@ $pg_anchor = '<ul class="anchor">
</thead>
<tbody>
<?php
$sql = " select * from {$g4[shop_item_use_table]}
$sql = " select * from {$g5[shop_item_use_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
@ -192,14 +192,14 @@ $pg_anchor = '<ul class="anchor">
</thead>
<tbody>
<?php
$sql = " select * from {$g4['shop_item_qa_table']}
$sql = " select * from {$g5['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
@ -224,5 +224,5 @@ $pg_anchor = '<ul class="anchor">
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품 복사';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = '상품 복사';
include_once(G5_PATH.'/head.sub.php');
?>
<form name="fitemcopy">
@ -46,5 +46,5 @@ function _copy(link)
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -14,17 +14,17 @@ $t_it_id = preg_replace("/[A-Za-z0-9\-_]/", "", $new_it_id);
if($t_it_id)
alert("상품코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.");
$row = sql_fetch(" select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$new_it_id' ");
$row = sql_fetch(" select count(*) as cnt from {$g5['shop_item_table']} where it_id = '$new_it_id' ");
if ($row['cnt'])
alert('이미 존재하는 상품코드 입니다.');
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' limit 1 ";
$sql = " select * from {$g5['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['shop_item_table']);
$fields = mysql_list_fields(G5_MYSQL_DB, $g5['shop_item_table']);
$columns = mysql_num_fields($fields);
for ($i = 0; $i < $columns; $i++) {
$fld = mysql_field_name($fields, $i);
@ -33,15 +33,15 @@ for ($i = 0; $i < $columns; $i++) {
}
}
$sql = " insert {$g4['shop_item_table']}
$sql = " insert {$g5['shop_item_table']}
set it_id = '$new_it_id'
$sql_common ";
sql_query($sql);
// 선택/추가 옵션 copy
$opt_sql = " insert ignore into {$g4['shop_item_option_table']} ( io_id, io_type, it_id, io_price, io_stock_qty, io_noti_qty, io_use )
$opt_sql = " insert ignore into {$g5['shop_item_option_table']} ( io_id, io_type, it_id, io_price, io_stock_qty, io_noti_qty, io_use )
select io_id, io_type, '$new_it_id', io_price, io_stock_qty, io_noti_qty, io_use
from {$g4['shop_item_option_table']}
from {$g5['shop_item_option_table']}
where it_id = '$it_id'
order by io_no asc ";
sql_query($opt_sql);
@ -58,7 +58,7 @@ if($cp['it_explan']) {
else
$src_path = $p['path'];
$srcfile = G4_PATH.$src_path;
$srcfile = G5_PATH.$src_path;
$dstfile = preg_replace("/\.([^\.]+)$/", "_".$new_it_id.".\\1", $srcfile);
if(is_file($srcfile)) {
@ -69,7 +69,7 @@ if($cp['it_explan']) {
}
}
$sql = " update {$g4['shop_item_table']} set it_explan = '{$cp['it_explan']}' where it_id = '$new_it_id' ";
$sql = " update {$g5['shop_item_table']} set it_explan = '{$cp['it_explan']}' where it_id = '$new_it_id' ";
sql_query($sql);
}
@ -84,7 +84,7 @@ if($cp['it_mobile_explan']) {
else
$src_path = $p['path'];
$srcfile = G4_PATH.$src_path;
$srcfile = G5_PATH.$src_path;
$dstfile = preg_replace("/\.([^\.]+)$/", "_".$new_it_id.".\\1", $srcfile);
if(is_file($srcfile)) {
@ -95,7 +95,7 @@ if($cp['it_mobile_explan']) {
}
}
$sql = " update {$g4['shop_item_table']} set it_mobile_explan = '{$cp['it_mobile_explan']}' where it_id = '$new_it_id' ";
$sql = " update {$g5['shop_item_table']} set it_mobile_explan = '{$cp['it_mobile_explan']}' where it_id = '$new_it_id' ";
sql_query($sql);
}
@ -109,8 +109,8 @@ function copy_directory($src_dir, $dest_dir)
return false;
if(!is_dir($dest_dir)) {
@mkdir($dest_dir, G4_DIR_PERMISSION);
@chmod($dest_dir, G4_DIR_PERMISSION);
@mkdir($dest_dir, G5_DIR_PERMISSION);
@chmod($dest_dir, G5_DIR_PERMISSION);
}
$dir = opendir($src_dir);
@ -126,26 +126,26 @@ function copy_directory($src_dir, $dest_dir)
$dest_file = $dest_dir.'/'.$files[$i];
if(is_file($src_file)) {
copy($src_file, $dest_file);
@chmod($dest_file, G4_FILE_PERMISSION);
@chmod($dest_file, G5_FILE_PERMISSION);
}
}
}
// 파일복사
$dest_path = G4_DATA_PATH.'/item/'.$new_it_id;
@mkdir($dest_path, G4_DIR_PERMISSION);
@chmod($dest_path, G4_DIR_PERMISSION);
$dest_path = G5_DATA_PATH.'/item/'.$new_it_id;
@mkdir($dest_path, G5_DIR_PERMISSION);
@chmod($dest_path, G5_DIR_PERMISSION);
$comma = '';
$sql_img = '';
for($i=1; $i<=10; $i++) {
$file = G4_DATA_PATH.'/item/'.$cp['it_img'.$i];
$file = G5_DATA_PATH.'/item/'.$cp['it_img'.$i];
$new_img = '';
if(is_file($file)) {
$dstfile = $dest_path.'/'.basename($file);
copy($file, $dstfile);
@chmod($dstfile, G4_FILE_PERMISSION);
@chmod($dstfile, G5_FILE_PERMISSION);
$new_img = $new_it_id.'/'.basename($file);
}
@ -153,7 +153,7 @@ for($i=1; $i<=10; $i++) {
$comma = ',';
}
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set $sql_img
where it_id = '$new_it_id' ";
sql_query($sql);

View File

@ -10,16 +10,16 @@ if (!function_exists("itemdelete")) {
// 메세지출력후 주문개별내역페이지로 이동
function itemdelete($it_id)
{
global $g4, $is_admin;
global $g5, $is_admin;
$sql = " select it_explan, it_mobile_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']} where it_id = '$it_id' ";
from {$g5['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 이미지 삭제
$dir_list = array();
for($i=1; $i<=10; $i++) {
$file = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
$file = G5_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($file) && $it['it_img'.$i]) {
@unlink($file);
$dir = dirname($file);
@ -37,27 +37,27 @@ if (!function_exists("itemdelete")) {
}
// 상, 하단 이미지 삭제
@unlink(G4_DATA_PATH."/item/$it_id"."_h");
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
@unlink(G5_DATA_PATH."/item/$it_id"."_h");
@unlink(G5_DATA_PATH."/item/$it_id"."_t");
// 장바구니 삭제
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_cart_table']} where it_id = '$it_id' ";
sql_query($sql);
// 이벤트삭제
$sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_event_item_table']} where it_id = '$it_id' ";
sql_query($sql);
// 사용후기삭제
$sql = " delete from {$g4['shop_item_use_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_use_table']} where it_id = '$it_id' ";
sql_query($sql);
// 상품문의삭제
$sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_qa_table']} where it_id = '$it_id' ";
sql_query($sql);
// 관련상품삭제
$sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
$sql = " delete from {$g5['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
sql_query($sql);
@ -73,7 +73,7 @@ if (!function_exists("itemdelete")) {
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
$destfile = G5_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
@ -88,7 +88,7 @@ if (!function_exists("itemdelete")) {
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
$destfile = G5_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
@ -97,7 +97,7 @@ if (!function_exists("itemdelete")) {
// 상품 삭제
$sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_table']} where it_id = '$it_id' ";
sql_query($sql);
}
}

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '이벤트관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '이벤트관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_event_table']} ";
$sql_common = " from {$g5['shop_event_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -42,7 +42,7 @@ $result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$href = "";
$sql = " select count(ev_id) as cnt from {$g4['shop_event_item_table']} where ev_id = '{$row['ev_id']}' ";
$sql = " select count(ev_id) as cnt from {$g5['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'].');">';
@ -58,7 +58,7 @@ $result = sql_query($sql);
<td class="td_num"><?php echo $href; ?><?php echo $ev['cnt']; ?><?php echo $href_close; ?></td>
<td class="td_smallmng"><?php echo $row['ev_use'] ? '<span class="txt_true">예</span>' : '<span class="txt_false">아니오</span>'; ?></td>
<td class="td_mng">
<a href="<?php echo G4_SHOP_URL; ?>/event.php?ev_id=<?php echo $row['ev_id']; ?>">보기</a>
<a href="<?php echo G5_SHOP_URL; ?>/event.php?ev_id=<?php echo $row['ev_id']; ?>">보기</a>
<a href="./itemeventform.php?w=u&amp;ev_id=<?php echo $row['ev_id']; ?>">수정</a>
<a href="./itemeventformupdate.php?w=d&amp;ev_id=<?php echo $row['ev_id']; ?>" onclick="return delete_confirm();">삭제</a>
</td>
@ -85,5 +85,5 @@ function itemeventwin(ev_id)
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,26 +1,26 @@
<?php
$sub_menu = '500300';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$html_title = "이벤트";
$g4['title'] = $html_title.' 관리';
$g5['title'] = $html_title.' 관리';
if ($w == "u")
{
$html_title .= " 수정";
$readonly = " readonly";
$sql = " select * from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
$sql = " select * from {$g5['shop_event_table']} where ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
if (!$ev['ev_id'])
alert("등록된 자료가 없습니다.");
// 등록된 이벤트 상품
$sql = " select b.it_id, b.it_name
from {$g4['shop_event_item_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
from {$g5['shop_event_item_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
where a.ev_id = '$ev_id' ";
$res_item = sql_query($sql);
}
@ -42,7 +42,7 @@ else
// 분류리스트
$category_select = '';
$sql = " select * from {$g4['shop_category_table']} ";
$sql = " select * from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@ -58,7 +58,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$category_select .= "<option value=\"{$row['ca_id']}\">$nbsp{$row['ca_name']}</option>\n";
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="feventform" action="./itemeventformupdate.php" onsubmit="return feventform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
@ -79,16 +79,16 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<th>이벤트번호</th>
<td>
<span class="frm_ev_id"><?php echo $ev_id; ?></span>
<a href="<?php echo G4_SHOP_URL; ?>/event.php?ev_id=<?php echo $ev['ev_id']; ?>" class="btn_frmline">이벤트바로가기</a>
<a href="<?php echo G5_SHOP_URL; ?>/event.php?ev_id=<?php echo $ev['ev_id']; ?>" class="btn_frmline">이벤트바로가기</a>
</td>
</tr>
<?php } ?>
<tr>
<th scope="row"><label for="ev_skin">출력스킨</label></th>
<td>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G4_PATH.'/', '', G4_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'.PHP_EOL.G4_SHOP_DIR.'/event.php&amp;skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.'); ?>
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', G5_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'.PHP_EOL.G5_SHOP_DIR.'/event.php&amp;skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.'); ?>
<select name="ev_skin" id="ev_skin">
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $ev['ev_skin']); ?>
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G5_SHOP_SKIN_PATH, $ev['ev_skin']); ?>
</select>
</td>
</tr>
@ -143,7 +143,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="file" name="ev_mimg" id="ev_mimg">
<?php
$mimg_str = "";
$mimg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_m';
$mimg = G5_DATA_PATH.'/event/'.$ev['ev_id'].'_m';
if (file_exists($mimg)) {
$size = @getimagesize($mimg);
if($size[0] && $size[0] > 750)
@ -152,7 +152,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="ev_mimg_del" value="1" id="ev_mimg_del"> <label for="ev_mimg_del">삭제</label>';
$mimg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_m" width="'.$width.'" alt="">';
$mimg_str = '<img src="'.G5_DATA_URL.'/event/'.$ev['ev_id'].'_m" width="'.$width.'" alt="">';
}
if ($mimg_str) {
echo '<div class="banner_or_img">';
@ -214,7 +214,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="file" name="ev_himg" id="ev_himg">
<?php
$himg_str = "";
$himg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_h';
$himg = G5_DATA_PATH.'/event/'.$ev['ev_id'].'_h';
if (file_exists($himg)) {
$size = @getimagesize($himg);
if($size[0] && $size[0] > 750)
@ -223,7 +223,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo '<input type="checkbox" name="ev_himg_del" value="1" id="ev_himg_del"> <label for="ev_himg_del">삭제</label>';
$himg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_h" width="'.$width.'" alt="">';
$himg_str = '<img src="'.G5_DATA_URL.'/event/'.$ev['ev_id'].'_h" width="'.$width.'" alt="">';
}
if ($himg_str) {
echo '<div class="banner_or_img">';
@ -240,7 +240,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="file" name="ev_timg" id="ev_timg">
<?php
$timg_str = "";
$timg = G4_DATA_PATH.'/event/'.$ev['ev_id'].'_t';
$timg = G5_DATA_PATH.'/event/'.$ev['ev_id'].'_t';
if (file_exists($timg)) {
$size = @getimagesize($timg);
if($size[0] && $size[0] > 750)
@ -248,7 +248,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
else
$width = $size[0];
echo '<input type="checkbox" name="ev_timg_del" value="1" id="ev_timg_del"> <label for="ev_timg_del">삭제</label>';
$timg_str = '<img src="'.G4_DATA_URL.'/event/'.$ev['ev_id'].'_t" width="'.$width.'" alt="">';
$timg_str = '<img src="'.G5_DATA_URL.'/event/'.$ev['ev_id'].'_t" width="'.$width.'" alt="">';
}
if ($timg_str) {
echo '<div class="banner_or_img">';
@ -367,5 +367,5 @@ function feventform_check(f)
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -10,12 +10,12 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
@mkdir(G4_DATA_PATH."/event", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/event", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/event", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/event", G5_DIR_PERMISSION);
if ($ev_mimg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_m");
if ($ev_himg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_h");
if ($ev_timg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_t");
if ($ev_mimg_del) @unlink(G5_DATA_PATH."/event/{$ev_id}_m");
if ($ev_himg_del) @unlink(G5_DATA_PATH."/event/{$ev_id}_h");
if ($ev_timg_del) @unlink(G5_DATA_PATH."/event/{$ev_id}_t");
$sql_common = " set ev_skin = '$ev_skin',
ev_img_width = '$ev_img_width',
@ -31,42 +31,42 @@ $sql_common = " set ev_skin = '$ev_skin',
if ($w == "")
{
$ev_id = G4_SERVER_TIME;
$ev_id = G5_SERVER_TIME;
$sql = " insert {$g4['shop_event_table']}
$sql = " insert {$g5['shop_event_table']}
$sql_common
, ev_id = '$ev_id' ";
sql_query($sql);
}
else if ($w == "u")
{
$sql = " update {$g4['shop_event_table']}
$sql = " update {$g5['shop_event_table']}
$sql_common
where ev_id = '$ev_id' ";
sql_query($sql);
}
else if ($w == "d")
{
@unlink(G4_DATA_PATH."/event/{$ev_id}_m");
@unlink(G4_DATA_PATH."/event/{$ev_id}_h");
@unlink(G4_DATA_PATH."/event/{$ev_id}_t");
@unlink(G5_DATA_PATH."/event/{$ev_id}_m");
@unlink(G5_DATA_PATH."/event/{$ev_id}_h");
@unlink(G5_DATA_PATH."/event/{$ev_id}_t");
// 이벤트상품삭제
$sql = " delete from {$g4['shop_event_item_table']} where ev_id = '$ev_id' ";
$sql = " delete from {$g5['shop_event_item_table']} where ev_id = '$ev_id' ";
sql_query($sql);
$sql = " delete from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
$sql = " delete from {$g5['shop_event_table']} where ev_id = '$ev_id' ";
sql_query($sql);
}
if ($w == "" || $w == "u")
{
if ($_FILES['ev_mimg']['name']) upload_file($_FILES['ev_mimg']['tmp_name'], $ev_id."_m", G4_DATA_PATH."/event");
if ($_FILES['ev_himg']['name']) upload_file($_FILES['ev_himg']['tmp_name'], $ev_id."_h", G4_DATA_PATH."/event");
if ($_FILES['ev_timg']['name']) upload_file($_FILES['ev_timg']['tmp_name'], $ev_id."_t", G4_DATA_PATH."/event");
if ($_FILES['ev_mimg']['name']) upload_file($_FILES['ev_mimg']['tmp_name'], $ev_id."_m", G5_DATA_PATH."/event");
if ($_FILES['ev_himg']['name']) upload_file($_FILES['ev_himg']['tmp_name'], $ev_id."_h", G5_DATA_PATH."/event");
if ($_FILES['ev_timg']['name']) upload_file($_FILES['ev_timg']['tmp_name'], $ev_id."_t", G5_DATA_PATH."/event");
// 등록된 이벤트 상품 먼저 삭제
$sql = " delete from {$g4['shop_event_item_table']} where ev_id = '$ev_id' ";
$sql = " delete from {$g5['shop_event_item_table']} where ev_id = '$ev_id' ";
sql_query($sql);
// 이벤트 상품등록
@ -76,7 +76,7 @@ if ($w == "" || $w == "u")
for($i=0; $i<$count; $i++) {
$it_id = $item[$i];
if($it_id) {
$sql = " insert into {$g4['shop_event_item_table']}
$sql = " insert into {$g5['shop_event_item_table']}
set ev_id = '$ev_id',
it_id = '$it_id' ";
sql_query($sql);

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '이벤트일괄처리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '이벤트일괄처리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -24,8 +24,8 @@ if ($sel_field == "") {
$sel_field = "it_name";
}
$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 = " from {$g5['shop_item_table']} a
left join {$g5['shop_event_item_table']} b on (a.it_id=b.it_id and b.ev_id='$ev_id') ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -79,7 +79,7 @@ if (isset($ev_set)) {
<?php
// 이벤트 옵션처리
$event_option = "<option value=''>이벤트를 선택하세요</option>";
$sql1 = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
$sql1 = " select ev_id, ev_subject from {$g5['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'].'`'.$row1['ev_subject'].'" '.get_selected($ev_set, $row1['ev_id'].'`'.$row1['ev_subject']).' >'.conv_subject($row1['ev_subject'], 20,"…").'</option>';
@ -103,7 +103,7 @@ if (isset($ev_set)) {
<select name="sel_ca_id" id="sel_ca_id">
<option value=''>전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++)
{
@ -159,9 +159,9 @@ if (isset($ev_set)) {
</thead>
<tbody>
<?php for ($i=0; $row=mysql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$sql = " select ev_id from {$g4['shop_event_item_table']}
$sql = " select ev_id from {$g5['shop_event_item_table']}
where it_id = '{$row['it_id']}'
and ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
@ -203,7 +203,7 @@ if (isset($ev_set)) {
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fitemeventlistupdatecheck(f)
@ -220,5 +220,5 @@ function fitemeventlistupdatecheck(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -8,14 +8,14 @@ auth_check($auth[$sub_menu], "w");
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = " delete from {$g4['shop_event_item_table']}
$sql = " delete from {$g5['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['shop_event_item_table']}
$sql = "insert into {$g5['shop_event_item_table']}
set ev_id = '$ev_id',
it_id = '{$_POST['it_id'][$i]}' ";
sql_query($sql);

View File

@ -8,7 +8,7 @@ if(!trim($_POST['ca_id']))
die("");
$sql = " select it_id, it_name
from {$g4['shop_item_table']}
from {$g5['shop_item_table']}
where ( ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%' )
order by ca_id, it_name ";
$result = sql_query($sql);
@ -16,7 +16,7 @@ $result = sql_query($sql);
$list = '';
for($i=0;$row=sql_fetch_array($result);$i++) {
if($w == 'u') {
$sql2 = " select count(*) as cnt from {$g4['shop_event_item_table']} where ev_id = '$ev_id' and it_id = '{$row['it_id']}' ";
$sql2 = " select count(*) as cnt from {$g5['shop_event_item_table']} where ev_id = '$ev_id' and it_id = '{$row['it_id']}' ";
$row2 = sql_fetch($sql2);
if ($row2['cnt'])
continue;

View File

@ -4,15 +4,15 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$sql = " select ev_subject from {$g4['shop_event_table']} where ev_id = '$ev_id' ";
$sql = " select ev_subject from {$g5['shop_event_table']} where ev_id = '$ev_id' ";
$ev = sql_fetch($sql);
$g4['title'] = $ev['ev_subject'].' 이벤트상품';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = $ev['ev_subject'].' 이벤트상품';
include_once(G5_PATH.'/head.sub.php');
?>
<div class="cbox">
<h1><?php echo $g4['title']; ?></h1>
<h1><?php echo $g5['title']; ?></h1>
<table>
<thead>
<tr>
@ -23,14 +23,14 @@ include_once(G4_PATH.'/head.sub.php');
</thead>
<tbody>
<?php
$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)
$sql = " select b.it_id, b.it_name, b.it_use from {$g5['shop_event_item_table']} a
left join {$g5['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);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
?>
<tr>
<td>
@ -57,5 +57,5 @@ include_once(G4_PATH.'/head.sub.php');
</div>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -6,7 +6,7 @@ check_demo();
auth_check($auth[$sub_menu], "d");
$sql = " delete from {$g4['shop_event_item_table']} where ev_id = '$ev_id' and it_id = '$it_id' ";
$sql = " delete from {$g5['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");

View File

@ -4,12 +4,12 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$g4['title'] = '엑셀파일로 상품 일괄 등록';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = '엑셀파일로 상품 일괄 등록';
include_once(G5_PATH.'/head.sub.php');
?>
<div class="new_win">
<h1><?php echo $g4['title']; ?></h1>
<h1><?php echo $g5['title']; ?></h1>
<p class="new_win_desc">
엑셀파일을 이용하여 상품을 일괄등록할 수 있습니다.<br>
@ -19,7 +19,7 @@ include_once(G4_PATH.'/head.sub.php');
</p>
<p class="new_win_desc">
<a href="<?php echo G4_URL; ?>/<?php echo G4_LIB_DIR; ?>/Excel/itemexcel.xls">상품일괄등록용 엑셀파일 다운로드</a>
<a href="<?php echo G5_URL; ?>/<?php echo G5_LIB_DIR; ?>/Excel/itemexcel.xls">상품일괄등록용 엑셀파일 다운로드</a>
</p>
<form name="fitemexcel" method="post" action="./itemexcelupdate.php" enctype="MULTIPART/FORM-DATA" autocomplete="off">
@ -39,5 +39,5 @@ include_once(G4_PATH.'/head.sub.php');
</div>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -12,7 +12,7 @@ function only_number($n)
if($_FILES['excelfile']['tmp_name']) {
$file = $_FILES['excelfile']['tmp_name'];
include_once(G4_LIB_PATH.'/Excel/reader.php');
include_once(G5_LIB_PATH.'/Excel/reader.php');
$data = new Spreadsheet_Excel_Reader();
@ -72,7 +72,7 @@ if($_FILES['excelfile']['tmp_name']) {
$succ_count = 0;
$comma = '';
$sql = " INSERT INTO {$g4['shop_item_table']}
$sql = " INSERT INTO {$g5['shop_item_table']}
( it_id, ca_id, ca_id2, ca_id3, it_name, it_maker, it_origin, it_brand, it_model, it_type1, it_type2, it_type3, it_type4, it_type5, it_basic, it_explan, it_mobile_explan, it_explan_html, it_cust_price, it_price, it_point, it_sell_email, it_use, it_stock_qty, it_time, it_ip, it_order, it_tel_inq, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 )
VALUES ";
@ -121,7 +121,7 @@ if($_FILES['excelfile']['tmp_name']) {
}
// it_id 중복체크
$sql2 = " select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql2 = " select count(*) as cnt from {$g5['shop_item_table']} where it_id = '$it_id' ";
$row2 = sql_fetch($sql2);
if($row2['cnt']) {
$fail_it_id[] = $it_id;
@ -132,7 +132,7 @@ if($_FILES['excelfile']['tmp_name']) {
}
// 기본분류체크
$sql2 = " select count(*) as cnt from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
$sql2 = " select count(*) as cnt from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
$row2 = sql_fetch($sql2);
if(!$row2['cnt']) {
$fail_it_id[] = $it_id;
@ -140,7 +140,7 @@ if($_FILES['excelfile']['tmp_name']) {
continue;
}
$sql .= $comma." ( '$it_id', '$ca_id', '$ca_id2', '$ca_id3', '$it_name', '$it_maker', '$it_origin', '$it_brand', '$it_model', '$it_type1', '$it_type2', '$it_type3', '$it_type4', '$it_type5', '$it_basic', '$it_explan', '$it_mobile_explan', '1', '$it_cust_price', '$it_price', '$it_point', '$it_sell_email', '$it_use', '$it_stock_qty', '".G4_TIME_YMDHIS."', '".$_SERVER['REMOTE_ADDR']."', '$it_order', '$it_tel_inq', '$it_img1', '$it_img2', '$it_img3', '$it_img4', '$it_img5', '$it_img6', '$it_img7', '$it_img8', '$it_img9', '$it_img10' ) ";
$sql .= $comma." ( '$it_id', '$ca_id', '$ca_id2', '$ca_id3', '$it_name', '$it_maker', '$it_origin', '$it_brand', '$it_model', '$it_type1', '$it_type2', '$it_type3', '$it_type4', '$it_type5', '$it_basic', '$it_explan', '$it_mobile_explan', '1', '$it_cust_price', '$it_price', '$it_point', '$it_sell_email', '$it_use', '$it_stock_qty', '".G5_TIME_YMDHIS."', '".$_SERVER['REMOTE_ADDR']."', '$it_order', '$it_tel_inq', '$it_img1', '$it_img2', '$it_img3', '$it_img4', '$it_img5', '$it_img6', '$it_img7', '$it_img8', '$it_img9', '$it_img10' ) ";
$comma = ' , ';
$succ_count++;
@ -150,12 +150,12 @@ if($_FILES['excelfile']['tmp_name']) {
sql_query($sql);
}
$g4['title'] = '상품 엑셀일괄등록 결과';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = '상품 엑셀일괄등록 결과';
include_once(G5_PATH.'/head.sub.php');
?>
<div class="new_win">
<h1><?php echo $g4['title']; ?></h1>
<h1><?php echo $g5['title']; ?></h1>
<p class="new_win_desc">상품등록을 완료했습니다.</p>
@ -185,5 +185,5 @@ include_once(G4_PATH.'/head.sub.php');
</div>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -1,8 +1,8 @@
<?php
$sub_menu = '400300';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
include_once(G5_EDITOR_LIB);
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
auth_check($auth[$sub_menu], "w");
@ -19,7 +19,7 @@ if ($w == "")
$it['ca_id3'] = get_cookie("ck_ca_id3");
if (!$it['ca_id'])
{
$sql = " select ca_id from {$g4['shop_category_table']} order by ca_id limit 1 ";
$sql = " select ca_id from {$g5['shop_category_table']} order by ca_id limit 1 ";
$row = sql_fetch($sql);
if (!$row['ca_id'])
alert("등록된 분류가 없습니다. 우선 분류를 등록하여 주십시오.");
@ -36,7 +36,7 @@ else if ($w == "u")
if ($is_admin != 'super')
{
$sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
$sql = " select it_id from {$g5['shop_item_table']} a, {$g5['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']}' ";
@ -45,13 +45,13 @@ else if ($w == "u")
alert("\'{$member['mb_id']}\' 님께서 수정 할 권한이 없는 상품입니다.");
}
$sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql = " select * from {$g5['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
if (!$ca_id)
$ca_id = $it['ca_id'];
$sql = " select * from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
$sql = " select * from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
$ca = sql_fetch($sql);
}
else
@ -68,13 +68,13 @@ if (!$it['it_explan_html'])
//$qstr = $qstr1.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2.'&amp;page='.$page;
$qstr = $qstr.'&amp;sca='.$sca.'&amp;page='.$page;
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = $html_title;
include_once (G5_ADMIN_PATH.'/admin.head.php');
// 분류리스트
$category_select = '';
$script = '';
$sql = " select * from {$g4['shop_category_table']} ";
$sql = " select * from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@ -200,9 +200,9 @@ $pg_anchor ='<ul class="anchor">
<?php } else { ?>
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
<span class="frm_ca_id"><?php echo $it['it_id']; ?></span>
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $it_id; ?>" class="btn_frmline">상품확인</a>
<a href="<?php echo G4_ADMIN_URL; ?>/shop_admin/itemuselist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">사용후기</a>
<a href="<?php echo G4_ADMIN_URL; ?>/shop_admin/itemqalist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">상품문의</a>
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $it_id; ?>" class="btn_frmline">상품확인</a>
<a href="<?php echo G5_ADMIN_URL; ?>/shop_admin/itemuselist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">사용후기</a>
<a href="<?php echo G5_ADMIN_URL; ?>/shop_admin/itemqalist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">상품문의</a>
<?php } ?>
</td>
</tr>
@ -237,15 +237,15 @@ $pg_anchor ='<ul class="anchor">
<td>
<?php echo help("메인화면에 유형별로 출력할때 사용합니다.\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다."); ?>
<input type="checkbox" name="it_type1" value="1" <?php echo ($it['it_type1'] ? "checked" : ""); ?> id="it_type1">
<label for="it_type1">히트 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_hit2.gif" alt=""></label>
<label for="it_type1">히트 <img src="<?php echo G5_SHOP_URL; ?>/img/icon_hit2.gif" alt=""></label>
<input type="checkbox" name="it_type2" value="1" <?php echo ($it['it_type2'] ? "checked" : ""); ?> id="it_type2">
<label for="it_type2">추천 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_rec2.gif" alt=""></label>
<label for="it_type2">추천 <img src="<?php echo G5_SHOP_URL; ?>/img/icon_rec2.gif" alt=""></label>
<input type="checkbox" name="it_type3" value="1" <?php echo ($it['it_type3'] ? "checked" : ""); ?> id="it_type3">
<label for="it_type3">신상품 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_new2.gif" alt=""></label>
<label for="it_type3">신상품 <img src="<?php echo G5_SHOP_URL; ?>/img/icon_new2.gif" alt=""></label>
<input type="checkbox" name="it_type4" value="1" <?php echo ($it['it_type4'] ? "checked" : ""); ?> id="it_type4">
<label for="it_type4">인기 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_best2.gif" alt=""></label>
<label for="it_type4">인기 <img src="<?php echo G5_SHOP_URL; ?>/img/icon_best2.gif" alt=""></label>
<input type="checkbox" name="it_type5" value="1" <?php echo ($it['it_type5'] ? "checked" : ""); ?> id="it_type5">
<label for="it_type5">할인 <img src="<?php echo G4_SHOP_URL; ?>/img/icon_discount2.gif" alt=""></label>
<label for="it_type5">할인 <img src="<?php echo G5_SHOP_URL; ?>/img/icon_discount2.gif" alt=""></label>
</td>
<td class="group_setting">
<input type="checkbox" name="chk_ca_it_type" value="1" id="chk_ca_it_type">
@ -389,7 +389,7 @@ $pg_anchor ='<ul class="anchor">
?>
</select>
</div>
<div id="sit_compact_fields"><?php include_once(G4_ADMIN_PATH.'/shop_admin/iteminfo.php'); ?></div>
<div id="sit_compact_fields"><?php include_once(G5_ADMIN_PATH.'/shop_admin/iteminfo.php'); ?></div>
</section>
<script>
@ -397,7 +397,7 @@ $(function(){
$("#it_info_gubun").live("change", function() {
var gubun = $(this).val();
$.post(
"<?php echo G4_ADMIN_URL; ?>/shop_admin/iteminfo.php",
"<?php echo G5_ADMIN_URL; ?>/shop_admin/iteminfo.php",
{ it_id: "<?php echo $it['it_id']; ?>", gubun: gubun },
function(data) {
$("#sit_compact_fields").empty().html(data);
@ -560,7 +560,7 @@ $(function(){
<button type="button" id="option_table_create" class="btn_frmline">옵션목록생성</button>
</div>
</div>
<div id="sit_option_frm"><?php include_once(G4_ADMIN_PATH.'/shop_admin/itemoption.php'); ?></div>
<div id="sit_option_frm"><?php include_once(G5_ADMIN_PATH.'/shop_admin/itemoption.php'); ?></div>
<script>
$(function() {
@ -609,7 +609,7 @@ $(function(){
}
$.post(
"<?php echo G4_ADMIN_URL; ?>/shop_admin/itemoption.php",
"<?php echo G5_ADMIN_URL; ?>/shop_admin/itemoption.php",
{ opt1_subject: opt1_subject, opt2_subject: opt2_subject, opt3_subject: opt3_subject, opt1: opt1, opt2: opt2, opt3: opt3 },
function(data) {
$option_table.empty().html(data);
@ -698,7 +698,7 @@ $(function(){
<button type="button" id="supply_table_create">옵션목록생성</button>
</div>
</div>
<div id="sit_option_addfrm"><?php include_once(G4_ADMIN_PATH.'/shop_admin/itemsupply.php'); ?></div>
<div id="sit_option_addfrm"><?php include_once(G5_ADMIN_PATH.'/shop_admin/itemsupply.php'); ?></div>
<script>
$(function() {
@ -780,7 +780,7 @@ $(function(){
}
$.post(
"<?php echo G4_ADMIN_URL; ?>/shop_admin/itemsupply.php",
"<?php echo G5_ADMIN_URL; ?>/shop_admin/itemsupply.php",
{ 'subject[]': subject, 'supply[]': supply },
function(data) {
$supply_table.empty().html(data);
@ -957,7 +957,7 @@ $(function(){
<td>
<input type="file" name="it_img<?php echo $i; ?>" id="it_img<?php echo $i; ?>">
<?php
$it_img = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
$it_img = G5_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($it_img) && $it['it_img'.$i]) {
$size = @getimagesize($it_img);
$thumb = get_it_thumbnail($it['it_img'.$i], 25, 25);
@ -966,7 +966,7 @@ $(function(){
<input type="checkbox" name="it_img<?php echo $i; ?>_del" id="it_img<?php echo $i; ?>_del" value="1">
<span class="sit_wimg_limg<?php echo $i; ?>"><?php echo $thumb; ?></span>
<div id="limg<?php echo $i; ?>" class="banner_or_img">
<img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_img'.$i]; ?>" alt="" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>">
<img src="<?php echo G5_DATA_URL; ?>/item/<?php echo $it['it_img'.$i]; ?>" alt="" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
@ -1002,7 +1002,7 @@ $(function(){
<select id="sch_relation">
<option value=''>분류별 상품</option>
<?php
$sql = " select * from {$g4['shop_category_table']} ";
$sql = " select * from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@ -1092,8 +1092,8 @@ $(function(){
<?php
$str = array();
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_price
from {$g4['shop_item_relation_table']} a
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
from {$g5['shop_item_relation_table']} a
left join {$g5['shop_item_table']} b on (a.it_id2=b.it_id)
where a.it_id = '$it_id'
order by ir_no asc ";
$result = sql_query($sql);
@ -1133,7 +1133,7 @@ $(function(){
<h3>등록된 전체이벤트 목록</h3>
<div id="event_list" class="srel_list srel_noneimg">
<?php
$sql = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
$sql = " select ev_id, ev_subject from {$g5['shop_event_table']} order by ev_id desc ";
$result = sql_query($sql);
for ($g=0; $row=sql_fetch_array($result); $g++) {
if($g == 0)
@ -1205,8 +1205,8 @@ $(function(){
$str = "";
$comma = "";
$sql = " select b.ev_id, b.ev_subject
from {$g4['shop_event_item_table']} a
left join {$g4['shop_event_table']} b on (a.ev_id=b.ev_id)
from {$g5['shop_event_item_table']} a
left join {$g5['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);
@ -1490,5 +1490,5 @@ categorychange(document.fitemform);
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -3,7 +3,7 @@ $sub_menu = '400300';
include_once('./_common.php');
$sql = " select ca_id, it_id, it_name, it_price
from {$g4['shop_item_table']}
from {$g5['shop_item_table']}
where it_id <> '$it_id'
and ( ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%' )
order by ca_id, it_name ";
@ -12,7 +12,7 @@ $result = sql_query($sql);
$list = '';
for($i=0;$row=sql_fetch_array($result);$i++) {
$sql2 = " select count(*) as cnt from {$g4['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
$sql2 = " select count(*) as cnt from {$g5['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
$row2 = sql_fetch($sql2);
if ($row2['cnt'])
continue;

View File

@ -10,13 +10,13 @@ if ($w == '' || $w == 'u')
else if ($w == 'd')
auth_check($auth[$sub_menu], "d");
@mkdir(G4_DATA_PATH."/item", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/item", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/item", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/item", G5_DIR_PERMISSION);
// 파일정보
if($w == "u") {
$sql = " select it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']}
from {$g5['shop_item_table']}
where it_id = '$it_id' ";
$file = sql_fetch($sql);
@ -32,7 +32,7 @@ if($w == "u") {
$it_img10 = $file['it_img10'];
}
$it_img_dir = G4_DATA_PATH.'/item';
$it_img_dir = G5_DATA_PATH.'/item';
// 파일삭제
if ($it_img1_del) {
@ -193,16 +193,16 @@ if ($w == "" || $w == "u")
// 관련상품을 우선 삭제함
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' ");
sql_query(" delete from {$g5['shop_item_relation_table']} where it_id = '$it_id' ");
// 관련상품의 반대도 삭제
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id' ");
sql_query(" delete from {$g5['shop_item_relation_table']} where it_id2 = '$it_id' ");
// 이벤트상품을 우선 삭제함
sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
sql_query(" delete from {$g5['shop_event_item_table']} where it_id = '$it_id' ");
// 선택옵션
sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제
sql_query(" delete from {$g5['shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제
$option_count = count($_POST['opt_id']);
if($option_count) {
@ -228,7 +228,7 @@ if($option_count) {
}
// 추가옵션
sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제
sql_query(" delete from {$g5['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제
$supply_count = count($_POST['spl_id']);
if($supply_count) {
@ -293,7 +293,7 @@ $sql_common = " ca_id = '$ca_id',
it_tail_html = '$it_tail_html',
it_mobile_head_html = '$it_mobile_head_html',
it_mobile_tail_html = '$it_mobile_tail_html',
it_time = '".G4_TIME_YMDHIS."',
it_time = '".G5_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order',
it_tel_inq = '$it_tel_inq',
@ -323,14 +323,14 @@ if ($w == "")
if($t_it_id)
alert('상품 코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.');
$sql = " insert {$g4['shop_item_table']}
$sql = " insert {$g5['shop_item_table']}
set it_id = '$it_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set $sql_common
where it_id = '$it_id' ";
sql_query($sql);
@ -340,7 +340,7 @@ else if ($w == "d")
{
if ($is_admin != 'super')
{
$sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
$sql = " select it_id from {$g5['shop_item_table']} a, {$g5['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']}' ";
@ -361,14 +361,14 @@ if ($w == "" || $w == "u")
{
if (trim($it_id2[$i]))
{
$sql = " insert into {$g4['shop_item_relation_table']}
$sql = " insert into {$g5['shop_item_relation_table']}
set it_id = '$it_id',
it_id2 = '$it_id2[$i]',
ir_no = '$i' ";
sql_query($sql, false);
// 관련상품의 반대로도 등록
$sql = " insert into {$g4['shop_item_relation_table']}
$sql = " insert into {$g5['shop_item_relation_table']}
set it_id = '$it_id2[$i]',
it_id2 = '$it_id',
ir_no = '$i' ";
@ -382,7 +382,7 @@ if ($w == "" || $w == "u")
{
if (trim($ev_id[$i]))
{
$sql = " insert into {$g4['shop_event_item_table']}
$sql = " insert into {$g5['shop_event_item_table']}
set ev_id = '$ev_id[$i]',
it_id = '$it_id' ";
sql_query($sql, false);
@ -393,7 +393,7 @@ if ($w == "" || $w == "u")
// 선택옵션등록
if($option_count) {
$comma = '';
$sql = " INSERT INTO {$g4['shop_item_option_table']}
$sql = " INSERT INTO {$g5['shop_item_option_table']}
( `io_id`, `io_type`, `it_id`, `io_price`, `io_stock_qty`, `io_noti_qty`, `io_use` )
VALUES ";
for($i=0; $i<$option_count; $i++) {
@ -407,7 +407,7 @@ if($option_count) {
// 추가옵션등록
if($supply_count) {
$comma = '';
$sql = " INSERT INTO {$g4['shop_item_option_table']}
$sql = " INSERT INTO {$g5['shop_item_option_table']}
( `io_id`, `io_type`, `it_id`, `io_price`, `io_stock_qty`, `io_noti_qty`, `io_use` )
VALUES ";
for($i=0; $i<$supply_count; $i++) {
@ -443,11 +443,11 @@ if(is_checked('chk_ca_it_mobile_head_html')) $ca_fields .= " , it_mobile_head
if(is_checked('chk_ca_it_mobile_tail_html')) $ca_fields .= " , it_mobile_tail_html = '$it_mobile_tail_html' ";
if($ca_fields) {
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id = '$ca_id' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id = '$ca_id' ");
if($ca_id2)
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id2 = '$ca_id2' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id2 = '$ca_id2' ");
if($ca_id3)
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id3 = '$ca_id3' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id3 = '$ca_id3' ");
}
// 모든 상품 동일 옵션 적용
@ -475,7 +475,7 @@ if(is_checked('chk_all_it_mobile_head_html')) $all_fields .= " , it_mobile_he
if(is_checked('chk_all_it_mobile_tail_html')) $all_fields .= " , it_mobile_tail_html = '$it_mobile_tail_html' ";
if($all_fields) {
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$all_fields} ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$all_fields} ");
}
$qstr = "$qstr&amp;sca=$sca&amp;page=$page";

View File

@ -1,13 +1,13 @@
<?php
include_once('./_common.php');
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
$it_id = trim($_POST['it_id']);
$gubun = $_POST['gubun'] ? $_POST['gubun'] : 'wear';
if($it['it_id'])
$it_id = $it['it_id'];
else {
$sql = " select it_id, it_info_gubun, it_info_value from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql = " select it_id, it_info_gubun, it_info_value from {$g5['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
}

View File

@ -4,12 +4,12 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
// 분류
$ca_list = '<option value="">선택</option>'.PHP_EOL;
$sql = " select * from {$g4['shop_category_table']} ";
$sql = " select * from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
@ -42,8 +42,8 @@ if ($sca != "") {
if ($sfl == "") $sfl = "it_name";
$sql_common = " from {$g4['shop_item_table']} a ,
{$g4['shop_category_table']} b
$sql_common = " from {$g5['shop_item_table']} a ,
{$g5['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']}'";
@ -98,7 +98,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<select name="sca" id="sca">
<option value="">전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -179,7 +179,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
?>
<tr>
<td rowspan="2">
@ -237,7 +237,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fitemlist_submit(f)
@ -273,5 +273,5 @@ function excelform(url)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -17,7 +17,7 @@ if ($_POST['act_button'] == "선택수정") {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = "update {$g4['shop_item_table']}
$sql = "update {$g5['shop_item_table']}
set ca_id = '{$_POST['ca_id'][$k]}',
it_name = '{$_POST['it_name'][$k]}',
it_mobile_name = '{$_POST['it_mobile_name'][$k]}',

View File

@ -9,7 +9,7 @@ if($it['it_id']) {
$opt2_subject = $opt_subject[1];
$opt3_subject = $opt_subject[2];
$sql = " select * from {$g4['shop_item_option_table']} where io_type = '0' and it_id = '{$it['it_id']}' order by io_no asc ";
$sql = " select * from {$g5['shop_item_option_table']} where io_type = '0' and it_id = '{$it['it_id']}' order by io_no asc ";
$result = sql_query($sql);
if(mysql_num_rows($result))
$po_run = true;

View File

@ -1,26 +1,26 @@
<?php
$sub_menu = '400660';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$sql = " select *
from {$g4['shop_item_qa_table']} a
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
from {$g5['shop_item_qa_table']} a
left join {$g5['member_table']} b on (a.mb_id = b.mb_id)
where iq_id = '$iq_id' ";
$iq = sql_fetch($sql);
if (!$iq['iq_id']) alert('등록된 자료가 없습니다.');
$name = get_sideview($is['mb_id'], $iq['iq_name'], $is['mb_email'], $is['mb_homepage']);
$g4['title'] = '상품문의';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품문의';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
?>
<?php//=subtitle($g4['title'])?>
<?php//=subtitle($g5['title'])?>
<form name="fitemqaform" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqaform_submit(this);">
<input type="hidden" name="w" value="<?php echo $w; ?>">
@ -85,5 +85,5 @@ function fitemqaform_submit(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -13,7 +13,7 @@ $qstr = "page=$page&amp;sort1=$sort1&amp;sort2=$sort2";
if ($w == "u")
{
$sql = "update {$g4['shop_item_qa_table']}
$sql = "update {$g5['shop_item_qa_table']}
set iq_subject = '$iq_subject',
iq_question = '$iq_question',
iq_answer = '$iq_answer'

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품문의';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품문의';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -28,9 +28,9 @@ if (!$sst) {
$sod = "desc";
}
$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 = " from {$g5['shop_item_qa_table']} a
left join {$g5['shop_item_table']} b on (a.it_id = b.it_id)
left join {$g5['member_table']} c on (a.mb_id = c.mb_id) ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -74,7 +74,7 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
<select name="sca" id="sca">
<option value="">전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -136,7 +136,7 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
$answer = $row['iq_answer'] ? 'Y' : '&nbsp;';
$iq_question = get_view_thumbnail($row['iq_question'], 300);
@ -180,7 +180,7 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fitemqalist_submit(f)
@ -214,5 +214,5 @@ $(function(){
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -16,7 +16,7 @@ if ($_POST['act_button'] == "선택삭제") {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = "delete from {$g4['shop_item_qa_table']} where iq_id = '{$_POST['iq_id'][$k]}' ";
$sql = "delete from {$g5['shop_item_qa_table']} where iq_id = '{$_POST['iq_id'][$k]}' ";
sql_query($sql);
}
}

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품판매순위';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품판매순위';
include_once (G5_ADMIN_PATH.'/admin.head.php');
if (!$to_date) $to_date = date("Ymd", time());
@ -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['shop_cart_table']} a, {$g4['shop_item_table']} b ";
from {$g5['shop_cart_table']} a, {$g5['shop_item_table']} b ";
$sql .= " where a.it_id = b.it_id ";
if ($fr_date && $to_date)
{
@ -77,7 +77,7 @@ if ($fr_date || $to_date) // 검색렬일 때만 처음 버튼을 보여줌
<select name="sel_ca_id" id="sel_ca_id">
<option value=''>전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -139,7 +139,7 @@ if ($fr_date || $to_date) // 검색렬일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$href = G5_SHOP_URL."/item.php?it_id={$row['it_id']}";
$num = $rank + $i + 1;
@ -169,9 +169,9 @@ if ($fr_date || $to_date) // 검색렬일 때만 처음 버튼을 보여줌
</table>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr1&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr1&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품재고관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품재고관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_search = " where 1 ";
if ($search != "") {
@ -22,7 +22,7 @@ if ($sel_field == "") $sel_field = "it_name";
if ($sort1 == "") $sort1 = "it_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from $g4[shop_item_table] ";
$sql_common = " from $g5[shop_item_table] ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -71,7 +71,7 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<select name="sel_ca_id" id="sel_ca_id">
<option value=''>전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -137,15 +137,15 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$href = G5_SHOP_URL."/item.php?it_id={$row['it_id']}";
// 선택옵션이 있을 경우 주문대기 수량 계산하지 않음
$sql2 = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' ";
$sql2 = " select count(*) as cnt from {$g5['shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' ";
$row2 = sql_fetch($sql2);
if(!$row2['cnt']) {
$sql1 = " select SUM(ct_qty) as sum_qty
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where it_id = '{$row['it_id']}'
and ct_stock_use = '0'
and ct_status in ('주문', '준비') ";
@ -184,8 +184,8 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
// 재고 일괄수정
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g4['shop_item_table']}
$sql = "update {$g5['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]}' ";

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
$ps_run = false;
if($it['it_id']) {
$sql = " select * from {$g4['shop_item_option_table']} where io_type = '1' and it_id = '{$it['it_id']}' order by io_no asc ";
$sql = " select * from {$g5['shop_item_option_table']} where io_type = '1' and it_id = '{$it['it_id']}' order by io_no asc ";
$result = sql_query($sql);
if(mysql_num_rows($result))
$ps_run = true;

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품유형관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품유형관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
/*
$sql_search = " where 1 ";
@ -45,7 +45,7 @@ if (!$sst) {
}
$sql_order = "order by $sst $sod";
$sql_common = " from {$g4['shop_item_table']} ";
$sql_common = " from {$g5['shop_item_table']} ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -98,7 +98,7 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
<select name="sca" id="sca">
<option value="">전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -159,7 +159,7 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
</thead>
<tbody>
<?php for ($i=0; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
?>
<tr>
<td class="td_bignum">
@ -195,8 +195,8 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], "w");
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g4['shop_item_table']}
$sql = "update {$g5['shop_item_table']}
set it_type1 = '{$_POST['it_type1'][$i]}',
it_type2 = '{$_POST['it_type2'][$i]}',
it_type3 = '{$_POST['it_type3'][$i]}',

View File

@ -1,14 +1,14 @@
<?php
$sub_menu = '400650';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$sql = " select *
from {$g4['shop_item_use_table']} a
left join {$g4['member_table']} b on (a.mb_id = b.mb_id)
left join {$g4['shop_item_table']} c on (a.it_id = c.it_id)
from {$g5['shop_item_use_table']} a
left join {$g5['member_table']} b on (a.mb_id = b.mb_id)
left join {$g5['shop_item_table']} c on (a.it_id = c.it_id)
where is_id = '$is_id' ";
$is = sql_fetch($sql);
if (!$is['is_id'])
@ -20,8 +20,8 @@ $name = get_sideview($is['mb_id'], get_text($is['is_name']), $is['mb_email'], $i
$is_confirm_yes = $is['is_confirm'] ? 'checked="checked"' : '';
$is_confirm_no = !$is['is_confirm'] ? 'checked="checked"' : '';
$g4['title'] = '사용후기';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '사용후기';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
?>
@ -43,7 +43,7 @@ $qstr = 'page='.$page.'&amp;sort1='.$sort1.'&amp;sort2='.$sort2;
<tbody>
<tr>
<th scope="row">상품명</th>
<td><a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $is['it_id']; ?>"><?php echo $is['it_name']; ?></a></td>
<td><a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $is['it_id']; ?>"><?php echo $is['it_name']; ?></a></td>
</tr>
<tr>
<th scope="row">이름</th>
@ -91,5 +91,5 @@ function fitemuseform_submit(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -13,7 +13,7 @@ $qstr = "page=$page&amp;sort1=$sort1&amp;sort2=$sort2";
if ($w == "u")
{
$sql = "update {$g4['shop_item_use_table']}
$sql = "update {$g5['shop_item_use_table']}
set is_subject = '$is_subject',
is_content = '$is_content',
is_confirm = '$is_confirm'

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '사용후기';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '사용후기';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -28,9 +28,9 @@ if (!$sst) {
$sod = "desc";
}
$sql_common = " from {$g4['shop_item_use_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 = " from {$g5['shop_item_use_table']} a
left join {$g5['shop_item_table']} b on (a.it_id = b.it_id)
left join {$g5['member_table']} c on (a.mb_id = c.mb_id) ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -74,7 +74,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<select name="sca" id="sca">
<option value=''>전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -139,7 +139,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=sql_fetch_array($result); $i++) {
$row['is_subject'] = cut_str($row['is_subject'], 30, "...");
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row['it_id'];
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row['mb_email'], $row['mb_homepage']);
$is_content = get_view_thumbnail($row['is_content'], 300);
?>
@ -183,7 +183,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fitemuselist_submit(f)
@ -217,5 +217,5 @@ $(function(){
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -17,7 +17,7 @@ if ($_POST['act_button'] == "선택수정") {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = "update {$g4['shop_item_use_table']}
$sql = "update {$g5['shop_item_use_table']}
set is_confirm = '{$_POST['is_confirm'][$k]}'
where is_id = '{$_POST['is_id'][$k]}' ";
sql_query($sql);
@ -30,7 +30,7 @@ if ($_POST['act_button'] == "선택수정") {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = "delete from {$g4['shop_item_use_table']} where is_id = '{$_POST['is_id'][$k]}' ";
$sql = "delete from {$g5['shop_item_use_table']} where is_id = '{$_POST['is_id'][$k]}' ";
sql_query($sql);
}
}

View File

@ -1,7 +1,7 @@
<?php
$sub_menu = '500510';
include_once('./_common.php');
include_once(G4_EDITOR_LIB);
include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
@ -9,7 +9,7 @@ $html_title = "팝업레이어";
if ($w == "u")
{
$html_title .= " 수정";
$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
$sql = " select * from {$g5['shop_new_win_table']} where nw_id = '$nw_id' ";
$nw = sql_fetch($sql);
if (!$nw['nw_id']) alert("등록된 자료가 없습니다.");
}
@ -24,8 +24,8 @@ else
$nw['nw_content_html'] = 2;
}
$g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = $html_title;
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="frmnewwin" action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" method="post">
@ -53,7 +53,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="text" name="nw_begin_time" value="<?php echo $nw['nw_begin_time']; ?>" id="nw_begin_time" required class="frm_input required" size="21" maxlength="19">
<label for="nw_begin_chk">시작일시를 오늘로</label>
<input type="checkbox" name="nw_begin_chk" value="<?php echo date("Y-m-d 00:00:00", G4_SERVER_TIME); ?>" id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;">
<input type="checkbox" name="nw_begin_chk" value="<?php echo date("Y-m-d 00:00:00", G5_SERVER_TIME); ?>" id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;">
</td>
</tr>
<tr>
@ -61,7 +61,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="text" name="nw_end_time" value="<?php echo $nw['nw_end_time']; ?>" id="nw_end_time" required class="frm_input required" size="21" maxlength="19">
<label for="nw_end_chk">종료일시를 오늘로부터 7일 후로</label>
<input type="checkbox" name="nw_end_chk" value="<?php echo date("Y-m-d 23:59:59", G4_SERVER_TIME+(60*60*24*7)); ?>" id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;">
<input type="checkbox" name="nw_end_chk" value="<?php echo date("Y-m-d 23:59:59", G5_SERVER_TIME+(60*60*24*7)); ?>" id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;">
</td>
</tr>
<tr>
@ -128,5 +128,5 @@ function frmnewwin_check(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -23,22 +23,22 @@ $sql_common = " nw_begin_time = '$nw_begin_time',
if($w == "")
{
$sql = " alter table {$g4['shop_new_win_table']} auto_increment=1 ";
$sql = " alter table {$g5['shop_new_win_table']} auto_increment=1 ";
sql_query($sql);
$sql = " insert {$g4['shop_new_win_table']} set $sql_common ";
$sql = " insert {$g5['shop_new_win_table']} set $sql_common ";
sql_query($sql);
$nw_id = mysql_insert_id();
}
else if ($w == "u")
{
$sql = " update {$g4['shop_new_win_table']} set $sql_common where nw_id = '$nw_id' ";
$sql = " update {$g5['shop_new_win_table']} set $sql_common where nw_id = '$nw_id' ";
sql_query($sql);
}
else if ($w == "d")
{
$sql = " delete from {$g4['shop_new_win_table']} where nw_id = '$nw_id' ";
$sql = " delete from {$g5['shop_new_win_table']} where nw_id = '$nw_id' ";
sql_query($sql);
}

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '팝업레이어 관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '팝업레이어 관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g4['shop_new_win_table']} ";
$sql_common = " from {$g5['shop_new_win_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@ -69,5 +69,5 @@ $result = sql_query($sql);
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '상품옵션재고관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '상품옵션재고관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_search = " where b.it_id is not NULL ";
if ($search != "") {
@ -22,7 +22,7 @@ if ($sel_field == "") $sel_field = "b.it_name";
if ($sort1 == "") $sort1 = "a.io_stock_qty";
if ($sort2 == "") $sort2 = "asc";
$sql_common = " from {$g4['shop_item_option_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id ) ";
$sql_common = " from {$g5['shop_item_option_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id ) ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
@ -75,7 +75,7 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<select name="sel_ca_id" id="sel_ca_id">
<option value=''>전체분류</option>
<?php
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g5['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;
@ -144,10 +144,10 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<?php
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$href = G5_SHOP_URL."/item.php?it_id={$row['it_id']}";
$sql1 = " select SUM(ct_qty) as sum_qty
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where it_id = '{$row['it_id']}'
and io_id = '{$row['io_id']}'
and ct_stock_use = '0'
@ -217,8 +217,8 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -9,7 +9,7 @@ auth_check($auth[$sub_menu], "w");
// 재고 일괄수정
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g4['shop_item_option_table']}
$sql = "update {$g5['shop_item_option_table']}
set io_stock_qty = '{$_POST['io_stock_qty'][$i]}',
io_use = '{$_POST['io_use'][$i]}'
where it_id = '{$_POST['it_id'][$i]}'

View File

@ -43,7 +43,7 @@ for ($i=0; $i<$cnt; $i++)
$k = $_POST['ct_chk'][$i];
$ct_id = $_POST['ct_id'][$k];
$sql = " select * from {$g4['shop_cart_table']}
$sql = " select * from {$g5['shop_cart_table']}
where od_id = '$od_id'
and ct_id = '$ct_id' ";
$ct = sql_fetch($sql);
@ -58,13 +58,13 @@ for ($i=0; $i<$cnt; $i++)
// 재고에 차이 반영.
if($ct['ct_stock_use']) {
if($ct['io_id']) {
$sql = " update {$g4['shop_item_option_table']}
$sql = " update {$g5['shop_item_option_table']}
set io_stock_qty = io_stock_qty + '$diff_qty'
where it_id = '{$ct['it_id']}'
and io_id = '{$ct['io_id']}'
and io_type = '{$ct['io_type']}' ";
} else {
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set it_stock_qty = it_stock_qty + '$diff_qty'
where it_id = '{$ct['it_id']}' ";
}
@ -73,12 +73,12 @@ for ($i=0; $i<$cnt; $i++)
}
// 수량변경
$sql = " update {$g4['shop_cart_table']}
$sql = " update {$g5['shop_cart_table']}
set ct_qty = '$ct_qty'
where ct_id = '$ct_id'
and od_id = '$od_id' ";
sql_query($sql);
$mod_history .= G4_TIME_YMDHIS.' '.$ct['ct_option'].' 수량변경 '.$ct['ct_qty'].' -> '.$ct_qty."\n";
$mod_history .= G5_TIME_YMDHIS.' '.$ct['ct_option'].' 수량변경 '.$ct['ct_qty'].' -> '.$ct_qty."\n";
}
// 재고를 이미 사용했다면 (재고에서 이미 뺐다면)
@ -90,13 +90,13 @@ for ($i=0; $i<$cnt; $i++)
$stock_use = 0;
// 재고에 다시 더한다.
if($ct['io_id']) {
$sql = " update {$g4['shop_item_option_table']}
$sql = " update {$g5['shop_item_option_table']}
set io_stock_qty = io_stock_qty + '{$ct['ct_qty']}'
where it_id = '{$ct['it_id']}'
and io_id = '{$ct['io_id']}'
and io_type = '{$ct['io_type']}' ";
} else {
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set it_stock_qty = it_stock_qty + '{$ct['ct_qty']}'
where it_id = '{$ct['it_id']}' ";
}
@ -112,13 +112,13 @@ for ($i=0; $i<$cnt; $i++)
$stock_use = 1;
// 재고에서 뺀다.
if($ct['io_id']) {
$sql = " update {$g4['shop_item_option_table']}
$sql = " update {$g5['shop_item_option_table']}
set io_stock_qty = io_stock_qty - '{$ct['ct_qty']}'
where it_id = '{$ct['it_id']}'
and io_id = '{$ct['io_id']}'
and io_type = '{$ct['io_type']}' ";
} else {
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set it_stock_qty = it_stock_qty - '{$ct['ct_qty']}'
where it_id = '{$ct['it_id']}' ";
}
@ -129,7 +129,7 @@ for ($i=0; $i<$cnt; $i++)
else if ($ct_status == '품절') {
$stock_use = 1;
// 재고에서 뺀다.
$sql =" update {$g4['shop_item_table']} set it_stock_qty = 0 where it_id = '{$ct['it_id']}' ";
$sql =" update {$g5['shop_item_table']} set it_stock_qty = 0 where it_id = '{$ct['it_id']}' ";
sql_query($sql);
} */
}
@ -148,7 +148,7 @@ for ($i=0; $i<$cnt; $i++)
// 히스토리에 남길때는 작업|시간|IP|그리고 나머지 자료
$ct_history="\n$ct_status|$now|$REMOTE_ADDR";
$sql = " update {$g4['shop_cart_table']}
$sql = " update {$g5['shop_cart_table']}
set ct_point_use = '$point_use',
ct_stock_use = '$stock_use',
ct_status = '$ct_status',
@ -159,14 +159,14 @@ for ($i=0; $i<$cnt; $i++)
}
// 주문정보
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
// 주문 합계
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(cp_price) as coupon,
COUNT(distinct it_id) as cnt
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '$od_id'
and ct_status IN ( '주문', '준비', '배송', '완료' ) ";
$sum = sql_fetch($sql);
@ -182,7 +182,7 @@ $tot_od_cp_price = $tot_sc_cp_price = 0;
if($od['mb_id']) {
// 주문할인 쿠폰
$sql = " select a.cp_id, a.cp_type, a.cp_price, a.cp_trunc, a.cp_minimum, a.cp_maximum
from {$g4['shop_coupon_table']} a right join {$g4['shop_coupon_log_table']} b on ( a.cp_id = b.cp_id )
from {$g5['shop_coupon_table']} a right join {$g5['shop_coupon_log_table']} b on ( a.cp_id = b.cp_id )
where b.od_id = '$od_id'
and b.mb_id = '{$od['mb_id']}'
and a.cp_method = '2' ";
@ -213,7 +213,7 @@ if($od['mb_id']) {
// 배송쿠폰 할인
$sql = " select a.cp_id, a.cp_type, a.cp_price, a.cp_trunc, a.cp_minimum, a.cp_maximum
from {$g4['shop_coupon_table']} a right join {$g4['shop_coupon_log_table']} b on ( a.cp_id = b.cp_id )
from {$g5['shop_coupon_table']} a right join {$g5['shop_coupon_log_table']} b on ( a.cp_id = b.cp_id )
where b.od_id = '$od_id'
and b.mb_id = '{$od['mb_id']}'
and a.cp_method = '3' ";
@ -241,7 +241,7 @@ if($od['mb_id']) {
// 취소 합계
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '$od_id'
and ct_status IN ( '취소', '반품', '품절' ) ";
$sum = sql_fetch($sql);
@ -253,7 +253,7 @@ $od_misu = ( $cart_price + $send_cost + $od['od_send_cost2'] )
- ( $od['od_receipt_price'] + $od['od_receipt_point'] - $od['od_refund_price'] );
// 주문정보 반영
$sql = " update {$g4['shop_order_table']}
$sql = " update {$g5['shop_order_table']}
set od_cart_price = '$cart_price',
od_cart_coupon = '$cart_coupon',
od_coupon = '$tot_od_cp_price',
@ -270,14 +270,14 @@ $url = "./orderform.php?od_id=$od_id&amp;$qstr";
// 수량변경 히스토리 기록
if($mod_history) {
$sql = " update {$g4['shop_order_table']}
$sql = " update {$g5['shop_order_table']}
set od_mod_history = CONCAT(od_mod_history,'$mod_history')
where od_id = '$od_id' ";
sql_query($sql);
}
// 1.06.06
$od = sql_fetch(" select od_receipt_point from {$g4['shop_order_table']} where od_id = '$od_id' ");
$od = sql_fetch(" select od_receipt_point from {$g5['shop_order_table']} where od_id = '$od_id' ");
if ($od['od_receipt_point'])
alert("포인트로 결제한 주문은,\\n\\n주문상태 변경으로 인해 포인트의 가감이 발생하는 경우\\n\\n회원관리 > 포인트관리에서 수작업으로 포인트를 맞추어 주셔야 합니다.\\n\\n만약, 미수금이 발생하는 경우에는 DC에 금액을 음수로 입력하시면 해결됩니다.", $url);
else

View File

@ -9,10 +9,10 @@ auth_check($auth[$sub_menu], "d");
if ($od_id)
{
// 장바구니 삭제
sql_query(" delete from {$g4['shop_cart_table']} where od_id = '$od_id' ");
sql_query(" delete from {$g5['shop_cart_table']} where od_id = '$od_id' ");
// 주문서 삭제
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' ");
sql_query(" delete from {$g5['shop_order_table']} where od_id = '$od_id' ");
}
if ($return_url)

View File

@ -25,13 +25,13 @@ else {
}
$g_conf_site_cd = $default['de_kcp_mid'];
$g_conf_home_dir = G4_SHOP_PATH.'/kcp';
$g_conf_home_dir = G5_SHOP_PATH.'/kcp';
$g_conf_key_dir = '';
$g_conf_log_dir = '';
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
{
$g_conf_key_dir = G4_SHOP_PATH.'/kcp/bin/pub.key';
$g_conf_log_dir = G4_SHOP_PATH.'/kcp/log';
$g_conf_key_dir = G5_SHOP_PATH.'/kcp/bin/pub.key';
$g_conf_log_dir = G5_SHOP_PATH.'/kcp/log';
}
if (preg_match("/^T000/", $g_conf_site_cd) || $default['de_card_test']) {
@ -47,7 +47,7 @@ else {
$g_conf_log_level = "3";
$g_conf_gw_port = "8090";
include_once(G4_SHOP_PATH.'/kcp/pp_ax_hub_lib.php');
include_once(G5_SHOP_PATH.'/kcp/pp_ax_hub_lib.php');
$req_tx = 'mod_escrow';
$mod_type = 'STE1';

View File

@ -14,16 +14,16 @@ $cart_title4 = '배송완료';
auth_check($auth[$sub_menu], "w");
$g4['title'] = $html_title;
include_once(G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = $html_title;
include_once(G5_ADMIN_PATH.'/admin.head.php');
//------------------------------------------------------------------------------
// 설정 시간이 지난 주문서 없는 장바구니 자료 삭제
//------------------------------------------------------------------------------
$keep_term = $default['de_cart_keep_term'];
if (!$keep_term) $keep_term = 15; // 기본값 15일
$beforetime = date('Y-m-d H:i:s', ( G4_SERVER_TIME - (86400 * $keep_term) ) );
$sql = " delete from {$g4['shop_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforetime' ";
$beforetime = date('Y-m-d H:i:s', ( G5_SERVER_TIME - (86400 * $keep_term) ) );
$sql = " delete from {$g5['shop_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforetime' ";
sql_query($sql);
//------------------------------------------------------------------------------
@ -35,7 +35,7 @@ sql_query($sql);
//------------------------------------------------------------------------------
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['shop_cart_table']}
$sql = " select * from {$g5['shop_cart_table']}
where ct_status = '$cart_title2'
and ct_point_use = '0'
and ct_time <= '$beforedays' ";
@ -43,7 +43,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['shop_order_table']} where od_id = '{$row['od_id']}' ");
$tmp_row = sql_fetch("select od_id, mb_id from {$g5['shop_order_table']} where od_id = '{$row['od_id']}' ");
// 회원이면서 포인트가 0보다 크다면
if ($tmp_row['mb_id'] && $row['ct_point'] > 0)
@ -53,7 +53,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['ct_id']}");
}
sql_query("update {$g4['shop_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
sql_query("update {$g5['shop_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
}
}
//------------------------------------------------------------------------------
@ -62,7 +62,7 @@ if (!isset($order_not_point)) {
//------------------------------------------------------------------------------
// 주문서 정보
//------------------------------------------------------------------------------
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
if (!$od['od_id']) {
alert($alt_msg1);
@ -80,7 +80,7 @@ if ($default['de_card_test']) {
// 로그인 아이디 / 비번
// 일반 : test1234 / test12345
// 에스크로 : escrow / escrow913
$g4['shop_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
$g5['shop_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
}
// 상품목록
@ -88,7 +88,7 @@ $sql = " select it_id,
it_name,
cp_price,
ct_notax
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$od['od_id']}'
group by it_id
order by ct_id ";
@ -163,7 +163,7 @@ $pg_anchor = '<ul class="anchor">
<?php
// 상품의 옵션정보
$sql = " select ct_id, it_id, ct_price, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
@ -400,7 +400,7 @@ $pg_anchor = '<ul class="anchor">
<td><?php echo display_price($od['od_refund_price']); ?></td>
</tr>
<?php
$sql = " select dl_company, dl_url, dl_tel from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$sql = " select dl_company, dl_url, dl_tel from {$g5['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$dl = sql_fetch($sql);
?>
<tr>
@ -455,7 +455,7 @@ $pg_anchor = '<ul class="anchor">
<?php if ($od['od_cash']) { ?>
<a href="javascript:;" onclick="window.open('https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?cash_no=<?php echo $od['od_cash_no']; ?>', 'taxsave_receipt', 'width=360,height=647,scrollbars=0,menus=0');">현금영수증 확인</a>
<?php } else { ?>
<a href="javascript:;" onclick="window.open('<?php echo G4_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');">현금영수증 발급</a>
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave_kcp.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');">현금영수증 발급</a>
<?php } ?>
</td>
</tr>
@ -479,7 +479,7 @@ $pg_anchor = '<ul class="anchor">
<?php if ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') { ########## 시작?>
<?php
// 주문서
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
$result = sql_query($sql);
$od = sql_fetch_array($result);
@ -513,7 +513,7 @@ $pg_anchor = '<ul class="anchor">
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input" size="10"> 원
<?php
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌') {
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
$pg_url = $g5['shop_cardpg'][$default['de_card_pg']];
?>
<a href="<?php echo $pg_url; ?>" target="_blank">결제대행사</a>
<?php } ?>
@ -534,7 +534,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row"><label for="od_receipt_time">입금 확인일시</label></th>
<td>
<label for="od_bank_chk">현재 시간으로 설정</label>
<input type="checkbox" name="od_bank_chk" id="od_bank_chk" value="<?php echo date("Y-m-d H:i:s", G4_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_bank_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="checkbox" name="od_bank_chk" id="od_bank_chk" value="<?php echo date("Y-m-d H:i:s", G5_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_bank_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="text" name="od_receipt_time" value="<?php echo is_null_time($od['od_receipt_time']) ? "" : $od['od_receipt_time']; ?>" id="od_receipt_time" class="frm_input" maxlength="19">
</td>
</tr>
@ -549,7 +549,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row"><label for="od_receipt_price"><?php echo $od['od_settle_case']; ?> 결제액</label></th>
<td>
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input"> 원
<?php $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];?>
<?php $pg_url = $g5['shop_cardpg'][$default['de_card_pg']];?>
<a href="<?php echo $pg_url; ?>" target="_blank">결제대행사</a>
</td>
</tr>
@ -557,7 +557,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row"><label for="op_receipt_time">휴대폰 결제일시</label></th>
<td>
<label for="od_hp_chk">현재 시간으로 설정</label>
<input type="checkbox" name="od_hp_chk" id="od_hp_chk" value="<?php echo date("Y-m-d H:i:s", G4_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_hp_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="checkbox" name="od_hp_chk" id="od_hp_chk" value="<?php echo date("Y-m-d H:i:s", G5_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_hp_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="text" name="od_receipt_time" value="<?php echo is_null_time($od['od_receipt_time']) ? "" : $od['od_receipt_time']; ?>" id="op_receipt_time" class="frm_input" size="19" maxlength="19">
</td>
</tr>
@ -568,7 +568,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row" class="sodr_sppay"><label for="od_receipt_price">신용카드 결제액</label></th>
<td>
<input type="text" name="od_receipt_price" value="<?php echo $od['od_receipt_price']; ?>" id="od_receipt_price" class="frm_input" size="10"> 원
<?php $card_url = $g4['shop_cardpg'][$default['de_card_pg']]; ?>
<?php $card_url = $g5['shop_cardpg'][$default['de_card_pg']]; ?>
<a href="<?php echo $card_url; ?>" target="_blank">결제대행사</a>
</td>
</tr>
@ -576,7 +576,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row" class="sodr_sppay"><label for="od_receipt_time">카드 승인일시</label></th>
<td>
<label for="od_card_chk">현재 시간으로 설정</label>
<input type="checkbox" name="od_card_chk" id="od_card_chk" value="<?php echo date("Y-m-d H:i:s", G4_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_card_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="checkbox" name="od_card_chk" id="od_card_chk" value="<?php echo date("Y-m-d H:i:s", G5_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_receipt_time.value=this.form.od_card_chk.value; else this.form.od_receipt_time.value = this.form.od_receipt_time.defaultValue;"><br>
<input type="text" name="od_receipt_time" value="<?php echo is_null_time($od['od_receipt_time']) ? "" : $od['od_receipt_time']; ?>" id="od_receipt_time" class="frm_input" size="19" maxlength="19">
</td>
</tr>
@ -598,7 +598,7 @@ $pg_anchor = '<ul class="anchor">
<select name="dl_id" id="dl_id">
<option value="">배송시 선택하세요.</option>
<?php
$sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
$sql = "select * from {$g5['shop_delivery_table']} order by dl_order desc, dl_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
@ -625,7 +625,7 @@ $pg_anchor = '<ul class="anchor">
<th scope="row"><label for="od_invoice_time">배송일시</label></th>
<td>
<label for="od_invoice_chk">현재 시간으로 설정</label>
<input type="checkbox" name="od_invoice_chk" id="od_invoice_chk" value="<?php echo date("Y-m-d H:i:s", G4_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_invoice_time.value=this.form.od_invoice_chk.value; else this.form.od_invoice_time.value = this.form.od_invoice_time.defaultValue;"><br>
<input type="checkbox" name="od_invoice_chk" id="od_invoice_chk" value="<?php echo date("Y-m-d H:i:s", G5_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.od_invoice_time.value=this.form.od_invoice_chk.value; else this.form.od_invoice_time.value = this.form.od_invoice_time.defaultValue;"><br>
<input type="text" name="od_invoice_time" value="<?php echo is_null_time($od['od_invoice_time']) ? "" : $od['od_invoice_time']; ?>" id="od_invoice_time" class="frm_input" maxlength="19">
</td>
</tr>
@ -728,7 +728,7 @@ $pg_anchor = '<ul class="anchor">
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?php echo G4_BBS_URL; ?>/zip.php?frm_name=frmorderform2&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2" id="od_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_win_zip');
$('<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform2&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2" id="od_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_win_zip');
$("#od_win_zip").css("display", "inline");
$("#od_zip1, #od_zip2, #od_addr1").attr('readonly', 'readonly');
$("#od_zip1, #od_zip2, #od_addr1").addClass('readonly');
@ -784,7 +784,7 @@ $pg_anchor = '<ul class="anchor">
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?php echo G4_BBS_URL; ?>/zip.php?frm_name=frmorderform2&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2" id="od_zip_findb" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_win_zipb');
$('<a href="<?php echo G5_BBS_URL; ?>/zip.php?frm_name=frmorderform2&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2" id="od_zip_findb" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#od_win_zipb');
$("#od_win_zipb").css("display", "inline");
$("#od_b_zip1, #od_b_zip2, #od_b_addr1").attr('readonly', 'readonly');
$("#od_b_zip1, #od_b_zip2, #od_b_addr1").addClass('readonly');
@ -885,5 +885,5 @@ function del_confirm()
</script>
<?php
include_once(G4_ADMIN_PATH.'/admin.tail.php');
include_once(G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -3,7 +3,7 @@ $sub_menu = '400400';
include_once('./_common.php');
if($_POST['mod_type'] == 'info') {
$sql = " update {$g4['shop_order_table']}
$sql = " update {$g5['shop_order_table']}
set od_name = '$od_name',
od_tel = '$od_tel',
od_hp = '$od_hp',
@ -22,7 +22,7 @@ if($_POST['mod_type'] == 'info') {
if ($default['de_hope_date_use'])
$sql .= " , od_hope_date = '$od_hope_date' ";
} else {
$sql = "update {$g4['shop_order_table']}
$sql = "update {$g5['shop_order_table']}
set od_shop_memo = '$od_shop_memo' ";
}
$sql .= " where od_id = '$od_id' ";

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '주문내역';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '주문내역';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = array();
@ -23,19 +23,19 @@ if ($search != "") {
if ($od_status) {
$where[] = " od_status = '$od_status' ";
switch ($od_status) {
case G4_OD_STATUS_ORDER : // 입금확인중
case G5_OD_STATUS_ORDER : // 입금확인중
$sort1 = "od_id";
$sort2 = "desc";
break;
case G4_OD_STATUS_SETTLE : // 결제완료
case G5_OD_STATUS_SETTLE : // 결제완료
$sort1 = "od_receipt_time";
$sort2 = "desc";
break;
case G4_OD_STATUS_READY : // 배송준비중
case G5_OD_STATUS_READY : // 배송준비중
$sort1 = "od_receipt_time";
$sort2 = "desc";
break;
case G4_OD_STATUS_DELIVERY : // 배송중
case G5_OD_STATUS_DELIVERY : // 배송중
$sort1 = "od_invoice_time";
$sort2 = "desc";
break;
@ -52,7 +52,7 @@ if ($sel_field == "") $sel_field = "od_id";
if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['shop_order_table']} $sql_search ";
$sql_common = " from {$g5['shop_order_table']} $sql_search ";
$sql = " select count(od_id) as cnt " . $sql_common;
$row = sql_fetch($sql);
@ -135,8 +135,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
주문상태 :
<ul id="sort_sodr" class="sort_odr">
<li><a href="<?php $_SERVER['PHP_SELF']; ?>?od_status=<?php echo G4_OD_STATUS_ORDER; ?>"><?php echo G4_OD_STATUS_ORDER; ?></a></li>
<li><a href="<?php $_SERVER['PHP_SELF']; ?>?od_status=<?php echo G4_OD_STATUS_SETTLE; ?>"><?php echo G4_OD_STATUS_SETTLE; ?></a></li>
<li><a href="<?php $_SERVER['PHP_SELF']; ?>?od_status=<?php echo G5_OD_STATUS_ORDER; ?>"><?php echo G5_OD_STATUS_ORDER; ?></a></li>
<li><a href="<?php $_SERVER['PHP_SELF']; ?>?od_status=<?php echo G5_OD_STATUS_SETTLE; ?>"><?php echo G5_OD_STATUS_SETTLE; ?></a></li>
</ul>
<table id="sodr_list">
@ -179,7 +179,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$od_cnt = 0;
if ($row['mb_id'])
{
$sql2 = " select count(*) as cnt from {$g4['shop_order_table']} where mb_id = '{$row['mb_id']}' ";
$sql2 = " select count(*) as cnt from {$g5['shop_order_table']} where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
$od_cnt = $row2['cnt'];
}
@ -194,7 +194,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<tr class="orderlist">
<td class="td_odrnum2">
<?php echo $od_mobile; ?>
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>">
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>">
<?php echo $row['od_id']; ?><br>
<span class="sound_only">주문일시 </span><?php echo $row['od_time']; ?>
</a>
@ -245,8 +245,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</table>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '주문통합내역';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '주문통합내역';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -25,7 +25,7 @@ if ($sel_field == "") $sel_field = "od_id";
if ($sort1 == "") $sort1 = "od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['shop_order_table']}
$sql_common = " from {$g5['shop_order_table']}
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@ -138,7 +138,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<dd>
<strong>
<?php echo $od_mobile; ?>
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
</strong>
</dd>
<dt>주문일시</dt>
@ -177,14 +177,14 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<?php
// 상품개별출력
$sql2 = " select it_id, it_name
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$row['od_id']}'
group by it_id
order by ct_id asc ";
$result2 = sql_query($sql2);
for ($k=0;$row2=sql_fetch_array($result2);$k++) { // for 자식 시작
$href = G4_SHOP_URL.'/item.php?it_id='.$row2['it_id'];
$href = G5_SHOP_URL.'/item.php?it_id='.$row2['it_id'];
?>
<div class="sodr_itname">
@ -208,7 +208,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<?php
// 옵션항목
$sql3 = " select *
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$row['od_id']}'
and it_id = '{$row2['it_id']}'
order by io_type asc, ct_id asc ";
@ -290,8 +290,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</table>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -7,7 +7,7 @@ if (!defined("_ORDERMAIL_")) exit;
// 주문자님께 메일발송 체크를 했다면
if ($od_send_mail)
{
$od = sql_fetch(" select * from {$g4['shop_order_table']} where od_id = '$od_id' ");
$od = sql_fetch(" select * from {$g5['shop_order_table']} where od_id = '$od_id' ");
$addmemo = nl2br(stripslashes($addmemo));
@ -18,7 +18,7 @@ if ($od_send_mail)
unset($delivery_list);
$sql = " select *
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$od['od_id']}'
order by ct_id ";
$result = sql_query($sql);
@ -72,7 +72,7 @@ if ($od_send_mail)
// 배송정보
$is_delivery = false;
if ((int)$od[dl_id] > 0) {
$dl = sql_fetch(" select * from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ");
$dl = sql_fetch(" select * from {$g5['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'];
@ -88,7 +88,7 @@ if ($od_send_mail)
if ($is_receipt || $is_delivery)
{
ob_start();
include G4_SHOP_PATH.'/mail/ordermail.mail.php';
include G5_SHOP_PATH.'/mail/ordermail.mail.php';
$content = ob_get_contents();
ob_end_clean();
@ -96,7 +96,7 @@ if ($od_send_mail)
$email = $od['od_email'];
// 메일 보낸 내역 상점메모에 update
$od_shop_memo = G4_TIME_YMDHIS.' - 결제/배송내역 메일발송\n' . $od['od_shop_memo'];
$od_shop_memo = G5_TIME_YMDHIS.' - 결제/배송내역 메일발송\n' . $od['od_shop_memo'];
/* 1.00.06
** 주석처리 - 처리하지 않음
if ($receipt_check)
@ -105,7 +105,7 @@ if ($od_send_mail)
$od_shop_memo .= ", 송장번호";
*/
sql_query(" update {$g4['shop_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
sql_query(" update {$g5['shop_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
$admin = get_admin('super');

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '주문내역출력';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '주문내역출력';
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<section class="cbox">
@ -106,5 +106,5 @@ function forderprintcheck(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -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, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.ct_option, b.ct_send_cost
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
FROM {$g5['shop_order_table']} a, {$g5['shop_cart_table']} b
where a.od_id = b.od_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
@ -98,7 +98,7 @@ if ($csv == 'xls')
$to_date = date_conv($to_date);
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.ct_option, b.ct_send_cost
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
FROM {$g5['shop_order_table']} a, {$g5['shop_cart_table']} b
where a.od_id = b.od_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
@ -116,10 +116,10 @@ if ($csv == 'xls')
php_writeexcel http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
=================================================================================*/
include_once(G4_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_workbook.inc.php');
include_once(G4_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_worksheet.inc.php');
include_once(G5_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_workbook.inc.php');
include_once(G5_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_worksheet.inc.php');
$fname = tempnam(G4_DATA_PATH, "tmp-orderlist.xls");
$fname = tempnam(G5_DATA_PATH, "tmp-orderlist.xls");
$workbook = new writeexcel_workbook($fname);
$worksheet = $workbook->addworksheet();
@ -164,26 +164,26 @@ if ($csv == 'xls')
function get_order($od_id)
{
global $g4;
global $g5;
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
return sql_fetch($sql);
}
$g4['title'] = "주문내역";
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = "주문내역";
include_once(G5_PATH.'/head.sub.php');
if ($case == 1)
{
$fr_date = date_conv($fr_date);
$to_date = date_conv($to_date);
$sql = " SELECT DISTINCT a.od_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
$sql = " SELECT DISTINCT a.od_id FROM {$g5['shop_order_table']} a, {$g5['shop_cart_table']} b
where a.od_id = b.od_id
and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
}
else
{
$sql = " SELECT DISTINCT a.od_id FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
$sql = " SELECT DISTINCT a.od_id FROM {$g5['shop_order_table']} a, {$g5['shop_cart_table']} b
where a.od_id = b.od_id
and a.od_id between '$fr_od_id' and '$to_od_id' ";
}
@ -213,7 +213,7 @@ if (mysql_num_rows($result) == 0)
$tot_total_price = 0;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['shop_order_table']} where od_id = '{$row['od_id']}' ";
$sql1 = " select * from {$g5['shop_order_table']} where od_id = '{$row['od_id']}' ";
$row1 = sql_fetch($sql1);
// 1.03.02
@ -274,7 +274,7 @@ if (mysql_num_rows($result) == 0)
<tbody>
<?php
$sql2 = " select *
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where od_id = '{$row['od_id']}' ";
if ($ct_status)
$sql2 .= " and ct_status = '$ct_status' ";

View File

@ -1,12 +1,12 @@
<?php
$sub_menu = '400400';
include_once('./_common.php');
include_once(G4_LIB_PATH.'/mailer.lib.php');
include_once(G4_LIB_PATH.'/icode.sms.lib.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
include_once(G5_LIB_PATH.'/icode.sms.lib.php');
auth_check($auth[$sub_menu], "w");
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g5['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
if(!$od['od_id'])
@ -23,7 +23,7 @@ $od_misu = ( $od['od_cart_price'] + $od_send_cost + $od_send_cost2 )
- ( $od['od_cart_coupon'] + $od['od_coupon'] + $od['od_send_coupon'] )
- ( $od_receipt_price + $od_receipt_point - $od_refund_price );
$sql = " update {$g4['shop_order_table']}
$sql = " update {$g5['shop_order_table']}
set od_deposit_name = '$od_deposit_name',
od_bank_account = '$od_bank_account',
od_receipt_time = '$od_receipt_time',
@ -57,7 +57,7 @@ if($_POST['od_tno'] && $_POST['od_escrow'] == 1) {
$arr_numb = array();
// 배송회사정보
$sql = " select dl_company from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
$sql = " select dl_company from {$g5['shop_delivery_table']} where dl_id = '$dl_id' ";
$row = sql_fetch($sql);
$arr_tno[0] = $_POST['od_tno'];

View File

@ -29,7 +29,7 @@ if ($default['de_sms_use']) {
{
$sms_contents = $default['de_sms_cont5'];
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
$sql = " select dl_company from $g4[shop_delivery_table] where dl_id = '$dl_id' ";
$sql = " select dl_company from $g5[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);

View File

@ -4,9 +4,9 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '주문개별내역';
if ($sel_field == 'ct_status') $g4['title'] .= ' ('.$search.')';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '주문개별내역';
if ($sel_field == 'ct_status') $g5['title'] .= ' ('.$search.')';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@ -27,9 +27,9 @@ if ($sel_field == "") $sel_field = "a.od_id";
if ($sort1 == "") $sort1 = "a.od_id";
if ($sort2 == "") $sort2 = "desc";
$sql_common = " from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (a.od_id = b.od_id)
left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
$sql_common = " from {$g5['shop_order_table']} a
left join {$g5['shop_cart_table']} b on (a.od_id = b.od_id)
left join {$g5['shop_item_table']} c on (b.it_id = c.it_id)
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@ -109,7 +109,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</form>
<section class="cbox">
<h2><?php echo $g4['title']; ?> 목록</h2>
<h2><?php echo $g5['title']; ?> 목록</h2>
<div class="btn_add sort_with">
<a href="./orderprint.php" class="btn_add_optional">주문내역출력</a>
@ -196,8 +196,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], 'w');
$g4['title'] = '개인결제 복사';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = '개인결제 복사';
include_once(G5_PATH.'/head.sub.php');
$sql = " select * from {$g4['shop_personalpay_table']} where pp_id = '$pp_id' ";
$sql = " select * from {$g5['shop_personalpay_table']} where pp_id = '$pp_id' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
@ -59,5 +59,5 @@ function form_check(f)
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -14,13 +14,13 @@ if(preg_match('/[^0-9]/', $_POST['pp_price']))
alert('주문금액은 숫자만 입력해 주십시오.');
if($_POST['od_id']) {
$sql = " select od_id from {$g4['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$sql = " select od_id from {$g5['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$od = sql_fetch($sql);
if(!$od['od_id'])
alert('입력하신 주문번호는 존재하지 않습니다.');
}
$sql = " select * from {$g4['shop_personalpay_table']} where pp_id = '$pp_id' ";
$sql = " select * from {$g5['shop_personalpay_table']} where pp_id = '$pp_id' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
@ -28,7 +28,7 @@ if(!$row['pp_id'])
$new_pp_id = get_uniqid();
$sql = " insert into {$g4['shop_personalpay_table']}
$sql = " insert into {$g5['shop_personalpay_table']}
set pp_id = '$new_pp_id',
od_id = '{$_POST['od_id']}',
pp_name = '{$_POST['pp_name']}',
@ -36,11 +36,11 @@ $sql = " insert into {$g4['shop_personalpay_table']}
pp_use = '{$row['pp_use']}',
pp_price = '{$_POST['pp_price']}',
pp_ip = '{$_SERVER['REMOTE_ADDR']}',
pp_time = '".G4_TIME_YMDHIS."' ";
pp_time = '".G5_TIME_YMDHIS."' ";
sql_query($sql);
$g4['title'] = '개인결제 복사';
include_once(G4_PATH.'/head.sub.php');
$g5['title'] = '개인결제 복사';
include_once(G5_PATH.'/head.sub.php');
?>
<script>
@ -50,5 +50,5 @@ self.close();
</script>
<?php
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -4,12 +4,12 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$g4['title'] = '개인결제 관리';
$g5['title'] = '개인결제 관리';
if ($w == 'u') {
$html_title = '개인결제 수정';
$sql = " select * from {$g4['shop_personalpay_table']} where pp_id = '$pp_id' ";
$sql = " select * from {$g5['shop_personalpay_table']} where pp_id = '$pp_id' ";
$pp = sql_fetch($sql);
if (!$pp['pp_id']) alert('등록된 자료가 없습니다.');
}
@ -22,10 +22,10 @@ else
$wrp_tag_st = '';
$wrp_tag_end = '';
if($popup == 'yes') { // 팝업창일 때
include_once(G4_PATH.'/head.sub.php');
include_once(G5_PATH.'/head.sub.php');
$pp['od_id'] = $od_id;
$sql = " select od_id, od_name, od_misu
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where od_id = '$od_id' ";
$od = sql_fetch($sql);
@ -40,7 +40,7 @@ if($popup == 'yes') { // 팝업창일 때
$wrp_tag_end = '</div>';
}
else { // 현재페이지일 때
include_once (G4_ADMIN_PATH.'/admin.head.php');
include_once (G5_ADMIN_PATH.'/admin.head.php');
$wrp_tag_st = '<section class="cbox">'.PHP_EOL.'<h2>'.$html_title.'</h2>';
$wrp_tag_end = '</section>';
}
@ -100,7 +100,7 @@ else { // 현재페이지일 때
<th scope="row"><label for="pp_receipt_time">결제일시</label></th>
<td>
<label for="pp_receipt_chk">현재 시간으로 설정</label>
<input type="checkbox" name="pp_receipt_chk" id="pp_receipt_chk" value="<?php echo date("Y-m-d H:i:s", G4_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.pp_receipt_time.value=this.form.pp_receipt_chk.value; else this.form.pp_receipt_time.value = this.form.pp_receipt_time.defaultValue;"><br>
<input type="checkbox" name="pp_receipt_chk" id="pp_receipt_chk" value="<?php echo date("Y-m-d H:i:s", G5_SERVER_TIME); ?>" onclick="if (this.checked == true) this.form.pp_receipt_time.value=this.form.pp_receipt_chk.value; else this.form.pp_receipt_time.value = this.form.pp_receipt_time.defaultValue;"><br>
<input type="text" name="pp_receipt_time" value="<?php echo is_null_time($pp['pp_receipt_time']) ? "" : $pp['pp_receipt_time']; ?>" id="pp_receipt_time" class="frm_input" maxlength="19">
</td>
</tr>
@ -154,7 +154,7 @@ function del_confirm()
<?php
if($popup == 'yes')
include_once(G4_PATH.'/tail.sub.php');
include_once(G5_PATH.'/tail.sub.php');
else
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -5,12 +5,12 @@ include_once('./_common.php');
if($w == 'd') {
auth_check($auth[$sub_menu], 'd');
$sql = " select pp_id from {$g4['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ";
$sql = " select pp_id from {$g5['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
alert('삭제하시려는 자료가 존재하지 않습니다.');
sql_query(" delete from {$g4['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ");
sql_query(" delete from {$g5['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ");
goto_url('./personalpaylist.php?'.$qstr);
} else {
@ -26,7 +26,7 @@ if($w == 'd') {
alert('주문금액은 숫자만 입력해 주십시오.');
if($_POST['od_id']) {
$sql = " select od_id from {$g4['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$sql = " select od_id from {$g5['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$row = sql_fetch($sql);
if(!$row['od_id'])
alert('입력하신 주문번호는 존재하지 않는 주문 자료입니다.');
@ -45,19 +45,19 @@ if($w == 'd') {
if($w == '') {
$pp_id = get_uniqid();
$sql = " insert into {$g4['shop_personalpay_table']}
$sql = " insert into {$g5['shop_personalpay_table']}
set pp_id = '$pp_id',
$sql_common ,
pp_ip = '{$_SERVER['REMOTE_ADDR']}',
pp_time = '".G4_TIME_YMDHIS."' ";
pp_time = '".G5_TIME_YMDHIS."' ";
sql_query($sql);
} else if($w == 'u') {
$sql = " select pp_id from {$g4['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' ";
$sql = " select pp_id from {$g5['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
alert('수정하시려는 자료가 존재하지 않습니다.');
$sql = " update {$g4['shop_personalpay_table']}
$sql = " update {$g5['shop_personalpay_table']}
set $sql_common
where pp_id = '{$_POST['pp_id']}' ";
sql_query($sql);

View File

@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], "r");
$token = get_token();
$sql_common = " from {$g4['shop_personalpay_table']} ";
$sql_common = " from {$g5['shop_personalpay_table']} ";
$sql_search = " where (1) ";
if ($stx) {
@ -50,8 +50,8 @@ $sql = " select *
limit {$from_record}, {$rows} ";
$result = sql_query($sql);
$g4['title'] = '개인결제 관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '개인결제 관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$colspan = 8;
?>
@ -157,7 +157,7 @@ $colspan = 8;
</form>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
$(function() {
@ -186,5 +186,5 @@ function fpersonalpaylist_submit(f)
</script>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -17,7 +17,7 @@ for ($i=0; $i<$count; $i++)
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = " delete from {$g4['shop_personalpay_table']} where pp_id = '{$_POST['pp_id'][$k]}' ";
$sql = " delete from {$g5['shop_personalpay_table']} where pp_id = '{$_POST['pp_id'][$k]}' ";
sql_query($sql);
}

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '가격비교사이트';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '가격비교사이트';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$pg_anchor = '<ul class="anchor">
<li><a href="#anc_pricecompare_info">가격비교사이트 연동 안내</a></li>
<li><a href="#anc_pricecompare_engine">사이트별 엔진페이지 URL</a></li>
@ -33,58 +33,58 @@ $pg_anchor = '<ul class="anchor">
<dd>
<ul>
<li>입점 안내 : <a href="http://shopping.naver.com/join/index.nhn" target="_blank">http://shopping.naver.com/join/index.nhn</a></li>
<li>전체상품 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/naver.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/naver.php</a></li>
<li>요약상품 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/naver_summary.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/naver_summary.php</a></li>
<li>신규상품 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/naver_new.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/naver_new.php</a></li>
<li>신규요약 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/naver_new_summary.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/naver_new_summary.php</a></li>
<li>전체상품 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/naver.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/naver.php</a></li>
<li>요약상품 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/naver_summary.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/naver_summary.php</a></li>
<li>신규상품 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/naver_new.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/naver_new.php</a></li>
<li>신규요약 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/naver_new_summary.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/naver_new_summary.php</a></li>
</ul>
</dd>
<dt><a href="http://shopping.daum.net/" target="_blank">다음 쇼핑하우</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://commerceone.biz.daum.net/join/intro.daum" target="_blank">http://commerceone.biz.daum.net/join/intro.daum</a></li>
<li>전체상품 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/daum.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/daum.php</a></li>
<li>전체상품 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/daum.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/daum.php</a></li>
</ul>
</dd>
<dt><a href="http://www.about.co.kr/" target="_blank">어바웃</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://member.about.co.kr/LaunchIntroduce/Default.aspx" target="_blank">http://member.about.co.kr/LaunchIntroduce/Default.aspx</a></li>
<li>전체EP URL : <a href="<?php echo G4_SHOP_URL; ?>/price/about.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/about.php</a></li>
<li>요약EP URL : <a href="<?php echo G4_SHOP_URL; ?>/price/about_new.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/about_new.php</a></li>
<li>전체EP URL : <a href="<?php echo G5_SHOP_URL; ?>/price/about.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/about.php</a></li>
<li>요약EP URL : <a href="<?php echo G5_SHOP_URL; ?>/price/about_new.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/about_new.php</a></li>
</ul>
</dd>
<dt><a href="http://www.danawa.co.kr" target="_blank">다나와</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://pc.danawa.com/contact/contactus.html" target="_blank">http://pc.danawa.com/contact/contactus.html</a></li>
<li>엔진페이지 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/danawa.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/danawa.php</a></li>
<li>엔진페이지 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/danawa.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/danawa.php</a></li>
</ul>
</dd>
<dt><a href="http://www.bb.co.kr" target="_blank">비비</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://www.bb.co.kr/mainbbr/regist/entry_kcp1.php?partner=kcp" target="_blank">http://www.bb.co.kr/mainbbr/regist/entry_kcp1.php?partner=kcp</a></li>
<li>엔진페이지 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/bb.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/bb.php</a></li>
<li>엔진페이지 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/bb.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/bb.php</a></li>
</ul>
</dd>
<dt><a href="http://www.enuri.com" target="_blank">에누리</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://www.enuri.com/MallRegister/MallRegister.asp" target="_blank">http://www.enuri.com/MallRegister/MallRegister.asp</a></li>
<li>엔진페이지 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/enuri_list.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/enuri_list.php</a></li>
<li>엔진페이지 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/enuri_list.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/enuri_list.php</a></li>
</ul>
</dd>
<dt><a href="http://www.mymargin.com" target="_blank">마이마진</a></dt>
<dd>
<ul>
<li>입점 안내 : <a href="http://www.mymargin.com/shop_admin/reg/process_su.asp" target="_blank">http://www.mymargin.com/shop_admin/reg/process_su.asp</a></li>
<li>엔진페이지 URL : <a href="<?php echo G4_SHOP_URL; ?>/price/mymargin.php" target="_blank"><?php echo G4_SHOP_URL; ?>/price/mymargin.php</a></li>
<li>엔진페이지 URL : <a href="<?php echo G5_SHOP_URL; ?>/price/mymargin.php" target="_blank"><?php echo G5_SHOP_URL; ?>/price/mymargin.php</a></li>
</ul>
</dd>
</dl>
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '매출현황';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '매출현황';
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<section id="ssale_stats" class="cbox">
@ -14,7 +14,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<div>
<h3>일일 매출현황</h3>
<form name="frm_sale_today" action="./sale1today.php" method="get">
<input type="text" name="date" value="<?php echo date("Ymd", G4_SERVER_TIME); ?>" id="date" class="frm_input" size="8" maxlength="8">
<input type="text" name="date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="date" class="frm_input" size="8" maxlength="8">
<label for="date">일 하루</label>
<input type="submit" value="확인" class="btn_submit">
</form>
@ -23,9 +23,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<div>
<h3>일간 매출현황</h3>
<form name="frm_sale_date" action="./sale1date.php" method="get">
<input type="text" name="fr_date" value="<?php echo date("Ym01", G4_SERVER_TIME); ?>" id="fr_date" class="frm_input" size="8" maxlength="8">
<input type="text" name="fr_date" value="<?php echo date("Ym01", G5_SERVER_TIME); ?>" id="fr_date" class="frm_input" size="8" maxlength="8">
<label for="fr_date">일 부터</label>
<input type="text" name="to_date" value="<?php echo date("Ymd", G4_SERVER_TIME); ?>" id="to_date" class="frm_input" size="8" maxlength="8">
<input type="text" name="to_date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="to_date" class="frm_input" size="8" maxlength="8">
<label for="to_date">일 까지</label>
<input type="submit" value="확인" class="btn_submit">
</form>
@ -34,9 +34,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<div>
<h3>월간 매출현황</h3>
<form name="frm_sale_month" action="./sale1month.php" method="get">
<input type="text" name="fr_month" value="<?php echo date("Y01", G4_SERVER_TIME); ?>" id="fr_month" class="frm_input" size="6" maxlength="6">
<input type="text" name="fr_month" value="<?php echo date("Y01", G5_SERVER_TIME); ?>" id="fr_month" class="frm_input" size="6" maxlength="6">
<label for="fr_month">월 부터</label>
<input type="text" name="to_month" value="<?php echo date("Ym", G4_SERVER_TIME); ?>" id="to_month" class="frm_input" size="6" maxlength="6">
<input type="text" name="to_month" value="<?php echo date("Ym", G5_SERVER_TIME); ?>" id="to_month" class="frm_input" size="6" maxlength="6">
<label for="to_month">월 까지</label>
<input type="submit" value="확인" class="btn_submit">
</form>
@ -45,9 +45,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<div>
<h3>연간 매출현황</h3>
<form name="frm_sale_year" action="./sale1year.php" method="get">
<input type="text" name="fr_year" value="<?php echo date("Y", G4_SERVER_TIME)-1; ?>" id="fr_year" class="frm_input" size="4" maxlength="4">
<input type="text" name="fr_year" value="<?php echo date("Y", G5_SERVER_TIME)-1; ?>" id="fr_year" class="frm_input" size="4" maxlength="4">
<label for="fr_year">년 부터</label>
<input type="text" name="to_year" value="<?php echo date("Y", G4_SERVER_TIME); ?>" id="to_year" class="frm_input" size="4" maxlength="4">
<input type="text" name="to_year" value="<?php echo date("Y", G5_SERVER_TIME); ?>" id="to_year" class="frm_input" size="4" maxlength="4">
<label for="to_year">년 까지</label>
<input type="submit" value="확인" class="btn_submit">
</form>
@ -56,5 +56,5 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -7,8 +7,8 @@ auth_check($auth[$sub_menu], "r");
$fr_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $fr_date);
$to_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $to_date);
$g4['title'] = "$fr_date ~ $to_date 일간 매출현황";
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = "$fr_date ~ $to_date 일간 매출현황";
include_once (G5_ADMIN_PATH.'/admin.head.php');
function print_line($save)
{
@ -39,7 +39,7 @@ $sql = " select od_id,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where SUBSTRING(od_time,1,10) between '$fr_date' and '$to_date'
order by od_time desc ";
$result = sql_query($sql);
@ -124,5 +124,5 @@ $result = sql_query($sql);
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -7,8 +7,8 @@ auth_check($auth[$sub_menu], "r");
$fr_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_month);
$to_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_month);
$g4['title'] = "$fr_month ~ $to_month 월간 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 month로 바꿈 김혜련 2013-04-04*/
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = "$fr_month ~ $to_month 월간 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 month로 바꿈 김혜련 2013-04-04*/
include_once (G5_ADMIN_PATH.'/admin.head.php');
function print_line($save)
{
@ -40,7 +40,7 @@ $sql = " select od_id,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where SUBSTRING(od_time,1,7) between '$fr_month' and '$to_month'
order by od_time desc ";
$result = sql_query($sql);
@ -126,5 +126,5 @@ $result = sql_query($sql);
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -6,8 +6,8 @@ auth_check($auth[$sub_menu], "r");
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $date);
$g4['title'] = "$date 일 매출현황";
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = "$date 일 매출현황";
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql = " select od_id,
mb_id,
@ -20,7 +20,7 @@ $sql = " select od_id,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where SUBSTRING(od_time,1,10) = '$date'
order by od_id desc ";
$result = sql_query($sql);
@ -105,5 +105,5 @@ $result = sql_query($sql);
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = "$fr_year ~ $to_year 연간 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 year로 바꿈 김혜련 2013-04-04*/
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = "$fr_year ~ $to_year 연간 매출현황"; /*레이블 중복 인식과 페이지와의 연결 때문에 year로 바꿈 김혜련 2013-04-04*/
include_once (G5_ADMIN_PATH.'/admin.head.php');
function print_line($save)
{
@ -35,7 +35,7 @@ $sql = " select od_id,
od_misu,
(od_cart_price + od_send_cost + od_send_cost2) as orderprice,
(od_cart_coupon + od_coupon + od_send_coupon) as couponprice
from {$g4['shop_order_table']}
from {$g5['shop_order_table']}
where SUBSTRING(od_time,1,4) between '$fr_year' and '$to_year'
order by od_time desc ";
$result = sql_query($sql);
@ -120,5 +120,5 @@ $result = sql_query($sql);
</section>
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], "r");
$token = get_token();
$sql_common = " from {$g4['shop_sendcost_table']} ";
$sql_common = " from {$g5['shop_sendcost_table']} ";
$sql_search = " where (1) ";
$sql_order = " order by sc_id desc ";
@ -30,8 +30,8 @@ $sql = " select *
limit {$from_record}, {$rows} ";
$result = sql_query($sql);
$g4['title'] = '추가배송비관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$g5['title'] = '추가배송비관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<section id="scp_list" class="cbox">
@ -82,7 +82,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</form>
</section>
<?php echo get_paging(G4_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<section id="sendcost_postal" class="cbox">
<h2>추가배송비 등록</h2>
@ -157,5 +157,5 @@ function fsendcost_submit(f)
</script>
<?php
include_once(G4_ADMIN_PATH.'/admin.tail.php');
include_once(G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -16,7 +16,7 @@ if($w == 'd') {
for($i=0; $i<$count; $i++) {
if($_POST['chk'][$i]) {
$sc_id = $_POST['sc_id'][$i];
sql_query(" delete from {$g4['shop_sendcost_table']} where sc_id = '$sc_id' ");
sql_query(" delete from {$g5['shop_sendcost_table']} where sc_id = '$sc_id' ");
}
}
} else {
@ -34,7 +34,7 @@ if($w == 'd') {
if(!$sc_price)
alert('추가배송비를 입력해 주십시오.');
$sql = " insert into {$g4['shop_sendcost_table']}
$sql = " insert into {$g5['shop_sendcost_table']}
( sc_name, sc_zip1, sc_zip2, sc_price )
values
( '$sc_name', '$sc_zip1', '$sc_zip2', '$sc_price' ) ";

Some files were not shown because too many files have changed in this diff Show More