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

This commit is contained in:
whitedot
2014-02-07 14:28:00 +09:00
17 changed files with 80 additions and 127 deletions

View File

@ -582,7 +582,7 @@ $(function(){
<th scope="row">상품선택옵션</th>
<td colspan="2">
<div class="sit_option tbl_frm01">
<?php echo help('옵션항목은 콤마(,) 로 구분하여 여러개를 입력할 수 있습니다. 예시) 라지,미디움,스몰'); ?>
<?php echo help('옵션항목은 콤마(,) 로 구분하여 여러개를 입력할 수 있습니다. 예시) 라지,미디움,스몰<br><strong>옵션명과 옵션항목에 따옴표(\', ")는 입력할 수 없습니다.</strong>'); ?>
<table>
<caption>상품선택옵션 입력</caption>
<colgroup>
@ -740,7 +740,7 @@ $(function(){
<th scope="row">상품추가옵션</th>
<td colspan="2">
<div id="sit_supply_frm" class="sit_option tbl_frm01">
<?php echo help('옵션항목은 콤마(,) 로 구분하여 여러개를 입력할 수 있습니다. 예시) 라지,미디움,스몰'); ?>
<?php echo help('옵션항목은 콤마(,) 로 구분하여 여러개를 입력할 수 있습니다. 예시) 라지,미디움,스몰<br><strong>옵션명과 옵션항목에 따옴표(\', ")는 입력할 수 없습니다.</strong>'); ?>
<table>
<caption>상품추가옵션 입력</caption>
<colgroup>
@ -1013,6 +1013,13 @@ $(function(){
$(function() {
<?php
switch($it['it_sc_type']) {
case 1:
echo '$("#sc_con_method").hide();'.PHP_EOL;
echo '$("#sc_con_basic").hide();'.PHP_EOL;
echo '$("#sc_con_minimum").hide();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","1");'.PHP_EOL;
break;
case 2:
echo '$("#sc_con_method").show();'.PHP_EOL;
echo '$("#sc_con_basic").show();'.PHP_EOL;
@ -1035,11 +1042,11 @@ $(function(){
echo '$("#sc_grp").attr("rowspan","4");'.PHP_EOL;
break;
default:
echo '$("#sc_con_method").hide();'.PHP_EOL;
echo '$("#sc_con_method").show();'.PHP_EOL;
echo '$("#sc_con_basic").hide();'.PHP_EOL;
echo '$("#sc_con_minimum").hide();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","1");'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","2");'.PHP_EOL;
break;
}
?>
@ -1047,6 +1054,13 @@ $(function(){
var type = $(this).val();
switch(type) {
case "1":
$("#sc_con_method").hide();
$("#sc_con_basic").hide();
$("#sc_con_minimum").hide();
$("#sc_con_qty").hide();
$("#sc_grp").attr("rowspan","1");
break;
case "2":
$("#sc_con_method").show();
$("#sc_con_basic").show();
@ -1069,11 +1083,11 @@ $(function(){
$("#sc_grp").attr("rowspan","4");
break;
default:
$("#sc_con_method").hide();
$("#sc_con_method").show();
$("#sc_con_basic").hide();
$("#sc_con_minimum").hide();
$("#sc_con_qty").hide();
$("#sc_grp").attr("rowspan","1");
$("#sc_grp").attr("rowspan","2");
break;
}
});

View File

@ -14,13 +14,13 @@ if($it['it_id']) {
if(mysql_num_rows($result))
$po_run = true;
} else if(!empty($_POST)) {
$opt1_subject = trim($_POST['opt1_subject']);
$opt2_subject = trim($_POST['opt2_subject']);
$opt3_subject = trim($_POST['opt3_subject']);
$opt1_subject = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt1_subject'])));
$opt2_subject = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt2_subject'])));
$opt3_subject = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt3_subject'])));
$opt1_val = trim($_POST['opt1']);
$opt2_val = trim($_POST['opt2']);
$opt3_val = trim($_POST['opt3']);
$opt1_val = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt1'])));
$opt2_val = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt2'])));
$opt3_val = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['opt3'])));
if(!$opt1_subject || !$opt1_val) {
echo '옵션1과 옵션1 항목을 입력해 주십시오.';

View File

@ -84,12 +84,12 @@ if($ps_run) {
} // for
} else {
for($i=0; $i<$subject_count; $i++) {
$spl_subject = trim($_POST['subject'][$i]);
$spl_val = explode(',', trim($_POST['supply'][$i]));
$spl_subject = preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['subject'][$i])));
$spl_val = explode(',', preg_replace('/[\'\"]/', '', trim(stripslashes($_POST['supply'][$i]))));
$spl_count = count($spl_val);
for($j=0; $j<$spl_count; $j++) {
$spl = trim($spl_val[$j]);
$spl = strip_tags(trim($spl_val[$j]));
if($spl_subject && $spl) {
$spl_id = $spl_subject.chr(30).$spl;
$spl_price = 0;

View File

@ -218,20 +218,17 @@ if ($w == 'c') // 댓글 입력
// 최고관리자에게 보내는 메일
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
// 원글 메일발송에 체크가 되어 있다면
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
// 원글게시자에게 보내는 메일
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
// 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
if ($config['cf_email_wr_comment_all']) {
$sql = " select distinct wr_email from {$write_table}
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
and wr_parent = '$wr_id' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result))
$array_email[] = $row['wr_email'];
}
// 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
if ($config['cf_email_wr_comment_all']) {
$sql = " select distinct wr_email from {$write_table}
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
and wr_parent = '$wr_id' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result))
$array_email[] = $row['wr_email'];
}
// 중복된 메일 주소는 제거

View File

@ -604,22 +604,18 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
// 최고관리자에게 보내는 메일
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
// 원글 메일발송에 체크가 되어 있다면
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
// 원글게시자에게 보내는 메일
if ($config['cf_email_wr_write']) {
if($w == '')
$wr['wr_email'] = $wr_email;
// 코멘트 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
if ($config['cf_email_wr_comment_all']) {
$sql = " select distinct wr_email from {$write_table}
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
and wr_parent = '{$wr_id}' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result))
$array_email[] = $row['wr_email'];
}
$array_email[] = $wr['wr_email'];
}
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email'])
$array_email[] = $wr['wr_email'];
// 중복된 메일 주소는 제거
$unique_email = array_unique($array_email);
$unique_email = array_values($unique_email);

View File

@ -25,29 +25,31 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
/* 상단 레이아웃 */
#hd {z-index:10;position:relative;min-width:970px;background:#fff}
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_wrapper {position:relative;margin:0 auto;width:970px}
#hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1}
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}
#logo {padding:26px 0}
#logo {float:left;padding:5px 0 0}
/* 전체 검색 */
#hd_sch {position:absolute;top:22px;left:170px;margin:0;padding:0;border:1px solid #c3c6ca}
#hd_sch {float:left;margin:0 0 0 20px;padding:0;border:1px solid #c3c6ca}
#hd_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#hd_sch #sch_stx {padding-left:5px;width:110px;height:24px;border:0;background:#fff;line-height:1.9em !important;line-height:1.6em}
#hd_sch #sch_submit {padding:0 5px;height:26px;border:0;background:#e2e6eb;color:#333;cursor:pointer}
#tnb {position:absolute;top:18px;right:0;margin:0;padding:0;list-style:none;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left;margin:0 0 0 10px}
#tnb a {display:inline-block;padding:5px 10px;color:#333;letter-spacing:-0.1em;line-height:2em}
#tnb a:focus, #tnb a:hover, #tnb a:active {text-decoration:none}
#tnb img {margin-right:3px}
/* 텍스트 크기 조절 */
#text_size {position:absolute;top:21px;left:340px;margin:0 0 10px;letter-spacing:-3px}
#text_size button {margin:0;padding:2px 2px 1px;border:1px solid #c3c6ca;background:transparent;vertical-align:middle;cursor:pointer}
#text_size {float:left;margin:0 0 0 10px;letter-spacing:-3px}
#text_size button {margin:0;padding:1px 2px;border:1px solid #c3c6ca;background:transparent;vertical-align:middle;cursor:pointer}
.ts_up {font-size:1.167em !important}
.ts_up2 {font-size:1.3em !important}
/* 상단 회원가입 등 링크 */
#tnb {float:right;margin:0;padding:0;list-style:none;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left;margin:0 0 0 10px}
#tnb a {display:inline-block;padding:0 10px;height:28px;color:#333;letter-spacing:-0.1em;line-height:2.4em}
#tnb a:focus, #tnb a:hover, #tnb a:active {text-decoration:none}
#tnb img {margin-right:3px}
/* gnb js off */
#gnb {position:relative;margin:-1px 0 0;border-top:1px dotted #dde4e9;border-bottom:1px solid #dde4e9;background:#ecf0f7}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}

View File

@ -74,6 +74,13 @@ if (G5_IS_MOBILE) {
</script>
</fieldset>
<div id="text_size">
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '');"><img src="<?php echo G5_URL; ?>/img/ts01.gif" alt="기본"></button>
<button id="size_def" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up');"><img src="<?php echo G5_URL; ?>/img/ts02.gif" alt="크게"></button>
<button id="size_up" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up2');"><img src="<?php echo G5_URL; ?>/img/ts03.gif" alt="더크게"></button>
</div>
<ul id="tnb">
<?php if ($is_member) { ?>
<?php if ($is_admin) { ?>
@ -93,13 +100,6 @@ if (G5_IS_MOBILE) {
<li><a href="<?php echo G5_SHOP_URL ?>/">쇼핑몰</a></li>
<?php } ?>
</ul>
<div id="text_size">
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '');"><img src="<?php echo G5_URL; ?>/img/ts01.gif" alt="기본"></button>
<button id="size_def" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up');"><img src="<?php echo G5_URL; ?>/img/ts02.gif" alt="크게"></button>
<button id="size_up" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up2');"><img src="<?php echo G5_URL; ?>/img/ts03.gif" alt="더크게"></button>
</div>
</div>
<hr>

View File

@ -26,8 +26,6 @@ if ($sort != "")
else
$order_by = 'b.it_order, b.it_id desc';
$error = "<img src='".G5_SHOP_URL."/img/no_item.gif' border=0>";
if ($skin)
$ev['ev_skin'] = $skin;
@ -66,14 +64,7 @@ if (file_exists($list_file))
}
else
{
$i = 0;
$error = "<p>{$ev['ev_mobile_skin']} 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
}
if ($i==0)
{
echo "<br>";
echo "<div align=center>$error</div>";
echo '<div align="center">'.$ev['ev_mobile_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -77,13 +77,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
}
else
{
$i = 0;
$error = '<p class="sct_nofile">'.$ca['ca_mobile_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
}
if ($i==0)
{
echo '<div>'.$error.'</div>';
echo '<div class="sct_nofile">'.$ca['ca_mobile_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -28,8 +28,6 @@ if ($sort != '')
else
$order_by = 'it_order, it_id desc';
$error = '<img src="'.G5_SHOP_URL.'/img/no_item.gif">';
if (!$skin)
$skin = 'list.10.skin.php';
@ -62,14 +60,7 @@ if (file_exists($list_file)) {
}
else
{
$i = 0;
$error = "<p>$skin 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
}
if ($i==0)
{
echo "<br>";
echo "<div align=center>$error</div>";
echo '<div align="center">'.$skin.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -103,7 +103,7 @@
/* 아이디/비밀번호 찾기 */
#find_info #info_fs {margin:0 20px 10px}
#find_info #info_fs p {padding:0 0 10px}
#find_info #info_fs p {margin:0 0 10px;line-height:1.8em}
#find_info #info_fs #mb_email {width:100%}
#find_info #captcha {margin:0 20px;padding:0 0 10px}
#find_info #captcha input {margin-left:5px}

View File

@ -145,14 +145,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
$ct_send_cost_label = '배송비결제';
if($default['de_send_cost_case'] == '무료')
$sc_method = '무료배송';
else
$sc_method = '주문시 결제';
if($it['it_sc_type'] == 1)
$sc_method = '무료배송';
else if($it['it_sc_type'] > 1) {
else {
if($it['it_sc_method'] == 1)
$sc_method = '수령후 지불';
else if($it['it_sc_method'] == 2) {

View File

@ -40,8 +40,6 @@ if ($sort != "")
else
$order_by = 'b.it_order, b.it_id desc';
$error = "<img src='".G5_SHOP_URL."/img/no_item.gif' border=0>";
if ($skin)
$ev['ev_skin'] = $skin;
@ -82,14 +80,7 @@ if (file_exists($list_file))
}
else
{
$i = 0;
$error = "<p>{$ev['ev_skin']} 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
}
if ($i==0)
{
echo "<br>";
echo "<div align=center>$error</div>";
echo '<div align="center">'.$ev['ev_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -99,13 +99,7 @@ var itemlist_ca_id = "<?php echo $ca_id; ?>";
}
else
{
$i = 0;
$error = '<p class="sct_nofile">'.$ca['ca_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</p>';
}
if ($i==0)
{
echo '<div>'.$error.'</div>';
echo '<div class="sct_nofile">'.$ca['ca_skin'].' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -33,8 +33,6 @@ if ($sort != '')
else
$order_by = 'it_order, it_id desc';
$error = '<img src="'.G5_SHOP_URL.'/img/no_item.gif">';
if (!$skin)
$skin = 'list.10.skin.php';
@ -73,14 +71,7 @@ if (file_exists($list_file)) {
}
else
{
$i = 0;
$error = "<p>$skin 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
}
if ($i==0)
{
echo "<br>";
echo "<div align=center>$error</div>";
echo '<div align="center">'.$skin.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>

View File

@ -111,6 +111,8 @@
/* 아이디/비밀번호 찾기 */
#find_info #mb_hp_label {display:inline-block;margin-left:10px}
#find_info #info_fs {margin:0 20px 20px;padding:0;background:#fff}
#find_info #info_fs .frm_input {width:70%}
#find_info p {margin:0 0 10px;line-height:1.8em}
#find_info #captcha {margin:0 20px}
/* 로그인 */

View File

@ -158,14 +158,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
$ct_send_cost_label = '배송비결제';
if($default['de_send_cost_case'] == '무료')
$sc_method = '무료배송';
else
$sc_method = '주문시 결제';
if($it['it_sc_type'] == 1)
$sc_method = '무료배송';
else if($it['it_sc_type'] > 1) {
else {
if($it['it_sc_method'] == 1)
$sc_method = '수령후 지불';
else if($it['it_sc_method'] == 2) {