경로 수정 작업 중
This commit is contained in:
311
head.php
311
head.php
@ -1,143 +1,168 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once("$g4[path]/head.sub.php");
|
||||
include_once("$g4[path]/lib/outlogin.lib.php");
|
||||
include_once("$g4[path]/lib/poll.lib.php");
|
||||
include_once("$g4[path]/lib/visit.lib.php");
|
||||
include_once("$g4[path]/lib/connect.lib.php");
|
||||
include_once("$g4[path]/lib/popular.lib.php");
|
||||
|
||||
//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'>
|
||||
<!-- 오늘본 상품 {-->
|
||||
<div style="position:relative">
|
||||
<div style='position:absolute; top:70px; left:<?=($table_width+10)?>px'>
|
||||
<?include("$g4[shop_path]/boxtodayview.inc.php");?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 오늘본 상품 }-->
|
||||
|
||||
<!-- 상단 -->
|
||||
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
|
||||
<tr><td colspan=2 height=4 bgcolor=#DCDCDB></td></tr>
|
||||
<tr>
|
||||
<td rowspan=2 align=left width=200 height=60><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/data/common/logo_img' border=0></a></td>
|
||||
<td align=right class=small>
|
||||
|
||||
<? if ($is_member) { ?>
|
||||
<a href='<?=$g4[bbs_path]?>/logout.php'>로그아웃</a> |
|
||||
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'>정보수정</a> |
|
||||
<? } else { ?>
|
||||
<a href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>'>로그인</a> |
|
||||
<a href='<?=$g4[bbs_path]?>/register.php'>회원가입</a> |
|
||||
<? } ?>
|
||||
|
||||
<a href='<?=$g4[shop_path]?>/cart.php'>장바구니<span class=small>(<?=get_cart_count(get_session('ss_on_uid'));?>)</span></a> |
|
||||
<a href='<?=$g4[shop_path]?>/orderinquiry.php'>주문조회</a> |
|
||||
<a href='<?=$g4[shop_path]?>/faq.php'>FAQ</a> |
|
||||
<a href='<?=$g4[shop_path]?>/itemuselist.php'>사용후기</a> |
|
||||
<a href='<?=$g4[shop_path]?>/mypage.php'>마이페이지</a>
|
||||
</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[path]?>/img/btn_search.gif' border=0 align=absmiddle>
|
||||
</form>
|
||||
<script>
|
||||
function search_submit(f) {
|
||||
if (f.search_flag.value == '상품') {
|
||||
f.action = '<?=$g4[shop_path]?>/search.php';
|
||||
} else {
|
||||
f.stx.value = f.search_str.value;
|
||||
f.action = '<?=$g4[bbs_path]?>/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("shop_outlogin"); // 외부 로그인 ?>
|
||||
<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)?>'>
|
||||
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
include_once(G4_LIB_PATH.'/latest.lib.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');
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MOBILE_PATH.'/head.php');
|
||||
return;
|
||||
}
|
||||
|
||||
// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||
if ($config['cf_include_head']) {
|
||||
if (!@include_once($config['cf_include_head'])) {
|
||||
die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');
|
||||
}
|
||||
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||
}
|
||||
?>
|
||||
|
||||
<header id="hd">
|
||||
<h1><?=$config['cf_title']?></h1>
|
||||
|
||||
<div id="to_content"><a href="#container">본문 바로가기</a></div>
|
||||
|
||||
<div id="hd_wrapper">
|
||||
|
||||
<div id="logo">
|
||||
<a href="<?=G4_URL?>"><img src="<?=G4_IMG_URL?>/logo.jpg" alt="처음으로" width="53" height="37"></a>
|
||||
</div>
|
||||
|
||||
<fieldset id="schall">
|
||||
<legend>사이트 내 전체검색</legend>
|
||||
<form name="fsearchbox" method="get" action="<?=G4_BBS_URL?>/search.php" onsubmit="return fsearchbox_submit(this);">
|
||||
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<input type="text" id="schall_stx" name="stx" title="검색어" maxlength="20"><input type="image" id="schall_submit" src="<?=G4_IMG_URL?>/btn_search.jpg" width="24" height="24" alt="검색">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fsearchbox_submit(f)
|
||||
{
|
||||
if (f.stx.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.stx.select();
|
||||
f.stx.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
|
||||
var cnt = 0;
|
||||
for (var i=0; i<f.stx.value.length; i++) {
|
||||
if (f.stx.value.charAt(i) == ' ')
|
||||
cnt++;
|
||||
}
|
||||
|
||||
if (cnt > 1) {
|
||||
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
|
||||
f.stx.select();
|
||||
f.stx.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</fieldset>
|
||||
|
||||
<ul id="mb_nb">
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/current_connect.php" id="snb_cnt">
|
||||
<img src="<?=G4_IMG_URL?>/snb_cnt.jpg" alt="">
|
||||
접속자 <?=connect(); // 현재 접속자수 ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/new.php" id="snb_new">
|
||||
<img src="<?=G4_IMG_URL?>/snb_new.jpg" alt="">
|
||||
새글
|
||||
</a>
|
||||
</li>
|
||||
<? if ($is_member) { ?>
|
||||
<? if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G4_ADMIN_URL?>" id="snb_adm">
|
||||
<img src="<?=G4_IMG_URL?>/snb_admin.jpg" alt="">
|
||||
관리자
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/member_confirm.php?url=<?=G4_BBS_URL?>/register_form.php" id="snb_modify">
|
||||
<img src="<?=G4_IMG_URL?>/snb_modify.jpg" alt="">
|
||||
내 정보
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/logout.php" id="snb_logout">
|
||||
<img src="<?=G4_IMG_URL?>/snb_logout.jpg" alt="">
|
||||
로그아웃
|
||||
</a>
|
||||
</li>
|
||||
<? } else { ?>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/register.php" id="snb_join">
|
||||
<img src="<?=G4_IMG_URL?>/snb_join.jpg" alt="">
|
||||
회원가입
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/login.php" id="snb_login">
|
||||
<img src="<?=G4_IMG_URL?>/snb_login.jpg" alt="">
|
||||
로그인
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<hr>
|
||||
|
||||
<nav id="gnb">
|
||||
<script>$('#gnb').addClass('gnb_js');</script>
|
||||
<h2>홈페이지 메인메뉴</h2>
|
||||
<ul id="gnb_ul">
|
||||
<?
|
||||
$sql = " select * from {$g4['group_table']} where gr_show_menu order by gr_order ";
|
||||
$result = sql_query($sql);
|
||||
for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index
|
||||
?>
|
||||
<li class="gnb_1depth">
|
||||
<a href="<?=G4_BBS_URL?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_subject']?></a>
|
||||
<ul class="gnb_sub_ul">
|
||||
<?
|
||||
$sql2 = " select * from {$g4['board_table']} where gr_id = '{$row['gr_id']}' order by bo_order ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($bi=0; $row2=sql_fetch_array($result2); $bi++) { // bi 는 board index
|
||||
?>
|
||||
<li class="gnb_2depth"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$row2['bo_table']?>"><?=$row2['bo_subject']?></a></li>
|
||||
<?}?>
|
||||
</ul>
|
||||
</li>
|
||||
<?}?>
|
||||
<? if ($gi == 0) { ?><li class="gnb_empty">생성된 메뉴가 없습니다.</li><? } ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="side_nb">
|
||||
<?=(G4_IS_MOBILE?outlogin('basic'):outlogin('basic')); // 외부 로그인 ?>
|
||||
<?=(G4_IS_MOBILE?poll('basic'):poll('basic')); // 설문조사 ?>
|
||||
</div>
|
||||
<div id="container">
|
||||
<? if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) {?><h1 id="wrapper_title"><?=$g4['title']?></h1><?}?>
|
||||
<div id="text_size">
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'decrease');">작게</button>
|
||||
<button class="no_text_resize" onclick="font_default('container');">기본</button>
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'increase');">크게</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user