Merge branch 'master' of github.com:gnuboard/yc5
This commit is contained in:
@ -23,8 +23,8 @@ for ($i=0; $row_nw=sql_fetch_array($result); $i++)
|
||||
?>
|
||||
|
||||
<!-- 팝업레이어 시작 { -->
|
||||
<div id="hd_pops_<?php echo $nw['nw_id'] ?>" class="hd_pops" style="top:<?php echo $nw['nw_top']?>px;left:<?php echo $nw['nw_left']?>px;width:<?php echo $nw['nw_width'] ?>px;height:<?php echo $nw['nw_height'] ?>px">
|
||||
<div class="hd_pops_con">
|
||||
<div id="hd_pops_<?php echo $nw['nw_id'] ?>" class="hd_pops" style="top:<?php echo $nw['nw_top']?>px;left:<?php echo $nw['nw_left']?>px;">
|
||||
<div class="hd_pops_con" style="width:<?php echo $nw['nw_width'] ?>px;height:<?php echo $nw['nw_height'] ?>px">
|
||||
<?php echo conv_content($nw['nw_content'], 1); ?>
|
||||
</div>
|
||||
<div class="hd_pops_footer">
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/iteminfo.lib.php');
|
||||
|
||||
$it_id = escape_trim($_GET['it_id']);
|
||||
$it_id = trim($_GET['it_id']);
|
||||
|
||||
// 분류사용, 상품사용하는 상품의 정보를 얻음
|
||||
$sql = " select a.*,
|
||||
|
||||
@ -6,9 +6,9 @@ if (!$is_member) {
|
||||
alert_close("상품문의는 회원만 작성 가능합니다.");
|
||||
}
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$iq_id = escape_trim($_REQUEST['iq_id']);
|
||||
$w = trim($_REQUEST['w']);
|
||||
$it_id = trim($_REQUEST['it_id']);
|
||||
$iq_id = trim($_REQUEST['iq_id']);
|
||||
|
||||
$chk_secret = '';
|
||||
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/thumb.lib.php');
|
||||
|
||||
$sfl = escape_trim($_REQUEST['sfl']);
|
||||
$stx = escape_trim($_REQUEST['stx']);
|
||||
$sfl = trim($_REQUEST['sfl']);
|
||||
$stx = trim($_REQUEST['stx']);
|
||||
|
||||
$g5['title'] = '상품문의';
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
@ -6,9 +6,9 @@ if (!$is_member) {
|
||||
alert_close("사용후기는 회원만 작성 가능합니다.");
|
||||
}
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$is_id = escape_trim($_REQUEST['is_id']);
|
||||
$w = trim($_REQUEST['w']);
|
||||
$it_id = trim($_REQUEST['it_id']);
|
||||
$is_id = trim($_REQUEST['is_id']);
|
||||
|
||||
// 사용후기 작성 설정에 따른 체크
|
||||
check_itemuse_write();
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/thumb.lib.php');
|
||||
|
||||
$sfl = escape_trim($_REQUEST['sfl']);
|
||||
$stx = escape_trim($_REQUEST['stx']);
|
||||
$sfl = trim($_REQUEST['sfl']);
|
||||
$stx = trim($_REQUEST['stx']);
|
||||
|
||||
$g5['title'] = '사용후기';
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
@ -1,14 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if(get_magic_quotes_gpc())
|
||||
{
|
||||
$_GET = array_add_callback("stripslashes", $_GET);
|
||||
$_POST = array_add_callback("stripslashes", $_POST);
|
||||
}
|
||||
$_GET = array_add_callback("mysql_real_escape_string", $_GET);
|
||||
$_POST = array_add_callback("mysql_real_escape_string", $_POST);
|
||||
|
||||
// 결제등록 완료 체크
|
||||
if($od_settle_case != '무통장') {
|
||||
if($_POST['tran_cd'] == '' || $_POST['enc_info'] == '' || $_POST['enc_data'] == '')
|
||||
|
||||
@ -1,14 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if(get_magic_quotes_gpc())
|
||||
{
|
||||
$_GET = array_add_callback("stripslashes", $_GET);
|
||||
$_POST = array_add_callback("stripslashes", $_POST);
|
||||
}
|
||||
$_GET = array_add_callback("mysql_real_escape_string", $_GET);
|
||||
$_POST = array_add_callback("mysql_real_escape_string", $_POST);
|
||||
|
||||
// 결제등록 완료 체크
|
||||
if($_POST['tran_cd'] == '' || $_POST['enc_info'] == '' || $_POST['enc_data'] == '')
|
||||
alert('결제등록 요청 후 주문해 주십시오.');
|
||||
|
||||
@ -4,14 +4,14 @@ include_once('./_common.php');
|
||||
$g5['title'] = "상품 검색 결과";
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
$q = utf8_strcut(escape_trim($_GET['q']), 30, "");
|
||||
$qname = escape_trim($_GET['qname']);
|
||||
$qexplan = escape_trim($_GET['qexplan']);
|
||||
$qid = escape_trim($_GET['qid']);
|
||||
$qcaid = escape_trim($_GET['qcaid']);
|
||||
$qfrom = escape_trim($_GET['qfrom']);
|
||||
$qto = escape_trim($_GET['qto']);
|
||||
$qsort = escape_trim($_GET['qsort']);
|
||||
$q = utf8_strcut(trim($_GET['q']), 30, "");
|
||||
$qname = trim($_GET['qname']);
|
||||
$qexplan = trim($_GET['qexplan']);
|
||||
$qid = trim($_GET['qid']);
|
||||
$qcaid = trim($_GET['qcaid']);
|
||||
$qfrom = trim($_GET['qfrom']);
|
||||
$qto = trim($_GET['qto']);
|
||||
$qsort = trim($_GET['qsort']);
|
||||
|
||||
// QUERY 문에 공통적으로 들어가는 내용
|
||||
// 상품명에 검색어가 포한된것과 상품판매가능인것만
|
||||
|
||||
@ -74,6 +74,7 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">마이페이지</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">장바구니</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
|
||||
<?php if(!$default['de_root_index_use']) { ?>
|
||||
<li><a href="<?php echo G5_URL; ?>/">커뮤니티</a></li>
|
||||
|
||||
@ -7,6 +7,7 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
|
||||
|
||||
<script src="<?php echo G5_JS_URL; ?>/jquery.nicescroll.min.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/jquery.fancyalert.js"></script>
|
||||
<script src="<?php echo G5_JS_URL; ?>/kakao.link.js"></script>
|
||||
|
||||
<form name="fitem" action="<?php echo $action_url; ?>" method="post" onsubmit="return fitem_submit(this);">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
|
||||
@ -64,6 +65,7 @@ add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">',
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb2.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt2.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_goo2.png'); ?>
|
||||
<?php echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kko2.png'); ?>
|
||||
</div>
|
||||
<table class="sit_ov_tbl">
|
||||
<colgroup>
|
||||
@ -364,52 +366,6 @@ $(function(){
|
||||
});
|
||||
});
|
||||
|
||||
function content_swipe(direction)
|
||||
{
|
||||
// 로딩 레이어
|
||||
load_message();
|
||||
|
||||
var next_href = '<?php echo $next_href; ?>';
|
||||
var prev_href = '<?php echo $prev_href; ?>';
|
||||
var str;
|
||||
|
||||
if(direction == "left") {
|
||||
str = next_href;
|
||||
} else {
|
||||
str = prev_href;
|
||||
}
|
||||
|
||||
var href = str.match(/https?:\/{2}[^\"]+/gi);
|
||||
|
||||
setTimeout(function() {
|
||||
document.location.href = href[0];
|
||||
}, 500);
|
||||
}
|
||||
|
||||
function load_message()
|
||||
{
|
||||
var w = $(window).width();
|
||||
var h = $(window).height();
|
||||
var img_w = 64;
|
||||
var img_h = 64;
|
||||
var top, left;
|
||||
var scr_top = $(window).scrollTop();
|
||||
|
||||
if (/iP(hone|od|ad)/.test(navigator.platform)) {
|
||||
if(window.innerHeight - $(window).outerHeight(true) > 0)
|
||||
h += (window.innerHeight - $(window).outerHeight(true));
|
||||
}
|
||||
|
||||
top = parseInt((h - img_h) / 2);
|
||||
left = parseInt((w - img_w) / 2);
|
||||
|
||||
var img = "<div id=\"loading_message\" style=\"top:"+scr_top+"px;width:"+w+"px;height:"+h+"px;\">";
|
||||
img += "<img src=\"<?php echo G5_MSHOP_SKIN_URL; ?>/img/loading.gif\" style=\"top:"+top+"px;left:"+left+"px;\" />";
|
||||
img += "</div>";
|
||||
|
||||
$("body").append(img);
|
||||
}
|
||||
|
||||
// 상품보관
|
||||
function item_wish(f, it_id)
|
||||
{
|
||||
@ -502,4 +458,51 @@ function fitem_submit(f)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 카카오톡 링크 보내기 메세지 입력
|
||||
function kakaolink_message()
|
||||
{
|
||||
var popup = "<div id=\"kakao_message\">";
|
||||
popup += "<form name=\"fkakao\" onsubmit=\"return kakaolink_send(this);\">";
|
||||
popup += "<label for=\"message\">메세지</label>";
|
||||
popup += "<textarea id=\"message\" name=\"message\"></textarea>";
|
||||
popup += "<input type=\"submit\" value=\"보내기\">";
|
||||
popup += "<button type=\"button\" onclick=\"send_cancel();\">취소</button>";
|
||||
popup += "</form>";
|
||||
popup += "</div>";
|
||||
|
||||
$("form[name=fitem]").before(popup);
|
||||
}
|
||||
|
||||
function send_cancel()
|
||||
{
|
||||
$("#kakao_message").remove();
|
||||
}
|
||||
|
||||
// 카카오톡 링크 보내기
|
||||
function kakaolink_send(f)
|
||||
{
|
||||
var msg = f.message.value;
|
||||
if(!msg) {
|
||||
alert("메세지를 입력해 주세요");
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
msg, url, appid, appname은 실제 서비스에서 사용하는 정보로 업데이트되어야 합니다.
|
||||
*/
|
||||
kakao.link("talk").send({
|
||||
msg : msg,
|
||||
url : "<?php echo $sns_url; ?>",
|
||||
appid : "<?php echo $_SERVER['HTTP_HOST']; ?>",
|
||||
appver : "2.0",
|
||||
appname : "<?php echo $config['cf_title']; ?>",
|
||||
type : "link"
|
||||
});
|
||||
|
||||
$("#kakao_message").remove();
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user