Merge branch 'master' of github.com:gnuboard/yc5
This commit is contained in:
@ -77,9 +77,15 @@ if (!isset($board['bo_mobile_subject'])) {
|
||||
}
|
||||
|
||||
if (!isset($board['bo_use_captcha'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['board_table']}` ADD `bo_use_captcha` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_sns` ");
|
||||
sql_query(" ALTER TABLE `{$g5['board_table']}` ADD `bo_use_captcha` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_sns` ", false);
|
||||
}
|
||||
|
||||
if (!isset($board['bo_select_editor'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['board_table']}` ADD `bo_select_editor` VARCHAR(50) NOT NULL DEFAULT '' AFTER `bo_use_dhtml_editor` ", false);
|
||||
}
|
||||
|
||||
run_event('adm_board_form_before', $board, $w);
|
||||
|
||||
$required = "";
|
||||
$readonly = "";
|
||||
$sound_only = "";
|
||||
@ -482,6 +488,27 @@ $pg_anchor = '<ul class="anchor">
|
||||
<label for="chk_all_use_dhtml_editor">전체적용</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_select_editor">게시판 에디터 선택</label></th>
|
||||
<td>
|
||||
<?php echo help('게시판에 사용할 에디터를 설정합니다. 스킨에 따라 적용되지 않을 수 있습니다.') ?>
|
||||
<select name="bo_select_editor" id="bo_select_editor">
|
||||
<?php
|
||||
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">기본환경설정의 에디터 사용</option>";
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($board['bo_select_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_select_editor" value="1" id="chk_grp_select_editor">
|
||||
<label for="chk_grp_select_editor">그룹적용</label>
|
||||
<input type="checkbox" name="chk_all_select_editor" value="1" id="chk_all_select_editor">
|
||||
<label for="chk_all_select_editor">전체적용</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_use_rss_view">RSS 보이기 사용</label></th>
|
||||
<td>
|
||||
|
||||
@ -114,6 +114,7 @@ $sql_common = " gr_id = '{$gr_id}',
|
||||
bo_use_file_content = '{$_POST['bo_use_file_content']}',
|
||||
bo_use_secret = '{$_POST['bo_use_secret']}',
|
||||
bo_use_dhtml_editor = '{$_POST['bo_use_dhtml_editor']}',
|
||||
bo_select_editor = '{$_POST['bo_select_editor']}',
|
||||
bo_use_rss_view = '{$_POST['bo_use_rss_view']}',
|
||||
bo_use_good = '{$_POST['bo_use_good']}',
|
||||
bo_use_nogood = '{$_POST['bo_use_nogood']}',
|
||||
@ -301,6 +302,7 @@ if (is_checked('chk_grp_use_sideview')) $grp_fields .= " , bo_use_sidevi
|
||||
if (is_checked('chk_grp_use_file_content')) $grp_fields .= " , bo_use_file_content = '{$bo_use_file_content}' ";
|
||||
if (is_checked('chk_grp_use_secret')) $grp_fields .= " , bo_use_secret = '{$bo_use_secret}' ";
|
||||
if (is_checked('chk_grp_use_dhtml_editor')) $grp_fields .= " , bo_use_dhtml_editor = '{$bo_use_dhtml_editor}' ";
|
||||
if (is_checked('chk_grp_select_editor')) $grp_fields .= " , bo_select_editor = '{$bo_select_editor}' ";
|
||||
if (is_checked('chk_grp_use_rss_view')) $grp_fields .= " , bo_use_rss_view = '{$bo_use_rss_view}' ";
|
||||
if (is_checked('chk_grp_use_good')) $grp_fields .= " , bo_use_good = '{$bo_use_good}' ";
|
||||
if (is_checked('chk_grp_use_nogood')) $grp_fields .= " , bo_use_nogood = '{$bo_use_nogood}' ";
|
||||
@ -390,6 +392,7 @@ if (is_checked('chk_all_use_sideview')) $all_fields .= " , bo_use_sidevi
|
||||
if (is_checked('chk_all_use_file_content')) $all_fields .= " , bo_use_file_content = '{$bo_use_file_content}' ";
|
||||
if (is_checked('chk_all_use_secret')) $all_fields .= " , bo_use_secret = '{$bo_use_secret}' ";
|
||||
if (is_checked('chk_all_use_dhtml_editor')) $all_fields .= " , bo_use_dhtml_editor = '{$bo_use_dhtml_editor}' ";
|
||||
if (is_checked('chk_all_select_editor')) $all_fields .= " , bo_select_editor = '{$bo_select_editor}' ";
|
||||
if (is_checked('chk_all_use_rss_view')) $all_fields .= " , bo_use_rss_view = '{$bo_use_rss_view}' ";
|
||||
if (is_checked('chk_all_use_good')) $all_fields .= " , bo_use_good = '{$bo_use_good}' ";
|
||||
if (is_checked('chk_all_use_nogood')) $all_fields .= " , bo_use_nogood = '{$bo_use_nogood}' ";
|
||||
|
||||
@ -198,12 +198,14 @@ a.btn_submit{background:#ff4081;color:#fff}
|
||||
.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;border:0;border-radius:5px;padding:0 10px}
|
||||
a.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;line-height:33px;border-radius:5px;padding:0 10px;text-decoration:none !important}
|
||||
.btn_ov01{display:inline-block;line-height:30px;height:30px;font-size:0.92em;vertical-align:top}
|
||||
.btn_ov01:after{display:block;visibility:hidden;clear :both;content:""}
|
||||
.btn_ov01 .ov_txt{float:left;background:#9eacc6;color:#fff;border-radius:5px 0 0 5px;padding:0 5px}
|
||||
.btn_ov01 .ov_num{float:left;background:#ededed;color:#666;border-radius:0 5px 5px 0;padding:0 5px}
|
||||
a.btn_ov02,a.ov_listall{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#565e8c;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px }
|
||||
a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
|
||||
|
||||
.local_ov01.local_ov [data-tooltip-text]:hover {position:relative}
|
||||
.local_ov01.local_ov [data-tooltip-text]:hover:after{line-height:20px;background-color:#000;background-color:rgba(0,0,0,0.8);-webkit-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-moz-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;color:#FFF;font-size:11px;content:attr(data-tooltip-text);white-space: pre;margin-bottom:10px;top:130%;left:0;padding:7px 12px;position:absolute;max-width:500px;word-wrap:break-word;z-index:9999}
|
||||
|
||||
/*form*/
|
||||
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
||||
.frm_input{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 18 KiB |
@ -70,8 +70,8 @@ $colspan = 16;
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall ?>
|
||||
<span class="btn_ov01"><span class="ov_txt">총회원수 </span><span class="ov_num"> <?php echo number_format($total_count) ?>명 </span></span>
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>" class="btn_ov01"> <span class="ov_txt">차단 </span><span class="ov_num"><?php echo number_format($intercept_count) ?>명</span></a>
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>" class="btn_ov01"> <span class="ov_txt">탈퇴 </span><span class="ov_num"><?php echo number_format($leave_count) ?>명</span></a>
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>" class="btn_ov01" data-tooltip-text="차단된 순으로 정렬합니다.
전체 데이터를 출력합니다."> <span class="ov_txt">차단 </span><span class="ov_num"><?php echo number_format($intercept_count) ?>명</span></a>
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>" class="btn_ov01" data-tooltip-text="탈퇴된 순으로 정렬합니다.
전체 데이터를 출력합니다."> <span class="ov_txt">탈퇴 </span><span class="ov_num"><?php echo number_format($leave_count) ?>명</span></a>
|
||||
</div>
|
||||
|
||||
<form id="fsearch" name="fsearch" class="local_sch01 local_sch" method="get">
|
||||
|
||||
@ -19,10 +19,8 @@ include_once('./admin.head.php');
|
||||
|
||||
<ul>
|
||||
<li><a href="http://sir.kr/main/service/p_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_01.jpg" alt="KCP 신용카드 전자결제 신청하기"></a></li>
|
||||
<li ><a href="http://sir.kr/main/service/lg_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg" alt="LG유플러스 신용카드 전자결제 신청하기"></a></li>
|
||||
<li ><a href="http://sir.kr/main/service/lg_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg?v2" alt="토스페이먼츠 전자결제 신청하기"></a></li>
|
||||
<li class="last"><a href="http://sir.kr/main/service/inicis_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_06.jpg" alt="KG 이니시스 전자결제 신청하기"></a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sevice_1 svc_phone">
|
||||
@ -31,7 +29,7 @@ include_once('./admin.head.php');
|
||||
|
||||
<ul>
|
||||
<li><a href="http://sir.kr/main/service/p_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_01.jpg" alt="KCP 휴대폰 본인확인 신청하기"></a></li>
|
||||
<li><a href="http://sir.kr/main/service/lg_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg" alt="유플러스 휴대폰 본인확인 신청하기"></a></li>
|
||||
<li><a href="http://sir.kr/main/service/lg_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg?v2" alt="유플러스 휴대폰 본인확인 신청하기"></a></li>
|
||||
<li class="last"><a href="http://sir.kr/main/service/b_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_03.jpg" alt="오케이네임 휴대폰대체인증 신청하기"></a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
@ -136,6 +136,14 @@ function pg_setting_check($is_print=false){
|
||||
}
|
||||
}
|
||||
|
||||
if( function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') ){
|
||||
if(!extension_loaded('soap') || !class_exists('SOAPClient')) {
|
||||
$msg .= '<script>'.PHP_EOL;
|
||||
$msg .= 'alert("PHP SOAP 확장모듈이 설치되어 있지 않습니다.\n모바일 쇼핑몰 결제 때 사용되오니 SOAP 확장 모듈을 설치하여 주십시오.\nNHN_KCP (네이버페이) 모바일결제가 되지 않습니다.");'.PHP_EOL;
|
||||
$msg .= '</script>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if( $pg_msg ){
|
||||
$pg_test_conf_link = G5_ADMIN_URL.'/shop_admin/configform.php#de_card_test1';
|
||||
$msg .= '<div class="admin_pg_notice od_test_caution">(주의!) '.$pg_msg.' 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.<br>테스트결제시 실제 결제가 되지 않으므로, 쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.<br>아래 링크를 클릭하여 실결제로 설정하여 운영해 주세요.<br><a href="'.$pg_test_conf_link.'" class="pg_test_conf_link">'.$pg_test_conf_link.'</a></div>';
|
||||
|
||||
@ -52,7 +52,7 @@ if ($w=="")
|
||||
bn_new_win = '$bn_new_win',
|
||||
bn_begin_time = '$bn_begin_time',
|
||||
bn_end_time = '$bn_end_time',
|
||||
bn_time = '$now',
|
||||
bn_time = '".G5_TIME_YMDHIS."',
|
||||
bn_hit = '0',
|
||||
bn_order = '$bn_order' ";
|
||||
sql_query($sql);
|
||||
@ -70,6 +70,7 @@ else if ($w=="u")
|
||||
bn_new_win = '$bn_new_win',
|
||||
bn_begin_time = '$bn_begin_time',
|
||||
bn_end_time = '$bn_end_time',
|
||||
bn_time = '".G5_TIME_YMDHIS."',
|
||||
bn_order = '$bn_order'
|
||||
where bn_id = '$bn_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
@ -121,7 +121,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$bn_img = "";
|
||||
|
||||
$bn_img .= '<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'" width="'.$width.'" alt="'.get_text($row['bn_alt']).'">';
|
||||
$bn_img .= '<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'?'.preg_replace('/[^0-9]/i', '', $row['bn_time']).'" width="'.$width.'" alt="'.get_text($row['bn_alt']).'">';
|
||||
}
|
||||
|
||||
switch($row['bn_device']) {
|
||||
|
||||
@ -193,8 +193,15 @@ if( ! isset($config['cf_icode_token_key']) ){
|
||||
sql_query($sql, false);
|
||||
}
|
||||
|
||||
// PG 간편결제 추가 ( NHN_KCP 네이버페이, 카카오페이 )
|
||||
if( ! isset($default['de_easy_pay_services']) ){
|
||||
$sql = "ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD COLUMN `de_easy_pay_services` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_easy_pay_use`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
|
||||
if( function_exists('pg_setting_check') ){
|
||||
pg_setting_check(true);
|
||||
pg_setting_check(true);
|
||||
}
|
||||
|
||||
if(!$default['de_kakaopay_cancelpwd']){
|
||||
@ -669,26 +676,26 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$account_checked = $vbank_checked = $transfer_checked = '';
|
||||
<?php
|
||||
$account_checked = $vbank_checked = $transfer_checked = '';
|
||||
|
||||
if (strstr($default['de_taxsave_types'], 'account')) {
|
||||
$account_checked = 'checked="checked"';
|
||||
}
|
||||
if (strstr($default['de_taxsave_types'], 'vbank')) {
|
||||
$vbank_checked = 'checked="checked"';
|
||||
}
|
||||
if (strstr($default['de_taxsave_types'], 'transfer')) {
|
||||
$transfer_checked = 'checked="checked"';
|
||||
}
|
||||
?>
|
||||
if (strstr($default['de_taxsave_types'], 'account')) {
|
||||
$account_checked = 'checked="checked"';
|
||||
}
|
||||
if (strstr($default['de_taxsave_types'], 'vbank')) {
|
||||
$vbank_checked = 'checked="checked"';
|
||||
}
|
||||
if (strstr($default['de_taxsave_types'], 'transfer')) {
|
||||
$transfer_checked = 'checked="checked"';
|
||||
}
|
||||
?>
|
||||
<tr id="de_taxsave_types" class="de_taxsave_types">
|
||||
<th scope="row">현금영수증<br>적용수단</th>
|
||||
<td>
|
||||
<?php echo help("현금영수증 발급 사용일 경우 해당됩니다.<br>현금 영수증 발급은 무통장입금, 가상계좌, 실시간계좌에만 적용됩니다.<br>아래 체크된 수단에 한해서 회원이 직접 주문 보기 페이지에서 현금영수증을 발급 받을수 있습니다.<br>!!! 만약 PG사 상점관리자에서 가상계좌 또는 실시간계좌이체가 자동으로 현금영수증이 발급되는 경우이면, 아래 가상계좌와 실시간계좌이체 체크박스를 해제하여 사용해 주세요.( 중복으로 발급되는 것을 막기 위함입니다. )", 50); ?>
|
||||
<input type="checkbox" id="de_taxsave_types_account" name="de_taxsave_types_account" value="account" <?php echo $account_checked; ?> > <label for="de_taxsave_types_account" disabled>무통장입금</label><br>
|
||||
<input type="checkbox" id="de_taxsave_types_vbank" name="de_taxsave_types_vbank" value="vbank" <?php echo $vbank_checked; ?> > <label for="de_taxsave_types_vbank">가상계좌</label><br>
|
||||
<input type="checkbox" id="de_taxsave_types_transfer" name="de_taxsave_types_transfer" value="transfer" <?php echo $transfer_checked; ?> > <label for="de_taxsave_types_transfer">실시간계좌이체</label>
|
||||
<input type="checkbox" id="de_taxsave_types_vbank" name="de_taxsave_types_vbank" value="vbank" <?php echo $vbank_checked; ?> > <label for="de_taxsave_types_vbank">가상계좌</label><br>
|
||||
<input type="checkbox" id="de_taxsave_types_transfer" name="de_taxsave_types_transfer" value="transfer" <?php echo $transfer_checked; ?> > <label for="de_taxsave_types_transfer">실시간계좌이체</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -747,7 +754,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<?php echo help('쇼핑몰에서 사용할 결제대행사를 선택합니다.'); ?>
|
||||
<ul class="de_pg_tab">
|
||||
<li class="<?php if($default['de_pg_service'] == 'kcp') echo 'tab-current'; ?>"><a href="#kcp_info_anchor" data-value="kcp" title="NHN KCP 선택하기" >NHN KCP</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'lg') echo 'tab-current'; ?>"><a href="#lg_info_anchor" data-value="lg" title="LG유플러스 선택하기">LG유플러스</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'lg') echo 'tab-current'; ?>"><a href="#lg_info_anchor" data-value="lg" title="토스페이먼츠 선택하기">토스페이먼츠</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'inicis') echo 'tab-current'; ?>"><a href="#inicis_info_anchor" data-value="inicis" title="KG이니시스 선택하기">KG이니시스</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
@ -755,7 +762,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<tr class="pg_info_fld kcp_info_fld" id="kcp_info_anchor">
|
||||
<th scope="row">
|
||||
<label for="de_kcp_mid">KCP SITE CODE</label><br>
|
||||
<a href="http://sir.kr/main/service/p_pg.php" target="_blank" id="scf_kcpreg" class="kcp_btn">NHN KCP서비스신청하기</a>
|
||||
<a href="http://sir.kr/main/service/p_pg.php" target="_blank" id="scf_kcpreg" class="kcp_btn">NHN KCP 신청하기</a>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("NHN KCP 에서 받은 SR 로 시작하는 영대문자, 숫자 혼용 총 5자리 중 SR 을 제외한 나머지 3자리 SITE CODE 를 입력하세요.\n만약, 사이트코드가 SR로 시작하지 않는다면 NHN KCP에 사이트코드 변경 요청을 하십시오. 예) SR9A3"); ?>
|
||||
@ -769,27 +776,43 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<input type="text" name="de_kcp_site_key" value="<?php echo $default['de_kcp_site_key']; ?>" id="de_kcp_site_key" class="frm_input" size="36" maxlength="25">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld kcp_info_fld">
|
||||
<th scope="row"><label for="de_kcp_easy_pays">NHN KCP 간편결제</label></th>
|
||||
<td>
|
||||
<?php echo help("체크시 NHN KCP 간편결제들을 활성화 합니다.\nNHN_KCP > 네이버페이, 카카오페이는 테스트결제가 되지 않습니다."); ?>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_payco" name="de_easy_pays[]" value="nhnkcp_payco" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_payco') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_payco" disabled>PAYCO (페이코)</label><br>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_naverpay" name="de_easy_pays[]" value="nhnkcp_naverpay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_naverpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_naverpay">NAVERPAY (네이버페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_kakaopay" name="de_easy_pays[]" value="nhnkcp_kakaopay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_kakaopay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_kakaopay">KAKAOPAY (카카오페이)</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld kcp_info_fld">
|
||||
<th scope="row"><label for="de_global_nhnkcp_naverpay">NHN KCP 네이버페이 사용</label></th>
|
||||
<td>
|
||||
<?php echo help("체크시 타 PG (토스페이먼츠, KG 이니시스) 사용중일때도 NHN_KCP 를 통한 네이버페이 간편결제를 사용할수 있습니다.\n실결제시 반드시 결제대행사 NHN_KCP 항목에 KCP SITE CODE와 NHN KCP SITE KEY를 입력해야 합니다."); ?>
|
||||
<input type="checkbox" id="de_global_nhnkcp_naverpay" name="de_easy_pays[]" value="global_nhnkcp_naverpay" <?php if(stripos($default['de_easy_pay_services'], 'global_nhnkcp_naverpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_global_nhnkcp_naverpay">NAVERPAY (네이버페이)</label><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld lg_info_fld" id="lg_info_anchor">
|
||||
<th scope="row">
|
||||
<label for="cf_lg_mid">LG유플러스 상점아이디</label><br>
|
||||
<a href="http://sir.kr/main/service/lg_pg.php" target="_blank" id="scf_lgreg" class="lg_btn">LG유플러스 서비스신청하기</a>
|
||||
<label for="cf_lg_mid">토스페이먼츠 상점아이디</label><br>
|
||||
<a href="http://sir.kr/main/service/lg_pg.php" target="_blank" id="scf_lgreg" class="lg_btn">토스페이먼츠 신청하기</a>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("LG유플러스에서 받은 si_ 로 시작하는 상점 ID를 입력하세요.\n만약, 상점 ID가 si_로 시작하지 않는다면 LG유플러스에 사이트코드 변경 요청을 하십시오. 예) si_lguplus\n<a href=\"".G5_ADMIN_URL."/config_form.php#anc_cf_cert\">기본환경설정 > 본인확인</a> 설정의 LG유플러스 상점아이디와 동일합니다."); ?>
|
||||
<?php echo help("토스페이먼츠에서 받은 si_ 로 시작하는 상점 ID를 입력하세요.\n만약, 상점 ID가 si_로 시작하지 않는다면 토스페이먼츠에 사이트코드 변경 요청을 하십시오. 예) si_lguplus\n<a href=\"".G5_ADMIN_URL."/config_form.php#anc_cf_cert\">기본환경설정 > 본인확인</a> 설정의 토스페이먼츠 상점아이디와 동일합니다."); ?>
|
||||
<span class="sitecode">si_</span> <input type="text" name="cf_lg_mid" value="<?php echo $config['cf_lg_mid']; ?>" id="cf_lg_mid" class="frm_input code_input" size="10" maxlength="20"> 영문자, 숫자 혼용
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld lg_info_fld">
|
||||
<th scope="row"><label for="cf_lg_mert_key">LG유플러스 MERT KEY</label></th>
|
||||
<th scope="row"><label for="cf_lg_mert_key">토스페이먼츠 MERT KEY</label></th>
|
||||
<td>
|
||||
<?php echo help("LG유플러스 상점MertKey는 상점관리자 -> 계약정보 -> 상점정보관리에서 확인하실 수 있습니다.\n예) 95160cce09854ef44d2edb2bfb05f9f3\n<a href=\"".G5_ADMIN_URL."/config_form.php#anc_cf_cert\">기본환경설정 > 본인확인</a> 설정의 LG유플러스 MERT KEY와 동일합니다."); ?>
|
||||
<?php echo help("토스페이먼츠 상점MertKey는 상점관리자 -> 계약정보 -> 상점정보관리에서 확인하실 수 있습니다.\n예) 95160cce09854ef44d2edb2bfb05f9f3\n<a href=\"".G5_ADMIN_URL."/config_form.php#anc_cf_cert\">기본환경설정 > 본인확인</a> 설정의 토스페이먼츠 MERT KEY와 동일합니다."); ?>
|
||||
<input type="text" name="cf_lg_mert_key" value="<?php echo $config['cf_lg_mert_key']; ?>" id="cf_lg_mert_key" class="frm_input " size="36" maxlength="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld inicis_info_fld" id="inicis_info_anchor">
|
||||
<th scope="row">
|
||||
<label for="de_inicis_mid">KG이니시스 상점아이디</label><br>
|
||||
<a href="http://sir.kr/main/service/inicis_pg.php" target="_blank" id="scf_kgreg" class="kg_btn">KG이니시스 서비스신청하기</a>
|
||||
<a href="http://sir.kr/main/service/inicis_pg.php" target="_blank" id="scf_kgreg" class="kg_btn">KG이니시스 신청하기</a>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("KG이니시스로 부터 발급 받으신 상점아이디(MID) 10자리 중 SIR 을 제외한 나머지 7자리를 입력 합니다.\n만약, 상점아이디가 SIR로 시작하지 않는다면 계약담당자에게 변경 요청을 해주시기 바랍니다. (Tel. 02-3430-5858) 예) SIRpaytest"); ?>
|
||||
@ -999,7 +1022,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<li><b>일반결제</b>의 테스트 사이트코드는 <b>T0000</b> 이며, <b>에스크로 결제</b>의 테스트 사이트코드는 <b>T0007</b> 입니다.</li>
|
||||
</ul>
|
||||
<ul id="lg_cardtest_tip" class="scf_cardtest_tip_adm scf_cardtest_tip_adm_hide">
|
||||
<li>테스트결제의 <a href="http://pgweb.dacom.net:7085/" target="_blank">상점관리자</a> 로그인 정보는 LG유플러스 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus</li>
|
||||
<li>테스트결제의 <a href="http://pgweb.dacom.net:7085/" target="_blank">상점관리자</a> 로그인 정보는 토스페이먼츠 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus</li>
|
||||
</ul>
|
||||
<ul id="inicis_cardtest_tip" class="scf_cardtest_tip_adm scf_cardtest_tip_adm_hide">
|
||||
<li><b>일반결제</b>의 테스트 사이트 mid는 <b>INIpayTest</b> 이며, <b>에스크로 결제</b>의 테스트 사이트 mid는 <b>iniescrow0</b> 입니다.</li>
|
||||
@ -1672,67 +1695,73 @@ function fconfig_check(f)
|
||||
<?php echo get_editor_js('de_baesong_content'); ?>
|
||||
<?php echo get_editor_js('de_change_content'); ?>
|
||||
<?php echo get_editor_js('de_guest_privacy'); ?>
|
||||
|
||||
var msg = "",
|
||||
pg_msg = "";
|
||||
|
||||
var msg = "",
|
||||
pg_msg = "";
|
||||
|
||||
if( f.de_pg_service.value == "kcp" ){
|
||||
if( f.de_kcp_mid.value && f.de_kcp_site_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "NHN KCP";
|
||||
}
|
||||
} else if ( f.de_pg_service.value == "lg" ) {
|
||||
if( f.cf_lg_mid.value && f.cf_lg_mert_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "LG유플러스";
|
||||
}
|
||||
} else if ( f.de_pg_service.value == "inicis" ) {
|
||||
if( f.de_inicis_mid.value && f.de_inicis_sign_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "KG이니시스";
|
||||
}
|
||||
}
|
||||
if( f.de_pg_service.value == "kcp" ){
|
||||
if( f.de_kcp_mid.value && f.de_kcp_site_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "NHN KCP";
|
||||
}
|
||||
} else if ( f.de_pg_service.value == "lg" ) {
|
||||
if( f.cf_lg_mid.value && f.cf_lg_mert_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "토스페이먼츠";
|
||||
}
|
||||
} else if ( f.de_pg_service.value == "inicis" ) {
|
||||
if( f.de_inicis_mid.value && f.de_inicis_sign_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "KG이니시스";
|
||||
}
|
||||
}
|
||||
|
||||
if( pg_msg ){
|
||||
msg += "(주의!) "+pg_msg+" 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.\n쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.\n실결제로 변경하려면 결제설정 탭 -> 결제 테스트에서 실결제를 선택해 주세요.\n정말로 테스트결제로 설정하시겠습니까?";
|
||||
}
|
||||
if( pg_msg ){
|
||||
msg += "(주의!) "+pg_msg+" 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.\n쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.\n실결제로 변경하려면 결제설정 탭 -> 결제 테스트에서 실결제를 선택해 주세요.\n정말로 테스트결제로 설정하시겠습니까?";
|
||||
}
|
||||
|
||||
if( msg ){
|
||||
if (confirm(msg)){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
if( msg ){
|
||||
if (confirm(msg)){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#de_global_nhnkcp_naverpay").on("click", function(e){
|
||||
if ( $(this).prop('checked') ) {
|
||||
$("#de_easy_nhnkcp_naverpay").prop('checked', true);
|
||||
}
|
||||
});
|
||||
|
||||
function hash_goto_scroll(hash=""){
|
||||
var $elem = hash ? $("#"+hash) : $('#' + window.location.hash.replace('#', ''));
|
||||
if($elem.length) {
|
||||
function hash_goto_scroll(hash=""){
|
||||
var $elem = hash ? $("#"+hash) : $('#' + window.location.hash.replace('#', ''));
|
||||
if($elem.length) {
|
||||
|
||||
var admin_head_height = $("#hd_top").height() + $("#container_title").height() + 30;
|
||||
var admin_head_height = $("#hd_top").height() + $("#container_title").height() + 30;
|
||||
|
||||
$('html, body').animate({
|
||||
scrollTop: ($elem.offset().top - admin_head_height) + 'px'
|
||||
}, 500, 'swing');
|
||||
}
|
||||
}
|
||||
$('html, body').animate({
|
||||
scrollTop: ($elem.offset().top - admin_head_height) + 'px'
|
||||
}, 500, 'swing');
|
||||
}
|
||||
}
|
||||
|
||||
hash_goto_scroll();
|
||||
|
||||
$(document).on("click", ".pg_test_conf_link", function(e){
|
||||
e.preventDefault();
|
||||
hash_goto_scroll();
|
||||
|
||||
$(document).on("click", ".pg_test_conf_link", function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var str_hash = this.href.split("#")[1];
|
||||
var str_hash = this.href.split("#")[1];
|
||||
|
||||
if( str_hash ){
|
||||
hash_goto_scroll(str_hash);
|
||||
}
|
||||
});
|
||||
});
|
||||
if( str_hash ){
|
||||
hash_goto_scroll(str_hash);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//$(".pg_info_fld").hide();
|
||||
$(".pg_vbank_url").hide();
|
||||
@ -1853,19 +1882,19 @@ $(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on("change", "#de_taxsave_use", function(e){
|
||||
var $val = $(this).val();
|
||||
|
||||
if( parseInt($val) > 0 ){
|
||||
$("#de_taxsave_types").show();
|
||||
} else {
|
||||
$("#de_taxsave_types").hide();
|
||||
}
|
||||
});
|
||||
|
||||
// 현금영수증 발급수단 중 무통장입금은 무조건 체크처리
|
||||
document.getElementById("de_taxsave_types_account").checked = true;
|
||||
document.getElementById("de_taxsave_types_account").disabled = true;
|
||||
$(document).on("change", "#de_taxsave_use", function(e){
|
||||
var $val = $(this).val();
|
||||
|
||||
if( parseInt($val) > 0 ){
|
||||
$("#de_taxsave_types").show();
|
||||
} else {
|
||||
$("#de_taxsave_types").hide();
|
||||
}
|
||||
});
|
||||
|
||||
// 현금영수증 발급수단 중 무통장입금은 무조건 체크처리
|
||||
document.getElementById("de_taxsave_types_account").checked = true;
|
||||
document.getElementById("de_taxsave_types_account").disabled = true;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@ -82,6 +82,16 @@ if(isset($_POST['de_taxsave_types_transfer']) && $_POST['de_taxsave_types_transf
|
||||
$de_taxsave_types .= ',transfer';
|
||||
}
|
||||
|
||||
// NHN_KCP 간편결제 체크
|
||||
$de_easy_pay_services = '';
|
||||
if(isset($_POST['de_easy_pays'])){
|
||||
$tmps = array();
|
||||
foreach( (array) $_POST['de_easy_pays'] as $v ){
|
||||
$tmps[] = preg_replace('/[^0-9a-z_\-]/i', '', $v);
|
||||
}
|
||||
$de_easy_pay_services = implode(",", $tmps);
|
||||
}
|
||||
|
||||
//KVE-2019-0689, KVE-2019-0691, KVE-2019-0694
|
||||
$check_sanitize_keys = array(
|
||||
'de_admin_company_name', //회사명
|
||||
@ -356,6 +366,7 @@ $sql = " update {$g5['g5_shop_default_table']}
|
||||
de_card_test = '{$de_card_test}',
|
||||
de_card_use = '{$de_card_use}',
|
||||
de_easy_pay_use = '{$de_easy_pay_use}',
|
||||
de_easy_pay_services = '{$de_easy_pay_services}',
|
||||
de_samsung_pay_use = '{$de_samsung_pay_use}',
|
||||
de_inicis_lpay_use = '{$de_inicis_lpay_use}',
|
||||
de_inicis_kakaopay_use = '{$de_inicis_kakaopay_use}',
|
||||
|
||||
@ -121,7 +121,7 @@ if($w == '') {
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
if(!$cp['cz_id'])
|
||||
alert('쿠폰정보가 존해하지 않습니다.', './couponzonelist.php');
|
||||
alert('쿠폰정보가 존재하지 않습니다.', './couponzonelist.php');
|
||||
|
||||
if ($_POST['cp_img_del'] && $cp['cz_file']) {
|
||||
@unlink(G5_DATA_PATH."/coupon/{$cp['cz_file']}");
|
||||
|
||||
@ -22,6 +22,15 @@ $ca_id = isset($ca_id) ? preg_replace('/[^0-9a-z]/i', '', $ca_id) : '';
|
||||
$ca_id2 = isset($ca_id2) ? preg_replace('/[^0-9a-z]/i', '', $ca_id2) : '';
|
||||
$ca_id3 = isset($ca_id3) ? preg_replace('/[^0-9a-z]/i', '', $ca_id3) : '';
|
||||
|
||||
if ($is_admin != 'super') { // 최고관리자가 아니면 체크
|
||||
$sql = "select b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$it_id'";
|
||||
$checks = sql_fetch($sql);
|
||||
|
||||
if( ! $checks['ca_mb_id'] || $checks['ca_mb_id'] !== $member['mb_id'] ){
|
||||
alert("해당 분류의 관리회원이 아닙니다.");
|
||||
}
|
||||
}
|
||||
|
||||
// 파일정보
|
||||
if($w == "u") {
|
||||
$sql = " select it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
|
||||
|
||||
@ -35,6 +35,16 @@ if ($_POST['act_button'] == "선택수정") {
|
||||
$p_it_use = is_array($_POST['it_use']) ? strip_tags($_POST['it_use'][$k]) : '';
|
||||
$p_it_soldout = is_array($_POST['it_soldout']) ? strip_tags($_POST['it_soldout'][$k]) : '';
|
||||
$p_it_order = is_array($_POST['it_order']) ? strip_tags($_POST['it_order'][$k]) : '';
|
||||
$p_it_id = preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k]);
|
||||
|
||||
if ($is_admin != 'super') { // 최고관리자가 아니면 체크
|
||||
$sql = "select a.it_id, b.ca_mb_id from {$g5['g5_shop_item_table']} a , {$g5['g5_shop_category_table']} b where (a.ca_id = b.ca_id) and a.it_id = '$p_it_id'";
|
||||
$checks = sql_fetch($sql);
|
||||
|
||||
if( ! $checks['ca_mb_id'] || $checks['ca_mb_id'] !== $member['mb_id'] ){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "update {$g5['g5_shop_item_table']}
|
||||
set ca_id = '".sql_real_escape_string($p_ca_id)."',
|
||||
@ -50,11 +60,11 @@ if ($_POST['act_button'] == "선택수정") {
|
||||
it_soldout = '".sql_real_escape_string($p_it_soldout)."',
|
||||
it_order = '".sql_real_escape_string($p_it_order)."',
|
||||
it_update_time = '".G5_TIME_YMDHIS."'
|
||||
where it_id = '".preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k])."' ";
|
||||
where it_id = '".$p_it_id."' ";
|
||||
|
||||
sql_query($sql);
|
||||
|
||||
if( function_exists('shop_seo_title_update') ) shop_seo_title_update(preg_replace('/[^a-z0-9_\-]/i', '', $_POST['it_id'][$k]), true);
|
||||
if( function_exists('shop_seo_title_update') ) shop_seo_title_update($p_it_id, true);
|
||||
}
|
||||
} else if ($_POST['act_button'] == "선택삭제") {
|
||||
|
||||
|
||||
@ -312,23 +312,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
// 결제방법
|
||||
$s_receipt_way = check_pay_name_replace($od['od_settle_case'], $od);
|
||||
|
||||
if($od['od_settle_case'] == '간편결제') {
|
||||
switch($od['od_pg']) {
|
||||
case 'lg':
|
||||
$s_receipt_way = 'PAYNOW';
|
||||
break;
|
||||
case 'inicis':
|
||||
$s_receipt_way = 'KPAY';
|
||||
break;
|
||||
case 'kcp':
|
||||
$s_receipt_way = 'PAYCO';
|
||||
break;
|
||||
default:
|
||||
$s_receipt_way = check_pay_name_replace($row['od_settle_case'], $od);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= "+포인트";
|
||||
?>
|
||||
|
||||
@ -221,7 +221,7 @@ if( function_exists('pg_setting_check') ){
|
||||
<input type="radio" name="od_settle_case" value="신용카드" id="od_settle_case06" <?php echo get_checked($od_settle_case, '신용카드'); ?>>
|
||||
<label for="od_settle_case06">신용카드</label>
|
||||
<input type="radio" name="od_settle_case" value="간편결제" id="od_settle_case07" <?php echo get_checked($od_settle_case, '간편결제'); ?>>
|
||||
<label for="od_settle_case07" data-tooltip-text="NHN_KCP 간편결제 : PAYCO 
LG유플러스 간편결제 : PAYNOW 
KG 이니시스 간편결제 : KPAY, 삼성페이, LPAY, 카카오페이(KG이니시스)">PG간편결제</label>
|
||||
<label for="od_settle_case07" data-tooltip-text="NHN_KCP 간편결제 : PAYCO, 네이버페이, 카카오페이(NHN_KCP) 
LG유플러스 간편결제 : PAYNOW 
KG 이니시스 간편결제 : KPAY, 삼성페이, LPAY, 카카오페이(KG이니시스)">PG간편결제</label>
|
||||
<input type="radio" name="od_settle_case" value="KAKAOPAY" id="od_settle_case08" <?php echo get_checked($od_settle_case, 'KAKAOPAY'); ?>>
|
||||
<label for="od_settle_case08">KAKAOPAY</label>
|
||||
</div>
|
||||
@ -305,24 +305,6 @@ if( function_exists('pg_setting_check') ){
|
||||
{
|
||||
$s_receipt_way = check_pay_name_replace($row['od_settle_case'], $row);
|
||||
$s_br = '<br />';
|
||||
|
||||
// 간편결제
|
||||
if($row['od_settle_case'] == '간편결제') {
|
||||
switch($row['od_pg']) {
|
||||
case 'lg':
|
||||
$s_receipt_way = 'PAYNOW';
|
||||
break;
|
||||
case 'inicis':
|
||||
$s_receipt_way = 'KPAY';
|
||||
break;
|
||||
case 'kcp':
|
||||
$s_receipt_way = 'PAYCO';
|
||||
break;
|
||||
default:
|
||||
$s_receipt_way = check_pay_name_replace($row['od_settle_case'], $row);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -544,12 +526,14 @@ $(function(){
|
||||
});
|
||||
|
||||
// 상품리스트 닫기
|
||||
$(".orderitemlist-x").on("click", function() {
|
||||
$("#sodr_list").on("click", "#orderitemlist-x", function(e) {
|
||||
$("#orderitemlist").remove();
|
||||
});
|
||||
|
||||
$("body").on("click", function() {
|
||||
$("#orderitemlist").remove();
|
||||
$("body").on("click", function(e) {
|
||||
if ($(e.target).closest("#orderitemlist").length === 0){
|
||||
$("#orderitemlist").remove();
|
||||
}
|
||||
});
|
||||
|
||||
// 엑셀배송처리창
|
||||
|
||||
@ -27,6 +27,7 @@ function print_line($save)
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptvbank']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptiche']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptcard']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipteasy']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipthp']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptpoint']); ?></td>
|
||||
<td class="td_numcancel1"><?php echo number_format($save['ordercancel']); ?></td>
|
||||
@ -65,6 +66,7 @@ $result = sql_query($sql);
|
||||
<th scope="col">가상계좌</th>
|
||||
<th scope="col">계좌이체</th>
|
||||
<th scope="col">카드입금</th>
|
||||
<th scope="col">간편결제</th>
|
||||
<th scope="col">휴대폰</th>
|
||||
<th scope="col">포인트입금</th>
|
||||
<th scope="col">주문취소</th>
|
||||
@ -119,10 +121,15 @@ $result = sql_query($sql);
|
||||
$tot['receiptcard'] += $row['od_receipt_price'];
|
||||
$tot['receiptpoint'] += $row['od_receipt_point'];
|
||||
$tot['misu'] += $row['od_misu'];
|
||||
|
||||
if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
|
||||
$save['receipteasy'] += $row['od_receipt_price'];
|
||||
$tot['receipteasy'] += $row['od_receipt_price'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="12" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
echo '<tr><td colspan="13" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
} else {
|
||||
print_line($save);
|
||||
}
|
||||
@ -138,6 +145,7 @@ $result = sql_query($sql);
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptvbank']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptiche']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptcard']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipteasy']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipthp']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptpoint']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['ordercancel']); ?></td>
|
||||
|
||||
@ -27,6 +27,7 @@ function print_line($save)
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptvbank']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptiche']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptcard']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipteasy']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipthp']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptpoint']); ?></td>
|
||||
<td class="td_numcancel1"><?php echo number_format($save['ordercancel']); ?></td>
|
||||
@ -66,6 +67,7 @@ $result = sql_query($sql);
|
||||
<th scope="col">가상계좌</th>
|
||||
<th scope="col">계좌이체</th>
|
||||
<th scope="col">카드입금</th>
|
||||
<th scope="col">간편결제</th>
|
||||
<th scope="col">휴대폰</th>
|
||||
<th scope="col">포인트입금</th>
|
||||
<th scope="col">주문취소</th>
|
||||
@ -120,6 +122,11 @@ $result = sql_query($sql);
|
||||
$tot['receiptcard'] += $row['od_receipt_price'];
|
||||
$tot['receiptpoint'] += $row['od_receipt_point'];
|
||||
$tot['misu'] += $row['od_misu'];
|
||||
|
||||
if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
|
||||
$save['receipteasy'] += $row['od_receipt_price'];
|
||||
$tot['receipteasy'] += $row['od_receipt_price'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
@ -139,6 +146,7 @@ $result = sql_query($sql);
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptvbank']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptiche']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptcard']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipteasy']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipthp']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptpoint']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['ordercancel']); ?></td>
|
||||
|
||||
@ -41,6 +41,7 @@ $result = sql_query($sql);
|
||||
<th scope="col">가상계좌</th>
|
||||
<th scope="col">계좌이체</th>
|
||||
<th scope="col">카드입금</th>
|
||||
<th scope="col">간편결제</th>
|
||||
<th scope="col">휴대폰</th>
|
||||
<th scope="col">포인트입금</th>
|
||||
<th scope="col">주문취소</th>
|
||||
@ -58,7 +59,7 @@ $result = sql_query($sql);
|
||||
$href = '<a href="./orderlist.php?sel_field=mb_id&search='.$row['mb_id'].'">';
|
||||
}
|
||||
|
||||
$receipt_bank = $receipt_card = $receipt_vbank = $receipt_iche = $receipt_hp = 0;
|
||||
$receipt_bank = $receipt_card = $receipt_vbank = $receipt_iche = $receipt_easy = $receipt_hp = 0;
|
||||
if($row['od_settle_case'] == '무통장')
|
||||
$receipt_bank = $row['od_receipt_price'];
|
||||
if($row['od_settle_case'] == '가상계좌')
|
||||
@ -69,7 +70,9 @@ $result = sql_query($sql);
|
||||
$receipt_hp = $row['od_receipt_price'];
|
||||
if($row['od_settle_case'] == '신용카드')
|
||||
$receipt_card = $row['od_receipt_price'];
|
||||
|
||||
if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
|
||||
$receipt_easy = $row['od_receipt_price'];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_alignc"><a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>"><?php echo $row['od_id']; ?></a></td>
|
||||
@ -80,6 +83,7 @@ $result = sql_query($sql);
|
||||
<td class="td_numincome"><?php echo number_format($receipt_vbank); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($receipt_iche); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($receipt_card); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($receipt_easy); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($receipt_hp); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($row['od_receipt_point']); ?></td>
|
||||
<td class="td_numcancel1"><?php echo number_format($row['od_cancel_price']); ?></td>
|
||||
@ -93,13 +97,14 @@ $result = sql_query($sql);
|
||||
$tot['receipt_vbank'] += $receipt_vbank;
|
||||
$tot['receipt_iche'] += $receipt_iche;
|
||||
$tot['receipt_card'] += $receipt_card;
|
||||
$tot['receipt_easy'] += $receipt_easy;
|
||||
$tot['receipt_hp'] += $receipt_hp;
|
||||
$tot['receipt_point'] += $row['od_receipt_point'];
|
||||
$tot['misu'] += $row['od_misu'];
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="12" class="empty_table">자료가 없습니다</td></tr>';
|
||||
echo '<tr><td colspan="13" class="empty_table">자료가 없습니다</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
@ -112,6 +117,7 @@ $result = sql_query($sql);
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_vbank']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_iche']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_card']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_easy']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_hp']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipt_point']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['ordercancel']); ?></td>
|
||||
|
||||
@ -22,6 +22,7 @@ function print_line($save)
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptvbank']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptiche']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptcard']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipteasy']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receipthp']); ?></td>
|
||||
<td class="td_numincome"><?php echo number_format($save['receiptpoint']); ?></td>
|
||||
<td class="td_numcancel1"><?php echo number_format($save['ordercancel']); ?></td>
|
||||
@ -60,6 +61,7 @@ $result = sql_query($sql);
|
||||
<th scope="col">가상계좌</th>
|
||||
<th scope="col">계좌이체</th>
|
||||
<th scope="col">카드입금</th>
|
||||
<th scope="col">간편결제</th>
|
||||
<th scope="col">휴대폰</th>
|
||||
<th scope="col">포인트입금</th>
|
||||
<th scope="col">주문취소</th>
|
||||
@ -114,6 +116,11 @@ $result = sql_query($sql);
|
||||
$tot['receiptcard'] += $row['od_receipt_price'];
|
||||
$tot['receiptpoint'] += $row['od_receipt_point'];
|
||||
$tot['misu'] += $row['od_misu'];
|
||||
|
||||
if(in_array($row['od_settle_case'], array('간편결제', 'KAKAOPAY', 'lpay', 'inicis_payco', 'inicis_kakaopay', '삼성페이'))) {
|
||||
$save['receipteasy'] += $row['od_receipt_price'];
|
||||
$tot['receipteasy'] += $row['od_receipt_price'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0) {
|
||||
@ -133,6 +140,7 @@ $result = sql_query($sql);
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptvbank']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptiche']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptcard']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipteasy']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receipthp']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['receiptpoint']); ?></td>
|
||||
<td class="td_num_right"><?php echo number_format($tot['ordercancel']); ?></td>
|
||||
|
||||
@ -13,12 +13,12 @@ $g5['title'] = "휴대폰번호 관리";
|
||||
|
||||
if ($page < 1) $page = 1;
|
||||
|
||||
$bg_no = isset($bg_no) ? (int) $bg_no : 0;
|
||||
$bg_no = isset($bg_no) ? preg_replace('/[^0-9]/i', '', $bg_no) : '';
|
||||
$st = isset($st) ? preg_replace('/[^a-z0-9]/i', '', $st) : '';
|
||||
|
||||
$sql_korean = $sql_group = $sql_search = $sql_no_hp = '';
|
||||
|
||||
if (is_numeric($bg_no))
|
||||
if (is_numeric($bg_no) && $bg_no)
|
||||
$sql_group = " and bg_no='$bg_no' ";
|
||||
else
|
||||
$sql_group = "";
|
||||
|
||||
Reference in New Issue
Block a user