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('_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; global $g4, $default;
$full_img = "$g4[path]/data/item/$img"; $full_img = G4_DATA_PATH."/item/$img";
if (file_exists($full_img) && $img) if (file_exists($full_img) && $img)
{ {
@ -126,11 +126,11 @@ function get_image($img, $width=0, $height=0)
$width = $size[0]; $width = $size[0];
$height = $size[1]; $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 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) if ($width)
$str .= "width='$width' height='$height'"; $str .= "width='$width' height='$height'";
else else
@ -149,7 +149,7 @@ function get_it_image($img, $width=0, $height=0, $id="")
$str = get_image($img, $width, $height); $str = get_image($img, $width, $height);
if ($id) { 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; return $str;
} }
@ -819,7 +819,7 @@ function display_banner($position, $num="")
if (!$position) $position = "왼쪽"; if (!$position) $position = "왼쪽";
include "$g4[shop_path]/boxbanner{$num}.inc.php"; include G4_SHOP_PATH."/boxbanner{$num}.inc.php";
} }
// 1.00.02 // 1.00.02

View File

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

View File

@ -14,16 +14,16 @@ $admin = get_admin("super");
<!-- 하단 --> <!-- 하단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0> <table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr> <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 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_path]?>/tail_img01.gif'></td> <td><img src='<?=G4_SHOP_IMG_URL?>/tail_img01.gif'></td>
<td width=10></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;'> <td width=770 bgcolor=#EBEBEB style='padding-left:10px;'>
<table width=98% cellpadding=0 cellspacing=0 border=0> <table width=98% cellpadding=0 cellspacing=0 border=0>
<tr><td height=30> <tr><td height=30>
<a href="<?=$g4[shop_path]?>/content.php?co_id=company">회사소개</a> | <a href="<?=G4_SHOP_URL?>/content.php?co_id=company">회사소개</a> |
<a href="<?=$g4[shop_path]?>/content.php?co_id=provision">서비스이용약관</a> | <a href="<?=G4_SHOP_URL?>/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=privacy">개인정보 취급방침</a>
</td></tr> </td></tr>
<tr><td height=1 bgcolor=#CBCBCB></td></tr> <tr><td height=1 bgcolor=#CBCBCB></td></tr>
<tr><td height=60 style='line-height:150%'> <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; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php"); include_once(G4_PATH.'/shop.head.php');
?> ?>

View File

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

View File

@ -16,7 +16,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
// 새창 띄우기인지 // 새창 띄우기인지
$bn_new_win = ($row[bn_new_win]) ? "target=".$row[bn_new_win] : ""; $bn_new_win = ($row[bn_new_win]) ? "target=".$row[bn_new_win] : "";
$bimg = "$g4[path]/data/banner/$row[bn_id]"; $bimg = G4_DATA_PATH."/banner/$row[bn_id]";
if (file_exists($bimg)) if (file_exists($bimg))
{ {
$size = getimagesize($bimg); $size = getimagesize($bimg);
@ -24,7 +24,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
if ($row[bn_url][0] == "#") if ($row[bn_url][0] == "#")
echo "<a href='$row[bn_url]'>"; echo "<a href='$row[bn_url]'>";
else if ($row[bn_url] && $row[bn_url] != "http://") { 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 "<img src='$bimg' border='{$bn_border}' alt='{$row[bn_alt]}' width='$size[0]' height='$size[1]'></a>";
echo "</td></tr>\n"; echo "</td></tr>\n";

View File

@ -3,7 +3,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?> ?>
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF> <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) if($is_member)
$hsql_where = " ( a.uq_id = '".get_session('ss_uniqid')."' or a.mb_id = '{$member['mb_id']}' ) "; $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_text($row['it_name']);
// 이미지로 할 경우 // 이미지로 할 경우
//$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]); //$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) 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> </table>

View File

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

View File

@ -3,16 +3,16 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?> ?>
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0> <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 "; $hsql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$hresult = sql_query($hsql); $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) 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) if ($i==0)

View File

@ -3,19 +3,19 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?> ?>
<table bgcolor=#FFFFFF width=100% cellpadding=0 cellspacing=0> <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 "; $hsql = " select ev_id, ev_subject from $g4[yc4_event_table] where ev_use = '1' order by ev_id desc ";
$hresult = sql_query($hsql); $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) 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)) { if (file_exists($event_img)) {
echo "<tr><td><a href='$href'><img src='$event_img' border=0 align=absmiddle></a></td></tr>"; echo "<tr><td><a href='$href'><img src='$event_img' border=0 align=absmiddle></a></td></tr>";
} else { } else {

View File

@ -7,20 +7,20 @@ $tv_div[img_height] = 70;
$tv_div[img_length] = 4; // 보여지는 최대 이미지수 $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;"> <div id='divToday' style="position:relative; top:0;">
<table cellpadding=0 cellspacing=0 border="0" bgcolor="#FFFFFF"> <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)
{ {
// 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 위로 화살표를 보임 // 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 위로 화살표를 보임
if ($tv_idx > $tv_div[img_length]) 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++) for ($i=1; $i<=$tv_div[img_length]; $i++)
{ {
echo "<tr><td align=center>"; echo "<tr><td align=center>";
@ -31,14 +31,14 @@ if ($tv_idx)
// 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 아래로 화살표를 보임 // 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 아래로 화살표를 보임
if ($tv_idx > $tv_div[img_length]) 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 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> </table>
</div> </div>

View File

@ -3,7 +3,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?> ?>
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF> <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 $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]' 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_text($row[it_name]);
// 이미지로 할 경우 // 이미지로 할 경우
//$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]); //$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) 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> </table>

View File

@ -68,9 +68,9 @@ else
// 분류 위치 // 분류 위치
// HOME > 1단계 > 2단계 ... > 6단계 분류 // HOME > 1단계 > 2단계 ... > 6단계 분류
$ca_id = $it['ca_id']; $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)) if (file_exists($himg))
echo '<img src="'.$himg.'" border="0"><br>'; echo '<img src="'.$himg.'" border="0"><br>';
@ -78,10 +78,10 @@ if (file_exists($himg))
echo stripslashes($it['it_head_html']); echo stripslashes($it['it_head_html']);
if ($is_admin) 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']} $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_JS_URL?>/shop.js"></script>
<script language="JavaScript" src="<?=$g4['path']?>/js/md5.js"></script> <script language="JavaScript" src="<?=G4_JS_URL?>/md5.js"></script>
<style type="text/css"> <style type="text/css">
<!-- <!--
@ -164,7 +164,7 @@ ul { margin: 0; padding: 0; list-style: none; }
<? <?
if ($g4['https_url']) if ($g4['https_url'])
$action_url = $g4['https_url'].'/'.$g4['shop'].'/cartupdate.php'; $action_url = G4_HTTPS_URL.'/'.$g4['shop'].'/cartupdate.php';
else else
$action_url = './cartupdate.php'; $action_url = './cartupdate.php';
?> ?>
@ -192,13 +192,13 @@ else
<? <?
for ($i=1; $i<=5; $i++) 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); echo get_large_image("{$it_id}_l{$i}", $it['it_id'], false);
if ($i==1 && file_exists("$g4[path]/data/item/{$it_id}_m")) if ($i==1 && file_exists(G4_DATA_PATH."/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;' "; 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 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 " onmouseover=\"document.getElementById('$middle_image').src=document.getElementById('middle{$i}').src;\">";
echo "</a> &nbsp;"; echo "</a> &nbsp;";
} }
@ -207,9 +207,9 @@ else
</td> </td>
</tr> </tr>
<tr><td colspan=3 height=7></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=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> </table>
</td> </td>
<!-- 상품중간이미지 END --> <!-- 상품중간이미지 END -->
@ -217,19 +217,19 @@ else
<td width=460 valign=top align=center> <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><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=110></colgroup>
<colgroup width=20></colgroup> <colgroup width=20></colgroup>
<colgroup width=300></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'])) { ?> <? if ($score = get_star_image($it['it_id'])) { ?>
<tr> <tr>
<td height=25>&nbsp;&nbsp;&nbsp; · 고객선호도</td> <td height=25>&nbsp;&nbsp;&nbsp; · 고객선호도</td>
<td align=center>:</td> <td align=center>:</td>
<td><img src='<?="{$g4['shop_img_path']}/star{$score}.gif"?>' border=0></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_path']?>/dot_line.gif'></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 height=25>&nbsp;&nbsp;&nbsp; · 제조사</td>
<td align=center>:</td> <td align=center>:</td>
<td><?=$it['it_maker']?></td></tr> <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']) { ?> <? if ($it['it_brand']) { ?>
@ -246,7 +246,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 브랜드</td> <td height=25>&nbsp;&nbsp;&nbsp; · 브랜드</td>
<td align=center>:</td> <td align=center>:</td>
<td><?=$it['it_brand']?></td></tr> <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']) { ?> <? if ($it['it_model']) { ?>
@ -254,7 +254,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 모델명</td> <td height=25>&nbsp;&nbsp;&nbsp; · 모델명</td>
<td align=center>:</td> <td align=center>:</td>
<td><?=$it['it_model']?></td></tr> <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']) { ?> <? if ($it['it_origin']) { ?>
@ -262,7 +262,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 원산지</td> <td height=25>&nbsp;&nbsp;&nbsp; · 원산지</td>
<td align=center>:</td> <td align=center>:</td>
<td><?=$it['it_origin']?></td></tr> <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']) { ?> <? if ($default['de_compound_tax_use']) { ?>
@ -270,7 +270,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 상품구분</td> <td height=25>&nbsp;&nbsp;&nbsp; · 상품구분</td>
<td align=center>:</td> <td align=center>:</td>
<td><? echo $it['it_notax'] ? "면세상품" : "과세상품"; ?></td></tr> <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']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?> <? if (!$it['it_gallery']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
@ -281,7 +281,7 @@ else
<td height=25>&nbsp;&nbsp;&nbsp; · 판매가격</td> <td height=25>&nbsp;&nbsp;&nbsp; · 판매가격</td>
<td align=center>:</td> <td align=center>:</td>
<td><FONT COLOR="#FF5D00">전화문의</FONT></td></tr> <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 { ?> <? } else { ?>
@ -291,7 +291,7 @@ else
<td align=center>:</td> <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> <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>
<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); ?>'> <input type=hidden name=it_amount value='<?php echo get_amount($it); ?>'>
</td> </td>
</tr> </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"> <tr height="25">
<td>&nbsp;&nbsp;&nbsp; · 배 송 비</td> <td>&nbsp;&nbsp;&nbsp; · 배 송 비</td>
<td align=center>:</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); $str = conv_item_options(trim($it["it_opt{$i}_subject"]), trim($it["it_opt{$i}"]), $i, $disabled);
if($str) { 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 '<tr height="25">'."\n";
echo '<td>&nbsp;&nbsp;&nbsp; · <span class="opt_subject">'.$it["it_opt{$i}_subject"].'</span></td>'; echo '<td>&nbsp;&nbsp;&nbsp; · <span class="opt_subject">'.$it["it_opt{$i}_subject"].'</span></td>';
echo '<td align="center">:</td>'; echo '<td align="center">:</td>';
@ -384,7 +384,7 @@ else
$opt = get_supplement_option($it_id, $sp_id, $index); $opt = get_supplement_option($it_id, $sp_id, $index);
if($opt) { 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 '<tr height="25">'."\n";
echo '<td>&nbsp;&nbsp;&nbsp; · <span class="spl_subject">'.$value.'</span></td>'; echo '<td>&nbsp;&nbsp;&nbsp; · <span class="spl_subject">'.$value.'</span></td>';
echo '<td align="center">:</td>'; echo '<td align="center">:</td>';
@ -422,7 +422,7 @@ else
<div id="total-price">총 금액 : <span></span></div> <div id="total-price">총 금액 : <span></span></div>
</td> </td>
</tr> </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']) { ?> <? if (!$it['it_gallery']) { ?>
<input type="submit" name="wish_update" value="wish_update" /> <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> </td></tr>
</table></td> </table></td>
</tr> </tr>
<tr><td colspan=3 height=20></td></tr> <tr><td colspan=3 height=20></td></tr>
<tr><td colspan=3> <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> <tr>
<td width=30></td> <td width=30></td>
<!-- 상품정보 --><td><a href="javascript:click_item('*');"><img src='<?=$g4['shop_img_path']?>/btn_tab01.gif' border=0></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_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_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_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> <!-- 상품문의 --><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_path']?>/btn_tab04.gif' border=0></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_path']?>/btn_tab05.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_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 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> </tr>
</table> </table>
</td></tr> </td></tr>
@ -464,7 +464,7 @@ else
<!-- 상품설명 --> <!-- 상품설명 -->
<div id='item_explan' style='display:block;'> <div id='item_explan' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0> <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'> <tr><td style='padding:15px'>
<table width=100% cellspacing=0 border=0> <table width=100% cellspacing=0 border=0>
<? if ($it['it_basic']) { ?> <? if ($it['it_basic']) { ?>
@ -499,7 +499,7 @@ include_once('./itemqa.inc.php');
<!-- 배송정보 --> <!-- 배송정보 -->
<div id='item_baesong' style='display:block;'> <div id='item_baesong' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0> <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 style='padding:15px' height=130><?=conv_content($default['de_baesong_content'], 1);?></td></tr>
<tr><td colspan=2 height=1></td></tr> <tr><td colspan=2 height=1></td></tr>
</table> </table>
@ -512,7 +512,7 @@ include_once('./itemqa.inc.php');
<!-- 교환/반품 --> <!-- 교환/반품 -->
<div id='item_change' style='display:block;'> <div id='item_change' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0> <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 style='padding:15px' height=130><?=conv_content($default['de_change_content'], 1);?></td></tr>
<tr><td colspan=2 height=1></td></tr> <tr><td colspan=2 height=1></td></tr>
</table> </table>
@ -524,7 +524,7 @@ include_once('./itemqa.inc.php');
<!-- 관련상품 --> <!-- 관련상품 -->
<div id='item_relation' style='display:block;'> <div id='item_relation' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0> <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> <tr><td style='padding:15px' height=130>
<table width=100% cellpadding=0 cellspacing=0 border=0> <table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td align=center> <tr><td align=center>
@ -542,7 +542,7 @@ include_once('./itemqa.inc.php');
$result = sql_query($sql); $result = sql_query($sql);
$num = @mysql_num_rows($result); $num = @mysql_num_rows($result);
if ($num) if ($num)
include "{$g4['shop_path']}/maintype10.inc.php"; include G4_SHOP_PATH."/maintype10.inc.php";
else else
echo "이 상품과 관련된 상품이 없습니다."; echo "이 상품과 관련된 상품이 없습니다.";
?></td></tr></table></td> ?></td></tr></table></td>

View File

@ -6,22 +6,22 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<a name="qa"></a> <a name="qa"></a>
<div id="item_qa" style="display:block;"> <div id="item_qa" style="display:block;">
<table width=100% cellpadding=0 cellspacing=0> <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'> <tr><td style='padding:15px'>
<table width=100% cellpadding=0 cellspacing=0 border=0> <table width=100% cellpadding=0 cellspacing=0 border=0>
<tr> <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> <td valign=top>
<table width=100% height=31 cellpadding=0 cellspacing=0 border=0> <table width=100% height=31 cellpadding=0 cellspacing=0 border=0>
<tr align=center> <tr align=center>
<td width=40 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_path]?>/box_bg01.gif'>제목</td> <td background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성자</td> <td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성일</td> <td width=100 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>답변</td> <td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>답변</td>
</tr> </tr>
</table></td> </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> </tr>
<? <?
$sql_common = " from $g4[yc4_item_qa_table] where it_id = '$it[it_id]' "; $sql_common = " from $g4[yc4_item_qa_table] where it_id = '$it[it_id]' ";
@ -43,7 +43,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
for ($i=0; $row=sql_fetch_array($result); $i++) for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
if ($i > 0) 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; $num = $qa_total_count - ($qa_page - 1) * $qa_page_rows - $i;
@ -62,13 +62,13 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$iq_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>"; $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_path]/icon_answer.gif' border=0></a>"; $icon_answer = "<a href='javascript:;' onclick=\"qa_menu('iq$i')\"><img src='".G4_SHOP_IMG_URL."/icon_answer.gif' border=0></a>";
} }
echo " echo "
<tr> <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> <td valign=top>
<table width=100% cellpadding=0 cellspacing=0 border=0> <table width=100% cellpadding=0 cellspacing=0 border=0>
<tr align=center> <tr align=center>
@ -118,7 +118,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<input type=hidden name=iq_id value=''> <input type=hidden name=iq_id value=''>
<input type=hidden name=it_id value='{$it[it_id]}'> <input type=hidden name=it_id value='{$it[it_id]}'>
패스워드 : <input type=password class=ed name=iq_password required itemname='패스워드'> 패스워드 : <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=image src='".G4_SHOP_IMG_URL."/btn_confirm.gif' border=0 align=absmiddle></a>
</form> </form>
</td> </td>
</tr>"; </tr>";
@ -127,7 +127,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</table> </table>
</div></td> </div></td>
</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> </tr>
"; ";
} }
@ -137,11 +137,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
{ {
echo " echo "
<tr> <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> <td height=100 align=center class=lh>
이 상품에 대한 질문이 아직 없습니다.<br> 이 상품에 대한 질문이 아직 없습니다.<br>
궁금하신 사항은 이곳에 질문하여 주십시오.</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>"; </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"); $qa_pages = get_paging(10, $qa_page, $qa_total_page, "./item.php?it_id=$it_id&$qstr&qa_page=", "#qa");
if ($qa_pages) 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 "<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 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>"; echo "</tr>";
} }
?> ?>
<tr> <tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner03.gif'></td> <td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner03.gif'></td>
<td width=100% background='<?=$g4[shop_img_path]?>/box_bg04.gif'></td> <td width=100% background='<?=G4_SHOP_IMG_URL?>/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?>/corner04.gif'></td>
</tr> </tr>
</table> </table>
<table width=100% cellpadding=0 cellspacing=0> <table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=35>* 이 상품에 대한 궁금한 사항이 있으신 분은 질문해 주십시오. <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> </table>
<!-- 상품문의 폼--> <!-- 상품문의 폼-->
@ -203,7 +203,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
&nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr> &nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr>
<tr><td height=5 colspan=2></td></tr> <tr><td height=5 colspan=2></td></tr>
<tr><td height=2 bgcolor=#63bcc0 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> </table>
</form> </form>
<br><br> <br><br>

View File

@ -1,28 +1,28 @@
<? <?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/thumb.lib.php"); include_once(G4_LIB_PATH.'/thumb.lib.php');
?> ?>
<!-- 사용후기 --> <!-- 사용후기 -->
<a name="use"></a> <a name="use"></a>
<div id='item_use' style='display:block;'> <div id='item_use' style='display:block;'>
<table width=100% cellpadding=0 cellspacing=0> <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;'> <tr><td style='padding:15px;'>
<table width=100% cellpadding=0 cellspacing=0 border=0> <table width=100% cellpadding=0 cellspacing=0 border=0>
<tr> <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> <td valign=top>
<table width=100% height=31 cellpadding=0 cellspacing=0 border=0> <table width=100% height=31 cellpadding=0 cellspacing=0 border=0>
<tr align=center> <tr align=center>
<td width=40 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_path]?>/box_bg01.gif'>제목</td> <td background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>제목</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성자</td> <td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성자</td>
<td width=100 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>작성일</td> <td width=100 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>작성일</td>
<td width=80 background='<?=$g4[shop_img_path]?>/box_bg01.gif'>평가점수</td> <td width=80 background='<?=G4_SHOP_IMG_URL?>/box_bg01.gif'>평가점수</td>
</tr> </tr>
</table></td> </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> </tr>
<? <?
$sql_common = " from $g4[yc4_item_ps_table] where it_id = '$it[it_id]' and is_confirm = '1' "; $sql_common = " from $g4[yc4_item_ps_table] where it_id = '$it[it_id]' and is_confirm = '1' ";
@ -42,7 +42,7 @@ include_once("$g4[path]/lib/thumb.lib.php");
for ($i=0; $row=sql_fetch_array($result); $i++) for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
if ($i > 0) 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; $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 = $row[is_content];
//$is_content = preg_replace_callback("#<img[^>]+>#iS", "g4_thumb", $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_content = $thumb->run($is_content);
$is_time = substr($row[is_time], 2, 14); $is_time = substr($row[is_time], 2, 14);
echo " echo "
<tr> <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> <td valign=top>
<table width=100% cellpadding=0 cellspacing=0 border=0> <table width=100% cellpadding=0 cellspacing=0 border=0>
<tr align=center> <tr align=center>
@ -70,7 +70,7 @@ include_once("$g4[path]/lib/thumb.lib.php");
<b><a href='javascript:;' onclick=\"use_menu('is$i')\"><b>$is_subject</b></a></b> <b><a href='javascript:;' onclick=\"use_menu('is$i')\"><b>$is_subject</b></a></b>
<td width=80>$is_name</td> <td width=80>$is_name</td>
<td width=100>$is_time</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> </tr>
</table> </table>
@ -104,13 +104,13 @@ include_once("$g4[path]/lib/thumb.lib.php");
<input type=hidden name=is_id value=''> <input type=hidden name=is_id value=''>
<input type=hidden name=it_id value='{$it[it_id]}'> <input type=hidden name=it_id value='{$it[it_id]}'>
패스워드 : <input type=password class=ed name=is_password required itemname='패스워드'> 패스워드 : <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=image src='".G4_SHOP_IMG_URL."/btn_confirm.gif' border=0 align=absmiddle></a>
</form> </form>
</td> </td>
</tr> </tr>
</table> </table>
</div></td> </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> </tr>
"; ";
} }
@ -119,29 +119,29 @@ include_once("$g4[path]/lib/thumb.lib.php");
{ {
echo " echo "
<tr> <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> <td height=100 align=center class=lh>
이 상품에 대한 사용후기가 아직 없습니다.<br> 이 상품에 대한 사용후기가 아직 없습니다.<br>
사용후기를 작성해 주시면 다른 분들께 많은 도움이 됩니다.</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>"; </tr>";
} }
$use_pages = get_paging(10, $use_page, $use_total_page, "./item.php?it_id=$it_id&$qstr&use_page=", "#use"); $use_pages = get_paging(10, $use_page, $use_total_page, "./item.php?it_id=$it_id&$qstr&use_page=", "#use");
if ($use_pages) 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 "<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 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>"; echo "</tr>";
} }
?> ?>
<tr> <tr>
<td width=11><img src='<?=$g4[shop_img_path]?>/corner03.gif'></td> <td width=11><img src='<?=G4_SHOP_IMG_URL?>/corner03.gif'></td>
<td width=100% background='<?=$g4[shop_img_path]?>/box_bg04.gif'></td> <td width=100% background='<?=G4_SHOP_IMG_URL?>/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?>/corner04.gif'></td>
</tr> </tr>
</table> </table>
@ -150,7 +150,7 @@ include_once("$g4[path]/lib/thumb.lib.php");
<table width=100% cellpadding=0 cellspacing=0> <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="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> </table>
<script> <script>
@ -189,18 +189,18 @@ function itemusewin(query_string)
<tr bgcolor=#fafafa> <tr bgcolor=#fafafa>
<td height=30 align=right>평가&nbsp;</td> <td height=30 align=right>평가&nbsp;</td>
<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='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_path]?>/star4.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_path]?>/star3.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_path]?>/star2.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_path]?>/star1.gif' align=absmiddle></td></tr> <input type=radio name=is_score value='2'><img src='<?=G4_SHOP_IMG_URL?>/star1.gif' align=absmiddle></td></tr>
<tr bgcolor=#fafafa> <tr bgcolor=#fafafa>
<td width=100 align=right><img id='kcaptcha_image_use' /></td> <td width=100 align=right><img id='kcaptcha_image_use' /></td>
<td> <td>
&nbsp;<input type='text' name='is_key' class='ed' required itemname='자동등록방지용 코드'> &nbsp;<input type='text' name='is_key' class='ed' required itemname='자동등록방지용 코드'>
&nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr> &nbsp;* 왼쪽의 자동등록방지 코드를 입력하세요.</td></tr>
<tr><td height=2 bgcolor=#6ea7d3 colspan=2></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> </table>
</form> </form>
<br><br> <br><br>

View File

@ -20,9 +20,9 @@ else
//if ($skin) $ca[ca_skin] = $skin; //if ($skin) $ca[ca_skin] = $skin;
$nav_ca_id = $ca_id; $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)) { if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>"; echo "<img src='$himg' border=0><br>";
} }
@ -31,9 +31,9 @@ if (file_exists($himg)) {
echo stripslashes($ca[ca_head_html]); echo stripslashes($ca[ca_head_html]);
if ($is_admin) 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> <table width=100% cellpadding=0 cellspacing=0>
@ -58,10 +58,10 @@ $sql_common = " from $g4[yc4_item_table]
or ca_id3 like '{$ca_id}%') or ca_id3 like '{$ca_id}%')
and it_use = '1' "; 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)) { if (file_exists($list_file)) {
//display_type(2, "maintype10.inc.php", 4, 2, 100, 100, $ca[ca_id]); //display_type(2, "maintype10.inc.php", 4, 2, 100, 100, $ca[ca_id]);
@ -71,8 +71,8 @@ if (file_exists($list_file)) {
$img_width = $ca[ca_img_width]; $img_width = $ca[ca_img_width];
$img_height = $ca[ca_img_height]; $img_height = $ca[ca_img_height];
include "$g4[shop_path]/list.sub.php"; include G4_SHOP_PATH.'/list.sub.php';
include "$g4[shop_path]/list.sort.php"; include G4_SHOP_PATH.'/list.sort.php';
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items "; $sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
$result = sql_query($sql); $result = sql_query($sql);
@ -111,7 +111,7 @@ echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]
// 하단 HTML // 하단 HTML
echo stripslashes($ca[ca_tail_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)) if (file_exists($timg))
echo "<br><img src='$timg' border=0>"; echo "<br><img src='$timg' border=0>";

View File

@ -10,7 +10,7 @@ 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>\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"; echo "<tr>\n";
} }

View File

@ -14,7 +14,7 @@ $sql = " select count(*) as cnt from $g4[yc4_category_table]
$row = sql_fetch($sql); $row = sql_fetch($sql);
$cnt = $row['cnt']; $cnt = $row['cnt'];
if (!$cnt) if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>"; $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] $sql = " select ca_id, ca_name from $g4[yc4_category_table]
where ca_id like '$ca_id%' where ca_id like '$ca_id%'
@ -22,7 +22,7 @@ $sql = " select ca_id, ca_name from $g4[yc4_category_table]
and ca_use = '1' and ca_use = '1'
order by ca_id "; order by ca_id ";
$result = sql_query($sql); $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>"; $str .= "<td><table width=100% border=0><tr><td>";
while ($row=sql_fetch_array($result)) { 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; "; $str .= "<a href='./list.php?ca_id=$row[ca_id]'>$row[ca_name] ($row2[cnt])</a> &nbsp; ";
$exists = true; $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) { if ($exists) {
echo " echo "
@ -42,15 +42,15 @@ if ($exists) {
<colgroup width=''> <colgroup width=''>
<colgroup width=11> <colgroup width=11>
<tr> <tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td> <td width=11><img src='".G4_SHOP_IMG_URL."/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td> <td background='".G4_SHOP_IMG_URL."/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_box02.gif'></td>
</tr> </tr>
$str $str
<tr> <tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td> <td width=11><img src='".G4_SHOP_IMG_URL."/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td> <td background='".G4_SHOP_IMG_URL."/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_box04.gif'></td>
</tr> </tr>
</table><br>"; </table><br>";
} }

View File

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