2011년 6월 8일 수요일

rims빌더 좌측메뉴 없애고 상단메뉴 조정한 head.php

<?
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");

$table_width = 1004;

/***************** 라운드형 박스 [아래 참고]******************

// 설명 : 라운드 테두리의 디자인적 요소로 비교적 간단히 취할 수 있는 솔류션 자체 내 제공함수입니다. 사용법을 모르시는 분들은 본 파일 및 기본 파일소스내 사용된 걸 참고하시기 바랍니다.

round_box(integer1,integer2,string) 함수명

integer1 : 1,2 (1: 열림,2 or 빈값: 닫힘)
integer2 : 1,2,3,4,5 (라운드 종류 : 진한실선,연한실선등..)
string : ffffff,white.... (박스 내 배경색상)
*/
?>
<script type="text/javascript">
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;
    }

    f.action = "<?=$g4['bbs_path']?>/search.php";
    return true;
}
<?=$onloadmenu//서브메뉴호출?>
<? include_once("$g4[path]/lib/rims.lib.php"); ?>
</script>
<table id="Top_Table" width="100%" border="0" cellpadding="0" cellspacing="0" style=table-layout:fixed>
<col width=><col width=<?=$table_width?>><col width=>
<tr>
<td></td>
<td>
<table id="Head_Table" width="100%" border="0" cellpadding="6" cellspacing="0" style=table-layout:fixed>
<col width=400><col width=>
<tr>
<td rowspan=2 bgcolor="red"><a href="<?=$g4[path]?>"><img src="<?=$g4[path]?>/img/logo.gif" border=0></a></td>
<td align=right style="padding-bottmo:10px" bgcolor="yellow">
<!-- 최상단 메뉴 시작-->
<table border="0" cellpadding="0" cellspacing="0" >
<?if($member[mb_no]){//회원로그인시?>
<tr>
<td>
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><span class=rb_han>정보수정</span></a><!-- 정보수정 --><?=$bt?><a href="<?=$g4['bbs_path']?>/logout.php"><span class=rb_han>로그아웃</span></a><!-- 로그아웃 --><?if($is_admin){?><?=$bt?><a href='<?=$g4[admin_path]?>/'><span class=rb_han>관리자</span></a><?}?><!-- 관리자 --><?=$bt?><a href="<?=$g4['bbs_path']?>/new.php"><span class=rb_han>최근게시물</span></a></td>
</tr>
<?}else{//손님일경우?>
<tr>
<td>

<a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><span class=rb_han>로그인</span></a><!-- 로그인 --><?=$bt?><a href="<?=$g4['bbs_path']?>/register.php"><span class=rb_han>회원가입</span></a><!-- 회원가입 -->
</td>
</tr>
<?}?>
</table>
<!-- 최상단 메뉴 끝-->
</td>
</tr>
<tr>
<td style=padding:0 bgcolor="green">
<!-- 상단 메인메뉴 시작 -->
<?include $g4[path]."/main_menu.php";?>
<!-- 상단 메인메뉴 끝 -->
</td>

</tr>
<tr><td height=30 colspan=2><div id=subarea></div></td></tr>
</table>
<!-- 메인시작 -->

댓글 없음:

댓글 쓰기