php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
include_once('../../common.php');
|
||||
@ -46,5 +46,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
</div>
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_PATH.'/tail.php');
|
||||
@ -212,5 +212,4 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<div id="container_wr">
|
||||
|
||||
<div id="container">
|
||||
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></span></h2><?php } ?>
|
||||
|
||||
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></span></h2><?php }
|
||||
@ -106,5 +106,4 @@ if ($is_member) { // 회원이라면 로그인 중이라는 메세지를 출력
|
||||
|
||||
echo '<div id="hd_login_msg">'.$sr_admin_msg.get_text($member['mb_nick']).'님 로그인 중 ';
|
||||
echo '<a href="'.G5_BBS_URL.'/logout.php">로그아웃</a></div>';
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
define('_INDEX_', true);
|
||||
if (!defined('_INDEX_')) define('_INDEX_', true);
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
@ -69,5 +69,4 @@ include_once(G5_THEME_PATH.'/head.php');
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_PATH.'/tail.php');
|
||||
@ -46,7 +46,7 @@ jQuery(function ($) {
|
||||
var id = "";
|
||||
var value, info, sel_opt, item, price, stock, run_error = false;
|
||||
var option = sep = "";
|
||||
var count = $sel.size();
|
||||
var count = $sel.length;
|
||||
|
||||
if(count > 0) {
|
||||
$sel.each(function(index) {
|
||||
@ -241,7 +241,7 @@ jQuery(function ($) {
|
||||
$(document).on("change", "select.it_option", function() {
|
||||
var $frm = $(this).closest("form");
|
||||
var $sel = $frm.find("select.it_option");
|
||||
var sel_count = $sel.size();
|
||||
var sel_count = $sel.length;
|
||||
var idx = $sel.index($(this));
|
||||
var val = $(this).val();
|
||||
var it_id = $frm.find("input[name='it_id[]']").val();
|
||||
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once('../../../common.php');
|
||||
?>
|
||||
include_once('../../../common.php');
|
||||
@ -31,5 +31,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
|
||||
@ -188,4 +188,4 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>">
|
||||
<a href="javascript:history.back();"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로가기</span></a> <?php echo get_head_title($g5['title']); ?>
|
||||
</h2>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -32,5 +32,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_MOBILE_PATH.'/tail.php');
|
||||
@ -3,5 +3,4 @@ include_once('../../../../common.php');
|
||||
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -145,7 +145,7 @@ jQuery(function ($){
|
||||
var $this = $(this);
|
||||
$sub_ul = $(this).closest("li").children("ul.sub_cate");
|
||||
|
||||
if($sub_ul.size() > 0) {
|
||||
if($sub_ul.length > 0) {
|
||||
var txt = $this.text();
|
||||
|
||||
if($sub_ul.is(":visible")) {
|
||||
|
||||
@ -117,5 +117,4 @@ include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.tail.php');
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';
|
||||
|
||||
include_once(G5_THEME_PATH.'/head.sub.php');
|
||||
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
||||
include_once(G5_LIB_PATH.'/visit.lib.php');
|
||||
@ -114,4 +116,4 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
}
|
||||
?>
|
||||
<div id="container" class="<?php echo implode(' ', $container_class); ?>">
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><h1 id="container_title"><a href="javascript:history.back()" class="btn_back"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로</span></a> <?php echo $g5['title'] ?></h1><?php } ?>
|
||||
<?php if ((!$bo_table || $w == 's' ) && !defined('_INDEX_')) { ?><h1 id="container_title"><a href="javascript:history.back()" class="btn_back"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로</span></a> <?php echo $g5['title'] ?></h1><?php }
|
||||
@ -55,5 +55,4 @@ if ($config['cf_analytics']) {
|
||||
<script src="<?php echo G5_JS_URL; ?>/sns.js"></script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
@ -83,8 +83,8 @@ jQuery(function($){
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
@ -124,8 +124,8 @@ jQuery(function($){
|
||||
</section>
|
||||
|
||||
<?php
|
||||
$cnt = 0;
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
|
||||
$cnt++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -85,8 +85,8 @@ jQuery(function($){
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
@ -126,8 +126,8 @@ jQuery(function($){
|
||||
</section>
|
||||
|
||||
<?php
|
||||
$cnt = 0;
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
|
||||
$cnt++;
|
||||
|
||||
@ -341,4 +341,4 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -5,4 +5,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
<?php echo $row['total_cnt'] ?>
|
||||
<?php echo $row['total_cnt'];
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
@ -56,5 +56,4 @@ if ($w == "" && $default['de_sms_use1'] && $receive_number)
|
||||
}
|
||||
//----------------------------------------------------------
|
||||
// SMS 문자전송 끝
|
||||
//----------------------------------------------------------
|
||||
?>
|
||||
//----------------------------------------------------------;
|
||||
@ -178,7 +178,7 @@
|
||||
#mb_login_notmb .chk_box input[type="checkbox"] + label{padding-left:20px}
|
||||
#mb_login_notmb h2 {font-size:1.25em;padding:10px;background:#f3f3f3}
|
||||
#mb_login_notmb p {border:0;padding:0;margin:10px;color:#}
|
||||
#guest_privacy p {border:1px solid #ddd;background:#fff;color:#666;min-height:20px;height:200px;padding:10px;text-align:left;overflow-y:auto;margin:10px 0}
|
||||
#guest_privacy {border:1px solid #ccc;text-align:left;line-height:1.6em;color:#666;background:#fafafa;padding:10px;height:200px;margin:10px 0;overflow-y:auto}
|
||||
#mb_login_notmb .btn_submit {width:100%;display:block;height:40px;line-height:40px}
|
||||
|
||||
#mb_login_od_wr {background:#fff;border-bottom:1px solid #ccc;padding:20px}
|
||||
|
||||
@ -259,6 +259,7 @@
|
||||
#bo_v_ans #ans_msg {padding:40px 0;background:#f2f5f9;text-align:center}
|
||||
#bo_v_ans .btn_submit {width:100%;height:40px;border-radius:5px}
|
||||
#bo_v_ans .btn_confirm {margin:0 10px}
|
||||
#bo_v_ans form{padding:1em}
|
||||
|
||||
#bo_v_rel {}
|
||||
#bo_v_rel h2 {margin:0 10px 10px;font-size:1.2em}
|
||||
|
||||
@ -44,8 +44,6 @@ $(".btn_more_opt").on("click", function() {
|
||||
<h2>페이지 정보</h2>
|
||||
<span class="sound_only">작성자</span><strong><?php echo $view['name'] ?></strong>
|
||||
<span class="sound_only">작성일</span><strong><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo $view['datetime']; ?></strong>
|
||||
<span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?></strong>
|
||||
<span class="sound_only">댓글</span><strong><i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?></strong>
|
||||
</div>
|
||||
<?php if($view['email'] || $view['hp']) { ?>
|
||||
<div id="bo_v_contact">
|
||||
|
||||
@ -31,11 +31,11 @@ if ($stx) {
|
||||
|
||||
<label for="sfl" class="sound_only">검색조건</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($sfl, "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($sfl, "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($sfl, "wr_name") ?>>이름</option>
|
||||
</select>
|
||||
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
|
||||
@ -492,7 +492,10 @@ $(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$('#slide-counter').append('<span class="total-slides">'+slider.getSlideCount()+'</span>');
|
||||
try {
|
||||
$('#slide-counter').append('<span class="total-slides">'+slider.getSlideCount()+'</span>');
|
||||
} catch (error) {
|
||||
}
|
||||
|
||||
$('a.pager-prev').click(function () {
|
||||
var current = slider.getCurrentSlide();
|
||||
@ -555,7 +558,7 @@ function fsubmit_check(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
@ -627,7 +630,7 @@ function fitem_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_qa');
|
||||
?>
|
||||
goto_url(shop_item_url($it_id).'#sit_qa');
|
||||
@ -4,5 +4,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
//add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
|
||||
|
||||
goto_url(shop_item_url($it_id).'#sit_use');
|
||||
?>
|
||||
goto_url(shop_item_url($it_id).'#sit_use');
|
||||
@ -30,7 +30,6 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
|
||||
$is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : '';
|
||||
$is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : '';
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ function fit_width()
|
||||
var sw = $(window).width();
|
||||
var $img = $("#sit_pvi_nwbig span img");
|
||||
|
||||
if($img.size() < 1)
|
||||
if($img.length < 1)
|
||||
return;
|
||||
|
||||
$img.each(function() {
|
||||
|
||||
@ -186,4 +186,4 @@ jQuery(function($){
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -115,7 +115,7 @@ if($this->total_count > 0) {
|
||||
var $btns = this.find(""+cfg.buttons+"");
|
||||
|
||||
var idx = cfg.startSlide;
|
||||
var count = $slides.size();
|
||||
var count = $slides.length;
|
||||
var width, outerW;
|
||||
|
||||
if(count < 1)
|
||||
@ -179,5 +179,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -33,4 +33,4 @@ if ($exists) {
|
||||
</aside>
|
||||
<!-- } 상품분류 1 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -77,6 +77,4 @@ $('.sev_slide').bxSlider({
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
}
|
||||
@ -114,5 +114,4 @@ jQuery(function($){
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -79,5 +79,4 @@ jQuery(function($) {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH."/tail.sub.php");
|
||||
?>
|
||||
include_once(G5_THEME_PATH."/tail.sub.php");
|
||||
@ -17,5 +17,4 @@ if (isset($_REQUEST['sortodr'])) {
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
||||
|
||||
define('_SHOP_', true);
|
||||
?>
|
||||
define('_SHOP_', true);
|
||||
@ -35,6 +35,7 @@ switch ($action) {
|
||||
cart_item_clean();
|
||||
|
||||
$s_cart_id = get_session('ss_cart_id');
|
||||
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
|
||||
|
||||
// 장바구니 상품삭제
|
||||
$sql = " delete from {$g5['g5_shop_cart_table']}
|
||||
@ -72,14 +73,15 @@ switch ($action) {
|
||||
die(json_encode(array('error' => '상품을 구입할 수 있는 권한이 없습니다.')));
|
||||
}
|
||||
|
||||
$count = count($_POST['it_id']);
|
||||
$count = (isset($_POST['it_id']) && is_array($_POST['it_id'])) ? count($_POST['it_id']) : 0;
|
||||
|
||||
if ($count < 1)
|
||||
die(json_encode(array('error' => '장바구니에 담을 상품을 선택하여 주십시오.')));
|
||||
|
||||
$ct_count = 0;
|
||||
for($i=0; $i<$count; $i++) {
|
||||
$it_id = $_POST['it_id'][$i];
|
||||
$opt_count = count($_POST['io_id'][$it_id]);
|
||||
$it_id = isset($_POST['it_id'][$i]) ? safe_replace_regex($_POST['it_id'][$i], 'it_id') : '';
|
||||
$opt_count = (isset($_POST['io_id'][$it_id]) && is_array($_POST['io_id'][$it_id])) ? count($_POST['io_id'][$it_id]) : 0;
|
||||
|
||||
// 상품정보
|
||||
$it = get_shop_item($it_id, false);
|
||||
@ -106,7 +108,8 @@ switch ($action) {
|
||||
die(json_encode(array('error' => '상품의 선택옵션을 선택해 주십시오.')));
|
||||
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
if ($_POST['ct_qty'][$it_id][$k] < 1)
|
||||
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
if ($post_ct_qty < 1)
|
||||
die(json_encode(array('error' => '수량은 1 이상 입력해 주십시오.')));
|
||||
}
|
||||
|
||||
@ -118,8 +121,10 @@ switch ($action) {
|
||||
if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) {
|
||||
$sum_qty = 0;
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
if($_POST['io_type'][$it_id][$k] == 0)
|
||||
$sum_qty += $_POST['ct_qty'][$it_id][$k];
|
||||
if(isset($_POST['io_type'][$it_id][$k]) && $_POST['io_type'][$it_id][$k] == 0){
|
||||
$post_ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
$sum_qty += $post_ct_qty;
|
||||
}
|
||||
}
|
||||
|
||||
if($it['it_buy_min_qty'] > 0 && $sum_qty < $it['it_buy_min_qty'])
|
||||
@ -155,20 +160,21 @@ switch ($action) {
|
||||
VALUES ";
|
||||
|
||||
for($k=0; $k<$opt_count; $k++) {
|
||||
$io_id = preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]);
|
||||
$io_type = preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]);
|
||||
$io_value = $_POST['io_value'][$it_id][$k];
|
||||
$io_id = isset($_POST['io_id'][$it_id][$k]) ? preg_replace(G5_OPTION_ID_FILTER, '', $_POST['io_id'][$it_id][$k]) : '';
|
||||
$io_type = isset($_POST['io_type'][$it_id][$k]) ? preg_replace('#[^01]#', '', $_POST['io_type'][$it_id][$k]) : '';
|
||||
$io_value = isset($_POST['io_value'][$it_id][$k]) ? $_POST['io_value'][$it_id][$k] : '';
|
||||
|
||||
// 선택옵션정보가 존재하는데 선택된 옵션이 없으면 건너뜀
|
||||
if($lst_count && $io_id == '')
|
||||
continue;
|
||||
|
||||
|
||||
$opt_list_type_id_use = isset($opt_list[$io_type][$io_id]['use']) ? $opt_list[$io_type][$io_id]['use'] : '';
|
||||
// 구매할 수 없는 옵션은 건너뜀
|
||||
if($io_id && !$opt_list[$io_type][$io_id]['use'])
|
||||
if($io_id && ! $opt_list_type_id_use)
|
||||
continue;
|
||||
|
||||
$io_price = $opt_list[$io_type][$io_id]['price'];
|
||||
$ct_qty = (int) $_POST['ct_qty'][$it_id][$k];
|
||||
$io_price = isset($opt_list[$io_type][$io_id]['price']) ? $opt_list[$io_type][$io_id]['price'] : 0;
|
||||
$ct_qty = isset($_POST['ct_qty'][$it_id][$k]) ? (int) $_POST['ct_qty'][$it_id][$k] : 0;
|
||||
|
||||
// 구매가격이 음수인지 체크
|
||||
if($io_type) {
|
||||
@ -187,7 +193,7 @@ switch ($action) {
|
||||
and io_id = '$io_id'
|
||||
and ct_status = '쇼핑' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if($row2['ct_id']) {
|
||||
if(isset($row2['ct_id']) && $row2['ct_id']) {
|
||||
// 재고체크
|
||||
$tmp_ct_qty = $row2['ct_qty'];
|
||||
if(!$io_id)
|
||||
@ -219,6 +225,8 @@ switch ($action) {
|
||||
if($point < 0)
|
||||
$point = 0;
|
||||
}
|
||||
|
||||
$ct_send_cost = 0;
|
||||
|
||||
// 배송비결제
|
||||
if($it['it_sc_type'] == 1)
|
||||
@ -308,6 +316,8 @@ switch ($action) {
|
||||
|
||||
break;
|
||||
case 'wish_update' :
|
||||
|
||||
$it_id = isset($_POST['it_id']) ? safe_replace_regex($_POST['it_id'], 'it_id') : '';
|
||||
|
||||
if (!$is_member)
|
||||
die('회원 전용 서비스 입니다.');
|
||||
@ -325,7 +335,7 @@ switch ($action) {
|
||||
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if (!$row['wi_id']) {
|
||||
if (! (isset($row['wi_id']) && $row['wi_id'])) {
|
||||
$sql = " insert {$g5['g5_shop_wish_table']}
|
||||
set mb_id = '{$member['mb_id']}',
|
||||
it_id = '$it_id',
|
||||
@ -340,5 +350,4 @@ switch ($action) {
|
||||
|
||||
break;
|
||||
default :
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -125,5 +125,4 @@ $(function(){
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
@ -115,6 +115,10 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
for ($i=0; $row = sql_fetch_array($result); $i++)
|
||||
{
|
||||
$image = get_it_image($row['it_id'], 100, 100, true);
|
||||
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' ";
|
||||
$tmp = sql_fetch($sql);
|
||||
$out_cd = (isset($tmp['cnt']) && $tmp['cnt']) ? 'no' : '';
|
||||
?>
|
||||
|
||||
<li>
|
||||
@ -214,5 +218,4 @@ function fwishlist_check(f, act)
|
||||
<!-- } 마이페이지 끝 -->
|
||||
|
||||
<?php
|
||||
include_once("./_tail.php");
|
||||
?>
|
||||
include_once("./_tail.php");
|
||||
@ -703,5 +703,4 @@ function fcancel_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
include_once('./_tail.php');
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';
|
||||
|
||||
if(G5_IS_MOBILE) {
|
||||
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
|
||||
@ -66,5 +66,4 @@ if ($config['cf_analytics']) {
|
||||
<!-- } 하단 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_THEME_PATH.'/tail.sub.php');
|
||||
@ -19,6 +19,7 @@
|
||||
#bo_list .txt_expired {color:#ccc}
|
||||
#bo_list tbody tr {border-left:2px solid transparent}
|
||||
#bo_list tbody tr:hover {border-left:2px solid #253dbe}
|
||||
#bo_list tbody .even td {background:#fbfbfb}
|
||||
|
||||
#bo_cate {margin:25px 0}
|
||||
#bo_cate h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
@ -335,4 +336,6 @@ box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1)}
|
||||
#bo_w .bo_w_flie .file_wr {position:relative;border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;height:40px;margin:0}
|
||||
#bo_w .bo_w_flie .frm_input {margin:10px 0 0}
|
||||
#bo_w .bo_w_flie .file_del {position:absolute;top:10px;right:10px;font-size:0.92em;color:#7d7d7d}
|
||||
#bo_w .bo_w_select select {border:1px solid #d0d3db;width:100%;height:40px;border-radius:3px}
|
||||
#bo_w .bo_w_select select {border:1px solid #d0d3db;width:100%;height:40px;border-radius:3px}
|
||||
#bo_w .btn_submit {padding:0 20px;font-size:1.167em}
|
||||
#bo_w .btn_cancel {border-radius:3px;font-size:1.167em}
|
||||
@ -93,8 +93,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
@ -370,4 +370,6 @@ box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1)}
|
||||
#bo_w .bo_w_flie .file_wr {position:relative;border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;height:40px;margin:0}
|
||||
#bo_w .bo_w_flie .frm_input {margin:10px 0 0}
|
||||
#bo_w .bo_w_flie .file_del {position:absolute;top:10px;right:10px;font-size:0.92em;color:#7d7d7d}
|
||||
#bo_w .bo_w_select select {border:1px solid #d0d3db;width:100%;height:40px;border-radius:3px}
|
||||
#bo_w .bo_w_select select {border:1px solid #d0d3db;width:100%;height:40px;border-radius:3px}
|
||||
#bo_w .btn_submit {padding:0 20px;font-size:1.167em}
|
||||
#bo_w .btn_cancel {border-radius:3px;font-size:1.167em}
|
||||
@ -93,8 +93,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
echo get_file_thumbnail($view['file'][$i]);
|
||||
foreach($view['file'] as $view_file) {
|
||||
echo get_file_thumbnail($view_file);
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
|
||||
@ -6,4 +6,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php echo $row['total_cnt'] ?>
|
||||
<?php echo $row['total_cnt'];
|
||||
@ -28,7 +28,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0;
|
||||
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||
|
||||
echo $list[$i]['icon_reply']." ";
|
||||
if ($list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
|
||||
if (isset($list[$i]['icon_file']) && $list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
|
||||
if ($list[$i]['icon_link']) echo " <i class=\"fa fa-link\" aria-hidden=\"true\"></i>" ;
|
||||
|
||||
if ($list[$i]['comment_cnt']) echo "
|
||||
|
||||
@ -20,7 +20,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0;
|
||||
if( $i === 0 ) {
|
||||
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
|
||||
|
||||
if($thumb['src']) {
|
||||
if(isset($thumb['src']) && $thumb['src']) {
|
||||
$img = $thumb['src'];
|
||||
} else {
|
||||
$img = G5_IMG_URL.'/no_img.png';
|
||||
|
||||
@ -87,7 +87,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
|
||||
<form name="forderinquiry" method="post" action="<?php echo urldecode($url); ?>" autocomplete="off">
|
||||
|
||||
<label for="od_id" class="od_id sound_only">주문서번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_id" value="<?php echo $od_id; ?>" id="od_id" required class="frm_input required" size="20" placeholder="주문서번호">
|
||||
<input type="text" name="od_id" value="<?php echo get_text($od_id); ?>" id="od_id" required class="frm_input required" size="20" placeholder="주문서번호">
|
||||
<label for="od_pwd" class="od_pwd sound_only">비밀번호 <strong>필수</strong></label>
|
||||
<input type="password" name="od_pwd" size="20" id="od_pwd" required class="frm_input required" placeholder="비밀번호">
|
||||
<button type="submit" class="btn_submit">확인</button>
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
@ -56,5 +56,4 @@ if ($w == "" && $default['de_sms_use1'] && $receive_number)
|
||||
}
|
||||
//----------------------------------------------------------
|
||||
// SMS 문자전송 끝
|
||||
//----------------------------------------------------------
|
||||
?>
|
||||
//----------------------------------------------------------;
|
||||
@ -29,7 +29,7 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/owlcarousel/owl.carou
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php if ($list && is_array($list)) { //게시물이 있다면 ?>
|
||||
<?php if (isset($list) && $list && is_array($list)) { //게시물이 있다면 ?>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
|
||||
|
||||
@ -15,11 +15,11 @@ add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">',
|
||||
|
||||
<label for="sfl" class="sound_only">검색조건</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content") ?>>제목+내용</option>
|
||||
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject") ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($sfl, "wr_content") ?>>내용</option>
|
||||
<option value="mb_id"<?php echo get_selected($sfl, "mb_id") ?>>회원아이디</option>
|
||||
<option value="wr_name"<?php echo get_selected($sfl, "wr_name") ?>>이름</option>
|
||||
</select>
|
||||
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
|
||||
@ -74,5 +74,4 @@ if(sql_num_rows($hresult)) {
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -398,7 +398,7 @@ function fsubmit_check(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
@ -470,7 +470,7 @@ function fitem_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if($(".sit_opt_list").size() < 1) {
|
||||
if($(".sit_opt_list").length < 1) {
|
||||
alert("상품의 선택옵션을 선택해 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -36,7 +36,6 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
|
||||
$is_reply_subject = !empty($row['is_reply_subject']) ? conv_subject($row['is_reply_subject'],50,"…") : '';
|
||||
$is_reply_content = !empty($row['is_reply_content']) ? get_view_thumbnail(conv_content($row['is_reply_content'], 1), $thumbnail_width) : '';
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
|
||||
@ -9,4 +9,4 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">',
|
||||
<li><button type="button" class="sct_lst_view sct_lst_list"><i class="fa fa-th-list" aria-hidden="true"></i><span class="sound_only">리스트뷰</span></button></li>
|
||||
<li><button type="button" class="sct_lst_view sct_lst_gallery"><i class="fa fa-th-large" aria-hidden="true"></i><span class="sound_only">갤러리뷰</span></button></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -33,4 +33,4 @@ if ($exists) {
|
||||
</aside>
|
||||
<!-- } 상품분류 1 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -61,4 +61,4 @@ if ($exists) {
|
||||
</aside>
|
||||
<!-- } 상품분류 2 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -32,4 +32,4 @@ if ($exists) {
|
||||
</aside>
|
||||
<!-- } 상품분류 3 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -135,7 +135,7 @@ if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\
|
||||
var $smt = this.find("ul.sct_ul");
|
||||
var $smt_a = $smt.find("a");
|
||||
var height = 0;
|
||||
var count = $smt.size();
|
||||
var count = $smt.length;
|
||||
var c_idx = o_idx = 0;
|
||||
var fx = null;
|
||||
var el_id = this[0].id;
|
||||
@ -266,7 +266,7 @@ $(function() {
|
||||
|
||||
// 애니메이션 stop
|
||||
$("#btn_smt_<?php echo $this->type; ?> button.sctrl_stop").on("click", function() {
|
||||
if($(this).parent().siblings().find(".sctrl_on").size() > 0) {
|
||||
if($(this).parent().siblings().find(".sctrl_on").length > 0) {
|
||||
$(this).parent().siblings().find("span").removeClass("sctrl_on").html("");
|
||||
$(this).children().addClass("sctrl_on").html("<b class=\"sound_only\">선택됨</b>");
|
||||
var id = $(this).closest(".sctrl").attr("id").replace("btn_", "");
|
||||
|
||||
@ -140,5 +140,4 @@ jQuery(function($){
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@ -31,5 +31,4 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
if ($i > 1) echo "</ul>\n";
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
|
||||
?>
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
|
||||
@ -92,5 +92,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_PATH."/tail.sub.php");
|
||||
?>
|
||||
include_once(G5_THEME_PATH."/tail.sub.php");
|
||||
@ -24,4 +24,4 @@ $(function() {
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다. ?>
|
||||
<?php echo html_end(); // HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다.
|
||||
@ -1,14 +1,22 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 테마가 지원하는 장치 설정 pc, mobile
|
||||
// 선언하지 않거나 값을 지정하지 않으면 그누보드5의 설정을 따른다.
|
||||
// G5_SET_DEVICE 상수 설정 보다 우선 적용됨
|
||||
define('G5_THEME_DEVICE', '');
|
||||
if(! defined('G5_THEME_DEVICE')) define('G5_THEME_DEVICE', '');
|
||||
|
||||
$theme_config = array();
|
||||
|
||||
// 갤러리 이미지 수 등의 설정을 지정하시면 게시판관리에서 해당 값을
|
||||
// 가져오기 기능을 통해 게시판 설정의 해당 필드에 바로 적용할 수 있습니다.
|
||||
// 사용하지 않는 스킨 설정은 값을 비워두시면 됩니다.
|
||||
|
||||
// 테마에서 커뮤니티 지원여부 설정
|
||||
// 커뮤니티 사용없이 쇼핑몰이 초기화면이라면 false로 설정
|
||||
// false 설정이면 게시판 head, tail 은 쇼핑몰의 그것이 적용됨
|
||||
define('G5_COMMUNITY_USE', true);
|
||||
$theme_config = array();
|
||||
if(! defined('G5_COMMUNITY_USE')) define('G5_COMMUNITY_USE', true);
|
||||
|
||||
// 갤러리 이미지 수 등의 설정을 지정하시면 게시판관리에서 해당 값을
|
||||
// 가져오기 기능을 통해 게시판 설정의 해당 필드에 바로 적용할 수 있습니다.
|
||||
// 사용하지 않는 스킨 설정은 값을 비워두시면 됩니다.
|
||||
@ -140,5 +148,4 @@ $theme_config = array(
|
||||
'ev_mobile_list_row' => 5, // 모바일 이벤트 이미지 줄 수
|
||||
'ca_mobile_list_best_mod' => 2, // 모바일 상품리스트 베스트상품 1줄당 이미지 수
|
||||
'ca_mobile_list_best_row' => 3, // 모바일 상품리스트 베스트상품 이미지 줄 수
|
||||
);
|
||||
?>
|
||||
);
|
||||
Reference in New Issue
Block a user