상품문의 사용후기 스킨 수정
This commit is contained in:
@ -71,6 +71,7 @@ function pg_anchor($info) {
|
||||
<div id="info_top_layer">
|
||||
<h2>상품 정보</h2>
|
||||
<?php echo pg_anchor($info); ?>
|
||||
<button type="button" id="iteminfo_close" onclick="self.close();">닫기</button>
|
||||
</div>
|
||||
|
||||
<div id="info_content">
|
||||
|
||||
@ -2,6 +2,25 @@
|
||||
include_once('./_common.php');
|
||||
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;
|
||||
|
||||
$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);
|
||||
|
||||
$itemqa_skin = G5_MSHOP_SKIN_PATH.'/itemqa.skin.php';
|
||||
|
||||
if(!file_exists($itemqa_skin)) {
|
||||
|
||||
@ -2,6 +2,25 @@
|
||||
include_once('./_common.php');
|
||||
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;
|
||||
|
||||
$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);
|
||||
|
||||
$itemuse_skin = G5_MSHOP_SKIN_PATH.'/itemuse.skin.php';
|
||||
|
||||
if(!file_exists($itemuse_skin)) {
|
||||
|
||||
@ -305,18 +305,6 @@ if ($row['it_id']) {
|
||||
|
||||
<div id="sit_tot_price"></div>
|
||||
|
||||
<?php if ($it['it_use']) { ?>
|
||||
<ul id="sit_ov_btn">
|
||||
<?php if (!$it['it_tel_inq']) { ?>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy"></li>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart"></li>
|
||||
<?php } ?>
|
||||
|
||||
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
||||
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
// 상품보관
|
||||
function item_wish(f, it_id)
|
||||
@ -345,8 +333,6 @@ if ($row['it_id']) {
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<aside id="sit_siblings">
|
||||
<h2>다른 상품 보기</h2>
|
||||
<?php
|
||||
@ -391,9 +377,21 @@ $href = G5_SHOP_URL.'/iteminfo.php?it_id='.$it_id;
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if ($it['it_use']) { ?>
|
||||
<div id="form_btn_layer">
|
||||
ddd
|
||||
<ul id="sit_ov_btn">
|
||||
<?php if (!$it['it_tel_inq']) { ?>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="바로구매" id="sit_btn_buy"></li>
|
||||
<li><input type="submit" onclick="document.pressed=this.value;" value="장바구니" id="sit_btn_cart"></li>
|
||||
<?php } ?>
|
||||
|
||||
<li><a href="javascript:item_wish(document.fitem, '<?php echo $it['it_id']; ?>');" id="sit_btn_wish">위시리스트</a></li>
|
||||
<li><a href="javascript:popup_item_recommend('<?php echo $it['it_id']; ?>');" id="sit_btn_rec">추천하기</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
@ -1,26 +1,5 @@
|
||||
<?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_MSHOP_SKIN_URL; ?>/style.css">
|
||||
@ -30,6 +9,8 @@ $result = sql_query($sql);
|
||||
<h3>등록된 상품문의</h3>
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_num = $total_count - ($page - 1) * $rows - $i;
|
||||
@ -41,8 +22,6 @@ $result = sql_query($sql);
|
||||
|
||||
$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 = '';
|
||||
|
||||
@ -1,24 +1,5 @@
|
||||
<?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_MSHOP_SKIN_URL; ?>/style.css">
|
||||
@ -28,6 +9,8 @@ $result = sql_query($sql);
|
||||
<h3>등록된 사용후기</h3>
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$is_num = $total_count - ($page - 1) * $rows - $i;
|
||||
@ -35,14 +18,12 @@ $result = sql_query($sql);
|
||||
$is_name = get_text($row['is_name']);
|
||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
||||
//$is_content = ($row['wr_content']);
|
||||
$is_content = get_view_thumbnail($row['is_content'], 300);
|
||||
$is_content = get_view_thumbnail($row['is_content'], $thumbnail_width);
|
||||
$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">';
|
||||
?>
|
||||
|
||||
|
||||
@ -8,14 +8,6 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemqa_skin = G5_SHOP_SKIN_PATH.'/itemqa.skin.php';
|
||||
|
||||
if(!file_exists($itemqa_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemqa_skin);
|
||||
}
|
||||
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
@ -53,4 +45,31 @@ function itemqa_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
$itemqa_list = "./itemqalist.php";
|
||||
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
||||
$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id;
|
||||
|
||||
$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);
|
||||
|
||||
$itemqa_skin = G5_SHOP_SKIN_PATH.'/itemqa.skin.php';
|
||||
|
||||
if(!file_exists($itemqa_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemqa_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemqa_skin);
|
||||
}
|
||||
?>
|
||||
@ -8,14 +8,6 @@ if (G5_IS_MOBILE) {
|
||||
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$itemuse_skin = G5_SHOP_SKIN_PATH.'/itemuse.skin.php';
|
||||
|
||||
if(!file_exists($itemuse_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemuse_skin);
|
||||
}
|
||||
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
@ -53,4 +45,31 @@ function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
$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);
|
||||
|
||||
$itemuse_skin = G5_SHOP_SKIN_PATH.'/itemuse.skin.php';
|
||||
|
||||
if(!file_exists($itemuse_skin)) {
|
||||
echo str_replace(G5_PATH.'/', '', $itemuse_skin).' 스킨 파일이 존재하지 않습니다.';
|
||||
} else {
|
||||
include_once($itemuse_skin);
|
||||
}
|
||||
?>
|
||||
@ -1,26 +1,5 @@
|
||||
<?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">
|
||||
@ -30,6 +9,8 @@ $result = sql_query($sql);
|
||||
<h3>등록된 상품문의</h3>
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$iq_num = $total_count - ($page - 1) * $rows - $i;
|
||||
@ -41,8 +22,6 @@ $result = sql_query($sql);
|
||||
|
||||
$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 = '';
|
||||
|
||||
@ -1,24 +1,5 @@
|
||||
<?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">
|
||||
@ -28,20 +9,20 @@ $result = sql_query($sql);
|
||||
<h3>등록된 사용후기</h3>
|
||||
|
||||
<?php
|
||||
$thumbnail_width = 500;
|
||||
|
||||
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_content = get_view_thumbnail($row['is_content'], $thumbnail_width);
|
||||
$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">';
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user