Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
whitedot
2013-11-22 15:44:26 +09:00
20 changed files with 140 additions and 60 deletions

View File

@ -36,6 +36,16 @@ if ($w == "u")
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('iq_question', $qa['iq_question'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_question', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_question', $is_dhtml_editor);
$itemqaform_skin = G5_MSHOP_SKIN_PATH.'/itemqaform.skin.php';
if(!file_exists($itemqaform_skin)) {

View File

@ -14,7 +14,7 @@ $is_id = escape_trim($_REQUEST['is_id']);
check_itemuse_write();
if ($w == "") {
$is_score = 10;
$is_score = 5;
} else if ($w == "u") {
$use = sql_fetch(" select * from {$g5['g5_shop_item_use_table']} where is_id = '$is_id' ");
if (!$use) {
@ -31,6 +31,16 @@ if ($w == "") {
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('is_content', $use['is_content'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('is_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('is_content', $is_dhtml_editor);
$itemuseform_skin = G5_MSHOP_SKIN_PATH.'/itemuseform.skin.php';
if(!file_exists($itemuseform_skin)) {

View File

@ -202,12 +202,6 @@
of.param_opt_2.value = "<?php echo $param_opt_2; ?>";
of.param_opt_3.value = "<?php echo $param_opt_3; ?>";
var od = window.opener.document;
od.getElementById("display_pay_button").style.display = "none";
//od.getElementById("show_req_btn").style.display = "none";
//od.getElementById("show_progress").style.display = "block";
//od.getElementById("show_pay_btn").style.display = "inline";
//alert("주문하기를 클릭하셔야 주문이 완료됩니다.");
window.opener.forderform_check();
window.close();

View File

@ -202,13 +202,6 @@
of.param_opt_2.value = "<?php echo $param_opt_2; ?>";
of.param_opt_3.value = "<?php echo $param_opt_3; ?>";
var od = window.opener.document;
od.getElementById("display_pay_button").style.display = "none";
//od.getElementById("show_req_btn").style.display = "none";
//od.getElementById("show_progress").style.display = "block";
//od.getElementById("show_pay_btn").style.display = "inline";
//alert("주문하기를 클릭하셔야 주문이 완료됩니다.");
window.opener.fpersonalpayform_check();
window.close();
} else {

View File

@ -764,13 +764,13 @@ ob_end_clean();
<input type="hidden" name="comm_free_mny" value="<?php echo $comm_free_mny; ?>"> <!-- 비과세 금액 -->
<?php } ?>
<p id="show_progress" style="display:none;">반드시 주문하기 버튼을 클릭 하셔야만 결제가 진행됩니다.</p>
<div id="display_pay_button" class="btn_confirm">
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="kcp_approval();" value="결제등록요청"class="btn_submit"></span>
<span id="show_pay_btn" style="display:none;"><input type="button" onClick="forderform_check();" value="주문하기" class="btn_submit"></span>
<a href="javascript:history.go(-1);" class="btn_cancel">취소</a>
</div>
<p id="show_progress" style="display:none;">주문완료 중입니다. 잠시만 기다려 주십시오.</p>
</form>
<?php if ($default['de_escrow_use']) { ?>
@ -1325,7 +1325,12 @@ function forderform_check()
return false;
}
f.submit();
document.getElementById("display_pay_button").style.display = "none";
document.getElementById("show_progress").style.display = "block";
setTimeout(function() {
f.submit();
}, 300);
}
// 주문폼 필드체크

View File

@ -210,13 +210,13 @@ if($default['de_escrow_use']) {
<input type="hidden" name="param_opt_2" value="">
<input type="hidden" name="param_opt_3" value="">
<p id="show_progress" style="display:none;">반드시 결제하기 버튼을 클릭 하셔야만 결제가 진행됩니다.</p>
<div id="display_pay_button" class="btn_confirm">
<span id="show_req_btn"><input type="button" name="submitChecked" onClick="kcp_approval();" value="결제등록요청"class="btn_submit"></span>
<span id="show_pay_btn" style="display:none;"><input type="button" onClick="fpersonalpayform_check();" value="결제하기" class="btn_submit"></span>
<a href="javascript:history.go(-1);" class="btn_cancel">취소</a>
</div>
<p id="show_progress" style="display:none;">결제진행 중입니다. 잠시만 기다려 주십시오.</p>
</form>
<?php if ($default['de_escrow_use']) { ?>
@ -318,7 +318,12 @@ function fpersonalpayform_check()
return false;
}
f.submit();
document.getElementById("display_pay_button").style.display = "none";
document.getElementById("show_progress").style.display = "block";
setTimeout(function() {
f.submit();
}, 300);
}
// 결제폼 필드체크

View File

@ -141,6 +141,24 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) {
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}");
}
// 미수금 정보 업데이트
$info = get_order_info($pp['od_id']);
$sql = " update {$g5['g5_shop_order_table']}
set od_misu = '{$info['od_misu']}' ";
if($info['od_misu'] == 0)
$sql .= " , od_status = '입금' ";
$sql .= " where od_id = '{$pp['od_id']}' ";
sql_query($sql, FALSE);
// 장바구니 상태변경
if($info['od_misu'] == 0) {
$sql = " update {$g5['g5_shop_cart_table']}
set ct_status = '입금'
where od_id = '{$pp['od_id']}' ";
sql_query($sql, FALSE);
}
}
// 개인결제번호제거