Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -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)) {
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
// 주문폼 필드체크
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
// 결제폼 필드체크
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
// 개인결제번호제거
|
||||
|
||||
@ -12,6 +12,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
<input type="hidden" name="is_mobile_shop" value="1">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
@ -41,7 +42,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
|
||||
<td><?php echo $editor_html; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -57,9 +58,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<script type="text/javascript">
|
||||
function fitemqa_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('iq_question'); ?>
|
||||
|
||||
<?php echo chk_editor_js('iq_question'); ?>
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
<input type="hidden" name="is_mobile_shop" value="1">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
@ -26,34 +27,34 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', $use['is_content']); ?></td>
|
||||
<td><?php echo $editor_html; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<input type="radio" name="is_score" value="5" id="is_score10" <?php echo ($is_score==5)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<input type="radio" name="is_score" value="4" id="is_score8" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<input type="radio" name="is_score" value="3" id="is_score6" <?php echo ($is_score==3)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<input type="radio" name="is_score" value="2" id="is_score4" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<input type="radio" name="is_score" value="1" id="is_score2" <?php echo ($is_score==1)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star1.png">
|
||||
</li>
|
||||
@ -75,9 +76,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<script type="text/javascript">
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('is_content'); ?>
|
||||
|
||||
<?php echo chk_editor_js('is_content'); ?>
|
||||
<?php echo $editor_js; ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user