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

This commit is contained in:
gnuboard
2013-07-22 17:46:05 +09:00
8 changed files with 159 additions and 97 deletions

View File

@ -608,6 +608,10 @@ td.empty_table {padding:85px 0;text-align:center}
#sit_rel .sct_last {margin:0 !important}
/* 사용후기 모음 */
#sps_sch {margin:0 0 10px}
#sps_sch a {display:inline-block;padding:0 8px;height:22px;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.9em}
#sps_sch .btn_submit {height:22px;vertical-align:middle}
#sps {zoom:1}
#sps ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#sps li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9}
@ -616,19 +620,44 @@ td.empty_table {padding:85px 0;text-align:center}
.sps_img {float:left;margin:0 10px 0 0;width:80px}
.sps_img span {position:absolute;font-size:0;line-height:0}
.sps_section {float:left;width:630px}
#sps dl {margin:5px 0 10px;zoom:1}
#sps dl:after {display:block;visibility:hidden;clear:both;content:""}
#sps dt {float:left}
#sps dd {float:left;margin:0 20px 0 5px}
#sps dd img {position:relative;top:-2px}
.sps_section {float:left;width:630px}
.sps_section p {padding:0;width:100%;height:20px;overflow:hidden}
.sps_con_full {padding:0;height:auto !important}
.sps_con_btn {margin:5px 0 0;text-align:right}
.sps_con_btn button {margin:0;padding:5px;border:0;background:#565e60;color:#fff}
/* 상품문의 모음 */
#sqa_sch {margin:0 0 10px}
#sqa_sch a {display:inline-block;padding:0 8px;height:22px;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.9em}
#sqa_sch .btn_submit {height:22px;vertical-align:middle}
#sqa {zoom:1}
#sqa ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#sqa li {position:relative;padding:10px;border-bottom:1px solid #e9e9e9}
#sqa li:after {display:block;visibility:hidden;clear:both;content:""}
.sqa_img {float:left;margin:0 10px 0 0;width:80px}
.sqa_img span {position:absolute;font-size:0;line-height:0}
#sqa dl {margin:5px 0 10px;zoom:1}
#sqa dl:after {display:block;visibility:hidden;clear:both;content:""}
#sqa dt {float:left}
#sqa dd {float:left;margin:0 20px 0 5px}
#sqa dd img {position:relative;top:-2px}
.sqa_section {float:left;width:630px}
.sqa_section .sqa_con {padding:10px;background:#f2f5f9;line-height:1.7em}
.sqa_section p {padding:0;width:100%;height:20px;overflow:hidden}
.sqa_con_full {padding:0;height:auto !important}
.sqa_con_btn {margin:5px 0 0;text-align:right}
.sqa_con_btn button {margin:0;padding:5px;border:0;background:#565e60;color:#fff}
/* 마이페이지 */
#smb_my {}

View File

@ -282,27 +282,56 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
#sit_rel .sct_img {width:230px;height:230px}
/* 사용후기 모음 */
#sps_sch {margin:0 0 10px}
#sps_sch a {display:inline-block;padding:0 8px;height:1.8em;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.8em}
#sps_sch .btn_submit {height:1.8em;vertical-align:middle;line-height:1.8em}
#sps {zoom:1}
#sps ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#sps li {position:relative;padding:1em;border-bottom:1px solid #e9e9e9}
#sps li:after {display:block;visibility:hidden;clear:both;content:""}
.sps_img {float:left;margin:0 1em 0 0;width:80px}
.sps_img {float:left;width:15%}
.sps_img span {position:absolute;font-size:0;line-height:0}
.sps_section {float:left;width:630px}
#sps dl {margin:0.3em 0 1em;zoom:1}
#sps dl:after {display:block;visibility:hidden;clear:both;content:""}
#sps dt {float:left}
#sps dd {float:left;margin:0 1.8em 0 0.3em}
#sps dd {float:left;margin:0 1.5em 0 0.3em}
#sps dd img {position:relative;top:-2px}
.sps_section {float:right;width:80%}
.sps_section p {padding:0;width:100%;height:1.8em;overflow:hidden}
.sps_con_full {padding:0;height:auto !important}
.sps_con_btn {margin:0.3em 0 0;text-align:right}
.sps_con_btn button {margin:0;padding:0.3em;border:0;background:#565e60;color:#fff}
/* 상품문의 모음 */
#sqa_sch {margin:0 0 10px}
#sqa_sch a {display:inline-block;padding:0 8px;height:1.8em;background:#333;color:#fff;text-decoration:none;vertical-align:middle;line-height:1.8em}
#sqa_sch .btn_submit {height:1.8em;vertical-align:middle;line-height:1.8em}
#sqa {zoom:1}
#sqa ol {margin:0;padding:0;border-top:1px solid #e9e9e9;list-style:none}
#sqa li {position:relative;padding:1em;border-bottom:1px solid #e9e9e9}
#sqa li:after {display:block;visibility:hidden;clear:both;content:""}
.sqa_img {float:left;width:15%}
.sqa_img span {position:absolute;font-size:0;line-height:0}
#sqa dl {margin:0.3em 0 1em;zoom:1}
#sqa dl:after {display:block;visibility:hidden;clear:both;content:""}
#sqa dt {float:left}
#sqa dd {float:left;margin:0 1.5em 0 0.3em}
#sqa dd img {position:relative;top:-2px}
.sqa_section {float:right;width:80%}
.sqa_section .sqa_con {padding:1em;background:#f2f5f9;line-height:1.7em}
.sqa_section p {padding:0;width:100%;height:1.8em;overflow:hidden}
.sqa_con_full {padding:0;height:auto !important}
.sqa_con_btn {margin:0.3em 0 0;text-align:right}
.sqa_con_btn button {margin:0;padding:0.3em;border:0;background:#565e60;color:#fff}
/* 마이페이지 */
#smb_my {}

View File

@ -130,6 +130,16 @@ if ($row['it_id']) {
$next_href2 = '';
}
// 관리자가 확인한 사용후기의 갯수를 얻음
$sql = " select count(*) as cnt from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);
$item_use_count = $row['cnt'];
// 상품문의의 갯수를 얻음
$sql = " select count(*) as cnt from `{$g4['shop_item_qa_table']}` where it_id = '{$it_id}' ";
$row = sql_fetch($sql);
$item_qa_count = $row['cnt'];
// 관련상품의 갯수를 얻음
$sql = " select count(*) as cnt
from {$g4['shop_item_relation_table']} a
@ -139,20 +149,6 @@ $row = sql_fetch($sql);
$item_relation_count = $row['cnt'];
?>
<?php
function pg_anchor_m($anc_id) {
global $default;
?>
<ul class="sanchor">
<li><a href="#sit_inf" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="#sit_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"></span></a></li>
<li><a href="#sit_qa" <?php if ($anc_id == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"></span></a></li>
</ul>
<?php } ?>
<script src="<?php echo G4_JS_URL; ?>/md5.js"></script>
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
@ -517,7 +513,7 @@ else
<section id="sit_inf">
<h2>상품 정보</h2>
<?php echo pg_anchor_m('inf'); ?>
<?php echo pg_anchor('inf'); ?>
<?php if ($it['it_basic']) { // 상품 기본설명 ?>
<div id="sit_inf_basic">
@ -565,7 +561,7 @@ else
<section id="sit_use">
<h2>사용후기</h2>
<?php echo pg_anchor_m('use'); ?>
<?php echo pg_anchor('use'); ?>
<div id="itemuse"></div>
<script>
@ -577,7 +573,7 @@ else
<section id="sit_qa">
<h2>상품문의</h2>
<?php echo pg_anchor_m('qa'); ?>
<?php echo pg_anchor('qa'); ?>
<div id="itemqa"></div>
<script>
@ -591,7 +587,7 @@ else
<?php if ($default['de_baesong_content']) { // 배송정보 내용이 있다면 ?>
<section id="sit_dvr">
<h2>배송정보</h2>
<?php echo pg_anchor_m('dvr'); ?>
<?php echo pg_anchor('dvr'); ?>
<?php echo conv_content($default['de_baesong_content'], 1); ?>
</section>
@ -601,7 +597,7 @@ else
<?php if ($default['de_change_content']) { // 교환/반품 내용이 있다면 ?>
<section id="sit_ex">
<h2>교환/반품</h2>
<?php echo pg_anchor_m('ex'); ?>
<?php echo pg_anchor('ex'); ?>
<?php echo conv_content($default['de_change_content'], 1); ?>
</section>
@ -609,7 +605,7 @@ else
<section id="sit_rel">
<h2>관련상품</h2>
<?php echo pg_anchor_m('rel'); ?>
<?php echo pg_anchor('rel'); ?>
<div class="sct_wrap">
<?php
@ -643,10 +639,6 @@ else
return false;
});
$(".item_use_count").text("<?php echo $use_total_count; ?>");
$(".item_qa_count").text("<?php echo $qa_total_count; ?>");
$(".item_relation_count").text("<?php echo $item_relation_count; ?>");
});
// 바로구매 또는 장바구니 담기

View File

@ -51,23 +51,27 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<!-- 전체 상품 문의 목록 시작 { -->
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<select name="sfl" required title="검색항목선택">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name", true); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.iq_subject" <?php echo get_selected($sfl, "a.is_subject"); ?>>문의제목</option>
<option value="a.iq_question"<?php echo get_selected($sfl, "a.iq_question"); ?>>문의내용</option>
<option value="a.iq_name" <?php echo get_selected($sfl, "a.it_id"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<input type="text" name="stx" required title="검색어" value="<?php echo $stx; ?>">
<input type="submit" value="검색">
<div id="sqa_sch">
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<label for="sfl" class="sound_only">검색항목</label>
<select name="sfl" required id="sfl">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name", true); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.iq_subject" <?php echo get_selected($sfl, "a.is_subject"); ?>>문의제목</option>
<option value="a.iq_question"<?php echo get_selected($sfl, "a.iq_question"); ?>>문의내용</option>
<option value="a.iq_name" <?php echo get_selected($sfl, "a.it_id"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="frm_input">
<input type="submit" value="검색" class="btn_submit">
</div>
</form>
<div id="sps">
<div id="sqa">
<!-- <p><?php echo $config['cf_title']; ?> 전체 상품문의 목록입니다.</p> -->
@ -106,17 +110,17 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<li>
<div class="sps_img">
<div class="sqa_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_it_image($small_image, 70, 70); ?>
<span><?php echo $row['it_name']; ?></span>
</a>
</div>
<section class="sps_section">
<section class="sqa_section">
<h2><?php echo $row['iq_subject']; ?></h2>
<dl class="sps_dl">
<dl class="sqa_dl">
<dt>작성자</dt>
<dd><?php echo $row['iq_name']; ?></dd>
<dt>작성일</dt>
@ -125,7 +129,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
</dl>
<div id="sqa_con_<?php echo $i; ?>" style="display:none;">
<div id="sqa_con_<?php echo $i; ?>" class="sqa_con" style="display:none;">
<div class="sit_qa_qaq">
<strong>문의내용</strong><br>
<?php echo $iq_question; // 상품 문의 내용 ?>

View File

@ -51,20 +51,24 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<!-- 전체 상품 사용후기 목록 시작 { -->
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<select name="sfl" required title="검색항목선택">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name"); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.is_subject"<?php echo get_selected($sfl, "a.is_subject"); ?>>후기제목</option>
<option value="a.is_content"<?php echo get_selected($sfl, "a.is_content"); ?>>후기내용</option>
<option value="a.is_name" <?php echo get_selected($sfl, "a.is_name"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<input type="text" name="stx" required title="검색어" value="<?php echo $stx; ?>">
<input type="submit" value="검색">
<div id="sps_sch">
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<label for="sfl" class="sound_only">검색항목</label>
<select name="sfl" id="sfl" required>
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name"); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.is_subject"<?php echo get_selected($sfl, "a.is_subject"); ?>>후기제목</option>
<option value="a.is_content"<?php echo get_selected($sfl, "a.is_content"); ?>>후기내용</option>
<option value="a.is_name" <?php echo get_selected($sfl, "a.is_name"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="frm_input">
<input type="submit" value="검색" class="btn_submit">
</div>
</form>
<div id="sps">

View File

@ -129,7 +129,7 @@ if ($row['it_id']) {
$next_href2 = '';
}
// 관리자가 확인 사용후기의 갯수를 얻음
// 관리자가 확인 사용후기의 갯수를 얻음
$sql = " select count(*) as cnt from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);
$item_use_count = $row['cnt'];
@ -668,10 +668,6 @@ else
return false;
});
//$(".item_use_count").text("<?php echo $use_total_count; ?>");
//$(".item_qa_count").text("<?php echo $qa_total_count; ?>");
//$(".item_relation_count").text("<?php echo $item_relation_count; ?>");
});
// 바로구매 또는 장바구니 담기

View File

@ -57,23 +57,28 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<!-- 전체 상품 문의 목록 시작 { -->
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<select name="sfl" required title="검색항목선택">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name", true); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.iq_subject" <?php echo get_selected($sfl, "a.is_subject"); ?>>문의제목</option>
<option value="a.iq_question"<?php echo get_selected($sfl, "a.iq_question"); ?>>문의내용</option>
<option value="a.iq_name" <?php echo get_selected($sfl, "a.it_id"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<input type="text" name="stx" required title="검색어" value="<?php echo $stx; ?>">
<input type="submit" value="검색">
<div id="sqa_sch">
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<label for="sfl" class="sound_only">검색항목</label>
<select name="sfl" required id="sfl">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name", true); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.iq_subject" <?php echo get_selected($sfl, "a.is_subject"); ?>>문의제목</option>
<option value="a.iq_question"<?php echo get_selected($sfl, "a.iq_question"); ?>>문의내용</option>
<option value="a.iq_name" <?php echo get_selected($sfl, "a.it_id"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="frm_input">
<input type="submit" value="검색" class="btn_submit">
</div>
</form>
<div id="sps">
<div id="sqa">
<!-- <p><?php echo $config['cf_title']; ?> 전체 상품문의 목록입니다.</p> -->
@ -112,17 +117,17 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<li>
<div class="sps_img">
<div class="sqa_img">
<a href="<?php echo $it_href; ?>">
<?php echo get_it_image($small_image, 70, 70); ?>
<span><?php echo $row['it_name']; ?></span>
</a>
</div>
<section class="sps_section">
<section class="sqa_section">
<h2><?php echo $row['iq_subject']; ?></h2>
<dl class="sps_dl">
<dl class="sqa_dl">
<dt>작성자</dt>
<dd><?php echo $row['iq_name']; ?></dd>
<dt>작성일</dt>
@ -131,7 +136,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
</dl>
<div id="sqa_con_<?php echo $i; ?>" style="display:none;">
<div id="sqa_con_<?php echo $i; ?>" class="sqa_con" style="display:none;">
<div class="sit_qa_qaq">
<strong>문의내용</strong><br>
<?php echo $iq_question; // 상품 문의 내용 ?>
@ -148,7 +153,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
</li>
<?php }
if ($i > 0) echo '</ol>';
if ($i == 0) echo '<p id="sps_empty">자료가 없습니다.</p>';
if ($i == 0) echo '<p id="sqa_empty">자료가 없습니다.</p>';
?>
</div>

View File

@ -57,20 +57,23 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
?>
<!-- 전체 상품 사용후기 목록 시작 { -->
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<select name="sfl" required title="검색항목선택">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name"); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.is_subject"<?php echo get_selected($sfl, "a.is_subject"); ?>>후기제목</option>
<option value="a.is_content"<?php echo get_selected($sfl, "a.is_content"); ?>>후기내용</option>
<option value="a.is_name" <?php echo get_selected($sfl, "a.is_name"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<input type="text" name="stx" required title="검색어" value="<?php echo $stx; ?>">
<input type="submit" value="검색">
<div id="sps_sch">
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">전체보기</a>
<label for="sfl" class="sound_only">검색항목</label>
<select name="sfl" required id="sfl">
<option value="">선택</option>
<option value="b.it_name" <?php echo get_selected($sfl, "b.it_name"); ?>>상품명</option>
<option value="a.it_id" <?php echo get_selected($sfl, "a.it_id"); ?>>상품코드</option>
<option value="a.is_subject"<?php echo get_selected($sfl, "a.is_subject"); ?>>후기제목</option>
<option value="a.is_content"<?php echo get_selected($sfl, "a.is_content"); ?>>후기내용</option>
<option value="a.is_name" <?php echo get_selected($sfl, "a.is_name"); ?>>작성자명</option>
<option value="a.mb_id" <?php echo get_selected($sfl, "a.mb_id"); ?>>작성자아이디</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="frm_input">
<input type="submit" value="검색" class="btn_submit">
</div>
</form>
<div id="sps">