테마기능 추가
This commit is contained in:
@ -1,10 +1,17 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if($type == 'mobile')
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||
else
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||
if($type == 'mobile') {
|
||||
if(preg_match('#^theme/(.+)$#', $dir, $match))
|
||||
$skin_dir = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||
} else {
|
||||
if(preg_match('#^theme/(.+)$#', $dir, $match))
|
||||
$skin_dir = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
||||
}
|
||||
|
||||
echo get_list_skin_options("^list.[0-9]+\.skin\.php", $skin_dir, $sval);
|
||||
?>
|
||||
@ -118,13 +118,21 @@ if(!sql_query(" select ca_mobile_list_row from {$g5['g5_shop_category_table']} l
|
||||
// 스킨 Path
|
||||
if(!$ca['ca_skin_dir'])
|
||||
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
||||
else
|
||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||
else {
|
||||
if(preg_match('#^theme/(.+)$#', $ca['ca_skin_dir'], $match))
|
||||
$g5_shop_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||
}
|
||||
|
||||
if(!$ca['ca_mobile_skin_dir'])
|
||||
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
||||
else
|
||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
else {
|
||||
if(preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match))
|
||||
$g5_mshop_skin_path = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||
}
|
||||
?>
|
||||
|
||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
||||
@ -191,29 +199,13 @@ else
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_skin_dir">PC용 스킨명</label></th>
|
||||
<td colspan="3">
|
||||
<select name="ca_skin_dir" id="ca_skin_dir">
|
||||
<?php
|
||||
$arr = get_skin_dir('shop');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($ca['ca_skin_dir'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_skin_select('shop', 'ca_skin_dir', 'ca_skin_dir', $ca['ca_skin_dir']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_mobile_skin_dir">모바일용 스킨명</label></th>
|
||||
<td colspan="3">
|
||||
<select name="ca_mobile_skin_dir" id="ca_mobile_skin_dir">
|
||||
<?php
|
||||
$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($ca['ca_mobile_skin_dir'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_mobile_skin_select('shop', 'ca_mobile_skin_dir', 'ca_mobile_skin_dir', $ca['ca_mobile_skin_dir']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -238,7 +230,7 @@ else
|
||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
||||
<td>
|
||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_shop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
||||
<select id="ca_skin" name="ca_skin">
|
||||
<select id="ca_skin" name="ca_skin" required class="required">
|
||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $ca['ca_skin']); ?>
|
||||
</select>
|
||||
</td>
|
||||
@ -275,7 +267,7 @@ else
|
||||
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
||||
<td>
|
||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_mshop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
||||
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
||||
<select id="ca_mobile_skin" name="ca_mobile_skin" required class="required">
|
||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $ca['ca_mobile_skin']); ?>
|
||||
</select>
|
||||
</td>
|
||||
@ -343,7 +335,7 @@ else
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
<?php echo preg_replace('#</div>$#i', '<button type="button" class="shop_category">테마설정 가져오기</button></div>', $frm_submit); ?>
|
||||
|
||||
<section id="anc_scatefrm_optional">
|
||||
<h2 class="h2_frm">선택 입력</h2>
|
||||
@ -533,6 +525,35 @@ function fcategoryformcheck(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$(".shop_category").on("click", function() {
|
||||
if(!confirm("현재 테마의 스킨, 이미지 사이즈 등의 설정을 적용하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../theme_config_load.php",
|
||||
cache: false,
|
||||
async: false,
|
||||
data: { type: 'shop_category' },
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.each(data, function(key, val) {
|
||||
if(key == "error")
|
||||
return true;
|
||||
|
||||
$("#"+key).val(val);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/*document.fcategoryform.ca_name.focus(); 포커스 해제*/
|
||||
</script>
|
||||
|
||||
|
||||
@ -7,19 +7,6 @@ auth_check($auth[$sub_menu], "r");
|
||||
$g5['title'] = '분류관리';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
// 스킨 DIR
|
||||
$skin_dir = '<option value="">선택</option>'.PHP_EOL;
|
||||
$arr = get_skin_dir('shop');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
$skin_dir .= '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$mskin_dir = '<option value="">선택</option>'.PHP_EOL;
|
||||
$arr = get_skin_dir('shop', G5_MOBILE_PATH.'/'.G5_SKIN_DIR);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
$mskin_dir .= '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$where = " where ";
|
||||
$sql_search = "";
|
||||
if ($stx != "") {
|
||||
@ -162,13 +149,21 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
||||
// 스킨 Path
|
||||
if(!$row['ca_skin_dir'])
|
||||
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
||||
else
|
||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_skin_dir'];
|
||||
else {
|
||||
if(preg_match('#^theme/(.+)$#', $row['ca_skin_dir'], $match))
|
||||
$g5_shop_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_skin_dir'];
|
||||
}
|
||||
|
||||
if(!$row['ca_mobile_skin_dir'])
|
||||
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
||||
else
|
||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_mobile_skin_dir'];
|
||||
else {
|
||||
if(preg_match('#^theme/(.+)$#', $row['ca_mobile_skin_dir'], $match))
|
||||
$g5_mshop_skin_path = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
||||
else
|
||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_mobile_skin_dir'];
|
||||
}
|
||||
|
||||
$bg = 'bg'.($i%2);
|
||||
?>
|
||||
@ -197,9 +192,7 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
||||
</td>
|
||||
<td headers="sct_pcskin">
|
||||
<label for="ca_skin_dir<?php echo $i; ?>" class="sound_only">PC스킨폴더</label>
|
||||
<select id="ca_skin_dir<?php echo $i; ?>" name="ca_skin_dir[<?php echo $i; ?>]" class="skin_dir">
|
||||
<?php echo conv_selected_option($skin_dir, $row['ca_skin_dir']); ?>
|
||||
</select>
|
||||
<?php echo get_skin_select('shop', 'ca_skin_dir'.$i, 'ca_skin_dir['.$i.']', $row['ca_skin_dir'], 'class="skin_dir"'); ?>
|
||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]" required class="required">
|
||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $row['ca_skin']); ?>
|
||||
@ -244,9 +237,7 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목
|
||||
</td>
|
||||
<td headers="sct_mskin">
|
||||
<label for="ca_mobile_skin_dir<?php echo $i; ?>" class="sound_only">모바일스킨폴더</label>
|
||||
<select id="ca_mobile_skin_dir<?php echo $i; ?>" name="ca_mobile_skin_dir[<?php echo $i; ?>]" class="skin_dir">
|
||||
<?php echo conv_selected_option($mskin_dir, $row['ca_mobile_skin_dir']); ?>
|
||||
</select>
|
||||
<?php echo get_mobile_skin_select('shop', 'ca_mobile_skin_dir'.$i, 'ca_mobile_skin_dir['.$i.']', $row['ca_mobile_skin_dir'], 'class="skin_dir"'); ?>
|
||||
<label for="ca_mobile_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
||||
<select id="ca_mobile_skin<?php echo $i; ?>" name="ca_mobile_skin[<?php echo $i; ?>]" required class="required">
|
||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $row['ca_mobile_skin']); ?>
|
||||
|
||||
@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], "r");
|
||||
if (!$config['cf_icode_server_ip']) $config['cf_icode_server_ip'] = '211.172.232.124';
|
||||
if (!$config['cf_icode_server_port']) $config['cf_icode_server_port'] = '7295';
|
||||
|
||||
if ($config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
$userinfo = get_icode_userinfo($config['cf_icode_id'], $config['cf_icode_pw']);
|
||||
}
|
||||
|
||||
@ -17,7 +17,6 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$pg_anchor = '<ul class="anchor">
|
||||
<li><a href="#anc_scf_info">사업자정보</a></li>
|
||||
<li><a href="#anc_scf_lay">레이아웃 설정</a></li>
|
||||
<li><a href="#anc_scf_skin">스킨설정</a></li>
|
||||
<li><a href="#anc_scf_index">쇼핑몰 초기화면</a></li>
|
||||
<li><a href="#anc_mscf_index">모바일 초기화면</a></li>
|
||||
@ -32,24 +31,12 @@ $frm_submit = '<div class="btn_confirm01 btn_confirm">
|
||||
<a href="'.G5_SHOP_URL.'">쇼핑몰</a>
|
||||
</div>';
|
||||
|
||||
// index 선택 설정 필드추가
|
||||
if(!isset($default['de_root_index_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_root_index_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_admin_info_email` ", true);
|
||||
}
|
||||
|
||||
// 무이자 할부 사용설정 필드 추가
|
||||
if(!isset($default['de_card_noint_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_card_noint_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_card_use` ", true);
|
||||
}
|
||||
|
||||
// 레이아웃 선택 설정 필드추가
|
||||
if(!isset($default['de_shop_layout_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `de_root_index_use` ", true);
|
||||
}
|
||||
|
||||
// 모바일 관련상품 설정 필드추가
|
||||
if(!isset($default['de_mobile_rel_list_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
@ -88,15 +75,6 @@ if(!isset($default['de_inicis_mid'])) {
|
||||
}
|
||||
|
||||
|
||||
// 레이아웃 파일 필드 추가
|
||||
if(!isset($default['de_include_index'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_include_index` varchar(255) NOT NULL DEFAULT '' AFTER `de_admin_info_email`,
|
||||
ADD `de_include_head` varchar(255) NOT NULL DEFAULT '' AFTER `de_include_index`,
|
||||
ADD `de_include_tail` varchar(255) NOT NULL DEFAULT '' AFTER `de_include_head` ", true);
|
||||
|
||||
}
|
||||
|
||||
// 모바일 초기화면 이미지 줄 수 필드 추가
|
||||
if(!isset($default['de_mobile_type1_list_row'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
@ -201,70 +179,6 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
|
||||
<section id="anc_scf_lay">
|
||||
<h2 class="h2_frm">레이아웃 설정</h2>
|
||||
<?php echo $pg_anchor; ?>
|
||||
<div class="local_desc02 local_desc">
|
||||
<p>기본 설정된 파일 등을 변경할 수 있습니다.</p>
|
||||
</div>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<caption>레이아웃 설정</caption>
|
||||
<colgroup>
|
||||
<col class="grid_4">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_include_index">초기화면 파일</label></th>
|
||||
<td>
|
||||
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/index.php가 초기화면 파일로 설정됩니다.<br>초기화면 파일은 '.G5_SHOP_DIR.'/index.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||
<input type="text" name="de_include_index" value="<?php echo $default['de_include_index'] ?>" id="de_include_index" class="frm_input" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_include_head">상단 파일</label></th>
|
||||
<td>
|
||||
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/shop.head.php가 상단 파일로 설정됩니다.<br>상단 파일은 '.G5_SHOP_DIR.'/shop.head.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||
<input type="text" name="de_include_head" value="<?php echo $default['de_include_head'] ?>" id="de_include_head" class="frm_input" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_include_tail">하단 파일</label></th>
|
||||
<td>
|
||||
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/shop.tail.php가 하단 파일로 설정됩니다.<br>하단 파일은 '.G5_SHOP_DIR.'/shop.tail.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||
<input type="text" name="de_include_tail" value="<?php echo $default['de_include_tail'] ?>" id="de_include_tail" class="frm_input" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_root_index_use">루트 index 사용</label></th>
|
||||
<td>
|
||||
<?php echo help('쇼핑몰의 접속경로를 '.G5_SHOP_URL.' 에서 '.G5_URL.' 으로 변경하시려면 사용으로 설정해 주십시오.'); ?>
|
||||
<select name="de_root_index_use" id="de_root_index_use">
|
||||
<option value="0" <?php echo get_selected($default['de_root_index_use'], 0); ?>>사용안함</option>
|
||||
<option value="1" <?php echo get_selected($default['de_root_index_use'], 1); ?>>사용</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_shop_layout_use">쇼핑몰 레이아웃 사용</label></th>
|
||||
<td>
|
||||
<?php echo help('커뮤니티의 레이아웃을 쇼핑몰과 동일하게 적용하시려면 사용으로 설정해 주십시오.'); ?>
|
||||
<select name="de_shop_layout_use" id="de_shop_layout_use">
|
||||
<option value="0" <?php echo get_selected($default['de_shop_layout_use'], 0); ?>>사용안함</option>
|
||||
<option value="1" <?php echo get_selected($default['de_shop_layout_use'], 1); ?>>사용</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
|
||||
<section id="anc_scf_skin">
|
||||
<h2 class="h2_frm">스킨설정</h2>
|
||||
<?php echo $pg_anchor; ?>
|
||||
@ -283,29 +197,13 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
<tr>
|
||||
<th scope="row"><label for="de_shop_skin">PC용 스킨</label></th>
|
||||
<td colspan="3">
|
||||
<select name="de_shop_skin" id="de_shop_skin" required class="required">
|
||||
<?php
|
||||
$arr = get_skin_dir('shop');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($default['de_shop_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_skin_select('shop', 'de_shop_skin', 'de_shop_skin', $default['de_shop_skin'], 'required'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_shop_mobile_skin">모바일용 스킨</label></th>
|
||||
<td colspan="3">
|
||||
<select name="de_shop_mobile_skin" id="de_shop_mobile_skin" required class="required">
|
||||
<?php
|
||||
$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";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_mobile_skin_select('shop', 'de_shop_mobile_skin', 'de_shop_mobile_skin', $default['de_shop_mobile_skin'], 'required'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -313,7 +211,7 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
<?php echo preg_replace('#</div>$#i', '<button type="button" class="get_shop_skin">테마 스킨설정 가져오기</button></div>', $frm_submit); ?>
|
||||
|
||||
<section id="anc_scf_index">
|
||||
<h2 class="h2_frm">쇼핑몰 초기화면</h2>
|
||||
@ -433,7 +331,7 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
<?php echo preg_replace('#</div>$#i', '<button type="button" class="shop_pc_index">테마설정 가져오기</button></div>', $frm_submit); ?>
|
||||
|
||||
<section id="anc_mscf_index">
|
||||
<h2 class="h2_frm">모바일 쇼핑몰 초기화면 설정</h2>
|
||||
@ -552,7 +450,7 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
<?php echo preg_replace('#</div>$#i', '<button type="button" class="shop_mobile_index">테마설정 가져오기</button></div>', $frm_submit); ?>
|
||||
|
||||
<section id ="anc_scf_payment">
|
||||
<h2 class="h2_frm">결제설정</h2>
|
||||
@ -1203,7 +1101,7 @@ if(!isset($default['de_mobile_search_list_row'])) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php echo $frm_submit; ?>
|
||||
<?php echo preg_replace('#</div>$#i', '<button type="button" class="shop_etc">테마설정 가져오기</button></div>', $frm_submit); ?>
|
||||
|
||||
<?php if (file_exists($logo_img) || file_exists($logo_img2) || file_exists($mobile_logo_img) || file_exists($mobile_logo_img2)) { ?>
|
||||
<script>
|
||||
@ -1469,7 +1367,74 @@ $(function() {
|
||||
} else {
|
||||
$cf_cardtest_btn.text("테스트결제 팁 더보기");
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$(".get_shop_skin").on("click", function() {
|
||||
if(!confirm("현재 테마의 쇼핑몰 스킨 설정을 적용하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../theme_config_load.php",
|
||||
cache: false,
|
||||
async: false,
|
||||
data: { type: "shop_skin" },
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
var field = Array('de_shop_skin', 'de_shop_mobile_skin');
|
||||
var count = field.length;
|
||||
var key;
|
||||
|
||||
for(i=0; i<count; i++) {
|
||||
key = field[i];
|
||||
|
||||
if(data[key] != undefined && data[key] != "")
|
||||
$("select[name="+key+"]").val(data[key]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(".shop_pc_index, .shop_mobile_index, .shop_etc").on("click", function() {
|
||||
if(!confirm("현재 테마의 스킨, 이미지 사이즈 등의 설정을 적용하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
var type = $(this).attr("class");
|
||||
var $el;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../theme_config_load.php",
|
||||
cache: false,
|
||||
async: false,
|
||||
data: { type: type },
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.each(data, function(key, val) {
|
||||
if(key == "error")
|
||||
return true;
|
||||
|
||||
$el = $("#"+key);
|
||||
|
||||
if($el[0].type == "checkbox") {
|
||||
$el.attr("checked", parseInt(val) ? true : false);
|
||||
return true;
|
||||
}
|
||||
$el.val(val);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -41,11 +41,6 @@ $sql = " update {$g5['g5_shop_default_table']}
|
||||
de_admin_company_addr = '{$_POST['de_admin_company_addr']}',
|
||||
de_admin_info_name = '{$_POST['de_admin_info_name']}',
|
||||
de_admin_info_email = '{$_POST['de_admin_info_email']}',
|
||||
de_include_index = '{$_POST['de_include_index']}',
|
||||
de_include_head = '{$_POST['de_include_head']}',
|
||||
de_include_tail = '{$_POST['de_include_tail']}',
|
||||
de_root_index_use = '{$_POST['de_root_index_use']}',
|
||||
de_shop_layout_use = '{$_POST['de_shop_layout_use']}',
|
||||
de_shop_skin = '{$_POST['de_shop_skin']}',
|
||||
de_shop_mobile_skin = '{$_POST['de_shop_mobile_skin']}',
|
||||
de_type1_list_use = '{$_POST['de_type1_list_use']}',
|
||||
|
||||
@ -280,7 +280,7 @@ function get_max_value($arr)
|
||||
$option_noti = (int)$row['cnt'];
|
||||
|
||||
// SMS 정보
|
||||
if ($config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
$userinfo = get_icode_userinfo($config['cf_icode_id'], $config['cf_icode_pw']);
|
||||
}
|
||||
?>
|
||||
|
||||
@ -31,10 +31,6 @@ else
|
||||
$ev['ev_mobile_skin'] = 'list.10.skin.php';
|
||||
$ev['ev_use'] = 1;
|
||||
|
||||
// 1.03.00
|
||||
// 입력일 경우 기본값으로 대체
|
||||
//$ev['ev_img_width'] = $default['de_simg_width'];
|
||||
//$ev['ev_img_height'] = $default['de_simg_height'];
|
||||
$ev['ev_img_width'] = 230;
|
||||
$ev['ev_img_height'] = 230;
|
||||
$ev['ev_list_mod'] = 3;
|
||||
@ -42,6 +38,7 @@ else
|
||||
$ev['ev_mobile_img_width'] = 230;
|
||||
$ev['ev_mobile_img_height'] = 230;
|
||||
$ev['ev_mobile_list_mod'] = 3;
|
||||
$ev['ev_mobile_list_row'] = 5;
|
||||
}
|
||||
|
||||
// 분류리스트
|
||||
@ -62,6 +59,12 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$category_select .= "<option value=\"{$row['ca_id']}\">$nbsp{$row['ca_name']}</option>\n";
|
||||
}
|
||||
|
||||
// 모바일 1줄당 이미지수 필드 추가
|
||||
if(!sql_query(" select ev_mobile_list_row from {$g5['g5_shop_event_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_event_table']}`
|
||||
ADD `ev_mobile_list_row` int(11) NOT NULL DEFAULT '0' AFTER `ev_mobile_list_mod` ", true);
|
||||
}
|
||||
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
@ -84,6 +87,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<td>
|
||||
<span class="frm_ev_id"><?php echo $ev_id; ?></span>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/event.php?ev_id=<?php echo $ev['ev_id']; ?>" class="btn_frmline">이벤트바로가기</a>
|
||||
<button type="button" class="btn_frmline shop_event">테마설정 가져오기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -120,7 +124,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<tr>
|
||||
<th scope="row"><label for="ev_list_mod">1줄당 이미지 수</label></th>
|
||||
<td>
|
||||
<?php echo help("1행에 설정한 값만큼의 상품을 출력합니다. 스킨 설정에 따라 1행에 하나의 상품만 출력할 수도 있습니다.", 50); ?>
|
||||
<?php echo help("1행에 설정한 값만큼의 상품을 출력합니다. 스킨 설정에 따라 1행에 하나의 상품만 출력할 수도 있습니다."); ?>
|
||||
<input type="text" name="ev_list_mod" value="<?php echo $ev['ev_list_mod']; ?>" id="ev_list_mod" required class="required frm_input" size="3"> 개
|
||||
</td>
|
||||
</tr>
|
||||
@ -144,12 +148,19 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ev_mobile_list_mod">모바일 이미지 수</label></th>
|
||||
<th scope="row"><label for="ev_mobile_list_mod">모바일 1줄당 이미지 수</label></th>
|
||||
<td>
|
||||
<?php echo help("한 페이지에 출력할 이미지 수를 설정합니다."); ?>
|
||||
<?php echo help("1행에 설정한 값만큼의 상품을 출력합니다. 스킨 설정에 따라 1행에 하나의 상품만 출력할 수도 있습니다."); ?>
|
||||
<input type="text" name="ev_mobile_list_mod" value="<?php echo $ev['ev_mobile_list_mod']; ?>" id="ev_mobile_list_mod" required class="required frm_input" size="3"> 개
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ev_mobile_list_row">모바일 이미지 줄 수</label></th>
|
||||
<td>
|
||||
<?php echo help("한 페이지에 출력할 이미지 줄 수를 설정합니다.\n한 페이지에 표시되는 상품수는 (1줄당 이미지 수 x 줄 수) 입니다."); ?>
|
||||
<input type="text" name="ev_mobile_list_row" value="<?php echo $ev['ev_mobile_list_row']; ?>" id="ev_mobile_list_row" required class="required frm_input" size="3"> 개
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="ev_use">사용</label></th>
|
||||
<td>
|
||||
@ -317,6 +328,33 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$(".shop_event").on("click", function() {
|
||||
if(!confirm("현재 테마의 스킨, 이미지 사이즈 등의 설정을 적용하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../theme_config_load.php",
|
||||
cache: false,
|
||||
async: false,
|
||||
data: { type: 'shop_event' },
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.each(data, function(key, val) {
|
||||
if(key == "error")
|
||||
return true;
|
||||
|
||||
$("#"+key).val(val);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#btn_search_item").click(function() {
|
||||
var ca_id = $("#sch_ca_id").val();
|
||||
var it_name = $.trim($("#sch_name").val());
|
||||
@ -332,7 +370,7 @@ $(function() {
|
||||
);
|
||||
});
|
||||
|
||||
$("#sch_item_list .add_item").live("click", function() {
|
||||
$(document).on("click", "#sch_item_list .add_item", function() {
|
||||
// 이미 등록된 상품인지 체크
|
||||
var $li = $(this).closest("li");
|
||||
var it_id = $li.find("input:hidden").val();
|
||||
@ -363,7 +401,7 @@ $(function() {
|
||||
$li.remove();
|
||||
});
|
||||
|
||||
$("#reg_item_list .del_item").live("click", function() {
|
||||
$(document).on("click", "#reg_item_list .del_item", function() {
|
||||
if(!confirm("상품을 삭제하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ $sql_common = " set ev_skin = '$ev_skin',
|
||||
ev_mobile_img_width = '$ev_mobile_img_width',
|
||||
ev_mobile_img_height= '$ev_mobile_img_height',
|
||||
ev_mobile_list_mod = '$ev_mobile_list_mod',
|
||||
ev_mobile_list_row = '$ev_mobile_list_row',
|
||||
ev_subject = '$ev_subject',
|
||||
ev_head_html = '$ev_head_html',
|
||||
ev_tail_html = '$ev_tail_html',
|
||||
|
||||
@ -231,15 +231,7 @@ if(!sql_query(" select it_skin from {$g5['g5_shop_item_table']} limit 1", false)
|
||||
<tr>
|
||||
<th scope="row"><label for="it_skin">PC용 스킨</label></th>
|
||||
<td colspan="3">
|
||||
<select name="it_skin" id="it_skin">
|
||||
<?php
|
||||
$arr = get_skin_dir('shop');
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($it['it_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_skin_select('shop', 'it_skin', 'it_skin', $it['it_skin']); ?>
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_ca_it_skin" value="1" id="chk_ca_it_skin">
|
||||
@ -251,15 +243,7 @@ if(!sql_query(" select it_skin from {$g5['g5_shop_item_table']} limit 1", false)
|
||||
<tr>
|
||||
<th scope="row"><label for="it_mobile_skin">모바일용 스킨</label></th>
|
||||
<td colspan="3">
|
||||
<select name="it_mobile_skin" id="it_mobile_skin">
|
||||
<?php
|
||||
$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($it['it_mobile_skin'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php echo get_mobile_skin_select('shop', 'it_mobile_skin', 'it_mobile_skin', $it['it_mobile_skin']); ?>
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_ca_it_mobile_skin" value="1" id="chk_ca_it_mobile_skin">
|
||||
@ -517,7 +501,7 @@ if(!sql_query(" select it_skin from {$g5['g5_shop_item_table']} limit 1", false)
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$("#it_info_gubun").live("change", function() {
|
||||
$(document).on("change", "#it_info_gubun", function() {
|
||||
var gubun = $(this).val();
|
||||
$.post(
|
||||
"<?php echo G5_ADMIN_URL; ?>/shop_admin/iteminfo.php",
|
||||
@ -819,7 +803,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 모두선택
|
||||
$("input[name=opt_chk_all]").live("click", function() {
|
||||
$(document).on("click", "input[name=opt_chk_all]", function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("input[name='opt_chk[]']").attr("checked", true);
|
||||
} else {
|
||||
@ -828,7 +812,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 선택삭제
|
||||
$("#sel_option_delete").live("click", function() {
|
||||
$(document).on("click", "#sel_option_delete", function() {
|
||||
var $el = $("input[name='opt_chk[]']:checked");
|
||||
if($el.size() < 1) {
|
||||
alert("삭제하려는 옵션을 하나 이상 선택해 주십시오.");
|
||||
@ -839,7 +823,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 일괄적용
|
||||
$("#opt_value_apply").live("click", function() {
|
||||
$(document).on("click", "#opt_value_apply", function() {
|
||||
if($(".opt_com_chk:checked").size() < 1) {
|
||||
alert("일괄 수정할 항목을 하나이상 체크해 주십시오.");
|
||||
return false;
|
||||
@ -982,7 +966,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 입력필드삭제
|
||||
$("#del_supply_row").live("click", function() {
|
||||
$(document).on("click", "#del_supply_row", function() {
|
||||
$(this).closest("tr").remove();
|
||||
|
||||
supply_sequence();
|
||||
@ -1025,7 +1009,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 모두선택
|
||||
$("input[name=spl_chk_all]").live("click", function() {
|
||||
$(document).on("click", "input[name=spl_chk_all]", function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("input[name='spl_chk[]']").attr("checked", true);
|
||||
} else {
|
||||
@ -1034,7 +1018,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 선택삭제
|
||||
$("#sel_supply_delete").live("click", function() {
|
||||
$(document).on("click", "#sel_supply_delete", function() {
|
||||
var $el = $("input[name='spl_chk[]']:checked");
|
||||
if($el.size() < 1) {
|
||||
alert("삭제하려는 옵션을 하나 이상 선택해 주십시오.");
|
||||
@ -1045,7 +1029,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// 일괄적용
|
||||
$("#spl_value_apply").live("click", function() {
|
||||
$(document).on("click", "#spl_value_apply", function() {
|
||||
if($(".spl_com_chk:checked").size() < 1) {
|
||||
alert("일괄 수정할 항목을 하나이상 체크해 주십시오.");
|
||||
return false;
|
||||
@ -1379,7 +1363,7 @@ $(function(){
|
||||
);
|
||||
});
|
||||
|
||||
$("#relation .add_item").live("click", function() {
|
||||
$(document).on("click", "#relation .add_item", function() {
|
||||
// 이미 등록된 상품인지 체크
|
||||
var $li = $(this).closest("li");
|
||||
var it_id = $li.find("input:hidden").val();
|
||||
@ -1410,7 +1394,7 @@ $(function(){
|
||||
$li.remove();
|
||||
});
|
||||
|
||||
$("#reg_relation .del_item").live("click", function() {
|
||||
$(document).on("click", "#reg_relation .del_item", function() {
|
||||
if(!confirm("상품을 삭제하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
@ -1499,7 +1483,7 @@ $(function(){
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
$("#event_list .add_event").live("click", function() {
|
||||
$(document).on("click", "#event_list .add_event", function() {
|
||||
// 이미 등록된 이벤트인지 체크
|
||||
var $li = $(this).closest("li");
|
||||
var ev_id = $li.find("input:hidden").val();
|
||||
@ -1528,7 +1512,7 @@ $(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$("#reg_event_list .del_event").live("click", function() {
|
||||
$(document).on("click", "#reg_event_list .del_event", function() {
|
||||
if(!confirm("상품을 삭제하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user