shop 관련 경로 상수 수정

This commit is contained in:
chicpro
2013-01-28 11:32:41 +09:00
parent ce95f4fe2f
commit f611d74d62
20 changed files with 248 additions and 248 deletions

View File

@ -1,8 +1,8 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('G4_IS_SHOP') || !G4_IS_SHOP) return;
//if (!defined('G4_IS_SHOP') || !G4_IS_SHOP) return;
include_once("$g4[lib_path]/shop.lib.php");
include_once(G4_LIB_PATH.'/shop.lib.php');
//==============================================================================
// 쇼핑몰 설정 상수 및 변수

View File

@ -116,7 +116,7 @@ function get_image($img, $width=0, $height=0)
{
global $g4, $default;
$full_img = "$g4[path]/data/item/$img";
$full_img = G4_DATA_PATH."/item/$img";
if (file_exists($full_img) && $img)
{
@ -126,11 +126,11 @@ function get_image($img, $width=0, $height=0)
$width = $size[0];
$height = $size[1];
}
$str = "<img id='$img' src='$g4[url]/data/item/$img' width='$width' height='$height' border='0'>";
$str = "<img id='$img' src='".G4_DATA_URL."/item/$img' width='$width' height='$height' border='0'>";
}
else
{
$str = "<img id='$img' src='$g4[shop_img_url]/no_image.gif' border='0' ";
$str = "<img id='$img' src='".G4_SHOP_IMG_URL."/no_image.gif' border='0' ";
if ($width)
$str .= "width='$width' height='$height'";
else
@ -149,7 +149,7 @@ function get_it_image($img, $width=0, $height=0, $id="")
$str = get_image($img, $width, $height);
if ($id) {
$str = "<a href='$g4[shop_url]/item.php?it_id=$id'>$str</a>";
$str = "<a href='".G4_SHOP_URL."/item.php?it_id=$id'>$str</a>";
}
return $str;
}
@ -819,7 +819,7 @@ function display_banner($position, $num="")
if (!$position) $position = "왼쪽";
include "$g4[shop_path]/boxbanner{$num}.inc.php";
include G4_SHOP_PATH."/boxbanner{$num}.inc.php";
}
// 1.00.02

View File

@ -1,12 +1,12 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once(G4_PATH.'/head.sub.php');
include_once(G4_LIB_PATH.'/outlogin.lib.php');
include_once(G4_LIB_PATH.'/poll.lib.php');
include_once(G4_LIB_PATH.'/visit.lib.php');
include_once(G4_LIB_PATH.'/connect.lib.php');
include_once(G4_LIB_PATH.'/popular.lib.php');
//print_r2(get_defined_constants());
@ -34,28 +34,28 @@ $table_width = 900;
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=2 height=4 bgcolor=#DCDCDB></td></tr>
<tr>
<td rowspan=2 align=left width=200 height=60><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/data/common/logo_img' border=0></a></td>
<td rowspan=2 align=left width=200 height=60><a href='<?=G4_URL?>'><img src='<?=$g4[path]?>/data/common/logo_img' border=0></a></td>
<td align=right class=small>
<div style="position:relative">
<div style='position:absolute; top:70px; right:-100px;'>
<?include("$g4[shop_path]/boxtodayview.inc.php");?>
<?include(G4_SHOP_PATH.'/boxtodayview.inc.php');?>
</div>
</div>
<? if ($is_member) { ?>
<a href='<?=$g4[bbs_path]?>/logout.php'>로그아웃</a> |
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'>정보수정</a> |
<a href='<?=G4_BBS_URL?>/logout.php'>로그아웃</a> |
<a href='<?=G4_BBS_URL?>/member_confirm.php?url=register_form.php'>정보수정</a> |
<? } else { ?>
<a href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>'>로그인</a> |
<a href='<?=$g4[bbs_path]?>/register.php'>회원가입</a> |
<a href='<?=G4_BBS_URL?>/login.php?url=<?=$urlencode?>'>로그인</a> |
<a href='<?=G4_BBS_URL?>/register.php'>회원가입</a> |
<? } ?>
<a href='<?=$g4[shop_path]?>/cart.php'>장바구니<span class=small>(<?=get_cart_count(get_session('ss_uniqid'), $sw_direct, $member['mb_id']);?>)</span></a> |
<a href='<?=$g4[shop_path]?>/orderinquiry.php'>주문조회</a> |
<a href='<?=$g4[shop_path]?>/faq.php'>FAQ</a> |
<a href='<?=$g4[shop_path]?>/itemuselist.php'>사용후기</a> |
<a href='<?=$g4[shop_path]?>/mypage.php'>마이페이지</a>&nbsp;
<a href='<?=G4_SHOP_URL?>/cart.php'>장바구니<span class=small>(<?=get_cart_count(get_session('ss_uniqid'), $sw_direct, $member['mb_id']);?>)</span></a> |
<a href='<?=G4_SHOP_URL?>/orderinquiry.php'>주문조회</a> |
<a href='<?=G4_SHOP_URL?>/faq.php'>FAQ</a> |
<a href='<?=G4_SHOP_URL?>/itemuselist.php'>사용후기</a> |
<a href='<?=G4_SHOP_URL?>/mypage.php'>마이페이지</a>&nbsp;
</td>
</tr>
<tr>
@ -70,15 +70,15 @@ $table_width = 900;
<option value='게시판'>게시판
</select>
<input type=text name=search_str class='ed' value='<?=stripslashes(get_text($search_str))?>'>
<input type=image src='<?=$g4[path]?>/img/btn_search.gif' border=0 align=absmiddle>&nbsp;
<input type=image src='<?=G4_IMG_URL?>/btn_search.gif' border=0 align=absmiddle>&nbsp;
</form>
<script>
function search_submit(f) {
if (f.search_flag.value == '상품') {
f.action = '<?=$g4[shop_path]?>/search.php';
f.action = '<?=G4_SHOP_URL?>/search.php';
} else {
f.stx.value = f.search_str.value;
f.action = '<?=$g4[bbs_path]?>/search.php';
f.action = '<?=G4_BBS_URL?>/search.php';
}
}
@ -101,36 +101,36 @@ $table_width = 900;
<tr>
<td align=center valign=top width=185>
<?=outlogin("shop_outlogin"); // 외부 로그인 ?>
<?=outlogin("neo"); // 외부 로그인 ?>
<br>
<!-- 상품분류 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once("$g4[shop_path]/boxcategory.inc.php");?></td></tr>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcategory.inc.php');?></td></tr>
</table><br>
<!-- 이벤트 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once("$g4[shop_path]/boxevent.inc.php");?></td></tr>
<tr><td><?include_once(G4_SHOP_PATH.'/boxevent.inc.php');?></td></tr>
</table><br>
<!-- 커뮤니티 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once("$g4[shop_path]/boxcommunity.inc.php");?></td></tr>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcommunity.inc.php');?></td></tr>
</table><br>
<!-- 장바구니 -->
<table cellpadding=1 cellspacing=0 bgcolor=#D2D2D2>
<tr><td><?include_once("$g4[shop_path]/boxcart.inc.php");?></td></tr>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcart.inc.php');?></td></tr>
</table><br>
<!-- 보관함 -->
<table cellpadding=1 cellspacing=0 bgcolor=#D2D2D2>
<tr><td><?include_once("$g4[shop_path]/boxwish.inc.php");?></td></tr>
<tr><td><?include_once(G4_SHOP_PATH.'/boxwish.inc.php');?></td></tr>
</table><br>
<!-- 왼쪽 배너 -->

View File

@ -14,16 +14,16 @@ $admin = get_admin("super");
<!-- 하단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
<td width=180 bgcolor=#EBEBEB><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/data/common/logo_img' border=0 style="filter:gray();"></a></td>
<td><img src='<?=$g4[shop_img_path]?>/tail_img01.gif'></td>
<td width=180 bgcolor=#EBEBEB><a href='<?=$g4[path]?>/'><img src='<?=G4_DATA_URL?>/common/logo_img' border=0 style="filter:gray();"></a></td>
<td><img src='<?=G4_SHOP_IMG_URL?>/tail_img01.gif'></td>
<td width=10></td>
<td><img src='<?=$g4[shop_img_path]?>/tail_img02.gif'></td>
<td><img src='<?=G4_SHOP_IMG_URL?>/tail_img02.gif'></td>
<td width=770 bgcolor=#EBEBEB style='padding-left:10px;'>
<table width=98% cellpadding=0 cellspacing=0 border=0>
<tr><td height=30>
<a href="<?=$g4[shop_path]?>/content.php?co_id=company">회사소개</a> |
<a href="<?=$g4[shop_path]?>/content.php?co_id=provision">서비스이용약관</a> |
<a href="<?=$g4[shop_path]?>/content.php?co_id=privacy">개인정보 취급방침</a>
<a href="<?=G4_SHOP_URL?>/content.php?co_id=company">회사소개</a> |
<a href="<?=G4_SHOP_URL?>/content.php?co_id=provision">서비스이용약관</a> |
<a href="<?=G4_SHOP_URL?>/content.php?co_id=privacy">개인정보 취급방침</a>
</td></tr>
<tr><td height=1 bgcolor=#CBCBCB></td></tr>
<tr><td height=60 style='line-height:150%'>
@ -58,5 +58,5 @@ $file = $_SERVER[PHP_SELF];
<?
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/shop.head.php');
?>

View File

@ -1,4 +1,4 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/tail.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/shop.tail.php');
?>

View File

@ -1,14 +1,14 @@
<?
// 배너 출력
$sql = " select * from $g4[yc4_banner_table]
where '$g4[time_ymdhis]' between bn_begin_time and bn_end_time
$sql = " select * from $g4[yc4_banner_table]
where '$g4[time_ymdhis]' between bn_begin_time and bn_end_time
and bn_position = '$position'
order by bn_order, bn_id desc ";
$result = sql_query($sql);
?>
<table width=100% cellpadding=0 cellspacing=0>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
//print_r2($row);
// 테두리 있는지
@ -16,15 +16,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
// 새창 띄우기인지
$bn_new_win = ($row[bn_new_win]) ? "target=".$row[bn_new_win] : "";
$bimg = "$g4[path]/data/banner/$row[bn_id]";
if (file_exists($bimg))
$bimg = G4_DATA_PATH."/banner/$row[bn_id]";
if (file_exists($bimg))
{
$size = getimagesize($bimg);
echo "<tr><td>";
if ($row[bn_url][0] == "#")
echo "<a href='$row[bn_url]'>";
else if ($row[bn_url] && $row[bn_url] != "http://") {
echo "<a href='$g4[shop_path]/bannerhit.php?bn_id={$row[bn_id]}&url=".urlencode($row[bn_url])."' $bn_new_win>";
echo "<a href='".G4_SHOP_URL."/bannerhit.php?bn_id={$row[bn_id]}&url=".urlencode($row[bn_url])."' $bn_new_win>";
}
echo "<img src='$bimg' border='{$bn_border}' alt='{$row[bn_alt]}' width='$size[0]' height='$size[1]'></a>";
echo "</td></tr>\n";

View File

@ -3,7 +3,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
<tr><td><a href='<?=$g4['shop_path']?>/cart.php'><img src='<?=$g4['shop_img_path']?>/bar_cart.gif' border=0></a></td></tr>
<tr><td><a href='<?=G4_SHOP_URL?>/cart.php'><img src='<?=G4_SHOP_IMG_URL?>/bar_cart.gif' border=0></a></td></tr>
<?
if($is_member)
$hsql_where = " ( a.uq_id = '".get_session('ss_uniqid')."' or a.mb_id = '{$member['mb_id']}' ) ";
@ -29,10 +29,10 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
$it_name = get_text($row['it_name']);
// 이미지로 할 경우
//$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]);
echo "<a href=\"{$g4['shop_path']}/cart.php\">$it_name</a></nobr></td></tr>\n";
echo "<a href=\"".G4_SHOP_URL."/cart.php\">$it_name</a></nobr></td></tr>\n";
}
if ($i==0)
echo "<tr><td><img src='{$g4['shop_img_path']}/nocart.gif'></td></tr>\n";
echo "<tr><td><img src='".G4_SHOP_IMG_URL."/nocart.gif'></td></tr>\n";
?>
</table>

View File

@ -9,7 +9,7 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
?>
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0>
<tr><td align=center valign=top height=50><img src='<?=$g4[shop_img_path]?>/bar_category.gif'></td></tr>
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_IMG_URL?>/bar_category.gif'></td></tr>
<?
// 1단계 분류 판매가능한것만
$hsql = " select ca_id, ca_name from $g4[yc4_category_table]
@ -33,10 +33,10 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
$hnum2 = @mysql_num_rows($result2);
for ($j=0; $row2=sql_fetch_array($result2); $j++)
{
$menubody .= "<tr height='22'><td>&nbsp;&nbsp;· <a href='$g4[shop_path]/list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a></td></tr>";
$menubody .= "<tr height='22'><td>&nbsp;&nbsp;· <a href='".G4_SHOP_URL."/list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a></td></tr>";
// 맨밑줄은 출력하지 않음
if ($j < $hnum2)
$menubody .= "<tr><td align=center><img src='$g4[shop_img_path]/dot_line.gif'></td></tr>";
$menubody .= "<tr><td align=center><img src='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>";
}
if ($menubody)
@ -45,7 +45,7 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
$onmouseout = " layer_view('lmenu{$i}', 'lmenu_layer{$i}', 'hide'); ";
}
$category_link = "<a href='$g4[shop_path]/list.php?ca_id=$row[ca_id]'>";
$category_link = "<a href='".G4_SHOP_URL."/list.php?ca_id=$row[ca_id]'>";
echo "<tr id='lmenu{$i}' onmouseover=\"$onmouseover\" onmouseout=\"$onmouseout\">";
echo "<td height='22'>&nbsp;&nbsp;· $category_link$row[ca_name]</a>\n";
@ -62,7 +62,7 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
echo "</td></tr>\n";
if ($i<$hnum-1) // 맨밑줄은 출력하지 않음
echo "<tr><td align=center><img src='$g4[shop_img_path]/dot_line.gif'></td></tr>\n";
echo "<tr><td align=center><img src='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>\n";
}
if ($i==0)

View File

@ -1,18 +1,18 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0>
<tr><td align=center valign=top height=50><img src='<?=$g4[shop_img_path]?>/bar_community.gif'></td></tr>
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_IMG_URL?>/bar_community.gif'></td></tr>
<?
$hsql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$hresult = sql_query($hsql);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
if ($i > 0)
echo "<tr><td align=center><img src='$g4[shop_img_path]/dot_line.gif'></td></tr>\n";
echo "<tr><td align=center><img src='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>\n";
echo "<tr><td height=22>&nbsp;&nbsp;· <a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]'>$row[bo_subject]</a></td></tr>\n";
echo "<tr><td height=22>&nbsp;&nbsp;· <a href='".G4_BBS_URL."/board.php?bo_table=$row[bo_table]'>$row[bo_subject]</a></td></tr>\n";
}
if ($i==0)

View File

@ -1,21 +1,21 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0>
<tr><td align=center valign=top height=50><img src='<?=$g4[shop_img_path]?>/bar_event.gif'></td></tr>
<tr><td align=center valign=top height=50><img src='<?=G4_SHOP_IMG_URL?>/bar_event.gif'></td></tr>
<?
$hsql = " select ev_id, ev_subject from $g4[yc4_event_table] where ev_use = '1' order by ev_id desc ";
$hresult = sql_query($hsql);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
if ($i > 0)
echo "<tr><td align=center><img src='$g4[shop_img_path]/dot_line.gif'></td></tr>\n";
echo "<tr><td align=center><img src='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>\n";
$href = "$g4[shop_path]/event.php?ev_id=$row[ev_id]";
$href = G4_SHOP_URL."/event.php?ev_id=$row[ev_id]";
// 이벤트 메뉴이미지가 있다면
$event_img = "$g4[path]/data/event/$row[ev_id]_m";
$event_img = G4_DATA_PATH."/event/$row[ev_id]_m";
if (file_exists($event_img)) {
echo "<tr><td><a href='$href'><img src='$event_img' border=0 align=absmiddle></a></td></tr>";
} else {

View File

@ -7,20 +7,20 @@ $tv_div[img_height] = 70;
$tv_div[img_length] = 4; // 보여지는 최대 이미지수
?>
<div id='divTodayHidden' style="position:relative; top:<?=$tv_div[top]?>;display:none;"><a href='javascript:todayview_visible();'><img src='<?=$g4[shop_img_path]?>/todayview.gif' border=0></a></div>
<div id='divTodayHidden' style="position:relative; top:<?=$tv_div[top]?>;display:none;"><a href='javascript:todayview_visible();'><img src='<?=G4_SHOP_IMG_URL?>/todayview.gif' border=0></a></div>
<div id='divToday' style="position:relative; top:0;">
<table cellpadding=0 cellspacing=0 border="0" bgcolor="#FFFFFF">
<tr><td background='<?=$g4[shop_img_path]?>/todayview01.gif' height=31 align=right><span id='todayviewcount'></span>&nbsp;&nbsp;</td></tr>
<tr><td background='<?=G4_SHOP_IMG_URL?>/todayview01.gif' height=31 align=right><span id='todayviewcount'></span>&nbsp;&nbsp;</td></tr>
<?
// 오늘 본 상품이 있다면
if ($tv_idx)
{
// 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 위로 화살표를 보임
if ($tv_idx > $tv_div[img_length])
echo "<tr><td><img src='$g4[shop_img_path]/todayview02.gif' border='0' onclick='javascript:todayview_up();' style='cursor:pointer;'></td></tr>";
echo "<tr><td><img src='".G4_SHOP_IMG_URL."/todayview02.gif' border='0' onclick='javascript:todayview_up();' style='cursor:pointer;'></td></tr>";
// 오늘 본 상품 이미지 출력
echo "<tr><td background='$g4[shop_img_path]/todayview03.gif'><table width=100% cellpadding=2>";
echo "<tr><td background='".G4_SHOP_IMG_URL."/todayview03.gif'><table width=100% cellpadding=2>";
for ($i=1; $i<=$tv_div[img_length]; $i++)
{
echo "<tr><td align=center>";
@ -31,14 +31,14 @@ if ($tv_idx)
// 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 아래로 화살표를 보임
if ($tv_idx > $tv_div[img_length])
echo "<tr><td><img src='$g4[shop_img_path]/todayview05.gif' border='0' onclick='javascript:todayview_dn();' style='cursor:pointer;'></td></tr>";
echo "<tr><td><img src='".G4_SHOP_IMG_URL."/todayview05.gif' border='0' onclick='javascript:todayview_dn();' style='cursor:pointer;'></td></tr>";
}
else
{
echo "<tr><td><img src='$g4[shop_img_path]/todayview04.gif'></td></tr>";
echo "<tr><td><img src='".G4_SHOP_IMG_URL."/todayview04.gif'></td></tr>";
}
?>
<tr><td><a href='javascript:todayview_hidden();'><img src='<?=$g4[shop_img_path]?>/todayview06.gif' border=0></a></td></tr>
<tr><td><a href='javascript:todayview_hidden();'><img src='<?=G4_SHOP_IMG_URL?>/todayview06.gif' border=0></a></td></tr>
</table>
</div>
@ -83,7 +83,7 @@ function todayview_hidden()
function todayview_move(current)
{
k = 0;
for (i=goods_current; i>0 ; i--)
for (i=goods_current; i>0 ; i--)
{
k++;
if (k > goods_length)
@ -110,7 +110,7 @@ function todayview_dn()
<?
$k=0;
for ($i=$tv_idx; $i>0; $i--)
for ($i=$tv_idx; $i>0; $i--)
{
$k++;
if ($k > $tv_div[img_length])
@ -128,14 +128,14 @@ if ($tv_idx)
</script>
<script language=javascript>
function CheckUIElements()
function CheckUIElements()
{
var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
yMenuFrom = parseInt (document.getElementById('divToday').style.top, 10);
if ( g4_is_gecko )
if ( g4_is_gecko )
yMenuTo = top.pageYOffset + <?=$tv_div[top]?>;
else if ( g4_is_ie )
else if ( g4_is_ie )
yMenuTo = document.body.scrollTop + parseInt('<?=$tv_div[top]?>');
timeoutNextCheck = 500;
@ -163,7 +163,7 @@ function CheckUIElements()
function OnLoad() {
var y;
if ( top.frames.length )
if ( top.frames.length )
document.getElementById('divToday').style.display = '';
CheckUIElements();

View File

@ -1,9 +1,9 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
<tr><td><a href='<?=$g4[shop_path]?>/wishlist.php'><img src='<?=$g4[shop_img_path]?>/bar_wishlist.gif' border=0></a></td></tr>
<tr><td><a href='<?=G4_SHOP_URL?>/wishlist.php'><img src='<?=G4_SHOP_IMG_URL?>/bar_wishlist.gif' border=0></a></td></tr>
<?
$hsql = " select a.it_id, b.it_name from $g4[yc4_wish_table] a, $g4[yc4_item_table] b
where a.mb_id = '$member[mb_id]'
@ -16,10 +16,10 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++)
$it_name = get_text($row[it_name]);
// 이미지로 할 경우
//$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]);
echo "<a href=\"$g4[shop_path]/wishlist.php\">$it_name</a></nobr></td></tr>\n";
echo "<a href=\"".G4_SHOP_URL."/wishlist.php\">$it_name</a></nobr></td></tr>\n";
}
if ($i==0)
echo "<tr><td><img src='$g4[shop_img_path]/nowishlist.gif'></td></tr>\n";
echo "<tr><td><img src='".G4_SHOP_IMG_URL."/nowishlist.gif'></td></tr>\n";
?>
</table>

View File

@ -68,9 +68,9 @@ else
// 분류 위치
// HOME > 1단계 > 2단계 ... > 6단계 분류
$ca_id = $it['ca_id'];
include $g4['shop_path'].'/navigation1.inc.php';
include G4_SHOP_PATH.'/navigation1.inc.php';
$himg = $g4['path'].'/data/item/'.$it_id.'_h';
$himg = G4_DATA_PATH.'/item/'.$it_id.'_h';
if (file_exists($himg))
echo '<img src="'.$himg.'" border="0"><br>';
@ -78,10 +78,10 @@ if (file_exists($himg))
echo stripslashes($it['it_head_html']);
if ($is_admin)
echo "<p align=center><a href=\"{$g4['shop_admin_path']}/itemform.php?w=u&it_id=$it_id\"><img src=\"{$g4['shop_img_path']}/btn_admin_modify.gif\" border=0></a></p>";
echo "<p align=center><a href=\"".G4_SHOP_ADMIN_URL."/itemform.php?w=u&it_id=$it_id\"><img src=\"".G4_SHOP_IMG_URL."/btn_admin_modify.gif\" border=0></a></p>";
// 이 분류에 속한 하위분류 출력
include $g4['shop_path'].'/listcategory.inc.php';
include G4_SHOP_PATH.'/listcategory.inc.php';
// 이전 상품보기
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
@ -140,8 +140,8 @@ if($it['it_supplement_use']) {
}
?>
<script language="JavaScript" src="<?=$g4['path']?>/js/shop.js"></script>
<script language="JavaScript" src="<?=$g4['path']?>/js/md5.js"></script>
<script language="JavaScript" src="<?=G4_JS_URL?>/shop.js"></script>
<script language="JavaScript" src="<?=G4_JS_URL?>/md5.js"></script>
<style type="text/css">
<!--
@ -164,7 +164,7 @@ ul { margin: 0; padding: 0; list-style: none; }
<?
if ($g4['https_url'])
$action_url = $g4['https_url'].'/'.$g4['shop'].'/cartupdate.php';
$action_url = G4_HTTPS_URL.'/'.$g4['shop'].'/cartupdate.php';
else
$action_url = './cartupdate.php';
?>
@ -192,13 +192,13 @@ else
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}"))
{
echo get_large_image("{$it_id}_l{$i}", $it['it_id'], false);
if ($i==1 && file_exists("$g4[path]/data/item/{$it_id}_m"))
echo "<img id='middle{$i}' src='{$g4['path']}/data/item/{$it_id}_m' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
if ($i==1 && file_exists(G4_DATA_PATH."/item/{$it_id}_m"))
echo "<img id='middle{$i}' src='".G4_DATA_URL."/item/{$it_id}_m' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
else
echo "<img id='middle{$i}' src='{$g4['path']}/data/item/{$it_id}_l{$i}' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
echo "<img id='middle{$i}' src='".G4_DATA_URL."/item/{$it_id}_l{$i}' border=0 width=40 height=40 style='border:1px solid #E4E4E4;' ";
echo " onmouseover=\"document.getElementById('$middle_image').src=document.getElementById('middle{$i}').src;\">";
echo "</a> &nbsp;";
}
@ -207,9 +207,9 @@ else
</td>
</tr>
<tr><td colspan=3 height=7></td></tr>
<tr><td height=20><?=$prev_href?><img src='<?=$g4['shop_img_path']?>/prev.gif' border=0 title='<?=$prev_title?>'></a></td>
<tr><td height=20><?=$prev_href?><img src='<?=G4_SHOP_IMG_URL?>/prev.gif' border=0 title='<?=$prev_title?>'></a></td>
<td align=center><?=get_large_image($it['it_id']."_l1", $it['it_id'])?></td>
<td align=right><?=$next_href?><img src='<?=$g4[shop_img_path]?>/next.gif' border=0 title='<?=$next_title?>'></a></td></tr>
<td align=right><?=$next_href?><img src='<?=G4_SHOP_IMG_URL?>/next.gif' border=0 title='<?=$next_title?>'></a></td></tr>
</table>
</td>
<!-- 상품중간이미지 END -->
@ -217,19 +217,19 @@ else
<td width=460 valign=top align=center>
<table width=430><tr><td colspan=2 valign=top><span style='font-size:14px; font-family:돋움;'><strong><?=it_name_icon($it, stripslashes($it['it_name']), 0)?></strong></span></td></tr></table>
<table width=430 cellpadding=0 cellspacing=0 background='<?=$g4['shop_img_path']?>/bg_item.gif'>
<table width=430 cellpadding=0 cellspacing=0 background='<?=G4_SHOP_IMG_URL?>/bg_item.gif'>
<colgroup width=110></colgroup>
<colgroup width=20></colgroup>
<colgroup width=300></colgroup>
<tr><td colspan=3><img src='<?=$g4['shop_img_path']?>/itembox_01.gif' width=430></td></tr>
<tr><td colspan=3><img src='<?=G4_SHOP_IMG_URL?>/itembox_01.gif' width=430></td></tr>
<? if ($score = get_star_image($it['it_id'])) { ?>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp; · 고객선호도</td>
<td align=center>:</td>
<td><img src='<?="{$g4['shop_img_path']}/star{$score}.gif"?>' border=0></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<td><img src='<?=G4_SHOP_IMG_URL."/star{$score}.gif"?>' border=0></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
@ -238,7 +238,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 제조사</td>
<td align=center>:</td>
<td><?=$it['it_maker']?></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
<? if ($it['it_brand']) { ?>
@ -246,7 +246,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 브랜드</td>
<td align=center>:</td>
<td><?=$it['it_brand']?></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
<? if ($it['it_model']) { ?>
@ -254,7 +254,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 모델명</td>
<td align=center>:</td>
<td><?=$it['it_model']?></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
<? if ($it['it_origin']) { ?>
@ -262,7 +262,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 원산지</td>
<td align=center>:</td>
<td><?=$it['it_origin']?></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
<? if ($default['de_compound_tax_use']) { ?>
@ -270,7 +270,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 상품구분</td>
<td align=center>:</td>
<td><? echo $it['it_notax'] ? "면세상품" : "과세상품"; ?></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
<? if (!$it['it_gallery']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
@ -281,7 +281,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 판매가격</td>
<td align=center>:</td>
<td><FONT COLOR="#FF5D00">전화문의</FONT></td></tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } else { ?>
@ -291,7 +291,7 @@ else
<td align=center>:</td>
<td><input type=text name=disp_cust_amount size=12 style='text-align:right; border:none; border-width:0px; font-weight:bold; width:80px; color:#777777; text-decoration:line-through;' readonly value='<?=number_format($it['it_cust_amount'])?>'> 원</td>
</tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<? } ?>
@ -302,7 +302,7 @@ else
<input type=hidden name=it_amount value='<?php echo get_amount($it); ?>'>
</td>
</tr>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<?
/* 재고를 표시하는 경우 주석을 풀어주세요.
@ -339,7 +339,7 @@ else
}
}
?>
<tr><td colspan=3 height=1 background='<?=$g4['shop_img_path']?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_IMG_URL?>/dot_line.gif'></td></tr>
<tr height="25">
<td>&nbsp;&nbsp;&nbsp; · 배 송 비</td>
<td align=center>:</td>
@ -363,7 +363,7 @@ else
$str = conv_item_options(trim($it["it_opt{$i}_subject"]), trim($it["it_opt{$i}"]), $i, $disabled);
if($str) {
echo '<tr><td colspan="3" height="1" background="'.$g4['shop_img_path'].'/dot_line.gif"></td></tr>'."\n";
echo '<tr><td colspan="3" height="1" background="'.G4_SHOP_IMG_URL.'/dot_line.gif"></td></tr>'."\n";
echo '<tr height="25">'."\n";
echo '<td>&nbsp;&nbsp;&nbsp; · <span class="opt_subject">'.$it["it_opt{$i}_subject"].'</span></td>';
echo '<td align="center">:</td>';
@ -384,7 +384,7 @@ else
$opt = get_supplement_option($it_id, $sp_id, $index);
if($opt) {
echo '<tr><td colspan="3" height="1" background="'.$g4['shop_img_path'].'/dot_line.gif"></td></tr>'."\n";
echo '<tr><td colspan="3" height="1" background="'.G4_SHOP_IMG_URL.'/dot_line.gif"></td></tr>'."\n";
echo '<tr height="25">'."\n";
echo '<td>&nbsp;&nbsp;&nbsp; · <span class="spl_subject">'.$value.'</span></td>';
echo '<td align="center">:</td>';
@ -422,7 +422,7 @@ else
<div id="total-price">총 금액 : <span></span></div>
</td>
</tr>
<tr><td colspan=3><img src='<?=$g4['shop_img_path']?>/itembox_02.gif' width=430></td></tr>
<tr><td colspan=3><img src='<?=G4_SHOP_IMG_URL?>/itembox_02.gif' width=430></td></tr>
<? } ?>
@ -439,22 +439,22 @@ else
<? if (!$it['it_gallery']) { ?>
<input type="submit" name="wish_update" value="wish_update" />
<a href="javascript:popup_item_recommend('<?=$it['it_id']?>');"><img src='<?=$g4['shop_img_path']?>/btn_item_recommend.gif' border=0></a>
<a href="javascript:popup_item_recommend('<?=$it['it_id']?>');"><img src='<?=G4_SHOP_IMG_URL?>/btn_item_recommend.gif' border=0></a>
<? } ?>
</td></tr>
</table></td>
</tr>
<tr><td colspan=3 height=20></td></tr>
<tr><td colspan=3>
<table cellpadding=0 cellspacing=0 background='<?=$g4['shop_img_path']?>/bg_tab.gif'>
<table cellpadding=0 cellspacing=0 background='<?=G4_SHOP_IMG_URL?>/bg_tab.gif'>
<tr>
<td width=30></td>
<!-- 상품정보 --><td><a href="javascript:click_item('*');"><img src='<?=$g4['shop_img_path']?>/btn_tab01.gif' border=0></a></td>
<!-- 사용후기 --><td width=109 background='<?=$g4['shop_img_path']?>/btn_tab02.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_use');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_use_count>0</span>)</span></a></td>
<!-- 상품문의 --><td width=109 background='<?=$g4['shop_img_path']?>/btn_tab03.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_qa');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_qa_count>0</span>)</span></a></td>
<? if ($default['de_baesong_content']) { ?><!-- 배송정보 --><td><a href="javascript:click_item('item_baesong');"><img src='<?=$g4['shop_img_path']?>/btn_tab04.gif' border=0></a></td><?}?>
<? if ($default['de_change_content']) { ?><!-- 교환/반품 --><td><a href="javascript:click_item('item_change');"><img src='<?=$g4['shop_img_path']?>/btn_tab05.gif' border=0></a></td><?}?>
<!-- 관련상품 --><td width=109 background='<?=$g4['shop_img_path']?>/btn_tab06.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_relation');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_relation_count>0</span>)</span></a></td>
<!-- 상품정보 --><td><a href="javascript:click_item('*');"><img src='<?=G4_SHOP_IMG_URL?>/btn_tab01.gif' border=0></a></td>
<!-- 사용후기 --><td width=109 background='<?=G4_SHOP_IMG_URL?>/btn_tab02.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_use');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_use_count>0</span>)</span></a></td>
<!-- 상품문의 --><td width=109 background='<?=G4_SHOP_IMG_URL?>/btn_tab03.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_qa');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_qa_count>0</span>)</span></a></td>
<? if ($default['de_baesong_content']) { ?><!-- 배송정보 --><td><a href="javascript:click_item('item_baesong');"><img src='<?=G4_SHOP_IMG_URL?>/btn_tab04.gif' border=0></a></td><?}?>
<? if ($default['de_change_content']) { ?><!-- 교환/반품 --><td><a href="javascript:click_item('item_change');"><img src='<?=G4_SHOP_IMG_URL?>/btn_tab05.gif' border=0></a></td><?}?>
<!-- 관련상품 --><td width=109 background='<?=G4_SHOP_IMG_URL?>/btn_tab06.gif' border=0 style='padding-top:2px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:click_item('item_relation');" style="cursor:pointer;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=small style='color:#ff5d00;'>(<span id=item_relation_count>0</span>)</span></a></td>
</tr>
</table>
</td></tr>
@ -464,7 +464,7 @@ else
<!-- 상품설명 -->
<div id='item_explan' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#CACDE2><img src='<?=$g4['shop_img_path']?>/item_t01.gif'></td><td height=2 bgcolor=#CACDE2></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#CACDE2><img src='<?=G4_SHOP_IMG_URL?>/item_t01.gif'></td><td height=2 bgcolor=#CACDE2></td></tr>
<tr><td style='padding:15px'>
<table width=100% cellspacing=0 border=0>
<? if ($it['it_basic']) { ?>
@ -499,7 +499,7 @@ include_once('./itemqa.inc.php');
<!-- 배송정보 -->
<div id='item_baesong' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#D6E1A7><img src='<?=$g4['shop_img_path']?>/item_t04.gif'></td><td height=2 bgcolor=#D6E1A7></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#D6E1A7><img src='<?=G4_SHOP_IMG_URL?>/item_t04.gif'></td><td height=2 bgcolor=#D6E1A7></td></tr>
<tr><td style='padding:15px' height=130><?=conv_content($default['de_baesong_content'], 1);?></td></tr>
<tr><td colspan=2 height=1></td></tr>
</table>
@ -512,7 +512,7 @@ include_once('./itemqa.inc.php');
<!-- 교환/반품 -->
<div id='item_change' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#F6DBAB><img src='<?=$g4['shop_img_path']?>/item_t05.gif'></td><td height=2 bgcolor=#F6DBAB></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#F6DBAB><img src='<?=G4_SHOP_IMG_URL?>/item_t05.gif'></td><td height=2 bgcolor=#F6DBAB></td></tr>
<tr><td style='padding:15px' height=130><?=conv_content($default['de_change_content'], 1);?></td></tr>
<tr><td colspan=2 height=1></td></tr>
</table>
@ -524,7 +524,7 @@ include_once('./itemqa.inc.php');
<!-- 관련상품 -->
<div id='item_relation' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#E0E0E0><img src='<?=$g4['shop_img_path']?>/item_t06.gif'></td><td height=2 bgcolor=#E0E0E0></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#E0E0E0><img src='<?=G4_SHOP_IMG_URL?>/item_t06.gif'></td><td height=2 bgcolor=#E0E0E0></td></tr>
<tr><td style='padding:15px' height=130>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td align=center>
@ -542,7 +542,7 @@ include_once('./itemqa.inc.php');
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num)
include "{$g4['shop_path']}/maintype10.inc.php";
include G4_SHOP_PATH."/maintype10.inc.php";
else
echo "이 상품과 관련된 상품이 없습니다.";
?></td></tr></table></td>

View File

@ -1,27 +1,27 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 상품문의 -->
<a name="qa"></a>
<div id="item_qa" style="display:block;">
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#A7DFE1><img src='<?=$g4[shop_img_path]?>/item_t03.gif'></td><td height=2 bgcolor=#A7DFE1></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#A7DFE1><img src='<?=G4_SHOP_IMG_URL?>/item_t03.gif'></td><td height=2 bgcolor=#A7DFE1></td></tr>
<tr><td style='padding:15px'>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner01.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner01.gif'></td>
<td valign=top>
<table width=100% height=31 cellpadding=0 cellspacing=0 border=0>
<tr align=center>
<td width=40 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>번호</td>
<td background='<?=$g4[shop_img_path]?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>답변</td>
<td width=40 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>번호</td>
<td background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>답변</td>
</tr>
</table></td>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner02.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner02.gif'></td>
</tr>
<?
$sql_common = " from $g4[yc4_item_qa_table] where it_id = '$it[it_id]' ";
@ -40,10 +40,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
order by iq_id desc
limit $qa_from_record, $qa_page_rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0)
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif' height='1'></td></tr>";
echo "<tr><td colspan=3 background='".G4_SHOP_IMG_URL."/dot_line.gif' height='1'></td></tr>";
$num = $qa_total_count - ($qa_page - 1) * $qa_page_rows - $i;
@ -60,15 +60,15 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$icon_answer = "";
$iq_answer = "";
if ($row[iq_answer])
if ($row[iq_answer])
{
$iq_answer = "<br><hr width=100% size=0><img src='$g4[shop_img_path]/icon_answer.gif' border=0 align=left><font color=#466C8A> : ".conv_content($row[iq_answer],0) . "</font>";
$icon_answer = "<a href='javascript:;' onclick=\"qa_menu('iq$i')\"><img src='$g4[shop_img_path]/icon_answer.gif' border=0></a>";
$iq_answer = "<br><hr width=100% size=0><img src='".G4_SHOP_IMG_URL."/icon_answer.gif' border=0 align=left><font color=#466C8A> : ".conv_content($row[iq_answer],0) . "</font>";
$icon_answer = "<a href='javascript:;' onclick=\"qa_menu('iq$i')\"><img src='".G4_SHOP_IMG_URL."/icon_answer.gif' border=0></a>";
}
echo "
<tr>
<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>
<td valign=top>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr align=center>
@ -81,13 +81,13 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</tr>
</table>
<div id='iq$i' style='display:none;'>
<div id='iq$i' style='display:none;'>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td style='padding:10px;' class=lh>{$iq_question}</td>
</tr>";
if ($iq_answer)
if ($iq_answer)
echo "
<tr>
<td style='padding:10px;' class=lh>$iq_answer</td>
@ -117,17 +117,17 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<input type=hidden name=w value=''>
<input type=hidden name=iq_id value=''>
<input type=hidden name=it_id value='{$it[it_id]}'>
패스워드 : <input type=password class=ed name=iq_password required itemname='패스워드'>
<input type=image src='{$g4[shop_img_path]}/btn_confirm.gif' border=0 align=absmiddle></a>
패스워드 : <input type=password class=ed name=iq_password required itemname='패스워드'>
<input type=image src='".G4_SHOP_IMG_URL."/btn_confirm.gif' border=0 align=absmiddle></a>
</form>
</td>
</tr>";
echo "
echo "
</table>
</div></td>
</td>
<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>
</tr>
";
}
@ -137,11 +137,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
{
echo "
<tr>
<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>
<td height=100 align=center class=lh>
이 상품에 대한 질문이 아직 없습니다.<br>
궁금하신 사항은 이곳에 질문하여 주십시오.</td>
<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>
</tr>";
}
@ -149,25 +149,25 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$qa_pages = get_paging(10, $qa_page, $qa_total_page, "./item.php?it_id=$it_id&$qstr&qa_page=", "#qa");
if ($qa_pages)
{
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif'></td></tr>";
echo "<tr><td colspan=3 background='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>";
echo "<tr>";
echo "<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>";
echo "<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>";
echo "<td height=22 align=center>$qa_pages</td>";
echo "<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>";
echo "<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>";
echo "</tr>";
}
?>
<tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner03.gif'></td>
<td width=100% background='<?=$g4[shop_img_path]?>/box_bg04.gif'></td>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner04.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner03.gif'></td>
<td width=100% background='<?=G4_SHOP_IMG_URL?>/box_bg04.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner04.gif'></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=35>* 이 상품에 대한 궁금한 사항이 있으신 분은 질문해 주십시오.
<input type=image src='<? echo "$g4[shop_img_path]/btn_qa.gif"?>' onclick="itemqa_insert(itemqa);" align=absmiddle></td></tr>
<input type=image src='<? echo G4_SHOP_IMG_URL."/btn_qa.gif"?>' onclick="itemqa_insert(itemqa);" align=absmiddle></td></tr>
</table>
<!-- 상품문의 폼-->
@ -186,7 +186,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<td>&nbsp;<input type="text" name="iq_name" class=ed maxlength=20 minlength=2 required itemname="이름"></td></tr>
<tr bgcolor=#fafafa>
<td height=30 align=right>패스워드&nbsp;</td>
<td>&nbsp;<input type="password" name="iq_password" class=ed maxlength=20 minlength=3 required itemname="패스워드">
<td>&nbsp;<input type="password" name="iq_password" class=ed maxlength=20 minlength=3 required itemname="패스워드">
<span class=small>패스워드는 최소 3글자 이상 입력하십시오.</span></td></tr>
<? } ?>
@ -203,7 +203,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
&nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr>
<tr><td height=5 colspan=2></td></tr>
<tr><td height=2 bgcolor=#63bcc0 colspan=2></td></tr>
<tr><td colspan=2 align=right height=30><input type=image src='<?=$g4[shop_img_path]?>/btn_confirm.gif' border=0></td></tr>
<tr><td colspan=2 align=right height=30><input type=image src='<?=G4_SHOP_IMG_URL?>/btn_confirm.gif' border=0></td></tr>
</table>
</form>
<br><br>
@ -216,11 +216,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<script type="text/javascript">
function fitemqa_submit(f)
function fitemqa_submit(f)
{
if (!check_kcaptcha(f.iq_key)) {
return false;
}
if (!check_kcaptcha(f.iq_key)) {
return false;
}
f.action = "itemqaupdate.php";
return true;
@ -282,7 +282,7 @@ function itemqa_delete(f, idx)
if (confirm("삭제하시겠습니까?"))
f.submit();
}
else
else
{
id.style.display = 'none';
document.getElementById('itemqa_password'+idx).style.display = 'block';

View File

@ -1,28 +1,28 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumb.lib.php');
?>
<!-- 사용후기 -->
<a name="use"></a>
<div id='item_use' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td rowspan=2 width=31 valign=top bgcolor=#BDD3E5><img src='<?=$g4[shop_img_path]?>/item_t02.gif'></td><td height=2 bgcolor=#BDD3E5></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#BDD3E5><img src='<?=G4_SHOP_IMG_URL?>/item_t02.gif'></td><td height=2 bgcolor=#BDD3E5></td></tr>
<tr><td style='padding:15px;'>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner01.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner01.gif'></td>
<td valign=top>
<table width=100% height=31 cellpadding=0 cellspacing=0 border=0>
<tr align=center>
<td width=40 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>번호</td>
<td background='<?=$g4[shop_img_path]?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>평가점수</td>
<td width=40 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>번호</td>
<td background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>평가점수</td>
</tr>
</table></td>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner02.gif'></td>
</table></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner02.gif'></td>
</tr>
<?
$sql_common = " from $g4[yc4_item_ps_table] where it_id = '$it[it_id]' and is_confirm = '1' ";
@ -39,10 +39,10 @@ include_once("$g4[path]/lib/thumb.lib.php");
$sql = "select * $sql_common order by is_id desc limit $use_from_record, $use_page_rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0)
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif' height='1'></td></tr>";
echo "<tr><td colspan=3 background='".G4_SHOP_IMG_URL."/dot_line.gif' height='1'></td></tr>";
$num = $use_total_count - ($use_page - 1) * $use_page_rows - $i;
@ -54,14 +54,14 @@ include_once("$g4[path]/lib/thumb.lib.php");
$is_content = $row[is_content];
//$is_content = preg_replace_callback("#<img[^>]+>#iS", "g4_thumb", $is_content);
$thumb = new g4_thumb("$g4[path]/data/itemuse", 500);
$thumb = new g4_thumb(G4_DATA_PATH."/itemuse", 500);
$is_content = $thumb->run($is_content);
$is_time = substr($row[is_time], 2, 14);
echo "
<tr>
<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>
<td valign=top>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr align=center>
@ -70,11 +70,11 @@ include_once("$g4[path]/lib/thumb.lib.php");
<b><a href='javascript:;' onclick=\"use_menu('is$i')\"><b>$is_subject</b></a></b>
<td width=80>$is_name</td>
<td width=100>$is_time</td>
<td width=80><img src='$g4[shop_img_path]/star{$star}.gif' border=0></td>
<td width=80><img src='".G4_SHOP_IMG_URL."/star{$star}.gif' border=0></td>
</tr>
</table>
<div id='is$i' style='display:none;'>
<div id='is$i' style='display:none;'>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td style='padding:10px;' class=lh>{$is_content}</td>
@ -103,14 +103,14 @@ include_once("$g4[path]/lib/thumb.lib.php");
<input type=hidden name=w value=''>
<input type=hidden name=is_id value=''>
<input type=hidden name=it_id value='{$it[it_id]}'>
패스워드 : <input type=password class=ed name=is_password required itemname='패스워드'>
<input type=image src='{$g4[shop_img_path]}/btn_confirm.gif' border=0 align=absmiddle></a>
패스워드 : <input type=password class=ed name=is_password required itemname='패스워드'>
<input type=image src='".G4_SHOP_IMG_URL."/btn_confirm.gif' border=0 align=absmiddle></a>
</form>
</td>
</tr>
</table>
</div></td>
<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>
</tr>
";
}
@ -119,38 +119,38 @@ include_once("$g4[path]/lib/thumb.lib.php");
{
echo "
<tr>
<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>
<td height=100 align=center class=lh>
이 상품에 대한 사용후기가 아직 없습니다.<br>
사용후기를 작성해 주시면 다른 분들께 많은 도움이 됩니다.</td>
<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>
<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>
</tr>";
}
$use_pages = get_paging(10, $use_page, $use_total_page, "./item.php?it_id=$it_id&$qstr&use_page=", "#use");
if ($use_pages)
{
echo "<tr><td colspan=3 background='$g4[shop_img_path]/dot_line.gif'></td></tr>";
echo "<tr><td colspan=3 background='".G4_SHOP_IMG_URL."/dot_line.gif'></td></tr>";
echo "<tr>";
echo "<td width=11 background='$g4[shop_img_path]/box_bg02.gif'></td>";
echo "<td width=11 background='".G4_SHOP_IMG_URL."/box_bg02.gif'></td>";
echo "<td height=22 align=center>$use_pages</td>";
echo "<td width=11 background='$g4[shop_img_path]/box_bg03.gif'>&nbsp;</td></tr>";
echo "<td width=11 background='".G4_SHOP_IMG_URL."/box_bg03.gif'>&nbsp;</td></tr>";
echo "</tr>";
}
?>
<tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner03.gif'></td>
<td width=100% background='<?=$g4[shop_img_path]?>/box_bg04.gif'></td>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner04.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner03.gif'></td>
<td width=100% background='<?=G4_SHOP_IMG_URL?>/box_bg04.gif'></td>
<td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner04.gif'></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=35>* 이 상품을 사용해 보셨다면 사용후기를 써 주십시오.
<tr><td colspan=2 height=35>* 이 상품을 사용해 보셨다면 사용후기를 써 주십시오.
<!-- <input type=image src='<?="$g4[shop_img_path]/btn_story.gif"?>' onclick="itemuse_insert();" align=absmiddle></td></tr> -->
<input type=image src='<?="$g4[shop_img_path]/btn_story.gif"?>' onclick="itemusewin('it_id=<?=$it_id?>');" align=absmiddle></td></tr>
<input type=image src='<?=G4_SHOP_IMG_URL."/btn_story.gif"?>' onclick="itemusewin('it_id=<?=$it_id?>');" align=absmiddle></td></tr>
</table>
<script>
@ -176,7 +176,7 @@ function itemusewin(query_string)
<td>&nbsp;<input type="text" name="is_name" class=ed maxlength=20 minlength=2 required itemname="이름"></td></tr>
<tr bgcolor=#fafafa>
<td height=30 align=right>패스워드&nbsp;</td>
<td>&nbsp;<input type="password" name="is_password" class=ed maxlength=20 minlength=3 required itemname="패스워드">
<td>&nbsp;<input type="password" name="is_password" class=ed maxlength=20 minlength=3 required itemname="패스워드">
<span class=small>패스워드는 최소 3글자 이상 입력하십시오.</span></td></tr>
<? } ?>
@ -189,18 +189,18 @@ function itemusewin(query_string)
<tr bgcolor=#fafafa>
<td height=30 align=right>평가&nbsp;</td>
<td>
<input type=radio name=is_score value='10' checked><img src='<?=$g4[shop_img_path]?>/star5.gif' align=absmiddle>
<input type=radio name=is_score value='8'><img src='<?=$g4[shop_img_path]?>/star4.gif' align=absmiddle>
<input type=radio name=is_score value='6'><img src='<?=$g4[shop_img_path]?>/star3.gif' align=absmiddle>
<input type=radio name=is_score value='4'><img src='<?=$g4[shop_img_path]?>/star2.gif' align=absmiddle>
<input type=radio name=is_score value='2'><img src='<?=$g4[shop_img_path]?>/star1.gif' align=absmiddle></td></tr>
<input type=radio name=is_score value='10' checked><img src='<?=G4_SHOP_IMG_URL?>/star5.gif' align=absmiddle>
<input type=radio name=is_score value='8'><img src='<?=G4_SHOP_IMG_URL?>/star4.gif' align=absmiddle>
<input type=radio name=is_score value='6'><img src='<?=G4_SHOP_IMG_URL?>/star3.gif' align=absmiddle>
<input type=radio name=is_score value='4'><img src='<?=G4_SHOP_IMG_URL?>/star2.gif' align=absmiddle>
<input type=radio name=is_score value='2'><img src='<?=G4_SHOP_IMG_URL?>/star1.gif' align=absmiddle></td></tr>
<tr bgcolor=#fafafa>
<td width=100 align=right><img id='kcaptcha_image_use' /></td>
<td>
&nbsp;<input type='text' name='is_key' class='ed' required itemname='자동등록방지용 코드'>
&nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr>
<tr><td height=2 bgcolor=#6ea7d3 colspan=2></td></tr>
<tr><td colspan=2 align=right height=30><input type=image src='<?=$g4[shop_img_path]?>/btn_confirm.gif' border=0></a></td></tr>
<tr><td colspan=2 align=right height=30><input type=image src='<?=G4_SHOP_IMG_URL?>/btn_confirm.gif' border=0></a></td></tr>
</table>
</form>
<br><br>
@ -213,11 +213,11 @@ function itemusewin(query_string)
<script type="text/javascript">
function fitemuse_submit(f)
function fitemuse_submit(f)
{
if (!check_kcaptcha(f.is_key)) {
return false;
}
if (!check_kcaptcha(f.is_key)) {
return false;
}
f.action = "itemuseupdate.php"
return true;
@ -279,7 +279,7 @@ function itemuse_delete(f, idx)
if (confirm("삭제하시겠습니까?"))
f.submit();
}
else
else
{
id.style.display = 'none';
document.getElementById('itemuse_password'+idx).style.display = 'block';

View File

@ -6,12 +6,12 @@ $sql = " select *
where ca_id = '$ca_id'
and ca_use = '1' ";
$ca = sql_fetch($sql);
if (!$ca[ca_id])
if (!$ca[ca_id])
alert("등록된 분류가 없습니다.");
$g4[title] = $ca[ca_name] . " 상품리스트";
if ($ca[ca_include_head])
if ($ca[ca_include_head])
@include_once($ca[ca_include_head]);
else
include_once("./_head.php");
@ -20,9 +20,9 @@ else
//if ($skin) $ca[ca_skin] = $skin;
$nav_ca_id = $ca_id;
include "$g4[shop_path]/navigation1.inc.php";
include G4_SHOP_PATH.'/navigation1.inc.php';
$himg = "$g4[path]/data/category/{$ca_id}_h";
$himg = G4_DATA_PATH."/category/{$ca_id}_h";
if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>";
}
@ -31,9 +31,9 @@ if (file_exists($himg)) {
echo stripslashes($ca[ca_head_html]);
if ($is_admin)
echo "<p align=center><a href='$g4[shop_admin_path]/categoryform.php?w=u&ca_id=$ca_id'><img src='$g4[shop_img_path]/btn_admin_modify.gif' border=0></a></p>";
echo "<p align=center><a href='".G4_SHOP_ADMIN_URL."/categoryform.php?w=u&ca_id=$ca_id'><img src='".G4_SHOP_IMG_URL."/btn_admin_modify.gif' border=0></a></p>";
include "$g4[shop_path]/listcategory2.inc.php";
include G4_SHOP_PATH.'/listcategory2.inc.php';
?>
<table width=100% cellpadding=0 cellspacing=0>
@ -51,17 +51,17 @@ $sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
// 하위분류 포함
// 판매가능한 상품만
// 판매가능한 상품만
$sql_common = " from $g4[yc4_item_table]
where (ca_id like '{$ca_id}%'
where (ca_id like '{$ca_id}%'
or ca_id2 like '{$ca_id}%'
or ca_id3 like '{$ca_id}%')
and it_use = '1' ";
$error = "<img src='$g4[shop_img_path]/no_item.gif' border=0>";
$error = "<img src=\"".G4_SHOP_IMG_URL."/no_item.gif\" border=\"0\">";
// 리스트 유형별로 출력
$list_file = "$g4[shop_path]/$ca[ca_skin]";
$list_file = G4_SHOP_PATH.'/'.$ca[ca_skin];
if (file_exists($list_file)) {
//display_type(2, "maintype10.inc.php", 4, 2, 100, 100, $ca[ca_id]);
@ -71,16 +71,16 @@ if (file_exists($list_file)) {
$img_width = $ca[ca_img_width];
$img_height = $ca[ca_img_height];
include "$g4[shop_path]/list.sub.php";
include "$g4[shop_path]/list.sort.php";
include G4_SHOP_PATH.'/list.sub.php';
include G4_SHOP_PATH.'/list.sort.php';
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
$result = sql_query($sql);
include $list_file;
}
else
}
else
{
$i = 0;
@ -111,11 +111,11 @@ echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]
// 하단 HTML
echo stripslashes($ca[ca_tail_html]);
$timg = "$g4[path]/data/category/{$ca_id}_t";
$timg = G4_DATA_PATH."/category/{$ca_id}_t";
if (file_exists($timg))
echo "<br><img src='$timg' border=0>";
if ($ca[ca_include_tail])
if ($ca[ca_include_tail])
@include_once($ca[ca_include_tail]);
else
include_once("./_tail.php");

View File

@ -1,16 +1,16 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=2 cellspacing=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr><td colspan='$list_mod' background='".G4_SHOP_IMG_URL."/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
@ -20,12 +20,12 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";

View File

@ -9,20 +9,20 @@ $len4 = $ca_id_len + 4;
// 차차기 분류의 건수를 얻음
$sql = " select count(*) as cnt from $g4[yc4_category_table]
where ca_id like '$ca_id%'
and length(ca_id) = $len4
and length(ca_id) = $len4
and ca_use = '1' ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>";
if (!$cnt)
$str .= "<tr><td width=11 background='".G4_SHOP_IMG_URL."/ca_bg02.gif'></td><td>";
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
where ca_id like '$ca_id%'
and length(ca_id) = $len2
and length(ca_id) = $len2
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
$str .= "<tr><td width=11 background='".G4_SHOP_IMG_URL."/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td>";
while ($row=sql_fetch_array($result)) {
@ -32,7 +32,7 @@ while ($row=sql_fetch_array($result)) {
$str .= "<a href='./list.php?ca_id=$row[ca_id]'>$row[ca_name] ($row2[cnt])</a> &nbsp; ";
$exists = true;
}
$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
$str .= "</td></tr></table></td><td width=11 background='".G4_SHOP_IMG_URL."/ca_bg03.gif'></td>";
if ($exists) {
echo "
@ -42,15 +42,15 @@ if ($exists) {
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
<td width=11><img src='".G4_SHOP_IMG_URL."/ca_box01.gif'></td>
<td background='".G4_SHOP_IMG_URL."/ca_bg01.gif'></td>
<td width=11><img src='".G4_SHOP_IMG_URL."/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
<td width=11><img src='".G4_SHOP_IMG_URL."/ca_box03.gif'></td>
<td background='".G4_SHOP_IMG_URL."/ca_bg04.gif'></td>
<td width=11><img src='".G4_SHOP_IMG_URL."/ca_box04.gif'></td>
</tr>
</table><br>";
}

View File

@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<!-- 네비게이션 -->
<table width='100%' cellpadding=0 cellspacing=0 align=center>
<tr><td height=2></td>
<tr><td height=20 valign=top style='padding-left:2px;'><img src='<?=$g4[shop_img_path]?>/navi_icon.gif' align=absmiddle>
현재위치 : <a href='<?=$g4[path]?>/'>Home</a> > <?=$str?></td></tr>
<tr><td height=20 valign=top style='padding-left:2px;'><img src='<?=G4_SHOP_IMG_URL?>/navi_icon.gif' align=absmiddle>
현재위치 : <a href='<?=G4_URL?>/'>Home</a> > <?=$str?></td></tr>
<tr><td height=1 bgcolor=#EFEFEF></td></tr>
</table>