Merge branch 'g4s_branch'

This commit is contained in:
chicpro
2013-04-26 17:22:13 +09:00
2 changed files with 40 additions and 39 deletions

View File

@ -52,16 +52,16 @@ a:active {color:#000;text-decoration:underline}
.cke_sc_def dd {width:30%}
/* 상단 레이아웃 */
#hd {border-top:3px solid #151515;background:#fff}
#hd h1 {font-size:0;line-height:0;overflow:hidden}
#hd {height:73px;border-top:3px solid #151515;background:#fff}
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_wrapper {position:relative;margin:0 auto;width:980px}
#logo {padding:17px 0}
#schall {position:absolute;top:22px;left:70px;margin:0;padding:0;letter-spacing:-5px}
#schall legend {font-size:0;line-height:0;overflow:hidden}
#schall_stx {padding-left:5px;width:156px;height:24px;border:1px solid #aaa;border-right:0;background:#fff;line-height:1.9em !important;line-height:1.6em}
#schall_submit {border:1px solid #aaa;border-left:0}
#sch_all {position:absolute;top:22px;left:70px;margin:0;padding:0;letter-spacing:-5px}
#sch_all legend {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sch_all_stx {padding-left:5px;width:156px;height:24px;border:1px solid #aaa;border-right:0;background:#fff;line-height:1.9em !important;line-height:1.6em}
#sch_all_submit {border:1px solid #aaa;border-left:0}
#mb_nb {position:absolute;top:18px;right:0;zoom:1}
#mb_nb:after {display:block;visibility:hidden;clear:both;content:""}
@ -74,7 +74,7 @@ a:active {color:#000;text-decoration:underline}
/* gnb js off */
#gnb {z-index:10;margin:-1px 0 0;border-top:1px solid #e7f1ed;border-bottom:1px solid #c3c7c5;background:#f0f4f8}
#gnb h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
#gnb h2 {position:absolute;margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
#gnb_ul {margin:0 auto;padding:0;width:980px;zoom:1}
#gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1depth {z-index:10;clear:both;zoom:1}
@ -116,7 +116,7 @@ a:active {color:#000;text-decoration:underline}
/* 하단 레이아웃 */
#ft {background:#484848}
#ft h1 {font-size:0;line-height:0;overflow:hidden}
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ft_catch {position:relative;margin:0 auto;padding:20px 0;width:980px;text-align:center}

View File

@ -34,13 +34,14 @@ if ($config['cf_include_head']) {
<a href="<?php echo G4_URL ?>"><img src="<?php echo G4_IMG_URL ?>/logo.jpg" alt="처음으로" width="53" height="37"></a>
</div>
<fieldset id="schall">
<fieldset id="sch_all">
<legend>사이트 내 전체검색</legend>
<form name="fsearchbox" method="get" action="<?php echo 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">
<label for="schall_stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" id="schall_stx" maxlength="20"><input type="image" id="schall_submit" src="<?php echo G4_IMG_URL ?>/btn_search.jpg" width="24" height="24" alt="검색">
<label for="sch_all_stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" id="sch_all_stx" maxlength="20">
<input type="image" id="sch_all_submit" src="<?php echo G4_IMG_URL ?>/btn_search.jpg" width="24" height="24" alt="검색">
</form>
<script>
@ -124,38 +125,38 @@ if ($config['cf_include_head']) {
</div>
<hr>
<nav id="gnb">
<script>$('#gnb').addClass('gnb_js');</script>
<h2>홈페이지 메인메뉴</h2>
<ul id="gnb_ul">
<?php
$sql = " select * from {$g4['group_table']} where gr_show_menu = '1' and gr_device <> 'mobile' 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="<?php echo G4_BBS_URL ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_subject'] ?></a>
<ul class="gnb_sub_ul">
<?php
$sql2 = " select * from {$g4['board_table']} where gr_id = '{$row['gr_id']}' and bo_show_menu = '1' and bo_device <> 'mobile' 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="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $row2['bo_table'] ?>"><?php echo $row2['bo_subject'] ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<?php if ($gi == 0) { ?><li class="gnb_empty">생성된 메뉴가 없습니다.</li><?php } ?>
</ul>
</nav>
</header>
<hr>
<nav id="gnb">
<script>$('#gnb').addClass('gnb_js');</script>
<h2>홈페이지 메인메뉴</h2>
<ul id="gnb_ul">
<?php
$sql = " select * from {$g4['group_table']} where gr_show_menu = '1' and gr_device <> 'mobile' 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="<?php echo G4_BBS_URL ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_subject'] ?></a>
<ul class="gnb_sub_ul">
<?php
$sql2 = " select * from {$g4['board_table']} where gr_id = '{$row['gr_id']}' and bo_show_menu = '1' and bo_device <> 'mobile' 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="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $row2['bo_table'] ?>"><?php echo $row2['bo_subject'] ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<?php if ($gi == 0) { ?><li class="gnb_empty">생성된 메뉴가 없습니다.</li><?php } ?>
</ul>
</nav>
<hr>
<div id="wrapper">
<aside id="aside">
<?php echo outlogin('basic'); // 외부 로그인 ?>