상품리스트 및 상세보기 스킨화 작업 1차
This commit is contained in:
100
shop/item.php
100
shop/item.php
@ -21,24 +21,24 @@ if (!($it['ca_use'] && $it['it_use'])) {
|
||||
}
|
||||
|
||||
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
|
||||
$sql = " select ca_include_head, ca_include_tail, ca_hp_cert_use, ca_adult_cert_use from {$g5['g5_shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
||||
$sql = " select ca_include_head, ca_include_tail, ca_cert_use, ca_adult_use from {$g5['g5_shop_category_table']} where ca_id = '{$it['ca_id']}' ";
|
||||
$ca = sql_fetch($sql);
|
||||
|
||||
if(!$is_admin) {
|
||||
// 본인확인체크
|
||||
if($ca['ca_hp_cert_use'] && !$member['mb_hp_certify']) {
|
||||
if($ca['ca_cert_use'] && !$member['mb_certify']) {
|
||||
if($is_member)
|
||||
alert('회원정보 수정에서 휴대폰 본인확인 후 이용해 주십시오.');
|
||||
alert('회원정보 수정에서 본인확인 후 이용해 주십시오.');
|
||||
else
|
||||
alert('휴대폰 본인확인된 로그인 회원만 이용할 수 있습니다.');
|
||||
alert('본인확인된 로그인 회원만 이용할 수 있습니다.');
|
||||
}
|
||||
|
||||
// 성인인증체크
|
||||
if($ca['ca_adult_cert_use'] && !$member['mb_adult']) {
|
||||
if($ca['ca_adult_use'] && !$member['mb_adult']) {
|
||||
if($is_member)
|
||||
alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 휴대폰 본인확인을 해주십시오.');
|
||||
alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.\\n회원정보 수정에서 본인확인을 해주십시오.');
|
||||
else
|
||||
alert('휴대폰 본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
|
||||
alert('본인확인으로 성인인증된 회원만 이용할 수 있습니다.');
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,10 +79,10 @@ else
|
||||
// 분류 위치
|
||||
// HOME > 1단계 > 2단계 ... > 6단계 분류
|
||||
$ca_id = $it['ca_id'];
|
||||
include G5_SHOP_PATH.'/navigation.inc.php';
|
||||
include G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
|
||||
// 이 분류에 속한 하위분류 출력
|
||||
include G5_SHOP_PATH.'/listcategory.inc.php';
|
||||
include G5_SHOP_SKIN_PATH.'/listcategory.skin.php';
|
||||
|
||||
if ($is_admin) {
|
||||
echo '<div class="sit_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/itemform.php?w=u&it_id='.$it_id.'" class="btn_admin">상품 관리</a></div>';
|
||||
@ -94,73 +94,6 @@ if ($is_admin) {
|
||||
// 상단 HTML
|
||||
echo '<div id="sit_hhtml">'.stripslashes($it['it_head_html']).'</div>';
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id > '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$prev_title = '이전상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
$prev_href = '<a href="./item.php?it_id='.$row['it_id'].'" class="btn01">';
|
||||
$prev_href2 = '</a>'.PHP_EOL;
|
||||
} else {
|
||||
$prev_title = '';
|
||||
$prev_href = '';
|
||||
$prev_href2 = '';
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id < '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$next_title = '다음 상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
$next_href = '<a href="./item.php?it_id='.$row['it_id'].'" class="btn01">';
|
||||
$next_href2 = '</a>'.PHP_EOL;
|
||||
} else {
|
||||
$next_title = '';
|
||||
$next_href = '';
|
||||
$next_href2 = '';
|
||||
}
|
||||
|
||||
// 관리자가 확인한 사용후기의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g5['g5_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 `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_qa_count = $row['cnt'];
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_relation_count = $row['cnt'];
|
||||
|
||||
// 상품 선택옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$opt_count = $row['cnt'];
|
||||
|
||||
// 상품 추가옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$spl_count = $row['cnt'];
|
||||
|
||||
// 고객선호도 별점수
|
||||
$star_score = get_star_image($it['it_id']);
|
||||
|
||||
// 선택 옵션
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
|
||||
|
||||
// 추가 옵션
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
|
||||
|
||||
// 소셜 관련
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_fb2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo2.png');
|
||||
|
||||
// 보안서버경로
|
||||
if (G5_HTTPS_DOMAIN)
|
||||
$action_url = G5_HTTPS_DOMAIN.'/'.G5_SHOP_DIR.'/cartupdate.php';
|
||||
@ -172,13 +105,15 @@ else
|
||||
|
||||
<div id="sit">
|
||||
|
||||
<!-- 상품 구입폼 시작 { -->
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/item.form.skin.php'); ?>
|
||||
<!-- } 상품 구입폼 끝 -->
|
||||
<?php
|
||||
// 상품 구입폼
|
||||
include_once(G5_SHOP_SKIN_PATH.'/item.form.skin.php');
|
||||
?>
|
||||
|
||||
<!-- 상품 상세정보 시작 { -->
|
||||
<?php include_once(G5_SHOP_SKIN_PATH.'/item.info.skin.php'); ?>
|
||||
<!-- } 상품 상세정보 끝 -->
|
||||
<?php
|
||||
// 상품 상세정보
|
||||
include_once(G5_SHOP_SKIN_PATH.'/item.info.skin.php');
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -186,7 +121,6 @@ else
|
||||
// 하단 HTML
|
||||
echo stripslashes($it['it_tail_html']);
|
||||
?>
|
||||
<!-- } 상품 상세보기 끝 -->
|
||||
|
||||
<?php
|
||||
if ($ca['ca_include_tail'])
|
||||
|
||||
182
shop/itemqa.php
182
shop/itemqa.php
@ -8,181 +8,11 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemqa_list = "./itemqalist.php";
|
||||
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
||||
$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id;
|
||||
$itemqa_skin = G5_SHOP_SKIN_PATH.'/itemqa.skin.php';
|
||||
|
||||
$thumbnail_width = 500;
|
||||
?>
|
||||
|
||||
<!-- 상품문의 목록 시작 { -->
|
||||
<section id="sit_qa_list">
|
||||
<h3>등록된 상품문의</h3>
|
||||
|
||||
<?php
|
||||
$sql_common = " from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 5;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by iq_id desc limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$iq_star = get_star($row['iq_score']);
|
||||
$iq_name = get_text($row['iq_name']);
|
||||
$iq_subject = conv_subject($row['iq_subject'],50,"…");
|
||||
$iq_question = get_view_thumbnail($row['iq_question'], $thumbnail_width);
|
||||
$iq_time = substr($row['iq_time'], 2, 8);
|
||||
|
||||
$hash = md5($row['iq_id'].$row['iq_time'].$row['iq_ip']);
|
||||
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
|
||||
$iq_stats = '';
|
||||
$iq_style = '';
|
||||
$iq_answer = '';
|
||||
if ($row['iq_answer'])
|
||||
{
|
||||
$iq_answer = get_view_thumbnail($row['iq_answer'], $thumbnail_width);
|
||||
$iq_stats = '답변완료';
|
||||
$iq_style = 'sit_qaa_done';
|
||||
$is_answer = true;
|
||||
} else {
|
||||
$iq_stats = '답변전';
|
||||
$iq_style = 'sit_qaa_yet';
|
||||
$iq_answer = '답변이 등록되지 않았습니다.';
|
||||
$is_answer = false;
|
||||
}
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_qa_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_qa_li">
|
||||
<button type="button" class="sit_qa_li_title" onclick="javascript:qa_menu('sit_qa_con_<?php echo $i; ?>')"><b><?php echo $iq_num; ?>.</b> <?php echo $iq_subject; ?></button>
|
||||
<dl class="sit_qa_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $iq_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $iq_time; ?></dd>
|
||||
<dt>상태</dt>
|
||||
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_qa_con_<?php echo $i; ?>" class="sit_qa_con">
|
||||
<div class="sit_qa_p">
|
||||
<div class="sit_qa_qaq">
|
||||
<strong>문의내용</strong><br>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<div class="sit_qa_qaa">
|
||||
<strong>답변</strong><br>
|
||||
<?php echo $iq_answer; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || ($row['mb_id'] == $member['mb_id'] && !$is_answer)) { ?>
|
||||
<div class="sit_qa_cmd">
|
||||
<a href="<?php echo $itemqa_form."&iq_id={$row['iq_id']}&w=u"; ?>" class="itemqa_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemqa_formupdate."&iq_id={$row['iq_id']}&w=d&hash={$hash}"; ?>" class="itemqa_delete btn01">삭제</a>
|
||||
<!-- <button type="button" onclick="javascript:itemqa_update(<?php echo $i; ?>);" class="btn01">수정</button>
|
||||
<button type="button" onclick="javascript:itemqa_delete(fitemqa_password<?php echo $i; ?>, <?php echo $i; ?>);" class="btn01">삭제</button> -->
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
if ($i >= 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">상품문의가 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="qa_page qa_start">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="qa_page pg_prev">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
if ($cur_page != $k)
|
||||
$str .= '<a href="'.$url.$k.$add.'" class="qa_page">'.$k.'</a><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
else
|
||||
$str .= '<span class="sound_only">열린</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="qa_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="qa_page pg_end">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($str)
|
||||
return "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
|
||||
else
|
||||
return "";
|
||||
if(!file_exists($itemqa_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemqa_skin);
|
||||
}
|
||||
|
||||
echo itemqa_page($config['cf_write_pages'], $page, $total_page, "./itemqa.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_qa_wbtn">
|
||||
<!-- <a href="javascript:itemqawin('it_id=<?php echo $it_id; ?>');">상품문의 쓰기<span class="sound_only"> 새 창</span></a> -->
|
||||
<a href="<?php echo $itemqa_form; ?>" class="btn02 itemqa_form">상품문의 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemqa_list; ?>" id="itemqa_list" class="btn01">더보기</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemqa_form").click(function(){
|
||||
window.open(this.href, "itemqa_form", "width=800,height=600,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemqa_delete").click(function(){
|
||||
return confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.");
|
||||
});
|
||||
|
||||
$(".qa_href").click(function(){
|
||||
var $content = $("#qa_div"+$(this).attr("target"));
|
||||
$(".qa_div").each(function(index, value){
|
||||
if ($(this).get(0) == $content.get(0)) { // 객체의 비교시 .get(0) 를 사용한다.
|
||||
$(this).is(":hidden") ? $(this).show() : $(this).hide();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(".qa_page").click(function(){
|
||||
$("#itemqa").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품문의 목록 끝 -->
|
||||
?>
|
||||
@ -8,13 +8,6 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_EDITOR_LIB);
|
||||
|
||||
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$iq_question_max_length = 10000;
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$iq_id = escape_trim($_REQUEST['iq_id']);
|
||||
|
||||
if (!$is_member) {
|
||||
alert_login("상품문의는 회원만 작성 가능합니다.", urlencode($_SERVER['REQUEST_URI']));
|
||||
}
|
||||
@ -34,56 +27,14 @@ if ($w == "u")
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<!-- 상품문의 쓰기 시작 { -->
|
||||
<div id="sit_qa_write" class="new_win">
|
||||
<h1 class="new_win_title">상품문의 쓰기</h1>
|
||||
$itemqaform_skin = G5_SHOP_SKIN_PATH.'/itemqaform.skin.php';
|
||||
|
||||
<form name="fitemqa" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemqa_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('iq_question'); ?>
|
||||
|
||||
if (iq_question_editor_data.length > <?php echo $iq_question_max_length; ?>) {
|
||||
alert("내용은 <?php echo $iq_question_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+iq_question_editor_data.length+" 글자");
|
||||
CKEDITOR.instances.iq_question.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
if(!file_exists($itemqaform_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemqaform_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemqaform_skin);
|
||||
}
|
||||
</script>
|
||||
<!-- } 상품문의 쓰기 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -5,11 +5,11 @@ if (!$is_member) {
|
||||
alert_close("상품문의는 회원만 작성이 가능합니다.");
|
||||
}
|
||||
|
||||
$iq_id = escape_trim($_POST['iq_id']);
|
||||
$iq_id = escape_trim($_REQUEST['iq_id']);
|
||||
$iq_subject = escape_trim($_POST['iq_subject']);
|
||||
$iq_question = escape_trim(stripslashes($_POST['iq_question']));
|
||||
$iq_answer = escape_trim(stripslashes($_POST['iq_answer']));
|
||||
$hash = escape_trim($_POST['hash']);
|
||||
$hash = escape_trim($_REQUEST['hash']);
|
||||
|
||||
if ($w == "" || $w == "u") {
|
||||
$iq_name = $member['mb_name'];
|
||||
@ -19,7 +19,7 @@ if ($w == "" || $w == "u") {
|
||||
if (!$iq_question) alert("질문을 입력하여 주십시오.");
|
||||
}
|
||||
|
||||
$url = "./item.php?it_id=$it_id&_=".get_token()."#sit_qa";
|
||||
$url = "./item.php?it_id=$it_id&_=".get_token()."#sit_qa";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
|
||||
159
shop/itemuse.php
159
shop/itemuse.php
@ -8,158 +8,11 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemuse_list = "./itemuselist.php";
|
||||
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
|
||||
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
||||
?>
|
||||
$itemuse_skin = G5_SHOP_SKIN_PATH.'/itemuse.skin.php';
|
||||
|
||||
<!-- 상품 사용후기 시작 { -->
|
||||
<section id="sit_use_list">
|
||||
<h3>등록된 사용후기</h3>
|
||||
|
||||
<?php
|
||||
$sql_common = " from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 5;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$is_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$is_star = get_star($row['is_score']);
|
||||
$is_name = get_text($row['is_name']);
|
||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
||||
$is_content = get_view_thumbnail($row['is_content'], 300);
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_use_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_use_li">
|
||||
<button type="button" class="sit_use_li_title" onclick="javascript:qa_menu('sit_use_con_<?php echo $i; ?>')"><b><?php echo $is_num; ?>.</b> <?php echo $is_subject; ?></button>
|
||||
<dl class="sit_use_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $is_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $is_time; ?></dd>
|
||||
<dt>선호도<dt>
|
||||
<dd class="sit_use_star"><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||
<div class="sit_use_p">
|
||||
<?php echo $is_content; // 사용후기 내용 ?>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || $row['mb_id'] == $member['mb_id']) { ?>
|
||||
<div class="sit_use_cmd">
|
||||
<a href="<?php echo $itemuse_form."&is_id={$row['is_id']}&w=u"; ?>" class="itemuse_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemuse_formupdate."&is_id={$row['is_id']}&w=d&hash={$hash}"; ?>" class="itemuse_delete btn01">삭제</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
if ($i >= 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">사용후기가 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page pg_start">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="pg_page pg_prev">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
if ($cur_page != $k)
|
||||
$str .= '<a href="'.$url.$k.$add.'" class="pg_page">'.$k.'</a><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
else
|
||||
$str .= '<span class="sound_only">열린</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="pg_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="pg_page pg_end">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($str)
|
||||
return "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
|
||||
else
|
||||
return "";
|
||||
if(!file_exists($itemuse_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemuse_skin);
|
||||
}
|
||||
|
||||
echo itemuse_page($config['cf_write_pages'], $page, $total_page, "./itemuse.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_use_wbtn">
|
||||
<a href="<?php echo $itemuse_form; ?>" class="btn02 itemuse_form">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemuse_list; ?>" class="btn01 itemuse_list">더보기</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemuse_form").click(function(){
|
||||
window.open(this.href, "itemuse_form", "width=800,height=700,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemuse_delete").click(function(){
|
||||
if (confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.")) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(".use_href").click(function(){
|
||||
var $content = $("#use_div"+$(this).attr("target"));
|
||||
$(".use_div").each(function(index, value){
|
||||
if ($(this).get(0) == $content.get(0)) { // 객체의 비교시 .get(0) 를 사용한다.
|
||||
$(this).is(":hidden") ? $(this).show() : $(this).hide();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(".pg_page").click(function(){
|
||||
$("#itemuse").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품 사용후기 끝 -->
|
||||
?>
|
||||
@ -8,13 +8,6 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_EDITOR_LIB);
|
||||
|
||||
// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$is_content_max_length = 10000;
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$is_id = escape_trim($_REQUEST['is_id']);
|
||||
|
||||
if (!$is_member) {
|
||||
alert_close("사용후기는 회원만 작성 가능합니다.");
|
||||
}
|
||||
@ -36,89 +29,14 @@ if ($w == "") {
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<!-- 사용후기 쓰기 시작 { -->
|
||||
<div id="sit_use_write" class="new_win">
|
||||
<h1 class="new_win_title">사용후기 쓰기</h1>
|
||||
$itemuseform_skin = G5_SHOP_SKIN_PATH.'/itemuseform.skin.php';
|
||||
|
||||
<form name="fitemuse" method="post" action="./itemuseformupdate.php" onsubmit="return fitemuse_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('is_content'); ?>
|
||||
|
||||
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
|
||||
alert("내용은 <?php echo $is_content_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+is_content_editor_data.length+" 글자");
|
||||
CKEDITOR.instances.is_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
if(!file_exists($itemuseform_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemuseform_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemuseform_skin);
|
||||
}
|
||||
</script>
|
||||
<!-- } 사용후기 쓰기 끝 -->
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -16,7 +16,7 @@ if ($w == "" || $w == "u") {
|
||||
if (!$is_content) alert("내용을 입력하여 주십시오.");
|
||||
}
|
||||
|
||||
$url = "./item.php?it_id=$it_id&_=".get_token()."#sit_use";
|
||||
$url = "./item.php?it_id=$it_id&_=".get_token()."#sit_use";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
|
||||
@ -51,12 +51,12 @@ if ($is_admin)
|
||||
|
||||
<?php
|
||||
$nav_ca_id = $ca_id;
|
||||
include G5_SHOP_PATH.'/navigation.inc.php';
|
||||
include G5_SHOP_SKIN_PATH.'/navigation.skin.php';
|
||||
|
||||
// 상단 HTML
|
||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_head_html']).'</div>';
|
||||
|
||||
include G5_SHOP_PATH.'/listcategory3.inc.php';
|
||||
include G5_SHOP_SKIN_PATH.'/listcategory3.skin.php';
|
||||
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "")
|
||||
@ -69,10 +69,10 @@ if ($is_admin)
|
||||
if (file_exists($list_file)) {
|
||||
|
||||
echo '<div id="sct_sortlst">';
|
||||
include G5_SHOP_PATH.'/list.sort.php';
|
||||
include G5_SHOP_SKIN_PATH.'/list.sort.skin.php';
|
||||
|
||||
// 상품 보기 타입 변경 버튼
|
||||
include G5_SHOP_PATH.'/list.sub.php';
|
||||
include G5_SHOP_SKIN_PATH.'/list.sub.skin.php';
|
||||
echo '</div>';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
@ -117,7 +117,7 @@ if ($is_admin)
|
||||
|
||||
<?php
|
||||
// 상품 보기 타입 변경 처리 스크립트
|
||||
include G5_SHOP_PATH.'/list.sub2.php';
|
||||
include G5_SHOP_SKIN_PATH.'/list.sub2.skin.php';
|
||||
|
||||
$qstr1 .= 'ca_id='.$ca_id;
|
||||
if($skin)
|
||||
|
||||
@ -1,7 +1,61 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 이전 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id > '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$prev_title = '이전상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
$prev_href = '<a href="./item.php?it_id='.$row['it_id'].'" class="btn01">';
|
||||
$prev_href2 = '</a>'.PHP_EOL;
|
||||
} else {
|
||||
$prev_title = '';
|
||||
$prev_href = '';
|
||||
$prev_href2 = '';
|
||||
}
|
||||
|
||||
// 다음 상품보기
|
||||
$sql = " select it_id, it_name from {$g5['g5_shop_item_table']} where it_id < '$it_id' and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_id']) {
|
||||
$next_title = '다음 상품<span class="sound_only"> '.$row['it_name'].'</span>';
|
||||
$next_href = '<a href="./item.php?it_id='.$row['it_id'].'" class="btn01">';
|
||||
$next_href2 = '</a>'.PHP_EOL;
|
||||
} else {
|
||||
$next_title = '';
|
||||
$next_href = '';
|
||||
$next_href2 = '';
|
||||
}
|
||||
|
||||
// 상품 선택옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '0' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$opt_count = $row['cnt'];
|
||||
|
||||
// 상품 추가옵션 갯수
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_option_table']} where it_id = '{$it['it_id']}' and io_type = '1' and io_use = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$spl_count = $row['cnt'];
|
||||
|
||||
// 고객선호도 별점수
|
||||
$star_score = get_star_image($it['it_id']);
|
||||
|
||||
// 선택 옵션
|
||||
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
|
||||
|
||||
// 추가 옵션
|
||||
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
|
||||
|
||||
// 소셜 관련
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_url = G5_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
$sns_share_links .= get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_fb2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt2.png').' ';
|
||||
$sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo2.png');
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<form name="fitem" method="post" action="<?php echo $action_url; ?>" onsubmit="return fitem_submit(this);">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="sw_direct">
|
||||
@ -386,50 +440,4 @@ function fitem_submit(f)
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<!--[if lte IE 6]>
|
||||
<script>
|
||||
// 이미지 등비율 리사이징
|
||||
$(window).load(function() {
|
||||
view_image_resize();
|
||||
});
|
||||
|
||||
function view_image_resize()
|
||||
{
|
||||
var $img = $("#sit_inf_explan img");
|
||||
var img_wrap = $("#sit_inf_explan").width();
|
||||
var win_width = $(window).width() - 35;
|
||||
var res_width = 0;
|
||||
|
||||
if(img_wrap < win_width)
|
||||
res_width = img_wrap;
|
||||
else
|
||||
res_width = win_width;
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
var img_height = $(this).height();
|
||||
var this_width = $(this).data("width");
|
||||
var this_height = $(this).data("height");
|
||||
|
||||
if(this_width == undefined) {
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
$(this).data("height", img_height);
|
||||
this_width = img_width;
|
||||
this_height = img_height;
|
||||
}
|
||||
|
||||
if(this_width > res_width) {
|
||||
$(this).width(res_width);
|
||||
var res_height = Math.round(res_width * $(this).data("height") / $(this).data("width"));
|
||||
$(this).height(res_height);
|
||||
} else {
|
||||
$(this).width(this_width);
|
||||
$(this).height(this_height);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<![endif]-->
|
||||
</script>
|
||||
@ -1,19 +1,38 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 관리자가 확인한 사용후기의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from `{$g5['g5_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 `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_qa_count = $row['cnt'];
|
||||
|
||||
// 관련상품의 갯수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
$item_relation_count = $row['cnt'];
|
||||
|
||||
function pg_anchor($anc_id) {
|
||||
global $default;
|
||||
global $item_use_count, $item_qa_count, $item_relation_count;
|
||||
?>
|
||||
<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"><?php echo $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"><?php echo $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"><?php echo $item_relation_count; ?></span></a></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
<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"><?php echo $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"><?php echo $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"><?php echo $item_relation_count; ?></span></a></li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품 정보 시작 { -->
|
||||
<section id="sit_inf">
|
||||
@ -71,12 +90,7 @@ function pg_anchor($anc_id) {
|
||||
<h2>사용후기</h2>
|
||||
<?php echo pg_anchor('use'); ?>
|
||||
|
||||
<div id="itemuse"></div>
|
||||
<script>
|
||||
$(function(){
|
||||
$("#itemuse").load("./itemuse.php", {it_id:"<?php echo $it_id; ?>"});
|
||||
});
|
||||
</script>
|
||||
<div id="itemuse"><?php include_once('./itemuse.php'); ?></div>
|
||||
</section>
|
||||
<!-- } 사용후기 끝 -->
|
||||
|
||||
@ -85,12 +99,7 @@ function pg_anchor($anc_id) {
|
||||
<h2>상품문의</h2>
|
||||
<?php echo pg_anchor('qa'); ?>
|
||||
|
||||
<div id="itemqa"></div>
|
||||
<script>
|
||||
$(function(){
|
||||
$("#itemqa").load("./itemqa.php", {it_id:"<?php echo $it_id; ?>"});
|
||||
});
|
||||
</script>
|
||||
<div id="itemqa"><?php include_once('./itemqa.php'); ?></div>
|
||||
</section>
|
||||
<!-- } 상품문의 끝 -->
|
||||
|
||||
@ -126,10 +135,55 @@ function pg_anchor($anc_id) {
|
||||
<?php
|
||||
$sql = " select b.* from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list("list.10.skin.php", $default['de_rel_list_mod'], 1, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||
$list = new item_list("item.relation.skin.php", $default['de_rel_list_mod'], 1, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||
$list->set_query($sql);
|
||||
echo $list->run();
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 관련상품 끝 -->
|
||||
|
||||
<!--[if lte IE 6]>
|
||||
<script>
|
||||
// 이미지 등비율 리사이징
|
||||
$(window).load(function() {
|
||||
view_image_resize();
|
||||
});
|
||||
|
||||
function view_image_resize()
|
||||
{
|
||||
var $img = $("#sit_inf_explan img");
|
||||
var img_wrap = $("#sit_inf_explan").width();
|
||||
var win_width = $(window).width() - 35;
|
||||
var res_width = 0;
|
||||
|
||||
if(img_wrap < win_width)
|
||||
res_width = img_wrap;
|
||||
else
|
||||
res_width = win_width;
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
var img_height = $(this).height();
|
||||
var this_width = $(this).data("width");
|
||||
var this_height = $(this).data("height");
|
||||
|
||||
if(this_width == undefined) {
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
$(this).data("height", img_height);
|
||||
this_width = img_width;
|
||||
this_height = img_height;
|
||||
}
|
||||
|
||||
if(this_width > res_width) {
|
||||
$(this).width(res_width);
|
||||
var res_height = Math.round(res_width * $(this).data("height") / $(this).data("width"));
|
||||
$(this).height(res_height);
|
||||
} else {
|
||||
$(this).width(this_width);
|
||||
$(this).height(this_height);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<![endif]-->
|
||||
75
skin/shop/basic/item.relation.skin.php
Normal file
75
skin/shop/basic/item.relation.skin.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 10 시작 { -->
|
||||
<?php
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
|
||||
if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
|
||||
else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
|
||||
else $sct_last = '';
|
||||
} else { // 1줄 이미지 : 1개
|
||||
$sct_last = ' sct_clear';
|
||||
}
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_10\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<li class=\"sct_li{$sct_last}\" style=\"width:{$this->img_width}px\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) echo "</ul>\n";
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
182
skin/shop/basic/itemqa.skin.php
Normal file
182
skin/shop/basic/itemqa.skin.php
Normal file
@ -0,0 +1,182 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$itemqa_list = "./itemqalist.php";
|
||||
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
||||
$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id;
|
||||
|
||||
$thumbnail_width = 500;
|
||||
|
||||
$sql_common = " from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 5;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by iq_id desc limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품문의 목록 시작 { -->
|
||||
<section id="sit_qa_list">
|
||||
<h3>등록된 상품문의</h3>
|
||||
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$iq_star = get_star($row['iq_score']);
|
||||
$iq_name = get_text($row['iq_name']);
|
||||
$iq_subject = conv_subject($row['iq_subject'],50,"…");
|
||||
$iq_question = get_view_thumbnail($row['iq_question'], $thumbnail_width);
|
||||
$iq_time = substr($row['iq_time'], 2, 8);
|
||||
|
||||
$hash = md5($row['iq_id'].$row['iq_time'].$row['iq_ip']);
|
||||
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
|
||||
$iq_stats = '';
|
||||
$iq_style = '';
|
||||
$iq_answer = '';
|
||||
if ($row['iq_answer'])
|
||||
{
|
||||
$iq_answer = get_view_thumbnail($row['iq_answer'], $thumbnail_width);
|
||||
$iq_stats = '답변완료';
|
||||
$iq_style = 'sit_qaa_done';
|
||||
$is_answer = true;
|
||||
} else {
|
||||
$iq_stats = '답변전';
|
||||
$iq_style = 'sit_qaa_yet';
|
||||
$iq_answer = '답변이 등록되지 않았습니다.';
|
||||
$is_answer = false;
|
||||
}
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_qa_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_qa_li">
|
||||
<button type="button" class="sit_qa_li_title"><b><?php echo $iq_num; ?>.</b> <?php echo $iq_subject; ?></button>
|
||||
<dl class="sit_qa_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $iq_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $iq_time; ?></dd>
|
||||
<dt>상태</dt>
|
||||
<dd class="<?php echo $iq_style; ?>"><?php echo $iq_stats; ?></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_qa_con_<?php echo $i; ?>" class="sit_qa_con">
|
||||
<div class="sit_qa_p">
|
||||
<div class="sit_qa_qaq">
|
||||
<strong>문의내용</strong><br>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</div>
|
||||
<div class="sit_qa_qaa">
|
||||
<strong>답변</strong><br>
|
||||
<?php echo $iq_answer; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || ($row['mb_id'] == $member['mb_id'] && !$is_answer)) { ?>
|
||||
<div class="sit_qa_cmd">
|
||||
<a href="<?php echo $itemqa_form."&iq_id={$row['iq_id']}&w=u"; ?>" class="itemqa_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemqa_formupdate."&iq_id={$row['iq_id']}&w=d&hash={$hash}"; ?>" class="itemqa_delete btn01">삭제</a>
|
||||
<!-- <button type="button" onclick="javascript:itemqa_update(<?php echo $i; ?>);" class="btn01">수정</button>
|
||||
<button type="button" onclick="javascript:itemqa_delete(fitemqa_password<?php echo $i; ?>, <?php echo $i; ?>);" class="btn01">삭제</button> -->
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
if ($i >= 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">상품문의가 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="qa_page qa_start">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="qa_page pg_prev">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
if ($cur_page != $k)
|
||||
$str .= '<a href="'.$url.$k.$add.'" class="qa_page">'.$k.'</a><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
else
|
||||
$str .= '<span class="sound_only">열린</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="qa_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="qa_page pg_end">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($str)
|
||||
return "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
echo itemqa_page($config['cf_write_pages'], $page, $total_page, "./itemqa.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_qa_wbtn">
|
||||
<!-- <a href="javascript:itemqawin('it_id=<?php echo $it_id; ?>');">상품문의 쓰기<span class="sound_only"> 새 창</span></a> -->
|
||||
<a href="<?php echo $itemqa_form; ?>" class="btn02 itemqa_form">상품문의 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemqa_list; ?>" id="itemqa_list" class="btn01">더보기</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemqa_form").click(function(){
|
||||
window.open(this.href, "itemqa_form", "width=800,height=600,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemqa_delete").click(function(){
|
||||
return confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.");
|
||||
});
|
||||
|
||||
$(".sit_qa_li_title").click(function(){
|
||||
var $con = $(this).siblings(".sit_qa_con");
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$(".sit_qa_con:visible").hide();
|
||||
$con.slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
$(".qa_page").click(function(){
|
||||
$("#itemqa").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품문의 목록 끝 -->
|
||||
60
skin/shop/basic/itemqaform.skin.php
Normal file
60
skin/shop/basic/itemqaform.skin.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 상품문의의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$iq_question_max_length = 10000;
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$iq_id = escape_trim($_REQUEST['iq_id']);
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품문의 쓰기 시작 { -->
|
||||
<div id="sit_qa_write" class="new_win">
|
||||
<h1 class="new_win_title">상품문의 쓰기</h1>
|
||||
|
||||
<form name="fitemqa" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqa_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_question">질문</label></th>
|
||||
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemqa_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('iq_question'); ?>
|
||||
|
||||
if (iq_question_editor_data.length > <?php echo $iq_question_max_length; ?>) {
|
||||
alert("내용은 <?php echo $iq_question_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+iq_question_editor_data.length+" 글자");
|
||||
CKEDITOR.instances.iq_question.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 상품문의 쓰기 끝 -->
|
||||
159
skin/shop/basic/itemuse.skin.php
Normal file
159
skin/shop/basic/itemuse.skin.php
Normal file
@ -0,0 +1,159 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$itemuse_list = "./itemuselist.php";
|
||||
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
|
||||
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
||||
|
||||
$sql_common = " from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 5;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품 사용후기 시작 { -->
|
||||
<section id="sit_use_list">
|
||||
<h3>등록된 사용후기</h3>
|
||||
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$is_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$is_star = get_star($row['is_score']);
|
||||
$is_name = get_text($row['is_name']);
|
||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
||||
$is_content = get_view_thumbnail($row['is_content'], 300);
|
||||
$is_time = substr($row['is_time'], 2, 8);
|
||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$hash = md5($row['is_id'].$row['is_time'].$row['is_ip']);
|
||||
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
|
||||
if ($i == 0) echo '<ol id="sit_use_ol">';
|
||||
?>
|
||||
|
||||
<li class="sit_use_li">
|
||||
<button type="button" class="sit_use_li_title"><b><?php echo $is_num; ?>.</b> <?php echo $is_subject; ?></button>
|
||||
<dl class="sit_use_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $is_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $is_time; ?></dd>
|
||||
<dt>선호도<dt>
|
||||
<dd class="sit_use_star"><img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $is_star; ?>.png" alt="별<?php echo $is_star; ?>개"></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_use_con_<?php echo $i; ?>" class="sit_use_con">
|
||||
<div class="sit_use_p">
|
||||
<?php echo $is_content; // 사용후기 내용 ?>
|
||||
</div>
|
||||
|
||||
<?php if ($is_admin || $row['mb_id'] == $member['mb_id']) { ?>
|
||||
<div class="sit_use_cmd">
|
||||
<a href="<?php echo $itemuse_form."&is_id={$row['is_id']}&w=u"; ?>" class="itemuse_form btn01" onclick="return false;">수정</a>
|
||||
<a href="<?php echo $itemuse_formupdate."&is_id={$row['is_id']}&w=d&hash={$hash}"; ?>" class="itemuse_delete btn01">삭제</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
if ($i >= 0) echo '</ol>';
|
||||
|
||||
if (!$i) echo '<p class="sit_empty">사용후기가 없습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page pg_start">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="pg_page pg_prev">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
if ($cur_page != $k)
|
||||
$str .= '<a href="'.$url.$k.$add.'" class="pg_page">'.$k.'</a><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
else
|
||||
$str .= '<span class="sound_only">열린</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="pg_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="pg_page pg_end">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($str)
|
||||
return "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
echo itemuse_page($config['cf_write_pages'], $page, $total_page, "./itemuse.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<div id="sit_use_wbtn">
|
||||
<a href="<?php echo $itemuse_form; ?>" class="btn02 itemuse_form">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemuse_list; ?>" class="btn01 itemuse_list">더보기</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemuse_form").click(function(){
|
||||
window.open(this.href, "itemuse_form", "width=800,height=700,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".itemuse_delete").click(function(){
|
||||
if (confirm("정말 삭제 하시겠습니까?\n\n삭제후에는 되돌릴수 없습니다.")) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(".sit_use_li_title").click(function(){
|
||||
var $con = $(this).siblings(".sit_use_con");
|
||||
if($con.is(":visible")) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$(".sit_use_con:visible").hide();
|
||||
$con.slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
$(".pg_page").click(function(){
|
||||
$("#itemuse").load($(this).attr("href"));
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품 사용후기 끝 -->
|
||||
93
skin/shop/basic/itemuseform.skin.php
Normal file
93
skin/shop/basic/itemuseform.skin.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 사용후기의 내용에 쓸수 있는 최대 글자수 (한글은 영문3자)
|
||||
$is_content_max_length = 10000;
|
||||
|
||||
$w = escape_trim($_REQUEST['w']);
|
||||
$it_id = escape_trim($_REQUEST['it_id']);
|
||||
$is_id = escape_trim($_REQUEST['is_id']);
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 사용후기 쓰기 시작 { -->
|
||||
<div id="sit_use_write" class="new_win">
|
||||
<h1 class="new_win_title">사용후기 쓰기</h1>
|
||||
|
||||
<form name="fitemuse" method="post" action="./itemuseformupdate.php" onsubmit="return fitemuse_submit(this);" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="is_id" value="<?php echo $is_id; ?>">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_2">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="is_subject">제목</label></th>
|
||||
<td><input type="text" name="is_subject" value="<?php echo get_text($use['is_subject']); ?>" id="is_subject" required class="frm_input" minlength="2" maxlength="250"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">평가</th>
|
||||
<td>
|
||||
<ul id="sit_use_write_star">
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="10" id="is_score10" <?php echo ($is_score==10)?'checked="checked"':''; ?>>
|
||||
<label for="is_score10">매우만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star5.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="8" id="is_score8" <?php echo ($is_score==8)?'checked="checked"':''; ?>>
|
||||
<label for="is_score8">만족</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star4.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="6" id="is_score6" <?php echo ($is_score==6)?'checked="checked"':''; ?>>
|
||||
<label for="is_score6">보통</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star3.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="4" id="is_score4" <?php echo ($is_score==4)?'checked="checked"':''; ?>>
|
||||
<label for="is_score4">불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star2.png">
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="is_score" value="2" id="is_score2" <?php echo ($is_score==2)?'checked="checked"':''; ?>>
|
||||
<label for="is_score2">매우불만</label>
|
||||
<img src="<?php echo G5_URL; ?>/shop/img/s_star1.png">
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
<?php echo get_editor_js('is_content'); ?>
|
||||
|
||||
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
|
||||
alert("내용은 <?php echo $is_content_max_length; ?> 글자 이내에서 작성해 주세요. (한글은 영문 3자)\n\n현재 : "+is_content_editor_data.length+" 글자");
|
||||
CKEDITOR.instances.is_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<!-- } 사용후기 쓰기 끝 -->
|
||||
31
skin/shop/basic/list.sort.skin.php
Normal file
31
skin/shop/basic/list.sort.skin.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$sct_sort_href = $_SERVER['PHP_SELF'].'?';
|
||||
if($ca_id)
|
||||
$sct_sort_href .= 'ca_id='.$ca_id;
|
||||
else if($ev_id)
|
||||
$sct_sort_href .= 'ev_id='.$ev_id;
|
||||
if($skin)
|
||||
$sct_sort_href .= '&skin='.$skin;
|
||||
$sct_sort_href .= '&sort=';
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품 정렬 선택 시작 { -->
|
||||
<section id="sct_sort">
|
||||
<h2>상품 정렬</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc" class="btn01">낮은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc" class="btn01">높은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_name&sortodr=asc" class="btn01">상품명순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type1&sortodr=desc" class="btn01">히트상품</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type2&sortodr=desc" class="btn01">추천상품</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type3&sortodr=desc" class="btn01">최신상품</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type4&sortodr=desc" class="btn01">인기상품</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type5&sortodr=desc" class="btn01">할인상품</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- } 상품 정렬 선택 끝 -->
|
||||
10
skin/shop/basic/list.sub.skin.php
Normal file
10
skin/shop/basic/list.sub.skin.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<ul id="sct_lst">
|
||||
<li><button type="button" class="sct_lst_view sct_lst_list">리스트뷰<span></span></button></li>
|
||||
<li><button type="button" class="sct_lst_view sct_lst_gallery">갤러리뷰<span></span></button></li>
|
||||
</ul>
|
||||
75
skin/shop/basic/list.sub2.skin.php
Normal file
75
skin/shop/basic/list.sub2.skin.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script>
|
||||
$.fn.listType = function(type)
|
||||
{
|
||||
var $el = this.find("li.sct_li");
|
||||
var count = $el.size();
|
||||
if(count < 1)
|
||||
return;
|
||||
|
||||
// class 있다면 저장
|
||||
var cl = this.attr("class");
|
||||
if(cl && !this.data("class")) {
|
||||
this.data("class", cl);
|
||||
}
|
||||
|
||||
// 각 element의 inline 스타일 저장
|
||||
$el.each(function() {
|
||||
var st = $(this).attr("style");
|
||||
if(st && !$(this).data("style")) {
|
||||
$(this).data("style", st);
|
||||
}
|
||||
});
|
||||
|
||||
// 버튼의 class on class 제거
|
||||
$("button.sct_lst_view span").removeClass("sct_lst_on").html("");
|
||||
|
||||
if(type == "gallery") {
|
||||
this.removeClass("sct sct_40");
|
||||
if(this.data("class")) {
|
||||
this.attr("class", this.data("class"));
|
||||
}
|
||||
|
||||
$el.each(function() {
|
||||
if($(this).data("style")) {
|
||||
$(this).attr("style", $(this).data("style"));
|
||||
}
|
||||
});
|
||||
|
||||
$("button.sct_lst_gallery span").addClass("sct_lst_on").html("<b class=\"sound_only\"> 선택됨</b>");
|
||||
} else {
|
||||
if(this.data("class")) {
|
||||
this.removeAttr("class");
|
||||
}
|
||||
this.addClass("sct sct_40");
|
||||
|
||||
$el.each(function() {
|
||||
if($(this).data("style")) {
|
||||
$(this).removeAttr("style");
|
||||
}
|
||||
});
|
||||
|
||||
$("button.sct_lst_list span").addClass("sct_lst_on").html("<b class=\"sound_only\"> 선택됨</b>");
|
||||
}
|
||||
|
||||
set_cookie("ck_itemlist<?php echo $ca_id; ?>_type", type, 1, g5_cookie_domain);
|
||||
}
|
||||
|
||||
// 리스트 타입 쿠키가 있을 경우 바로 적용
|
||||
if(itemlist_type = get_cookie("ck_itemlist<?php echo $ca_id; ?>_type")) {
|
||||
$("ul.sct").listType(itemlist_type);
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("button.sct_lst_view").on("click", function() {
|
||||
if($(this).hasClass("sct_lst_gallery")) {
|
||||
$("ul.sct").listType("gallery");
|
||||
} else {
|
||||
$("ul.sct").listType("list");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
35
skin/shop/basic/listcategory.skin.php
Normal file
35
skin/shop/basic/listcategory.skin.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$str = '';
|
||||
$exists = false;
|
||||
|
||||
$ca_id_len = strlen($ca_id);
|
||||
$len2 = $ca_id_len + 2;
|
||||
$len4 = $ca_id_len + 4;
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
|
||||
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
|
||||
|
||||
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';
|
||||
$exists = true;
|
||||
}
|
||||
|
||||
if ($exists) {
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품분류 1 시작 { -->
|
||||
<aside id="sct_ct_1" class="sct_ct">
|
||||
<h2>현재 상품 분류와 관련된 분류</h2>
|
||||
<ul>
|
||||
<?php echo $str; ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 상품분류 1 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
65
skin/shop/basic/listcategory2.skin.php
Normal file
65
skin/shop/basic/listcategory2.skin.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$str = '';
|
||||
$exists = false;
|
||||
|
||||
$ca_id_len = strlen($ca_id);
|
||||
$len2 = $ca_id_len + 2;
|
||||
$len4 = $ca_id_len + 4;
|
||||
|
||||
// 최하위 분류의 경우 상단에 동일한 레벨의 분류를 출력해주는 코드
|
||||
if (!$exists) {
|
||||
$str = '';
|
||||
|
||||
$tmp_ca_id = substr($ca_id, 0, strlen($ca_id)-2);
|
||||
$tmp_ca_id_len = strlen($tmp_ca_id);
|
||||
$len2 = $tmp_ca_id_len + 2;
|
||||
$len4 = $tmp_ca_id_len + 4;
|
||||
|
||||
// 차차기 분류의 건수를 얻음
|
||||
$sql = " select count(*) as cnt from {$g5['g5_shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len4 ";
|
||||
$row = sql_fetch($sql);
|
||||
$cnt = $row['cnt'];
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$tmp_ca_id%' and ca_use = '1' and length(ca_id) = $len2 order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
$sct_ct_here = '';
|
||||
if ($ca_id == $row['ca_id']) // 활성 분류 표시
|
||||
$sct_ct_here = 'sct_ct_here';
|
||||
|
||||
$str .= '<li>';
|
||||
if ($cnt) {
|
||||
$str .= '<a href="./list.php?ca_id='.$row['ca_id'].'" class="sct_ct_parent '.$sct_ct_here.'">'.$row['ca_name'].'</a>';
|
||||
$sql2 = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '{$row['ca_id']}%' and ca_use = '1' and length(ca_id) = $len4 order by ca_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
$k=0;
|
||||
while ($row2=sql_fetch_array($result2)) {
|
||||
$str .= '<a href="./list.php?ca_id='.$row2['ca_id'].'">'.$row2['ca_name'].'</a>';
|
||||
$k++;
|
||||
}
|
||||
} else {
|
||||
$str .= '<a href="./list.php?ca_id='.$row['ca_id'].'" class="sct_ct_parent '.$sct_ct_here.'">'.$row['ca_name'].'</a>';
|
||||
}
|
||||
$str .= '</li>';
|
||||
$exists = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($exists) {
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품분류 2 시작 { -->
|
||||
<aside id="sct_ct_2" class="sct_ct">
|
||||
<h2>현재 상품 분류와 관련된 분류</h2>
|
||||
<ul>
|
||||
<?php echo $str; ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 상품분류 2 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
34
skin/shop/basic/listcategory3.skin.php
Normal file
34
skin/shop/basic/listcategory3.skin.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$str = '';
|
||||
$exists = false;
|
||||
|
||||
$depth2_ca_id = substr($ca_id, 0, 2);
|
||||
|
||||
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '${depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result)) {
|
||||
if (preg_match("/^{$row['ca_id']}/", $ca_id))
|
||||
$sct_ct_here = 'sct_ct_here';
|
||||
else
|
||||
$sct_ct_here = '';
|
||||
$str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'" class="'.$sct_ct_here.'">'.$row['ca_name'].'</a></li>';
|
||||
$exists = true;
|
||||
}
|
||||
|
||||
if ($exists) {
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품분류 3 시작 { -->
|
||||
<aside id="sct_ct_3" class="sct_ct">
|
||||
<h2>현재 상품 분류와 관련된 분류</h2>
|
||||
<ul>
|
||||
<?php echo $str; ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<!-- } 상품분류 3 끝 -->
|
||||
|
||||
<?php } ?>
|
||||
37
skin/shop/basic/navigation.skin.php
Normal file
37
skin/shop/basic/navigation.skin.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($ca_id)
|
||||
{
|
||||
$navigation = $bar = "";
|
||||
$len = strlen($ca_id) / 2;
|
||||
for ($i=1; $i<=$len; $i++)
|
||||
{
|
||||
$code = substr($ca_id,0,$i*2);
|
||||
|
||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$code' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$sct_here = '';
|
||||
if ($ca_id == $code) // 현재 분류와 일치하면
|
||||
$sct_here = 'sct_here';
|
||||
|
||||
if ($i != $len) // 현재 위치의 마지막 단계가 아니라면
|
||||
$sct_bg = 'sct_bg';
|
||||
else $sct_bg = '';
|
||||
|
||||
$navigation .= $bar.'<a href="./list.php?ca_id='.$code.'" class="'.$sct_here.' '.$sct_bg.'">'.$row['ca_name'].'</a>';
|
||||
}
|
||||
}
|
||||
else
|
||||
$navigation = $g5['title'];
|
||||
|
||||
//if ($it_id) $navigation .= " > $it[it_name]";
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G5_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<div id="sct_location">
|
||||
<a href='<?php echo G5_SHOP_URL; ?>/' class="sct_bg">Home</a>
|
||||
<?php echo $navigation; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user