코드 정리
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP) return;
|
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP) return;
|
||||||
|
|
||||||
|
|||||||
@ -8,8 +8,6 @@ if (G4_IS_MOBILE) {
|
|||||||
|
|
||||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||||
|
|
||||||
//$it_id = $_REQUEST['it_id'];
|
|
||||||
|
|
||||||
$itemqa_list = "./itemqalist.php";
|
$itemqa_list = "./itemqalist.php";
|
||||||
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
$itemqa_form = "./itemqaform.php?it_id=".$it_id;
|
||||||
$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id;
|
$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id;
|
||||||
@ -162,7 +160,7 @@ echo itemqa_page($config['cf_write_pages'], $page, $total_page, "./itemqa.php?it
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$(".itemqa_form").click(function(){
|
$(".itemqa_form").click(function(){
|
||||||
window.open(this.href, "itemqa_form", "width=800,height=500,scrollbars=1");
|
window.open(this.href, "itemqa_form", "width=800,height=600,scrollbars=1");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ include_once(G4_PATH.'/head.sub.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="iq_question">질문</label></th>
|
<th scope="row"><label for="iq_question">질문</label></th>
|
||||||
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
|
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -8,8 +8,6 @@ if (G4_IS_MOBILE) {
|
|||||||
|
|
||||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||||
|
|
||||||
//$it_id = $_REQUEST['it_id'];
|
|
||||||
|
|
||||||
$itemuse_list = "./itemuselist.php";
|
$itemuse_list = "./itemuselist.php";
|
||||||
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
|
$itemuse_form = "./itemuseform.php?it_id=".$it_id;
|
||||||
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
||||||
@ -20,14 +18,6 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
|||||||
<h3>등록된 사용후기</h3>
|
<h3>등록된 사용후기</h3>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/*
|
|
||||||
여분필드 용도
|
|
||||||
wr_1 : 상품코드
|
|
||||||
wr_2 : 상품명
|
|
||||||
wr_3 : 평점 1~5
|
|
||||||
wr_4 : 관리자확인
|
|
||||||
*/
|
|
||||||
//$sql_common = " from `{$g4['write_prefix']}itemuse` where wr_is_comment = 0 and wr_1 = '{$it['it_id']}' and wr_4 = '1' ";
|
|
||||||
$sql_common = " from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
$sql_common = " from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
|
||||||
|
|
||||||
// 테이블의 전체 레코드수만 얻음
|
// 테이블의 전체 레코드수만 얻음
|
||||||
@ -49,7 +39,6 @@ $itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id;
|
|||||||
$is_star = get_star($row['is_score']);
|
$is_star = get_star($row['is_score']);
|
||||||
$is_name = get_text($row['is_name']);
|
$is_name = get_text($row['is_name']);
|
||||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
$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'], 300);
|
||||||
$is_time = substr($row['is_time'], 2, 8);
|
$is_time = substr($row['is_time'], 2, 8);
|
||||||
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
$is_href = './itemuselist.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||||
@ -144,7 +133,7 @@ echo itemuse_page($config['cf_write_pages'], $page, $total_page, "./itemuse.php?
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$(".itemuse_form").click(function(){
|
$(".itemuse_form").click(function(){
|
||||||
window.open(this.href, "itemuse_form", "width=800,height=500,scrollbars=1");
|
window.open(this.href, "itemuse_form", "width=800,height=700,scrollbars=1");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ include_once(G4_PATH.'/head.sub.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
<th scope="row"><label for="" style="width:200px;">내용</label></th>
|
||||||
<td><?php echo editor_html('is_content', $use['is_content']); ?></td>
|
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">평가</th>
|
<th scope="row">평가</th>
|
||||||
@ -106,21 +106,6 @@ include_once(G4_PATH.'/head.sub.php');
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function fitemuse_submit(f)
|
function fitemuse_submit(f)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if (document.getElementById('tx_is_content')) {
|
|
||||||
var len = ed_is_content.inputLength();
|
|
||||||
if (len == 0) {
|
|
||||||
alert('내용을 입력하십시오.');
|
|
||||||
ed_is_content.returnFalse();
|
|
||||||
return false;
|
|
||||||
} else if (len > 1000) {
|
|
||||||
alert('내용은 1000글자 까지만 입력해 주세요.');
|
|
||||||
ed_is_content.returnFalse();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
<?php echo get_editor_js('is_content'); ?>
|
<?php echo get_editor_js('is_content'); ?>
|
||||||
|
|
||||||
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
|
if (is_content_editor_data.length > <?php echo $is_content_max_length; ?>) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// 관련상품 스킨은 사품을 한줄에 하나만 표시하며 해당 상품에 관련상품이 등록되어 있는 경우 기본으로 7개까지 노출합니다.
|
// 관련상품 스킨은 사품을 한줄에 하나만 표시하며 해당 상품에 관련상품이 등록되어 있는 경우 기본으로 7개까지 노출합니다.
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
/*
|
/*
|
||||||
상품리스트가 일정 시간마다 위로 롤링되는 스킨
|
상품리스트가 일정 시간마다 위로 롤링되는 스킨
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
/*
|
/*
|
||||||
상품리스트가 일정 시간마다 좌로 롤링되는 스킨
|
상품리스트가 일정 시간마다 좌로 롤링되는 스킨
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
/*
|
/*
|
||||||
상품리스트가 일정 시간마다 바뀜
|
상품리스트가 일정 시간마다 바뀜
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
/*
|
/*
|
||||||
리스트의 상품이 순차적으로 위에서 내려옴
|
리스트의 상품이 순차적으로 위에서 내려옴
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||||
|
|||||||
Reference in New Issue
Block a user