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

This commit is contained in:
whitedot
2013-11-12 14:20:56 +09:00
89 changed files with 249 additions and 772 deletions

View File

@ -56,8 +56,7 @@ if (!isset($board['bo_use_sns'])) {
for ($i=0; $row=sql_fetch_array($result); $i++) {
sql_query(" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user`,
ADD `wr_me2day_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_twitter_user` ", false);
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false);
}
}

View File

@ -54,8 +54,7 @@ if(!isset($config['cf_facebook_appid'])) {
ADD `cf_facebook_appid` VARCHAR(255) NOT NULL AFTER `cf_googl_shorturl_apikey`,
ADD `cf_facebook_secret` VARCHAR(255) NOT NULL AFTER `cf_facebook_appid`,
ADD `cf_twitter_key` VARCHAR(255) NOT NULL AFTER `cf_facebook_secret`,
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key`,
ADD `cf_me2day_key` VARCHAR(255) NOT NULL AFTER `cf_twitter_secret` ", true);
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key` ", true);
}
// uniqid 테이블이 없을 경우 생성
@ -939,12 +938,6 @@ if ($config['cf_icode_id'] && $config['cf_icode_pw']) {
<input type="text" name="cf_twitter_secret" value="<?php echo $config['cf_twitter_secret'] ?>" id="cf_twitter_secret" class="frm_input" size="35">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_me2day_key">미투데이 Key</label></th>
<td colspan="3">
<input type="text" name="cf_me2day_key" value="<?php echo $config['cf_me2day_key'] ?>" id="cf_me2day_key" class="frm_input"> <a href="http://me2day.net/me2/app/get_appkey" target="_blank" class="btn_frmline">앱 등록하기</a>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_googl_shorturl_apikey">구글 짧은주소 API Key</label></th>
<td>

View File

@ -125,7 +125,6 @@ $sql = " update {$g5['config_table']}
cf_facebook_secret = '{$_POST['cf_facebook_secret']}',
cf_twitter_key = '{$_POST['cf_twitter_key']}',
cf_twitter_secret = '{$_POST['cf_twitter_secret']}',
cf_me2day_key = '{$_POST['cf_me2day_key']}',
cf_1_subj = '{$_POST['cf_1_subj']}',
cf_2_subj = '{$_POST['cf_2_subj']}',
cf_3_subj = '{$_POST['cf_3_subj']}',

View File

@ -15,7 +15,7 @@ include_once(G5_ADMIN_PATH.'/admin.head.php');
//------------------------------------------------------------------------------
$keep_term = $default['de_cart_keep_term'];
if (!$keep_term) $keep_term = 15; // 기본값 15일
$beforetime = date('Y-m-d H:i:s', ( G5_SERVER_TIME - (86400 * $keep_term) ) );
$beforetime = date('Y-m-d H:i:s', ( G5_SERVER_TIME - (86400 * ($keep_term - 1)) ) );
$sql = " delete from {$g5['g5_shop_cart_table']} where ct_status = '쇼핑' and ct_time <= '$beforetime' ";
sql_query($sql);
//------------------------------------------------------------------------------

View File

@ -239,6 +239,17 @@ for ($i=0; $i<count($_POST['chk']); $i++)
case '배송' :
if ($change_status != '완료') continue;
change_status($od_id, '배송', '완료');
// 완료인 경우에만 상품구입 합계수량을 상품테이블에 저장한다.
$sql2 = " select ct_id, ct_qty from {$g5['g5_shop_cart_table']} where od_id = '$od_id' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
$sql3 = " select it_id, sum(ct_qty) as sum_qty from {$g5['g5_shop_cart_table']} where ct_id = '{$row2['ct_id']}' ";
$row3 = sql_fetch($sql3);
$sql4 = " update {$g5['g5_shop_item_table']} set it_sum_qty = '{$row3['sum_qty']}' where it_id = '{$row3['it_id']}' ";
sql_query($sql4);
}
break;
} // switch end

View File

@ -29,7 +29,6 @@ CREATE TABLE `__TABLE_NAME__` (
`wr_ip` varchar(255) NOT NULL,
`wr_facebook_user` varchar(255) NOT NULL,
`wr_twitter_user` varchar(255) NOT NULL,
`wr_me2day_user` varchar(255) NOT NULL,
`wr_1` varchar(255) NOT NULL,
`wr_2` varchar(255) NOT NULL,
`wr_3` varchar(255) NOT NULL,

View File

@ -1,6 +1,9 @@
<?php
include_once('./_common.php');
// clean the output buffer
ob_end_clean();
$no = (int)$no;
// 쿠키에 저장된 ID값과 넘어온 ID값을 비교하여 같지 않을 경우 오류 발생

View File

@ -12,12 +12,6 @@ switch($_REQUEST['sns']) {
case 'twitter' :
header("Location:http://twitter.com/home?status=".$title_url);
break;
case 'me2day' :
header("Location:http://me2day.net/posts/new?new_post[body]=".$title_url);
break;
case 'yozm' :
header("Location:http://yozm.daum.net/api/popup/prePost?sourceid=41&prefix=".$title_url);
break;
case 'gplus' :
header("Location:https://plus.google.com/share?url=".$short_url);
break;

View File

@ -160,7 +160,6 @@ if ($w == 'c') // 댓글 입력
wr_ip = '{$_SERVER['REMOTE_ADDR']}',
wr_facebook_user = '$wr_facebook_user',
wr_twitter_user = '$wr_twitter_user',
wr_me2day_user = '$wr_me2day_user',
wr_1 = '$wr_1',
wr_2 = '$wr_2',
wr_3 = '$wr_3',

View File

@ -1,11 +1,10 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!$board['bo_use_sns']) return;
set_cookie('ck_facebook_checked', false, 86400*31);
set_cookie('ck_twitter_checked' , false, 86400*31);
set_cookie('ck_me2day_checked' , false, 86400*31);
//============================================================================
// 페이스북
@ -52,7 +51,7 @@ $wr_twitter_user = "";
if ($_POST['twitter_checked']) {
include_once(G5_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) {
$post = googl_short_url($comment_url).' '.$wr_content;
$post = utf8_strcut($post, 140);
@ -61,30 +60,11 @@ if ($_POST['twitter_checked']) {
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
// 등록
$connection->post('statuses/update', array('status' => $post));
set_cookie('ck_twitter_checked', true, 86400*31);
}
$wr_twitter_user = get_session("ss_twitter_user");
}
//============================================================================
//============================================================================
// 미투데이
//----------------------------------------------------------------------------
$wr_me2day_user = "";
if ($_POST['me2day_checked']) {
if (!empty($_SESSION['me2day']['user_id']) && !empty($_SESSION['me2day']['user_key'])) {
$user_id = $_SESSION['me2day']['user_id'];
$user_key = $_SESSION['me2day']['user_key'];
$auth_key = "12345678" . md5("12345678" . $user_key);
$result = file_get_contents("http://me2day.net/api/create_post/{$user_id}.json?uid={$user_id}&ukey={$auth_key}&akey=".$config['cf_me2day_key']."&post[body]=".urlencode($wr_content));
set_cookie('ck_me2day_checked', true, 86400*31);
}
$wr_me2day_user = get_session("ss_me2day_user");
}
//============================================================================
?>

View File

@ -46,7 +46,7 @@ define('G5_JS_DIR', 'js');
define('G5_LIB_DIR', 'lib');
define('G5_PLUGIN_DIR', 'plugin');
define('G5_SKIN_DIR', 'skin');
define('G5_CAPTCHA_DIR', 'kcaptcha'); // kcaptcha, gcaptcha 중에서 선택 사용하세요. 기본은 kcaptcha
define('G5_CAPTCHA_DIR', 'kcaptcha');
define('G5_EDITOR_DIR', 'editor');
define('G5_MOBILE_DIR', 'mobile');
define('G5_OKNAME_DIR', 'okname');

View File

@ -151,7 +151,7 @@ a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 7px 0 5px;heig
button.btn_frmline {font-size:1em}
/* 게시판용 버튼 */
a.btn_b01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #d9ded9;background:#f5f6fa;color:#000;text-decoration:none;line-height:2.15em;vertical-align:middle}
a.btn_b01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #d9ded9;background:#f2f5f9;color:#000;text-decoration:none;line-height:2.15em;vertical-align:middle}
a.btn_b01:focus, .btn_b01:hover {text-decoration:none}
a.btn_b02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #000;background:#333;color:#fff;text-decoration:none;line-height:2.15em;vertical-align:middle}
a.btn_b02:focus, .btn_b02:hover {text-decoration:none}

View File

@ -299,7 +299,6 @@ CREATE TABLE IF NOT EXISTS `g5_config` (
`cf_facebook_secret` varchar(255) NOT NULL,
`cf_twitter_key` varchar(255) NOT NULL,
`cf_twitter_secret` varchar(255) NOT NULL,
`cf_me2day_key` varchar(255) NOT NULL,
`cf_1_subj` varchar(255) NOT NULL DEFAULT '',
`cf_2_subj` varchar(255) NOT NULL DEFAULT '',
`cf_3_subj` varchar(255) NOT NULL DEFAULT '',

View File

@ -473,6 +473,8 @@ fwrite($f, "\$g5['uniqid_table'] = G5_TABLE_PREFIX.'uniqid'; // 유니크한 값
fwrite($f, "\$g5['syndi_log_table'] = G5_TABLE_PREFIX.'syndi_log'; // 네이버 신디케이션 컨텐츠 삭제 로그 테이블\n");
fwrite($f, "\$g5['autosave_table'] = G5_TABLE_PREFIX.'autosave'; // 게시글 작성시 일정시간마다 글을 임시 저장하는 테이블\n");
fwrite($f, "\$g5['cert_history_table'] = G5_TABLE_PREFIX.'cert_history'; // 인증내역 테이블\n");
fwrite($f, "\$g5['qa_config_table'] = G5_TABLE_PREFIX.'qa_config'; // 1:1문의 설정테이블\n");
fwrite($f, "\$g5['qa_content_table'] = G5_TABLE_PREFIX.'qa_content'; // 1:1문의 테이블\n");
fwrite($f, "?>");
if($g5_shop_install) {

View File

@ -343,7 +343,7 @@ function get_cart_count($cart_id)
$sql = " select count(ct_id) as cnt from {$g5['g5_shop_cart_table']} where od_id = '$cart_id' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and ct_time > '$ctime' ";
}
$row = sql_fetch($sql);
@ -1319,11 +1319,11 @@ function set_cart_id($direct)
$tmp_cart_id = get_cookie('ck_guest_cart_id');
if($tmp_cart_id) {
set_session('ss_cart_id', $tmp_cart_id);
set_cookie('ck_guest_cart_id', $tmp_cart_id, ($default['de_cart_keep_term'] * 86400));
set_cookie('ck_guest_cart_id', $tmp_cart_id, (($default['de_cart_keep_term'] - 1) * 86400));
} else {
$tmp_cart_id = get_uniqid();
set_session('ss_cart_id', $tmp_cart_id);
set_cookie('ck_guest_cart_id', $tmp_cart_id, ($default['de_cart_keep_term'] * 86400));
set_cookie('ck_guest_cart_id', $tmp_cart_id, (($default['de_cart_keep_term'] - 1) * 86400));
}
} else {
$tmp_cart_id = get_session('ss_cart_id');
@ -1341,7 +1341,7 @@ function set_cart_id($direct)
and ct_direct = '0'
and ct_status = '쇼핑' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and ct_time > '$ctime' ";
}

View File

@ -14,13 +14,15 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<table>
<thead>
<tr>
<th scope="col">상품이미지</th>
<th scope="col">상품명</th>
<th scope="col" rowspan="2">상품이미지</th>
<th scope="col" colspan="4">상품명</th>
<th scope="col" rowspan="2"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
</tr>
<tr>
<th scope="col">총수량</th>
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
</tr>
</thead>
<tbody>
@ -41,7 +43,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and a.ct_time > '$ctime' ";
}
$sql .= " group by a.it_id ";
@ -72,7 +74,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
$it_options = print_item_options($row['it_id'], $s_cart_id);
if($it_options) {
$mod_options = '<div class="sod_option_btn"><button type="button" class="mod_options">선택사항수정</button></div>';
$mod_options = '<div class="sod_option_btn"><button type="button" id="mod_opt_'.$row['it_id'].'" class="mod_options">선택사항수정</button></div>';
$it_name .= '<div class="sod_bsk_itopt">'.$it_options.'</div>';
}
@ -81,18 +83,22 @@ include_once(G5_MSHOP_PATH.'/_head.php');
?>
<tr>
<td class="sod_bsk_img"><?php echo $image; ?></td>
<td>
<td rowspan="3" class="sod_bsk_img"><?php echo $image; ?></td>
<td colspan="4">
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
<?php echo $it_name.$mod_options; ?>
<?php echo $it_name; ?>
</td>
<td rowspan="3" class="td_mngsmall"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
</tr>
<tr>
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_numbig"><?php echo number_format($sell_price); ?></td>
<td class="td_num"><?php echo number_format($sum['point']); ?></td>
<td class="td_mngsmall"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
</tr>
<tr>
<td colspan="4"><?php echo $mod_options; ?></td>
</tr>
<?php
@ -153,7 +159,7 @@ $(function() {
// 선택사항수정
$(".mod_options").click(function() {
var it_id = $(this).closest("tr").find("input[name^=it_id]").val();
var it_id = $(this).attr("id").replace("mod_opt_", "");
var $this = $(this);
close_btn_idx = $(".mod_options").index($(this));

View File

@ -65,7 +65,7 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
<tr>
<th scope="col">이미지</th>
<th scope="col">상품명</th>
<th scope="col">보관일</th>
<th scope="col">보관일</th>
</tr>
</thead>
<tbody>
@ -80,13 +80,13 @@ for($k=0; $cp=sql_fetch_array($res); $k++) {
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
{
$image = get_it_image($row['it_id'], 70, 70, true);
$image = get_it_image($row['it_id'], 50, 50, true);
?>
<tr>
<td class="smb_my_img"><?php echo $image; ?></td>
<td><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a></td>
<td class="td_datetime"><?php echo $row['wi_time']; ?></td>
<td class="td_datetime"><?php echo substr($row['wi_time'], 2, 8); ?></td>
</tr>
<?php

View File

@ -12,19 +12,25 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
<h1 id="new_win_title">배송지 목록</h1>
<div>
<button type="button" onclick="self.close();">닫기</button>
</div>
<div class="tbl_wrap tbl_head01">
<table>
<thead>
<tr>
<th scope="col">
<th scope="col" rowspan="3">
<label for="chk_all" class="sound_only">전체선택</label><input type="checkbox" name="chk_all" id="chk_all">
</th>
<th scope="col">배송지명</th>
<th scope="col">기본<br>배송지</th>
<th scope="col">배송지명</th>
<th scope="col">이름</th>
<th scope="col">전화번호</th>
<th scope="col">주소</th>
<th scope="col">관리</th>
<th scope="col" rowspan="3">관리</th>
</tr>
<tr>
<th scope="col" colspan="3">전화번호</th>
</tr>
<th scope="col" colspan="3">주소</th>
</tr>
</thead>
<tbody>
@ -34,21 +40,31 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
$addr = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_subject'];
?>
<tr>
<td class="td_chk"><label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
<td class="td_chk" rowspan="3">
<label for="chk_<?php echo $i;?>" class="sound_only">배송지선택</label>
<input type="hidden" name="ad_id[<?php echo $i; ?>]" value="<?php echo $row['ad_id'];?>">
<input type="checkbox" name="chk[]" value="<?php echo $i;?>" id="chk_<?php echo $i;?>">
</td>
<td class="td_name"><input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="10" maxlength="20" value="<?php echo $row['ad_subject']; ?>"></td>
<td class="td_default"><label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label><input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>></td>
<td class="td_default">
<label for="ad_default<?php echo $i;?>" class="sound_only">기본배송지</label>
<input type="radio" name="ad_default" value="<?php echo $row['ad_id'];?>" id="ad_default<?php echo $i;?>" <?php if($row['ad_default']) echo 'checked="checked"';?>>
</td>
<td class="td_name">
<input type="text" name="ad_subject[<?php echo $i; ?>]" id="ad_subject" class="frm_input" size="10" maxlength="20" value="<?php echo $row['ad_subject']; ?>">
</td>
<td class="td_namesmall"><?php echo $row['ad_name']; ?></td>
<td class="td_numbig"><?php echo $row['ad_tel']; ?><br><?php echo $row['ad_hp']; ?></td>
<td><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
<td class="td_mng">
<td rowspan="3" class="td_mng">
<input type="hidden" value="<?php echo $addr; ?>">
<button type="button" class="sel_address btn_frmline">선택</button>
<button type="button" class="sel_address btn_frmline">선택</button><br>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?w=d&amp;ad_id=<?php echo $row['ad_id']; ?>" class="del_address">삭제</a>
</td>
</tr>
<tr>
<td colspan="3" class="td_numbig"><?php echo $row['ad_tel']; ?> / <?php echo $row['ad_hp']; ?></td>
</tr>
<tr>
<td colspan="3"><?php echo sprintf('%s %s', $row['ad_addr1'], $row['ad_addr2']); ?></td>
</tr>
<?php
}
?>

View File

@ -77,7 +77,7 @@ ob_start();
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and a.ct_time > '$ctime' ";
}
$sql .= " group by a.it_id ";
@ -189,7 +189,7 @@ ob_start();
<?php if($default['de_tax_flag_use']) { ?>
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
<?php } ?>
<?php echo $it_name.$mod_options; ?>
<?php echo $it_name; ?>
</td>
</tr>
<tr>

View File

@ -12,9 +12,13 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
<tr>
<th scope="col">주문번호</th>
<th scope="col">주문일시</th>
<th scope="col">주문금액</th>
<th scope="col">쿠폰</th>
<th scope="col">입금액</th>
<th rowspan="2" scope="col">금액</th>
</tr>
<tr>
<th colspan="2" scope="col">주문상품</th>
</tr>
<tr>
<th colspan="3" scope="col">배송정보</th>
</tr>
</thead>
<tbody>
@ -28,18 +32,57 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 주문상품
$sql = " select *, count(ct_id) as cnt
from {$g5['g5_shop_cart_table']}
where od_id = '{$row['od_id']}'
order by ct_id
limit 1 ";
$ct = sql_fetch($sql);
$ct_name = get_text($ct['it_name']).' '.get_text($ct['ct_option']);
if($ct['cnt'] > 1)
$ct_name .= ' 외 '.($ct['cnt'] - 1).'건';
switch($row['od_status']) {
case '입금':
$od_status = '입금완료';
break;
case '준비':
$od_status = '상품준비중';
break;
case '배송':
$od_status = '상품배송';
break;
case '완료':
$od_status = '배송완료';
break;
default:
$od_status = '입금확인중';
break;
}
$od_invoice = '';
if($row['od_delivery_company'] && $row['od_invoice'])
$od_invoice = get_text($row['od_delivery_company']).' '.get_text($row['od_invoice']);
$uid = md5($row['od_id'].$row['od_time'].$row['od_ip']);
?>
<tr>
<td>
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&amp;uid=<?php echo $uid; ?>"><?php echo $row['od_id']; ?></a>
</td>
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
<td class="td_numbig"><?php echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']); ?></td>
<td class="td_numbig"><?php echo display_price($row['couponprice']); ?></td>
<td class="td_stat"><?php echo display_price($row['od_receipt_price']); ?></td>
<td><?php echo substr($row['od_time'],2,8); ?></td>
<td rowspan="2"><?php echo display_price($row['od_receipt_price']); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo $ct_name; ?></td>
</tr>
<tr>
<td colspan="3">
<?php echo $od_status; ?>
<?php echo $od_invoice; ?>
</td>
</tr>
<?php

View File

@ -41,78 +41,74 @@ include_once(G5_MSHOP_PATH.'/_head.php');
order by ct_id ";
$result = sql_query($sql);
?>
<ul id="sod_ul">
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
$image = get_it_image($row['it_id'], 70, 70);
?>
<li>
<p>
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo $row['it_name']; ?></a>
</p>
<table>
<thead>
<tr>
<th scope="col" rowspan="3">상품이미지</th>
<th scope="col" colspan="5">상품명</th>
</tr>
<th scope="col" colspan="5">옵션항목</th>
<tr>
<th scope="col">수량</th>
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">상태</th>
</tr>
</thead>
<tbody>
<?php
for($i=0; $row=sql_fetch_array($result); $i++) {
$image = get_it_image($row['it_id'], 70, 70);
<div class="tbl_head01 tbl_wrap">
<table>
<thead>
<tr>
<th scope="col">옵션항목</th>
<th scope="col">수량</th>
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">상태</th>
</tr>
</thead>
<tbody>
<?php
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$ct_list = array();
// 옵션항목
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$rowspan = mysql_num_rows($res) * 2 + 1;
?>
<tr>
<td rowspan="<?php echo $rowspan; ?>"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?></a></td>
<td colspan="5"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
</tr>
<?php
for($k=0; $opt=sql_fetch_array($res); $k++) {
if($opt['io_type'])
$opt_price = $opt['io_price'];
else
$opt_price = $opt['ct_price'] + $opt['io_price'];
for($k=0; $opt=sql_fetch_array($res); $k++) {
if($opt['io_type'])
$opt_price = $opt['io_price'];
else
$opt_price = $opt['ct_price'] + $opt['io_price'];
$sell_price = $opt_price * $opt['ct_qty'];
$point = $opt['ct_point'] * $opt['ct_qty'];
?>
<tr>
<td colspan="5"><?php echo $opt['ct_option']; ?></td>
</tr>
<tr>
<td class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
<td class="td_numbig"><?php echo number_format($opt_price); ?></td>
<td class="td_num"><?php echo number_format($sell_price); ?></td>
<td class="td_num"><?php echo number_format($point); ?></td>
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
</tr>
<?php
$tot_point += $point;
$sell_price = $opt_price * $opt['ct_qty'];
$point = $opt['ct_point'] * $opt['ct_qty'];
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
?>
<tr>
<td><?php echo $opt['ct_option']; ?></td>
<td class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
<td class="td_numbig"><?php echo number_format($opt_price); ?></td>
<td class="td_num"><?php echo number_format($sell_price); ?></td>
<td class="td_num"><?php echo number_format($point); ?></td>
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
</tr>
<?php
$tot_point += $point;
$st_count1++;
if($opt['ct_status'] == '주문')
$st_count2++;
}
?>
</tbody>
</table>
</div>
</li>
<?php
$st_count1++;
if($opt['ct_status'] == '주문')
$st_count2++;
}
}
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능
if($st_count1 > 0 && $st_count1 == $st_count2)
$custom_cancel = true;
?>
</ul>
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능
if($st_count1 > 0 && $st_count1 == $st_count2)
$custom_cancel = true;
?>
</tbody>
</table>
<div id="sod_sts_wrap">
<span class="sound_only">상품 상태 설명</span>

View File

@ -44,7 +44,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
$image = get_it_image($row['it_id'], 70, 70);
$image = get_it_image($row['it_id'], 50, 50);
$it_point = get_item_point($row);
?>
@ -52,7 +52,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<td class="sod_ws_img"><?php echo $image; ?></td>
<td>
<a href="<?php echo G5_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo stripslashes($row['it_name']); ?></a>
<small>보관일 <?php echo $row['wi_time']; ?></small>
<br><small>보관일 <?php echo substr($row['wi_time'], 2, 8); ?></small>
</td>
<td class="td_chk">
<?php

View File

@ -206,10 +206,8 @@
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}
#bo_v form {padding-top:15px}
/* 게시판 댓글 */
#bo_vc {margin:0 0 5px;padding:15px 15px 5px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f7}
#bo_vc {margin:0 0 15px;padding:15px 15px 5px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f7}
#bo_vc h2 {margin-bottom:5px}
#bo_vc article {padding:0 0 5px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:13px 0 5px}

View File

@ -32,7 +32,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php } ?>
작성일
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
<?php
<?php
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
?>
</header>
@ -116,7 +116,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<td><?php echo $captcha_html; ?></td>
</tr>
<?php } ?>
<?php
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
?>
<tr>
@ -141,7 +141,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
var save_html;
function good_and_write()
{
@ -262,6 +262,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
if (save_before != el_id)
{
save_html = document.getElementById('bo_vc_w').innerHTML;
if (save_before)
{
document.getElementById(save_before).style.display = 'none';

View File

@ -192,10 +192,8 @@
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}
#bo_v form {padding-top:15px}
/* 게시판 댓글 */
#bo_vc {margin:0 0 5px;padding:15px 15px 5px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f7}
#bo_vc {margin:0 0 15px;padding:15px 15px 5px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f7f7f7}
#bo_vc h2 {margin-bottom:5px}
#bo_vc article {padding:0 0 5px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:13px 0 5px}

View File

@ -32,7 +32,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php } ?>
작성일
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
<?php
<?php
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
?>
</header>
@ -116,7 +116,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<td><?php echo $captcha_html; ?></td>
</tr>
<?php } ?>
<?php
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
?>
<tr>
@ -141,7 +141,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
var save_html;
function good_and_write()
{
@ -262,6 +262,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
if (save_before != el_id)
{
save_html = document.getElementById('bo_vc_w').innerHTML;
if (save_before)
{
document.getElementById(save_before).style.display = 'none';

View File

@ -6,7 +6,7 @@
#popular div {zoom:1}
#popular div:after {display:block;visibility:hidden;clear:both;content:""}
#popular h2 {float:left;padding:10px;color:#fff}
#popular ul {float:left;list-style:none}
#popular ul {float:left;margin:0 0 0 10px;padding:0;list-style:none}
#popular li {float:left}
#popular a {display:inline-block;padding:10px;color:#fff;text-decoration:none}
#popular a:focus,

View File

@ -1,3 +0,0 @@
<?php
include_once('../../common.php');
?>

View File

@ -1,3 +0,0 @@
<?php
require(dirname(__FILE__).'/gcaptcha.lib.php');
?>

View File

@ -1,35 +0,0 @@
<?php
include_once("./_common.php");
?>
<meta charset='utf-8' />
<form onsubmit='return form_submit(this)'>
<a href='javascript:;' onclick='change_captcha();'><img src='./run.php' id='captcha' border='0' alt='캡챠이미지' title='이미지를 클릭하시면 숫자가 바뀝니다.'/></a>
<input type='text' name='captcha_key'>
<input type='submit'>
</form>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo $g5[path]; ?>/plugin/captcha/captcha.js" type="text/javascript"></script>
<script>
function change_captcha()
{
document.getElementById('captcha').setAttribute('src', g5_path+'/plugin/captcha/run.php?t='+(new Date).getTime());
}
function form_submit(f)
{
if (f.captcha_key.value == '') {
alert('왼쪽의 숫자를 입력하세요.');
f.captcha_key.focus();
return false;
}
if (!chk_captcha(f.captcha_key)) {
return false;
}
alert('축하합니다.\n\n올바로 입력 하셨습니다.');
return false;
}
</script>

View File

@ -1,8 +0,0 @@
http://info.daum.net/Daum/info/introduceOfCI.do
다음체의 저작권은 Daum에 있습니다.
다음체는 개인 및 기업 사용자에게 무료로 제공되며, 사용자들은 다른 이에게 자유롭게 배포할 수 있습니다.
단, 이 과정에서 어떠한 이유로든 복사 및 배포의 대가로 요금을 부과할 수 없습니다.
다음체는 어떠한 이유로도 지적 재산권자 이외의 사용자가 수정 및 판매할 수 없으며, 배포되는 형태 그대로 사용해야 합니다.
다음체를 이용하여 출판물 및 제작물을 만들거나 기업의 BI, CI 및 상품에 사용하시려면 반드시 Daum의 명시적인 승인을 받으셔야 하며,
협의 후 글꼴 출처를 표시해야 합니다. 이 외의 다음체 사용 관련된 문의는 jadeinrain@daumcorp.com로 해주시면 됩니다.

View File

@ -1,112 +0,0 @@
http://help.naver.com/ops/step2/faq.nhn?faqId=15879
네이버 나눔글꼴의 지적 재산권은 NHN에 있습니다.
네이버 나눔글꼴은 개인 및 기업 사용자를 포함한 모든 사용자에게
무료로 제공되며 자유롭게 수정하고 재배포하실 수 있습니다.
단, 글꼴 자체를 유료로 판매하는 것은 금지하며,
네이버 나눔글꼴은 본 저작권 안내와 라이선스 전문을 포함해서
다른 소프트웨어와 번들하거나 재배포 또는 판매가 가능합니다.
네이버 나눔글꼴 라이선스 전문을 포함하기 어려울 경우,
나눔글꼴의 출처 표기를 권장합니다.
예) 이 페이지에는 네이버에서 제공한 나눔글꼴이 적용되어 있습니다
네이버 나눔글꼴을 사용한 인쇄물, 광고물(온라인 포함)의 이미지는
나눔글꼴 프로모션을 위해 활용될 수 있습니다.
이를 원치 않는 사용자는 언제든지 당사에 요청하실 수 있습니다.
정확한 사용 조건은 아래 네이버 나눔글꼴 라이선스 전문을 참고하시기 바랍니다.
*나눔글꼴 라이선스 전문의 한글은 이용자의 이해를 돕기 위해 영문 원본을 번역해 서비스하고 있으며
법적 효력은 영문에 한합니다. 이 점 참고하시기 바랍니다.
Copyright (c) 2010, NHN Corporation (http://www.nhncorp.com),
with Reserved Font Name Nanum, Naver Nanum, NanumGothic, Naver NanumGothic, NanumMyeongjo, Naver NanumMyeongjo, NanumBrush, Naver NanumBrush, NanumPen, Naver NanumPen, Naver NanumGothicEco, NanumGothicEco, Naver NanumMyeongjoEco, NanumMyeongjoEco, Naver NanumGothicLight, NanumGothicLight
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007
‘나눔, 네이버 나눔, 나눔고딕, 네이버 나눔고딕, 나눔명조, 네이버 나눔명조, 나눔손글씨, 네이버 나눔손글씨, 나눔펜, 네이버 나눔펜, 네이버 나눔고딕에코, 나눔고딕에코, 네이버 나눔명조에코, 나눔명조에코, 네이버 나눔고딕라이트, 나눔고딕라이트’ 폰트명에 대해 NHN (http://www.nhncorp.com)이 저작권을 소유하고 있습니다.
본 폰트 소프트웨어는 SIL 오픈 폰트 라이선스 버전 1.1에 따라 라이선스 취득을 하였습니다.
본 라이선스는 하단에 복사되었고 http://scripts.sil.org/OFL의 FAQ란 에서도 열람가능 합니다.
SIL 오픈 폰트 라이선스
버전 1.1 (2007년 2월 26일)
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting, or substituting in part or in whole any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
정의
‘폰트 소프트웨어’는 본 라이선스에 입거해 저작권자가 배포하고 명확하게 같은 표시가 된 파일들의 집합을 뜻하며, 여기에는 소스 파일, 빌드 스크립트와 문서가 이에 포함됩니다.
‘저작권이 있는 폰트명’은 저작권 정책에 따라서 지정된 이름을 말합니다.
‘원본’은 저작권자가 배포한 폰트 소프트웨어 구성요소를 의미합니다.
‘수정본’은 포맷의 변경이나 폰트 소프트웨어를 새로운 환경에 포팅시켜, 원본의 일부 혹은 전체에 추가, 삭제 대체해 만든 파생 저작물을 의미합니다.
‘저자’는 폰트 소프트웨어에 기여한 디자이너, 엔지니어, 프로그래머, 기술 전문가 등을 의미합니다.
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects,
to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework
in which fonts may be shared and improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold
by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works.
The fonts and derivatives, however, cannot be released under any other type of license.
The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
전문
본 폰트 라이선스를 오픈 하는 것은(이하 OFL)는 전 세계 폰트 개발 프로젝트를 지원하고 학계와 언어 관련 학계의 폰트 개발을 위한 연구를 지지하기 위해서인 동시에, 폰트 제휴를 통해 폰트가 공유되고 개선될 수 있는 자유롭게 개방된 환경을 만들기 위해서 입니다.
OFL은 라이선스를 취득한 폰트가 그 자체로 판매되지 않는 한 자유롭게 사용, 연구, 수정, 재배포 하는 것을 허가합니다. 수정된 폰트를 포함한 폰트는 저작권 명이 사용되지 않는 한 기타 소프트웨어와 함께 묶이거나 삽입, 재배포 할 수 있습니다. 단 폰트와 수정된 폰트는 기타 다른 라이선스에 포함되어 배포될 수는 없습니다. 이 라이선스 하에 있기 위한 폰트에 대한 요구사항은 본 폰트나 수정본을 사용하여 제작된 어떠한 문서에도 적용되지 않습니다.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
허가 및 조건
본 폰트 소프트웨어를 사용하도록 허가 받은 개인/기업/단체 누구라도 다음 명시된 조건에 따라 폰트 소프트웨어의 수정 혹은 수정되지 않은 복사본을 무료로 사용, 연구, 복사, 통합, 삽입, 수정, 재배포할 수 있도록 허가합니다.
1) Neither the Font Software nor any of its individual components,in Original or Modified Versions, may be sold by itself.
원본이나 수정본의 폰트 소프트웨어 혹은 개별 구성요소인 폰트 자체가 판매되어서는 안됩니다.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
본 폰트 소프트웨어의 원본 혹은 수정본은 상기 저작권 안내와 본 라이선스에 대한 내용을 포함하는 경우에는 다른 소프트웨어와 함께 묶이거나 재배포 혹은 판매가 가능합니다. 이는 독립 텍스트 파일과 가독성이 있는 헤더 혹은 유저가 용이하게 열람 가능한 이상 텍스트파일 혹은 이진파일 내 기계가 읽을 수 있는 메타데이터 형태를 모두 의미 합니다.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written
permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
본 폰트 소프트웨어의 어떠한 수정본도 동일한 저작권자가 명시적 허가서를 부여하지 않는 한 저작권이 있는 폰트명을 사용해서는 안 됩니다. 본 제한 사항은 유저들에게 제공된 기존 폰트명을 뜻합니다.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
본 폰트 소프트웨어의 저작권자 혹은 저자의 이름은 그들의 명시적 서면 허가가 있거나 또는 그들의 공헌을 인정하기 위한 경우를 제외하고는 수정본에 대한 사용을 유도,추천 혹은 광고하기 위한 목적으로 사용할 수 없습니다.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
본 폰트 소프트웨어는 전체나 부분, 혹은 수정 여부에 상관없이 본 라이선스 하에 배포가 되어야 하며 기타 다른 라이선스 하에서는 배포를 할 수 없습니다. 폰트에 대한 요구조건은 이 라이선스 하에서만 유효하며 이 라이선스 하에 있기 위한 폰트에 대한 요구사항은 본 폰트 소프트웨어를 사용해 제작한 어떠한 문서에도 적용되지 않습니다.
TERMINATION 계약의 종료
This license becomes null and void if any of the above conditions are not met.
본 라이선스는 상기 조건 중 일부라도 부합되지 않으면 무효가 될 수 있습니다.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
면책조항
본 폰트 소프트웨어는 저작권, 특허권, 상표권 및 기타 권리의 비침해성과 특정 목적에의 적합성 포함한 명시적, 묵시적인 어떠한 종류의 보증 없이 “있는 그대로” 제공됩니다. 어떠한 경우에도 저작권자는 본 폰트 소프트웨어의 사용 또는 이의 사용불가, 그밖에 폰트 소프트웨어의 취급과 관련하여 발생하는 모든 계약, 불법행위 혹은 다른 일로 하여금 발생하는 일반적, 특수적, 간접적, 부차적 혹은 필연적 손해를 포함하는 소송, 손해, 혹은 기타 책임에 대한 의무를 가지지 않습니다.

View File

@ -1,75 +0,0 @@
function chk_captcha()
{
var captcha_key = document.getElementById("captcha_key");
if (typeof(captcha_key) == "undefined") return true;
var captcha_result = false;
$.ajax({
type: "POST",
url: g5_captcha_url+"/get.php",
data: {
"captcha_key": captcha_key.value
},
cache: false,
async: false,
success: function(result) {
captcha_result = result;
}
});
if (!captcha_result) {
alert("자동등록방지 숫자가 틀렸습니다.");
captcha_key.select();
captcha_key.focus();
return false;
}
return true;
}
$(function() {
$("#captcha").click(function(e) {
this.setAttribute("src", g5_captcha_url+"/run.php?t="+(new Date).getTime());
var keycode = (e.keyCode ? e.keyCode : e.which);
// 첫 실행에서는 포커스를 주지 않음
if (typeof(keycode) != "undefined") {
$("#captcha_key").focus();//이미지 새로고침 후 입력박스에 포커스 : 지운아빠 2012-07-13
}
})
.trigger("click");
$("#captcha_mp3").click(function(){
$("body").css("cursor", "wait");
var mp3_url = this.href+"?t="+new Date().getTime();
var html5use = false;
var html5audio = document.createElement("audio");
if (html5audio.canPlayType && html5audio.canPlayType("audio/mpeg")) {
var wav = new Audio(mp3_url);
wav.id = "mp3_audio";
wav.autoplay = true;
wav.controls = false;
wav.autobuffer = false;
wav.loop = false;
if ($("#mp3_audio").length) $("#mp3_audio").remove();
$("#captcha_mp3").after(wav);
html5use = true;
}
if (!html5use) {
var object = '<object id="mp3_object" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="0" width="0" style="width:0; height:0;">';
object += '<param name="AutoStart" value="1" />';
object += '<param name="Volume" value="0" />';
object += '<param name="PlayCount" value="1" />';
object += '<param name="FileName" value="' + mp3_url + '" />';
object += '<embed id="mp3_embed" src="' + mp3_url + '" autoplay="true" hidden="true" volume="100" type="audio/x-wav" style="display:inline;" />';
object += '</object>';
if ($("#mp3_object").length) $("#mp3_object").remove();
$("#captcha_mp3").after(object);
}
$("body").css("cursor", "default");
return false;
});
});

View File

@ -1,215 +0,0 @@
<?php
include_once("./_common.php");
class gcaptcha
{
// 이미지크기 폭
var $width = 70;
// 이미지크기 높이
var $height = 22;
// 폰트 사이즈
var $size = 13;
// 폰트 기울기
var $angle = 0;
// 폰트 왼쪽 위치
var $x = 5;
// 폰트 위쪽 위치
var $y = 18;
// 캡챠이미지 배경색상 rgb
var $back = array('r'=>255, 'g'=>255, 'b'=>255);
// 글자색상 rgb
var $text = array('r'=>0, 'g'=>0, 'b'=>0);
// 그림자 글자색상 rgb
var $shadow = array('r'=>128, 'g'=>128, 'b'=>128);
var $captcha_length = 6;
var $captcha_filename = '';
// 이미지 크기
function set_box_size($width, $height) {
$this->width = $width;
$this->height = $height;
}
// 폰트 사이즈
function set_size($size) {
$this->size = $size;
}
// 폰트 기울기
function set_angle($angle) {
$this->angle = $angle;
}
// 폰트 위치
function set_position($x, $y) {
$this->x = $x;
$this->y = $y;
}
function set_captcha_length($length)
{
$this->captcha_length = $length;
}
function set_back_color($r, $g, $b) {
$this->back['r'] = $r;
$this->back['g'] = $g;
$this->back['b'] = $b;
}
function set_text_color($r, $g, $b) {
$this->text['r'] = $r;
$this->text['g'] = $g;
$this->text['b'] = $b;
}
function set_shadow_color($r, $g, $b) {
$this->shadow['r'] = $r;
$this->shadow['g'] = $g;
$this->shadow['b'] = $b;
}
function get_captcha_key()
{
$from = (int)('1'.str_repeat('0', $this->captcha_length - 1));
$to = (int)(str_repeat('9', $this->captcha_length));
return mt_rand($from, $to);
}
function run()
{
global $g5;
// The text to draw
$captcha_key = $this->get_captcha_key();
set_session('ss_captcha_cnt', 0);
set_session('ss_captcha_key', $captcha_key);
// Set the content-type
//header('Content-Type: image/jpeg');
// Create the image
$im = imagecreatetruecolor($this->width, $this->height);
// Create some colors
$white = imagecolorallocate($im, $this->back['r'], $this->back['g'], $this->back['b']);
$grey = imagecolorallocate($im, $this->shadow['r'], $this->shadow['g'], $this->shadow['b']);
$black = imagecolorallocate($im, $this->text['r'], $this->text['g'], $this->text['b']);
imagefilledrectangle($im, 0, 0, $this->width, $this->height, $white);
// Replace path by your own font path
$fonts = Array();
foreach (glob(G5_CAPTCHA_PATH.'/fonts/*.ttf') as $filename) {
$fonts[] = $filename;
}
$font = $fonts[mt_rand(0, count($fonts)-1)];
$size = $this->size;
$angle = $this->angle;
$x = $this->x;
$y = $this->y;
// Add some shadow to the text
imagettftext($im, $size, $angle, $x, $y, $grey, $font, $captcha_key);
// Add the text
imagettftext($im, $size, $angle, $x-1, $y-1, $black, $font, $captcha_key);
if (mt_rand(0,1)) {
imagettftext($im, $size, $angle, $x-2, $y-2, $white, $font, $captcha_key);
} else if (mt_rand(0,1)) {
imagettftext($im, $size, $angle, $x-2, $y-2, $grey, $font, $captcha_key);
}
$this->captcha_filename = $this->get_captcha_filename();
imagejpeg($im, G5_DATA_PATH.'/cache/'.$this->captcha_filename.'.jpg');
imagedestroy($im);
$this->make_mp3($this->captcha_filename);
}
function get_captcha_filename()
{
return 'gcaptcha-'.abs_ip2long().'_'.session_id();
}
function make_mp3($captcha_filename)
{
global $g5, $config;
$number = (string)$_SESSION['ss_captcha_key'];
$mp3s = array();
for($i=0;$i<strlen($number);$i++){
$file = G5_CAPTCHA_PATH.'/mp3/'.$config['cf_captcha_mp3'].'/'.$number[$i].'.mp3';
$mp3s[] = $file;
}
$mp3_filepath = G5_DATA_PATH.'/cache/'.$captcha_filename.'.mp3';
$contents = '';
foreach ($mp3s as $mp3) {
$contents .= file_get_contents($mp3);
}
file_put_contents($mp3_filepath, $contents);
}
}
/*
사용법 :
$gcaptcha = new gcaptcha();
$gcaptcha->set_captcha_length(mt_rand(4, 6));
$gcaptcha->set_position(mt_rand(0, 10), mt_rand(15, 20));
$gcaptcha->set_angle(mt_rand(-3, 3));
$gcaptcha->set_size(mt_rand(15, 16));
$gcaptcha->set_back_color(mt_rand(200,255), mt_rand(200,255), mt_rand(200,255));
$gcaptcha->set_text_color(mt_rand(0,100), mt_rand(0,100), mt_rand(0,100));
$gcaptcha->set_shadow_color(mt_rand(100,200), mt_rand(100,200), mt_rand(100,200));
$gcaptcha->run();
*/
// 캡챠이미지는 한개만 사용 가능함.
function captcha_html($class='captcha')
{
global $g5, $gcaptcha;
$obj = new gcaptcha();
$obj->run();
$rand = rand();
$jpg_file_url = G5_DATA_URL.'/cache/'.$obj->captcha_filename.'.jpg';
$mp3_file_url = G5_DATA_URL.'/cache/'.$obj->captcha_filename.'.mp3';
$html .= "\n".'<script>var g5_captcha_url = "'.G5_CAPTCHA_URL.'";</script>';
$html .= "\n".'<script src="'.G5_CAPTCHA_URL.'/gcaptcha.js"></script>';
$html .= '<fieldset id="captcha" class="'.$class.'">';
$html .= '<legend class="sound_only">자동등록방지</legend>';
if (G5_IS_MOBILE) $html .= '<audio src="'.$mp3_file_url.'?_='.$rand.'" controls></audio>';
$html .= '<img src="'.$jpg_file_url.'?_='.$rand.'" alt="">';
if (!G5_IS_MOBILE) $html .= '<a href="'.$mp3_file_url.'?_='.$rand.'" id="captcha_mp3" target="_blank"><img src="'.G5_CAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
$html .= '<label class="sound_only">자동등록방지 숫자 </label><input type="text" name="captcha_key" id="captcha_key" required class="captcha_box frm_input required" size="6" maxlength="6">';
$html .= '<p class="sound_only">자동등록방지 숫자를 순서대로 입력하세요.</p>';
$html .= '</fieldset>';
return $html;
}
function chk_captcha()
{
$captcha_cnt = (int)$_SESSION['ss_captcha_cnt'];
if ($captcha_cnt > 5) return false;
if (!trim($_POST['captcha_key'])) return false;
if (!isset($_POST['captcha_key'])) return false;
if ($_POST['captcha_key'] != $_SESSION['ss_captcha_key']) {
$_SESSION['ss_captcha_cnt'] = $captcha_cnt + 1;
return false;
}
return true;
}
function chk_captcha_js()
{
return "if (!chk_captcha()) return false;";
}
?>

View File

@ -1,6 +0,0 @@
<?php
include_once("./_common.php");
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
echo chk_captcha();
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +0,0 @@
<?php
include_once("./_common.php");
include_once("./captcha.lib.php");
$captcha = new captcha();
$captcha->run();
?>

View File

@ -1,7 +1,7 @@
$(function(){
var mp3_url = "";
$("#captcha_reload").bind("click", function(){
$("#captcha_reload").live("click", function(){
$.ajax({
type: 'POST',
url: g5_captcha_url+'/kcaptcha_session.php',
@ -26,7 +26,7 @@ $(function(){
});
}).trigger("click");
$("#captcha_mp3").click(function(){
$("#captcha_mp3").live("click", function(){
$("body").css("cursor", "wait");
$.ajax({
@ -50,13 +50,13 @@ $(function(){
wav.controls = false;
wav.autobuffer = false;
wav.loop = false;
if ($("#mp3_audio").length) $("#mp3_audio").remove();
$("#captcha_mp3").after(wav);
html5use = true;
}
}
if (!html5use) {
var object = '<object id="mp3_object" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="0" width="0" style="width:0; height:0;">';
object += '<param name="AutoStart" value="1" />';
@ -65,11 +65,11 @@ $(function(){
object += '<param name="FileName" value="' + mp3_url + '" />';
object += '<embed id="mp3_embed" src="' + mp3_url + '" autoplay="true" hidden="true" volume="100" type="audio/x-wav" style="display:inline;" />';
object += '</object>';
if ($("#mp3_object").length)
if ($("#mp3_object").length)
$("#mp3_object").remove();
$("#captcha_mp3").after(object);
}
$("body").css("cursor", "default");
return false;
@ -85,7 +85,7 @@ function chk_captcha()
type: 'POST',
url: g5_captcha_url+'/kcaptcha_result.php',
data: {
'captcha_key': captcha_key.value
'captcha_key': captcha_key.value
},
cache: false,
async: false,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,3 +0,0 @@
<?php
include_once("../../../common.php");
?>

View File

@ -1,55 +0,0 @@
<?php
include_once("./_common.php");
$user_id = $_GET['user_id'];
$user_key = $_GET['user_key'];
$auth_key = "12345678" . md5("12345678" . $user_key);
$_SESSION['me2day']['user_id'] = $user_id;
$_SESSION['me2day']['user_key'] = $user_key;
$g5['title'] = '미투데이 콜백';
include_once(G5_PATH.'/head.sub.php');
$result = json_decode(file_get_contents("http://me2day.net/api/noop.json?uid={$user_id}&ukey={$auth_key}&akey=".$config['cf_me2day_key']));
if ($result->code == 0) {
$user = json_decode(file_get_contents("http://me2day.net/api/get_person/{$user_id}.json"));
$sns_name = $user->nickname;
$sns_user = $user->id;
set_cookie('ck_sns_name', $sns_name, 86400);
set_session('ss_me2day_user', $sns_user);
$g5_sns_url = G5_SNS_URL;
echo <<<EOT
<script>
$(function() {
document.write("<strong>미투데이에 승인이 되었습니다.</strong>");
var opener = window.opener;
opener.$("#wr_name").val("{$sns_name}");
opener.$("#me2day_icon").attr("src", "{$g5_sns_url}/icon/me2day.png");
opener.$("#me2day_checked").attr("disabled", false);
opener.$("#me2day_checked").attr("checked", true);
window.close();
});
</script>
EOT;
} else {
echo <<<EOT
<script>
$(function() {
alert("미투데이에 승인이 되지 않았습니다.");
window.close();
});
</script>
EOT;
}
include_once(G5_PATH.'/tail.sub.php');
?>

View File

@ -13,7 +13,6 @@ $kakao_appname = urlencode(str_replace('\"', '"', $g5['title']));
$facebook_url = 'http://www.facebook.com/sharer/sharer.php?s=100&p[url]='.$sns_url.'&p[title]='.$sns_msg;
$twitter_url = 'http://twitter.com/home?status='.$msg_url;
$me2day_url = 'http://me2day.net/posts/new?new_post[body]='.$msg_url;
$gplus_url = 'https://plus.google.com/share?url='.$sns_url;
/*
@ -26,7 +25,6 @@ $sns_send .= '&amp;title='.$sns_msg;
<ul id="bo_v_sns">
<li><a href="<?php echo $facebook_url; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/facebook.png" alt="페이스북으로 보내기"></a></li>
<li><a href="<?php echo $twitter_url; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/twitter.png" alt="트위터로 보내기"></a></li>
<li><a href="<?php echo $me2day_url; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/me2day.png" alt="미투데이로 보내기"></a></li>
<li><a href="<?php echo $gplus_url; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/gplus.png" alt="구글플러스로 보내기"></a></li>
<?php
if (G5_IS_MOBILE) {

View File

@ -13,6 +13,3 @@ if (!$board['bo_use_sns']) return;
<?php if ($list[$i]['wr_twitter_user']) { ?>
<a href="https://www.twitter.com/<?php echo $list[$i]['wr_twitter_user']; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/twitter<?php echo $sns_mc_icon; ?>.png" alt="트위터에도 등록됨"></a>
<?php } ?>
<?php if ($list[$i]['wr_me2day_user']) { ?>
<a href="http://me2day.net/<?php echo $list[$i]['wr_me2day_user']; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/me2day<?php echo $sns_mc_icon; ?>.png" alt="미투데이에도 등록됨"></a>
<?php } ?>

View File

@ -64,7 +64,7 @@ if (!$board['bo_use_sns']) return;
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
} else {
$access_token = $_SESSION['access_token'];
$access_token = $_SESSION['access_token'];
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
$content = $connection->get('account/verify_credentials');
@ -73,12 +73,12 @@ if (!$board['bo_use_sns']) return;
$twitter_user = true;
$twitter_url = $connection->getAuthorizeURL($token);
break;
default :
default :
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
}
}
*/
$access_token = $_SESSION['access_token'];
$access_token = $_SESSION['access_token'];
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
$content = $connection->get('account/verify_credentials');
@ -87,7 +87,7 @@ if (!$board['bo_use_sns']) return;
$twitter_user = true;
$twitter_url = $connection->getAuthorizeURL($token);
break;
default :
default :
$twitter_url = G5_SNS_URL."/twitter/redirect.php";
}
}
@ -106,42 +106,6 @@ if (!$board['bo_use_sns']) return;
echo '</li>';
}
//============================================================================
//============================================================================
// 미투데이
//----------------------------------------------------------------------------
if ($config['cf_me2day_key']) {
/*
$me2day_user = false;
if (empty($_SESSION['me2day']['user_id']) || empty($_SESSION['me2day']['user_key'])) {
$result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
$me2day_url = $result->url;
} else {
$me2day_user = true;
}
*/
$me2day_user = get_session("ss_me2day_user");
if (!$me2day_user) {
$result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
$me2day_url = $result->url;
}
echo '<li>';
if ($me2day_user) {
echo '<img src="'.G5_SNS_URL.'/icon/me2day.png" id="me2day_icon">';
echo '<label for="" class="sound_only">미투데이 동시 등록</label>';
echo '<input type="checkbox" name="me2day_checked" id="me2day_checked" '.(get_cookie('ck_me2day_checked')?'checked':'').' value="1">';
} else {
echo '<a href="'.$me2day_url.'" id="me2day_url" onclick="return false;"><img src="'.G5_SNS_URL.'/icon/me2day'.($me2day_user?'':'_off').'.png" id="me2day_icon"></a>';
echo '<label for="" class="sound_only">미투데이 동시 등록</label>';
echo '<input type="checkbox" name="me2day_checked" id="me2day_checked" disabled value="1">';
echo '<script>$(function(){ $("#me2day_url").click(function(){ window.open(this.href, "me2day_url", "width=1000,height=800"); }); });</script>';
}
echo '</li>';
}
//============================================================================
?>
</ul>
</td>

View File

@ -62,7 +62,7 @@ include_once('./_head.php');
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and a.ct_time > '$ctime' ";
}
$sql .= " group by a.it_id ";

View File

@ -240,7 +240,7 @@ if ($row['cnt']) {
$cash_info = serialize($cash);
$sql = " update {$g5['g5_shop_order_table']}
set od_cash = '1'
set od_cash = '1',
od_cash_no = '$cash_no',
od_cash_info = '$cash_info'
where od_id = '$ordr_idxx' ";

View File

@ -50,6 +50,9 @@ $order_action_url = G5_HTTPS_SHOP_URL.'/orderaddressupdate.php';
<h1 id="new_win_title">배송지 목록</h1>
<div>
<button type="button" onclick="self.close();">닫기</button>
</div>
<div class="tbl_head01 tbl_wrap">
<table>
<thead>

View File

@ -205,7 +205,7 @@ function get_intall_file()
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400));
$sql .= " and a.ct_time > '$ctime' ";
}
$sql .= " group by a.it_id ";
@ -315,7 +315,7 @@ function get_intall_file()
<?php if($default['de_tax_flag_use']) { ?>
<input type="hidden" name="it_notax[<?php echo $i; ?>]" value="<?php echo $row['it_notax']; ?>">
<?php } ?>
<?php echo $it_name.$mod_options; ?>
<?php echo $it_name; ?>
</td>
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>

View File

@ -84,7 +84,6 @@ if(openwin != null) {
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$ct_list = array();
for($k=0; $opt=sql_fetch_array($res); $k++) {
if($opt['io_type'])
@ -94,9 +93,6 @@ if(openwin != null) {
$sell_price = $opt_price * $opt['ct_qty'];
$point = $opt['ct_point'] * $opt['ct_qty'];
$ct_list[$opt['ct_id']]['name'] = $opt['it_name'];
$ct_list[$opt['ct_id']]['option'] = $opt['ct_option'];
?>
<tr>
<td><?php echo $opt['ct_option']; ?></td>

View File

@ -74,6 +74,7 @@ $total_count = $row['cnt'];
<!-- 검색결과 시작 { -->
<div id="ssch">
<div id="ssch_frm">
<form name="frmdetailsearch" onsubmit="return detail_search_submit(this);">
<div>

View File

@ -224,10 +224,8 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}
#bo_v form {padding-top:20px}
/* 게시판 댓글 */
#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
#bo_vc {margin:0 0 20px;padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
#bo_vc h2 {margin-bottom:10px}
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:15px 0 5px}

View File

@ -124,7 +124,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<td><?php echo $captcha_html; ?></td>
</tr>
<?php } ?>
<?php
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
?>
<tr>
@ -135,13 +135,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
<script>
$("textarea#wr_content[maxlength]").live("keyup change", function() {
var str = $(this).val()
var mx = parseInt($(this).attr("maxlength"))
if (str.length > mx) {
$("textarea#wr_content[maxlength]").live("keyup change", function() {
var str = $(this).val()
var mx = parseInt($(this).attr("maxlength"))
if (str.length > mx) {
$(this).val(str.substr(0, mx));
return false;
}
return false;
}
});
</script>
</td>
@ -159,7 +159,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
var save_html;
function good_and_write()
{
@ -270,6 +270,8 @@ function comment_box(comment_id, work)
if (save_before != el_id)
{
save_html = document.getElementById('bo_vc_w').innerHTML;
if (save_before)
{
document.getElementById(save_before).style.display = 'none';

View File

@ -217,10 +217,8 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;margin:0 5px 0 0}
#bo_v form {padding-top:20px}
/* 게시판 댓글 */
#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
#bo_vc {margin:0 0 20px;padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
#bo_vc h2 {margin-bottom:10px}
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:15px 0 5px}

View File

@ -124,7 +124,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<td><?php echo $captcha_html; ?></td>
</tr>
<?php } ?>
<?php
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
?>
<tr>
@ -135,13 +135,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
<script>
$("textarea#wr_content[maxlength]").live("keyup change", function() {
var str = $(this).val()
var mx = parseInt($(this).attr("maxlength"))
if (str.length > mx) {
$("textarea#wr_content[maxlength]").live("keyup change", function() {
var str = $(this).val()
var mx = parseInt($(this).attr("maxlength"))
if (str.length > mx) {
$(this).val(str.substr(0, mx));
return false;
}
return false;
}
});
</script>
</td>
@ -159,7 +159,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
var save_html;
function good_and_write()
{
@ -270,6 +270,8 @@ function comment_box(comment_id, work)
if (save_before != el_id)
{
save_html = document.getElementById('bo_vc_w').innerHTML;
if (save_before)
{
document.getElementById(save_before).style.display = 'none';