경로 수정 작업 중

This commit is contained in:
chicpro
2013-03-15 11:39:39 +09:00
parent 1a60978568
commit 25351a750d
26 changed files with 639 additions and 729 deletions

View File

@ -1,6 +1,6 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/iteminfo.lib.php");
include_once('./_common.php');
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
@ -31,86 +31,86 @@ if (!$saved) {
// 오늘 본 상품 저장 끝
// 조회수 증가
if ($_COOKIE[ck_it_id] != $it_id) {
sql_query(" update $g4[yc4_item_table] set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
setcookie("ck_it_id", $it_id, time() + 3600, $config[cf_cookie_dir], $config[cf_cookie_domain]); // 1시간동안 저장
if ($_COOKIE['ck_it_id'] != $it_id) {
sql_query(" update {$g4['yc4_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
}
// 분류사용, 상품사용하는 상품의 정보를 얻음
$sql = " select a.*,
b.ca_name,
b.ca_use
from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
from {$g4['yc4_item_table']} a,
{$g4['yc4_category_table']} b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id ";
$it = sql_fetch($sql);
if (!$it[it_id])
if (!$it['it_id'])
alert("자료가 없습니다.");
if (!($it[ca_use] && $it[it_use])) {
if (!($it['ca_use'] && $it['it_use'])) {
if (!$is_admin)
alert("판매가능한 상품이 아닙니다.");
}
// 분류 테이블에서 분류 상단, 하단 코드를 얻음
$sql = " select ca_include_head, ca_include_tail
from $g4[yc4_category_table]
where ca_id = '$it[ca_id]' ";
from $g4['yc4_category_table']
where ca_id = '{$it['ca_id']}' ";
$ca = sql_fetch($sql);
$g4[title] = "상품 상세보기 : $it[ca_name] - $it[it_name] ";
$g4['title'] = "상품 상세보기 : {$it['ca_name']} - {$it['it_name']} ";
// 분류 상단 코드가 있으면 출력하고 없으면 기본 상단 코드 출력
if ($ca[ca_include_head])
@include_once($ca[ca_include_head]);
if ($ca['ca_include_head'])
@include_once($ca['ca_include_head']);
else
include_once("./_head.php");
include_once('./_head.php');
// 분류 위치
// HOME > 1단계 > 2단계 ... > 6단계 분류
$ca_id = $it[ca_id];
include "$g4[shop_path]/navigation1.inc.php";
$ca_id = $it['ca_id'];
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>";
echo "<img src='".G4_DATA_URL."/item/{$it_id}_h' border=0><br>";
// 상단 HTML
echo stripslashes($it[it_head_html]);
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_ADMIN_URL."/shop_admin/itemform.php?w=u&it_id=$it_id'><img src='".G4_SHOP_URL."/img/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']}
where it_id > '$it_id'
and SUBSTRING(ca_id,1,4) = '".substr($it[ca_id],0,4)."'
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
and it_use = '1'
order by it_id asc
limit 1 ";
$row = sql_fetch($sql);
if ($row[it_id]) {
$prev_title = "[이전상품보기] $row[it_name]";
$prev_href = "<a href='./item.php?it_id=$row[it_id]'>";
if ($row['it_id']) {
$prev_title = "[이전상품보기] {$row['it_name']}";
$prev_href = "<a href='./item.php?it_id={$row['it_id']}'>";
} else {
$prev_title = "[이전상품없음]";
$prev_href = "";
}
// 다음 상품보기
$sql = " select it_id, it_name from $g4[yc4_item_table]
$sql = " select it_id, it_name from {$g4['yc4_item_table']}
where it_id < '$it_id'
and SUBSTRING(ca_id,1,4) = '".substr($it[ca_id],0,4)."'
and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."'
and it_use = '1'
order by it_id desc
limit 1 ";
$row = sql_fetch($sql);
if ($row[it_id]) {
$next_title = "[다음상품보기] $row[it_name]";
$next_href = "<a href='./item.php?it_id=$row[it_id]'>";
if ($row['it_id']) {
$next_title = "[다음상품보기] {$row['it_name']}";
$next_href = "<a href='./item.php?it_id={$row['it_id']}'>";
} else {
$next_title = "[다음상품없음]";
$next_href = "";
@ -118,56 +118,56 @@ if ($row[it_id]) {
// 관련상품의 갯수를 얻음
$sql = " select count(*) as cnt
from $g4[yc4_item_relation_table] a
left join $g4[yc4_item_table] b on (a.it_id2=b.it_id and b.it_use='1')
where a.it_id = '$it[it_id]' ";
from {$g4['yc4_item_relation_table']} a
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id and b.it_use='1')
where a.it_id = '{$it['it_id']}' ";
$row = sql_fetch($sql);
$item_relation_count = $row[cnt];
$item_relation_count = $row['cnt'];
?>
<script language="JavaScript" src="<?=$g4[path]?>/js/shop.js"></script>
<script language="JavaScript" src="<?=$g4[path]?>/js/md5.js"></script>
<script src="<?=G4_JS_URL?>/shop.js"></script>
<script src="<?=G4_JS_URL?>/md5.js"></script>
<br>
<table width=99% cellpadding=0 cellspacing=0 align=center border=0><tr><td>
<?
if ($g4[https_url])
$action_url = "$g4[https_url]/$g4[shop]/cartupdate.php";
if (G4_HTTPS_DOMAIN])
$action_url = G4_HTTPS_DOMAIN.'/'.G4_SHOP_DIR.'/cartupdate.php';
else
$action_url = "./cartupdate.php";
$action_url = './cartupdate.php';
?>
<table width=100% cellpadding=0 cellspacing=0>
<form name=fitem method=post action="<?=$action_url?>">
<input type=hidden name=it_id value='<?=$it[it_id]?>'>
<input type=hidden name=it_name value='<?=$it[it_name]?>'>
<input type=hidden name=it_id value='<?=$it['it_id']?>'>
<input type=hidden name=it_name value='<?=$it['it_name']?>'>
<input type=hidden name=sw_direct>
<input type=hidden name=url>
<tr>
<!-- 상품중간이미지 -->
<?
$middle_image = $it[it_id]."_m";
$middle_image = $it['it_id']."_m";
?>
<td align=center valign=top>
<table cellpadding=0 cellspacing=0>
<tr><td height=22></td></tr>
<tr><td colspan=3 align=center>
<table cellpadding=1 cellspacing=0 bgcolor=#E4E4E4><tr><td><?=get_large_image($it[it_id]."_l1", $it[it_id], false)?><?=get_it_image($middle_image);?></a></td></tr></table></td></tr>
<table cellpadding=1 cellspacing=0 bgcolor=#E4E4E4><tr><td><?=get_large_image($it['it_id']."_l1", $it['it_id'], false)?><?=get_it_image($middle_image);?></a></td></tr></table></td></tr>
<tr><td colspan=3 height=10></td></tr>
<tr>
<td colspan=3 align=center>
<?
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;' ";
echo get_large_image("{$it_id}_l{$i}", $it['it_id'], false);
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;";
}
@ -176,47 +176,47 @@ 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>
<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>
<tr><td height=20><?=$prev_href?><img src='<?=G4_SHOP_URL?>/img/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_URL?>/img/next.gif' border=0 title='<?=$next_title?>'></a></td></tr>
</table>
</td>
<!-- 상품중간이미지 END -->
<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_URL?>/img/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_URL?>/img/itembox_01.gif' width=430></td></tr>
<? if ($score = get_star_image($it[it_id])) { ?>
<? 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_URL."/img/star{$score}.gif"?>' border=0></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_URL?>/img/dot_line.gif'></td></tr>
<? } ?>
<? if ($it[it_maker]) { ?>
<? if ($it['it_maker']) { ?>
<tr>
<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>
<td><?=$it['it_maker']?></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_URL?>/img/dot_line.gif'></td></tr>
<? } ?>
<? if ($it[it_origin]) { ?>
<? if ($it['it_origin']) { ?>
<tr>
<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>
<td><?=$it['it_origin']?></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_URL?>/img/dot_line.gif'></td></tr>
<? } ?>
@ -232,31 +232,31 @@ else
echo "<td>&nbsp;&nbsp;&nbsp; · ".$it["it_opt{$i}_subject"]."</td>";
echo "<td align=center>:</td>";
echo "<td style='word-break:break-all;'>$str</td></tr>\n";
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_URL."/img/dot_line.gif'></td></tr>\n";
}
}
?>
<? if (!$it[it_gallery]) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
<? if (!$it['it_gallery']) { // 갤러리 형식이라면 가격, 구매하기 출력하지 않음 ?>
<? if ($it[it_tel_inq]) { // 전화문의일 경우 ?>
<? if ($it['it_tel_inq']) { // 전화문의일 경우 ?>
<tr>
<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_URL?>/img/dot_line.gif'></td></tr>
<? } else { ?>
<? if ($it[it_cust_amount]) { // 1.00.03 ?>
<? if ($it['it_cust_amount']) { // 1.00.03 ?>
<tr height=25>
<td>&nbsp;&nbsp;&nbsp; · 시중가격</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><td colspan=3 height=1 background='<?=$g4[shop_img_path]?>/dot_line.gif'></td></tr>
<tr><td colspan=3 height=1 background='<?=G4_SHOP_URL?>/img/dot_line.gif'></td></tr>
<? } ?>
@ -267,7 +267,7 @@ else
<input type=hidden name=it_amount value='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_URL?>/img/dot_line.gif'></td></tr>
<?
/* 재고를 표시하는 경우 주석을 풀어주세요.
@ -280,7 +280,7 @@ else
*/
?>
<? if ($config[cf_use_point]) { // 포인트 사용한다면 ?>
<? if ($config['cf_use_point']) { // 포인트 사용한다면 ?>
<tr height=25>
<td>&nbsp;&nbsp;&nbsp; · 포 인 트</td>
<td align=center>:</td>
@ -288,7 +288,7 @@ else
<input type=hidden name=it_point value='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_URL?>/img/dot_line.gif'></td></tr>
<? } ?>
<tr height=25>
@ -296,7 +296,7 @@ else
<td align=center>:</td>
<td>
<input type=text name=ct_qty value='1' size=4 maxlength=4 class=ed autocomplete='off' style='text-align:right;' onkeyup='amount_change()'>
<img src='<?=$g4[shop_img_path]?>/qty_control.gif' border=0 align=absmiddle usemap="#qty_control_map"> 개
<img src='<?=G4_SHOP_URL?>/img/qty_control.gif' border=0 align=absmiddle usemap="#qty_control_map"> 개
<map name="qty_control_map">
<area shape="rect" coords="0, 0, 10, 9" href="javascript:qty_add(+1);">
<area shape="rect" coords="0, 10, 10, 19" href="javascript:qty_add(-1);">
@ -307,7 +307,7 @@ else
<? } ?>
<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_URL?>/img/itembox_02.gif' width=430></td></tr>
</table><BR>
@ -315,22 +315,22 @@ else
<table>
<tr>
<td>
<? if (!$it[it_tel_inq] && !$it[it_gallery]) { ?>
<a href="javascript:fitemcheck(document.fitem, 'direct_buy');"><img src='<?=$g4[shop_img_path]?>/btn2_now_buy.gif' border=0></a>
<a href="javascript:fitemcheck(document.fitem, 'cart_update');"><img src='<?=$g4[shop_img_path]?>/btn2_cart.gif' border=0></a>
<? if (!$it['it_tel_inq'] && !$it['it_gallery']) { ?>
<a href="javascript:fitemcheck(document.fitem, 'direct_buy');"><img src='<?=G4_SHOP_URL?>/img/btn2_now_buy.gif' border=0></a>
<a href="javascript:fitemcheck(document.fitem, 'cart_update');"><img src='<?=G4_SHOP_URL?>/img/btn2_cart.gif' border=0></a>
<? } ?>
<? if (!$it[it_gallery]) { ?>
<a href="javascript:item_wish(document.fitem, '<?=$it[it_id]?>');"><img src='<?=$g4[shop_img_path]?>/btn2_wish.gif' border=0></a>
<a href="javascript:popup_item_recommend('<?=$it[it_id]?>');"><img src='<?=$g4[shop_img_path]?>/btn_item_recommend.gif' border=0></a>
<? if (!$it['it_gallery']) { ?>
<a href="javascript:item_wish(document.fitem, '<?=$it['it_id']?>');"><img src='<?=G4_SHOP_URL?>/img/btn2_wish.gif' border=0></a>
<a href="javascript:popup_item_recommend('<?=$it['it_id']?>');"><img src='<?=G4_SHOP_URL?>/img/btn_item_recommend.gif' border=0></a>
<? } ?>
<script language="JavaScript">
// 상품보관
function item_wish(f, it_id)
{
f.url.value = "<?=$g4[shop_path]?>/wishupdate.php?it_id="+it_id;
f.action = "<?=$g4[shop_path]?>/wishupdate.php";
f.url.value = "<?=G4_SHOP_URL?>/wishupdate.php?it_id="+it_id;
f.action = "<?=G4_SHOP_URL?>/wishupdate.php";
f.submit();
}
@ -340,7 +340,7 @@ else
if (!g4_is_member)
{
if (confirm("회원만 추천하실 수 있습니다."))
document.location.href = "<?=$g4[bbs_path]?>/login.php?url=<?=urlencode("$g4[shop_path]/item.php?it_id=$it_id")?>";
document.location.href = "<?=G4_BBS_URL?>/login.php?url=<?=urlencode(G4_SHOP_URL."/item.php?it_id=$it_id")?>";
}
else
{
@ -356,15 +356,15 @@ else
</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_URL?>/img/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_URL?>/img/btn_tab01.gif' border=0></a></td>
<!-- 사용후기 --><td width=109 background='<?=G4_SHOP_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_URL?>/img/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_URL?>/img/btn_tab04.gif' border=0></a></td><?}?>
<? if ($default['de_change_content']) { ?><!-- 교환/반품 --><td><a href="javascript:click_item('item_change');"><img src='<?=G4_SHOP_URL?>/img/btn_tab05.gif' border=0></a></td><?}?>
<!-- 관련상품 --><td width=109 background='<?=G4_SHOP_URL?>/img/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>
@ -376,8 +376,8 @@ function click_item(id)
{
<?
echo "var str = 'item_explan,item_use,item_qa";
if ($default[de_baesong_content]) echo ",item_baesong";
if ($default[de_change_content]) echo ",item_change";
if ($default['de_baesong_content']) echo ",item_baesong";
if ($default['de_change_content']) echo ",item_change";
echo ",item_relation';";
?>
@ -401,9 +401,9 @@ function click_item(id)
<!-- 상품설명 -->
<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_URL?>/img/item_t01.gif'></td><td height=2 bgcolor=#CACDE2></td></tr>
<tr><td style='padding:15px'>
<?
<?
$sql = " select * from {$g4['yc4_item_info_table']} where it_id = '$it_id' order by ii_id ";
$result = sql_query($sql, false);
if (@mysql_num_rows($result)) {
@ -425,12 +425,12 @@ function click_item(id)
<?}//if?>
<table width=100% cellspacing=0 border=0>
<? if ($it[it_basic]) { ?>
<tr><td height=30><font color='#3179BD'><?=$it[it_basic]?></font></td></tr>
<? if ($it['it_basic']) { ?>
<tr><td height=30><font color='#3179BD'><?=$it['it_basic']?></font></td></tr>
<? } ?>
<? if ($it[it_explan]) { ?>
<tr><td><div id='div_explan'><?=conv_content($it[it_explan], 1);?></div><td></tr>
<? if ($it['it_explan']) { ?>
<tr><td><div id='div_explan'><?=conv_content($it['it_explan'], 1);?></div><td></tr>
<? } ?>
</table>
</td></tr>
@ -444,21 +444,21 @@ function click_item(id)
<?
// 사용후기
$use_page_rows = 10; // 사용후기 페이지당 목록수
include_once("./itemuse.inc.php");
include_once('./itemuse.inc.php');
// 상품문의
$qa_page_rows = 10; // 상품문의 페이지당 목록수
include_once("./itemqa.inc.php");
include_once('./itemqa.inc.php');
?>
<? if ($default[de_baesong_content]) { // 배송정보 내용이 있다면 ?>
<? if ($default['de_baesong_content']) { // 배송정보 내용이 있다면 ?>
<!-- 배송정보 -->
<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 style='padding:15px' height=130><?=conv_content($default[de_baesong_content], 1);?></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#D6E1A7><img src='<?=G4_SHOP_URL?>/img/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>
</div>
@ -466,12 +466,12 @@ include_once("./itemqa.inc.php");
<? } ?>
<? if ($default[de_change_content]) { // 교환/반품 내용이 있다면 ?>
<? if ($default['de_change_content']) { // 교환/반품 내용이 있다면 ?>
<!-- 교환/반품 -->
<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 style='padding:15px' height=130><?=conv_content($default[de_change_content], 1);?></td></tr>
<tr><td rowspan=2 width=31 valign=top bgcolor=#F6DBAB><img src='<?=G4_SHOP_URL?>/img/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>
</div>
@ -482,27 +482,27 @@ 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_URL?>/img/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>
<?
$list_mod = $default[de_rel_list_mod];
$img_width = $default[de_rel_img_width];
$img_height = $default[de_rel_img_height];
$list_mod = $default['de_rel_list_mod'];
$img_width = $default['de_rel_img_width'];
$img_height = $default['de_rel_img_height'];
$td_width = (int)(100 / $list_mod);
$sql = " select b.*
from $g4[yc4_item_relation_table] a
left join $g4[yc4_item_table] b on (a.it_id2=b.it_id)
where a.it_id = '$it[it_id]'
from {$g4['yc4_item_relation_table']} a
left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id)
where a.it_id = '{$it['it_id']}'
and b.it_use='1' ";
$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 "이 상품과 관련된 상품이 없습니다.";
echo '이 상품과 관련된 상품이 없습니다.';
?></td></tr></table></td>
</tr>
<tr><td colspan=2 height=1></td></tr>
@ -553,9 +553,9 @@ function get_amount(data)
function amount_change()
{
var basic_amount = parseInt('<?=get_amount($it)?>');
var basic_point = parseFloat('<?=$it[it_point]?>');
var cust_amount = parseFloat('<?=$it[it_cust_amount]?>');
var basic_amount = parseInt("<?=get_amount($it)?>");
var basic_point = parseFloat("<?=$it['it_point']?>");
var cust_amount = parseFloat("<?=$it['it_cust_amount']?>");
var f = document.fitem;
var opt1 = 0;
@ -747,14 +747,14 @@ $(function() {
<?
// 하단 HTML
echo stripslashes($it[it_tail_html]);
echo stripslashes($it['it_tail_html']);
$timg = "$g4[path]/data/item/{$it_id}_t";
$timg = G4_DATA_PATH."/item/{$it_id}_t";
if (file_exists($timg))
echo "<img src='$timg' border=0><br>";
echo "<img src='"G4_DATA_URL."/item/{$it_id}_t' border=0><br>";
if ($ca[ca_include_tail])
@include_once($ca[ca_include_tail]);
if ($ca['ca_include_tail'])
@include_once($ca['ca_include_tail']);
else
include_once("./_tail.php");
include_once('./_tail.php');
?>