merge를 위한 커밋
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_PATH.'/shop.head.php');
|
||||
include_once(G4_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
105
shop/index.php
Normal file
105
shop/index.php
Normal file
@ -0,0 +1,105 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
define("G4_SHOP_INDEX", TRUE);
|
||||
|
||||
$g4['title'] = $default['de_admin_company_name'];
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<script src="<?=G4_JS_URL?>/shop.js"></script>
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<img src='<?=G4_DATA_URL?>/common/main_img' border=0><br><br>
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<?
|
||||
// 히트상품
|
||||
$type = 1;
|
||||
if ($default["de_type{$type}_list_use"])
|
||||
{
|
||||
echo "<a href='".G4_SHOP_URL."/listtype.php?type={$type}'><img src='".G4_SHOP_IMG_URL."/bar_type{$type}.gif' border=0></a><br>";
|
||||
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=20></td></tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<?
|
||||
// 추천상품
|
||||
$type = 2;
|
||||
if ($default["de_type{$type}_list_use"])
|
||||
{
|
||||
echo "<a href='".G4_SHOP_URL."/listtype.php?type={$type}'><img src='".G4_SHOP_IMG_URL."/bar_type{$type}.gif' border=0></a><br>";
|
||||
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=20></td></tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<?
|
||||
// 인기상품
|
||||
$type = 4;
|
||||
if ($default["de_type{$type}_list_use"])
|
||||
{
|
||||
echo "<a href='".G4_SHOP_URL."/listtype.php?type={$type}'><img src='".G4_SHOP_IMG_URL."/bar_type{$type}.gif' border=0></a><br>";
|
||||
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=20></td></tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<?
|
||||
// 할인상품
|
||||
$type = 5;
|
||||
if ($default["de_type{$type}_list_use"])
|
||||
{
|
||||
echo "<a href='".G4_SHOP_URL."/listtype.php?type={$type}'><img src='".G4_SHOP_IMG_URL."/bar_type{$type}.gif' border=0></a><br>";
|
||||
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign=top>
|
||||
|
||||
<?
|
||||
// 최신상품
|
||||
$type = 3;
|
||||
if ($default["de_type{$type}_list_use"])
|
||||
{
|
||||
echo "<a href='".G4_SHOP_URL."/listtype.php?type={$type}'><img src='".G4_SHOP_IMG_URL."/bar_type{$type}.gif' border=0></a><br>";
|
||||
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
|
||||
}
|
||||
?><br><br>
|
||||
|
||||
<!-- 온라인 투표 -->
|
||||
<?=poll('neo');?><br>
|
||||
|
||||
<!-- 방문자 수 -->
|
||||
<?=visit('neo');?><br>
|
||||
|
||||
<!-- 메인 배너 -->
|
||||
<?=display_banner('메인');?><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<BR><BR>
|
||||
|
||||
<?
|
||||
include_once(G4_SHOP_PATH.'/newwin.inc.php'); // 새창띄우기
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
142
shop/shop.head.php
Normal file
142
shop/shop.head.php
Normal file
@ -0,0 +1,142 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
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());
|
||||
|
||||
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
|
||||
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
|
||||
|
||||
$table_width = 900;
|
||||
|
||||
//print_r2($g4);
|
||||
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
|
||||
?>
|
||||
|
||||
<style>
|
||||
.amount { color:#2266BB; font-weight:bold; font-family:Verdana; }
|
||||
.c1 { background-color:#94D7E7; }
|
||||
.c2 { background-color:#E7F3F7; }
|
||||
</style>
|
||||
|
||||
<!-- 전체 -->
|
||||
<table align=center cellpadding=0 cellspacing=0 border=0>
|
||||
<tr>
|
||||
<td 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_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');?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? if ($is_member) { ?>
|
||||
<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_URL?>/login.php?url=<?=$urlencode?>'>로그인</a> |
|
||||
<a href='<?=G4_BBS_URL?>/register.php'>회원가입</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_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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2 align=right height=30>
|
||||
<!-- 검색 시작 -->
|
||||
<form name='frmsearch1' style='margin:0px;' onsubmit='return search_submit(this);'>
|
||||
<input type='hidden' name='sfl' value='wr_subject||wr_content'>
|
||||
<input type='hidden' name='sop' value='and'>
|
||||
<input type='hidden' name='stx' value=''>
|
||||
<select name='search_flag' id='search_flag' class='small'>
|
||||
<option value='상품'>상품
|
||||
<option value='게시판'>게시판
|
||||
</select>
|
||||
<input type=text name=search_str class='ed' value='<?=stripslashes(get_text($search_str))?>'>
|
||||
<input type=image src='<?=G4_IMG_URL?>/btn_search.gif' border=0 align=absmiddle>
|
||||
</form>
|
||||
<script>
|
||||
function search_submit(f) {
|
||||
if (f.search_flag.value == '상품') {
|
||||
f.action = '<?=G4_SHOP_URL?>/search.php';
|
||||
} else {
|
||||
f.stx.value = f.search_str.value;
|
||||
f.action = '<?=G4_BBS_URL?>/search.php';
|
||||
}
|
||||
}
|
||||
|
||||
<?
|
||||
if ($search_flag) {
|
||||
echo "document.getElementById('search_flag').value = '$search_flag';";
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
<!-- 검색 끝 -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#DCDCDC></td></tr>
|
||||
<tr><td colspan=2 height=5></td></tr>
|
||||
</table>
|
||||
<!-- 상단끝 -->
|
||||
|
||||
<!-- 중간 -->
|
||||
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
|
||||
<tr>
|
||||
<td align=center valign=top width=185>
|
||||
|
||||
<?=outlogin("neo"); // 외부 로그인 ?>
|
||||
<br>
|
||||
|
||||
<!-- 상품분류 -->
|
||||
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
|
||||
<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>
|
||||
</table><br>
|
||||
|
||||
|
||||
<!-- 커뮤니티 -->
|
||||
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
|
||||
<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>
|
||||
</table><br>
|
||||
|
||||
|
||||
<!-- 보관함 -->
|
||||
<table cellpadding=1 cellspacing=0 bgcolor=#D2D2D2>
|
||||
<tr><td><?include_once(G4_SHOP_PATH.'/boxwish.inc.php');?></td></tr>
|
||||
</table><br>
|
||||
|
||||
<!-- 왼쪽 배너 -->
|
||||
<?=display_banner('왼쪽');?><br>
|
||||
|
||||
</td>
|
||||
<td width=5></td>
|
||||
<td valign=top width='<?=((int)$table_width-190)?>'>
|
||||
|
||||
62
shop/shop.tail.php
Normal file
62
shop/shop.tail.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$admin = get_admin("super");
|
||||
|
||||
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
||||
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
|
||||
?>
|
||||
|
||||
</td></tr></table>
|
||||
<!-- 중간끝 -->
|
||||
|
||||
|
||||
<!-- 하단 -->
|
||||
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0>
|
||||
<tr>
|
||||
<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_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_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%'>
|
||||
<FONT COLOR="#46808F">
|
||||
<?=$default[de_admin_company_addr]?> /
|
||||
전화 : <?=$default[de_admin_company_tel]?> /
|
||||
팩스 : <?=$default[de_admin_company_fax]?> /
|
||||
운영자 : <?=$admin[mb_name]?> <BR>
|
||||
사업자 등록번호 : <?=$default[de_admin_company_saupja_no]?> /
|
||||
대표 : <?=$default[de_admin_company_owner]?> /
|
||||
개인정보관리책임자 : <?=$default[de_admin_info_name]?> <br>
|
||||
통신판매업신고번호 : <?=$default[de_admin_tongsin_no]?>
|
||||
<? if ($default[de_admin_buga_no]) echo " / 부가통신사업신고번호 : $default[de_admin_buga_no]"; ?>
|
||||
<br>Copyright © 2001-2005 <?=$default[de_admin_company_name]?>. All Rights Reserved. </FONT></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- 하단끝 -->
|
||||
|
||||
|
||||
<?
|
||||
$sec = get_microtime() - $begin_time;
|
||||
$file = $_SERVER[PHP_SELF];
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table><br/>
|
||||
<!-- 전체끝 -->
|
||||
|
||||
|
||||
|
||||
|
||||
<?
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user