SIR head.php 공개 > 그누4 팁자료실

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

SIR head.php 공개 정보

SIR head.php 공개

본문

많은 분들이 궁금해 하시는것 같습니다.

모든 메뉴를 head.php 에서 모두 처리하도록 해서 급하게 수정하여 올립니다. (코드가 지저분해도 이해해 주세요.)

이 소스와 관련된 질문은 받지 않습니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//$g4[body_script] = "onLoad = \"preload('$g4[path]/img/bg_arrow.gif', '$g4[path]/img/menu_arrow.gif', '$g4[path]/img/bg_submenu.gif', '$g4[path]/img/menu_line.gif');\"";

//$table_width = 900;

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

function top_box($content)
{
    global $g4;

    return "
    <table width=100% cellpadding=0 cellspacing=0>
    <tr>
    <td background='$g4[path]/img/top_box_tl.gif' width=5 height=5></td>
    <td background='$g4[path]/img/top_box_tc.gif' width='' height=5></td>
    <td background='$g4[path]/img/top_box_tr.gif' width=5 height=5></td>
    </tr>
    <tr>
    <td background='$g4[path]/img/top_box_l.gif' width=5></td>
    <td style='padding:10px; line-height:150%;'>$content</td>
    <td background='$g4[path]/img/top_box_r.gif' width=5></td>
    </tr>
    <tr>
    <td background='$g4[path]/img/top_box_bl.gif' width=5 height=5></td>
    <td background='$g4[path]/img/top_box_bc.gif' width='' height=5></td>
    <td background='$g4[path]/img/top_box_br.gif' width=5 height=5></td>
    </tr>
    </table>";
}

function print_menu($k1, $k2, $no)
{
    global $menu;
   
    $m = $menu[$k1][$k2];

    $str = "";
    for($i=1; $i<count($m); $i++)
    {
        if ($m[$i][0] == "-")
            $str .= "<tr><td class=bg_line{$no}></td></tr>";
        else
        {
            $target = "";
            if ($m[$i][2])
                $target = " target=_blank ";
            $str .= "<tr><td class=bg_menu{$no}><a href='{$m[$i][0]}' $target>{$m[$i][1]}</a></td></tr>";
        }
    }
    return $str;
}





switch(true)
{
    case preg_match("/(gnuboard4.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_license.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_feature.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_function.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g4_install.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(g4_)/", $bo_table) :
        $menu1 = "gnuboard";
        $menu2 = "gnuboard4";
        break;
    case preg_match("/(gnuboard3.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(g3_install.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(g3_)/", $bo_table) :
        $menu1 = "gnuboard";
        $menu2 = "gnuboard3";
        break;
    case preg_match("/(self_program)/", $bo_table) :
        $menu1 = "gnuboard";
        $menu2 = "selfprogram";
        break;
    case preg_match("/(webstudy.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(pl_)/", $bo_table) :
        $menu1 = "gnuboard";
        $menu2 = "webstudy";
        break;
    case preg_match("/(youngcart.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_license.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_feature.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_function.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_partner.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_pg.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(yc_sms.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(yc_)/", $bo_table) :
        $menu1 = "youngcart";
        $menu2 = "youngcart";
        break;
    case preg_match("/(make[0-9]{0,2}.php)$/", $_SERVER[PHP_SELF]) :
        $menu1 = "youngcart";
        $menu2 = "make";
        break;
    case preg_match("/^(pr_request)$/", $bo_table) :
        $menu1 = "product";
        $menu2 = "request";
        break;
    case preg_match("/^(pr_product)$/", $bo_table) :
        $menu1 = "product";
        $menu2 = "product";
        break;
    case preg_match("/(community.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(cm_point_rank.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/(cm_attendance.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(cm_free|cm_news|cm_forum|cm_story|cm_good_link|cm_jirumsin)$/", $bo_table) :
        $menu1 = "community";
        $menu2 = "common";
        break;
    case preg_match("/^(cm_gallery|cm_dabsagi)$/", $bo_table) :
        $menu1 = "community";
        $menu2 = "gallery";
        break;
    case preg_match("/(byulbyul.php)$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(cm_country|cm_age|cm_job|cm_star|cm_blood|cm_s2x|cm_surname|cm_hobby|cm_tti)$/", $bo_table) :
        $menu1 = "community";
        $menu2 = "byulbyul";
        break;
    case preg_match("/\/company\/.*.php$/", $_SERVER[PHP_SELF]) :
    case preg_match("/^(co_notice)$/", $bo_table) :
        $menu1 = "company";
        $menu2 = "company";
        break;
    case preg_match("/\/customer\/.*.php$/", $_SERVER[PHP_SELF]) :
        $menu1 = "customer";
        $menu2 = "customer";
        break;
    default :
        $menu1 = "";
        $menu2 = "";
}
?>
<script language="JavaScript">
var save_layer = null;
function layer_view(link_id, menu_id, opt, x, y)
{
    var link = document.getElementById(link_id);
    var menu = document.getElementById(menu_id);

    //for (i in link) { document.write(i + '<br/>'); } return;

    if (save_layer != null)
    {
        save_layer.style.display = "none";
        selectBoxVisible();
    }

    if (link_id == '')
        return;

    if (opt == 'hide')
    {
        menu.style.display = 'none';
        selectBoxVisible();
    }
    else
    {
        x = parseInt(x);
        y = parseInt(y);
        menu.style.left = get_left_pos(link) + x;
        menu.style.top  = get_top_pos(link) + link.offsetHeight + y;
        menu.style.display = 'block';
    }

    save_layer = menu;
}

function preload() {
  if (!document.images) return;
  var ar = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    ar[i] = new Image();
    ar[i].src = arguments[i];
  }
  //alert(arguments.length);
}

document.onload = preload('<?=$g4[path]?>/img/bg_arrow.gif', '<?=$g4[path]?>/img/menu_arrow.gif', '<?=$g4[path]?>/img/bg_submenu.gif', '<?=$g4[path]?>/img/menu_line.gif');
</script>

<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>

<style>
.bg_menu1 { height:22px;
            border-left-width:1px; border-left-style:solid; border-left-color:#9DADE5;
            border-right-width:1px; border-right-style:solid; border-right-color:#9DADE5;
            padding-left:15px;
            padding-right:15px;
            background-color:#F6FAFF; }
.bg_line1 { height:1px; background-color:#9DADE5; }

.bg_title { background-image:url('<?=$g4[path]?>/img/lm_category.gif');
            width:179px;
            height:48px;
            padding-left:25px;
            padding-top:4px; }
.bg_menu2 { height:22px;
            padding-left:25px; }
.bg_line2 { background-image:url('<?=$g4[path]?>/img/dot.gif'); height:3px; }
</style>


<table width='900' cellpadding=0 cellspacing=0 align=center border=0>
<!-- 상단 테이블 -->
    <tr>
        <!-- 로고 -->
        <td rowspan=2 height=60 width=70><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/img/logo.gif' border=0 width=70 height=45></a></td>
        <!-- 로고 -->
        <!-- 상단 메뉴 -->
        <td align=right valign=bottom width=830>
            <?
            $curr = sql_fetch(" select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from $g4[login_table]  where mb_id <> '$config[cf_admin]' ");
            ?>
            <span class=small>
            <a href="<?=$g4[bbs_path]?>/current_connect.php">현재접속자(<?=$curr[total_cnt]?>)</a> :
            <a href="<?=$g4[bbs_path]?>/new.php">최근게시물</a> :
            <a href="<?=$g4[path]?>/customer/mypage.php">마이페이지</a> :
            <a href='<?=$g4[path]?>/customer/support.php'>고객지원</a>
            </span>
        </td>
        <!-- 상단 메뉴 -->
    </tr>
    <tr>
        <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <td align=right><input type=text size=15 class=ed name=stx style='height:17px;'> <input type=image src='<?=$g4[path]?>/img/search.gif' border=0 align=absmiddle width=28 height=16>
                <script language="JavaScript">
                function fsearchbox_submit(f)
                {
                    if (f.stx.value == '')
                    {
                        alert("검색어를 입력하세요.");
                        f.stx.select();
                        f.stx.focus();
                        return;
                    }

                    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
                    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;
                    }

                    f.action = "<?=$g4[bbs_path]?>/search.php";
                    f.submit();
                }
                </script>
        </td>
        </form>
        <!-- 전체 검색 end -->
    </tr>

<?
unset($menu);
$menu["gnuboard"] = array (
    0=>15,
    "gnuboard4" => array (
        array("$g4[path]/gnuboard4.php", "그누보드4", 0),
        array("$g4[path]/gnuboard/g4_license.php", "라이센스", 0),
        array("$g4[path]/gnuboard/g4_feature.php", "특징", 0),
        array("$g4[path]/gnuboard/g4_function.php", "주요기능", 0),
        array("$g4[path]/gnuboard/g4_install.php", "설치방법", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_pds", "다운로드", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_tiptech", "팁앤테크", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_qa", "질문답변", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_use", "사용후기", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_dic", "그누사전", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_skin", "일반스킨", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_skin_basic", "기본스킨", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g4_pi_club", "나라오름님의 클럽", 0)
    ),
    "gnuboard3" => array(
        array("$g4[path]/gnuboard3.php", "그누보드3", 0),
        array("$g4[path]/gnuboard/g3_install.php", "설치/사용매뉴얼", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_faq", "자주하시는 질문", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_pds", "다운로드", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_tiptech", "팁앤테크", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_qa", "질문답변", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_use", "사용후기", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_dic", "그누사전", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_skin", "스킨", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_pi_club", "클럽", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_pi_jhooncafe", "제이훈 카페", 0),
        array("$g4[bbs_path]/board.php?bo_table=g3_pi_funblog", "FUN BLOG", 0)
    ),
    "selfprogram" => array(
        array("$g4[bbs_path]/board.php?bo_table=self_program", "자작프로그램", 0),
        array("$g4[bbs_path]/board.php?bo_table=self_program&sca=그누4호환", "그누보드4 호환", 0),
        array("$g4[bbs_path]/board.php?bo_table=self_program&sca=그누3호환", "그누보드3 호환", 0),
        array("$g4[bbs_path]/board.php?bo_table=self_program&sca=디자인", "디자인 관련", 0),
        array("$g4[bbs_path]/board.php?bo_table=self_program&sca=기타", "기타", 0)
    ),
    "webstudy" => array(
        array("$g4[path]/webstudy.php", "웹스터디", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_linux", "Linux", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_apache", "Apache", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_mysql", "MySQL", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_php", "PHP", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_dhtml_javascript", "[D]HTML+JavaScript", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_css", "CSS", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_photoshop", "PhotoShop", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_illust", "illust", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_flash", "Flash", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=pl_etc", "기타", 0)
    )
);

$menu["youngcart"] = array (
    0=>94,
    "youngcart" => array (
        array("$g4[path]/youngcart.php", "영카트", 0),
        array("$g4[path]/youngcart/yc_license.php", "라이센스", 0),
        array("$g4[path]/youngcart/yc_feature.php", "특징", 0),
        array("$g4[path]/youngcart/yc_function.php", "주요기능", 0),
        array("$g4[path]/youngcart/yc_demo.php?demo=user", "사용자데모", 1),
        array("$g4[path]/youngcart/yc_demo.php?demo=admin", "운영자데모", 1),
        array("http://demo.sir.co.kr/youngcart/?doc=manual/youngcart/index.php", "운영매뉴얼", 1),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_faq", "자주하시는 질문", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_buy", "구입전 질문", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_good_site", "추천사이트", 0),
        array("$g4[path]/youngcart/yc_partner.php", "파트너정책", 0),
        array("$g4[path]/youngcart/yc_pg.php", "전자결제연동", 0),
        array("$g4[path]/youngcart/yc_sms.php", "SMS 연동", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_tiptech", "팁앤테크", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_qa", "질문답변", 0),
        array("$g4[bbs_path]/board.php?bo_table=yc_pds", "자료실", 0),
        array("$g4[path]/README_CART", "패치내역", 1),
    ),
    "make" => array (
        array("$g4[path]/youngcart/make.php", "창업절차", 0),
        array("$g4[path]/youngcart/make01.php", "아이템 선정", 0),
        array("$g4[path]/youngcart/make02.php", "공급처 확보", 0),
        array("$g4[path]/youngcart/make03.php", "도메인 등록", 0),
        array("$g4[path]/youngcart/make04.php", "호스팅 신청", 0),
        array("$g4[path]/youngcart/make05.php", "사업자 등록", 0),
        array("$g4[path]/youngcart/make06.php", "통신판매업 신고", 0),
        array("$g4[path]/youngcart/make07.php", "부가통신사업 신고", 0),
        array("-", "", 0),
        array("$g4[path]/youngcart/make08.php", "쇼핑몰 구축", 0),
        array("-", "", 0),
        array("$g4[path]/youngcart/make09.php", "결제시스템 연동", 0),
        array("$g4[path]/youngcart/make10.php", "검색엔진 등록", 0),
        array("$g4[path]/youngcart/make11.php", "배송업체 연동", 0),
        array("$g4[path]/youngcart/make12.php", "광고 및 홍보", 0)
    )
);

$menu["product"] = array (
    0=>160,
    "request" => array (
        array("$g4[bbs_path]/board.php?bo_table=pr_request", "의뢰자", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=프로그램", "프로그램 제작의뢰", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=홈페이지", "홈페이지 제작의뢰", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=쇼핑몰", "쇼핑몰 제작의뢰", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=디자인", "디자인 제작의뢰", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=플래쉬", "플래쉬 제작의뢰", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_request&sca=기타", "기타 의뢰", 0)
    ),
    "product" => array (
        array("$g4[bbs_path]/board.php?bo_table=pr_product", "제작자", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_product&sca=웹에이전시", "웹에이전시 회사", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_product&sca=프리랜서", "프리랜서", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_product&sca=아르바이트", "아르바이트", 0),
        array("$g4[bbs_path]/board.php?bo_table=pr_product&sca=기타", "기타", 0)
    )
);

$menu["community"] = array (
    0=>235,
    "common" => array (
        array("$g4[path]/community.php", "일반", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_free", "자유게시판", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_news", "뉴스", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_forum", "자유토론", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_story", "끝말잇기", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_good_link", "추천링크", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_jirumsin", "지름신", 0),
        array("-", "", 0),
        array("$g4[path]/community/cm_attendance.php", "출석부", 0),
        array("$g4[path]/community/cm_point_rank.php", "포인트 순위", 0)
    ),
    "gallery" => array (
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery", "갤러리", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=사람/인물", "사람/인물", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=자연/풍경", "자연/풍경", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=동물/식물", "동물/식물", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=건축/시설물", "건축/시설물", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=도로/교통", "도로/교통", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=스포츠/레저", "스포츠/레저", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=생활/사회", "생활/사회", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=문화/예술", "문화/예술", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=산업/비지니스", "산업/비지니스", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=사물/용품", "사물/용품", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=국가/지역별", "국가/지역별", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_gallery&sca=디자인/아트", "디자인/아트", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_dabsagi", "예전 갤러리", 0)
    ),
    "byulbyul" => array (
        array("$g4[path]/byulbyul.php", "별별모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_country", "지역별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_age", "연령별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_hobby", "취미별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_tti", "띠별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_star", "별자리별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_s2x", "성(性)별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_surname", "성(姓)별 모임", 0),
        array("$g4[bbs_path]/board.php?bo_table=cm_blood", "혈액형별 모임", 0)
    )
);

$menu["company"] = array (
    0=>0,
    "company" => array (
        array("", "회사", 0),
        array("$g4[path]/company/introduce.php", "회사 소개", 0),
        array("$g4[path]/company/history.php", "회사 연혁", 0),
        array("$g4[path]/company/location.php", "오시는 길", 0),
        array("-", "", 0),
        array("$g4[bbs_path]/board.php?bo_table=co_notice", "공지사항", 0),
        array("-", "", 0),
        array("$g4[path]/company/stipulation.php", "홈페이지 이용약관", 0),
        array("$g4[path]/company/privacy.php", " 개인정보 보호정책", 0),
        array("$g4[path]/company/disclaimer.php", "책임의 한계와 법적고지", 0),
        array("$g4[path]/company/rejection.php", "이메일주소 무단수집 거부", 0),
        array("-", "", 0),
        array("$g4[path]/company/point_policy.php", "포인트정책", 0)
    )
);

$menu["customer"] = array (
    0=>0,
    "customer" => array (
        array("", "고객님", 0),
        array("$g4[path]/customer/support.php", "고객지원", 0),
        array("-", "", 0),
        array("$g4[path]/customer/mypage.php", "마이페이지", 0),
        array("-", "", 0),
        array("$g4[path]/customer/solution_stipulation.php", "솔루션 사용약관", 0),
        array("-", "", 0),
        array("$g4[path]/customer/purchase.php", "솔루션 구입", 0)
    )
);
?>

    <tr>
        <!-- 탑 메뉴 -->
        <td height=35 background='<?=$g4[path]?>/img/bg_menu.gif' style='padding-left:4px;' onmouseover="layer_view('','','','','')">
            <script language="JavaScript">
            function disp_menu(id)
            {
                <?
                foreach($menu as $key=>$value)
                {
                    echo "document.getElementById('menu_{$key}').style.display = 'none';\n";
                }
                ?>
                document.getElementById(id).style.display = '';
            }
            </script>
            <?
            $on_off1 =  ($menu1 == "gnuboard") ? "on" : "off";
            $on_off2 =  ($menu1 == "youngcart") ? "on" : "off";
            $on_off3 =  ($menu1 == "product") ? "on" : "off";
            $on_off4 =  ($menu1 == "community") ? "on" : "off";

            echo "<a href='$g4[path]/gnuboard4.php'><img src='$g4[path]/img/menu{$on_off1}_01.gif' border=0 width=76 height=35 onmouseover=\"disp_menu('menu_gnuboard');\"></a>";
            echo "<a href='$g4[path]/youngcart.php'><img src='$g4[path]/img/menu{$on_off2}_02.gif' border=0 width=66 height=35 onmouseover=\"disp_menu('menu_youngcart');\"></a>";
            echo "<a href='$g4[bbs_path]/board.php?bo_table=pr_request'><img src='$g4[path]/img/menu{$on_off3}_03.gif' border=0 width=76 height=35 onmouseover=\"disp_menu('menu_product');\"></a>";
            echo "<a href='$g4[path]/community.php'><img src='$g4[path]/img/menu{$on_off4}_04.gif' border=0 width=76 height=35 onmouseover=\"disp_menu('menu_community');\"></a>";
            ?></td>
        <td background='<?=$g4[path]?>/img/bg_menu.gif' width=180><!-- <font color=#FFFFFF>E-mail 본인 인증 후 로그인..</font> --></td>
        <!-- 탑 메뉴 -->
    </tr>
    <tr>
        <!-- 서브 메뉴 -->
        <td colspan=2 height=28>
            <?
            $pulldown = $submenu = "";
            foreach($menu as $k=>$v)
            {
                if ($k==$menu1 && $menu[$k][0])
                    echo "<span id='menu_$k' style='display:;'>\n";
                else
                    echo "<span id='menu_$k' style='display:none;'>\n";
                $bar = "";
                $i = 0;
                foreach($menu[$k] as $key=>$value)
                {
                    if ($i==0)
                    {
                        echo "\t<span style='padding-left:{$value}px;'></span>\n";
                    }
                    else
                    {
                        $target = "";
                        if ($menu[$k][$key][0][2])
                            $target = " target=_blank ";

                        $style = "";
                        if ($key==$menu2)
                            $style = "font-weight:bold; color:#FF8800;";

                        echo $bar . "\t<a href='{$menu[$k][$key][0][0]}' {$target}><span id='id_$key' onmouseover=\"layer_view('id_$key', 'pulldown_$key', 'view', 0, 5);\" style='cursor:pointer;{$style}' >{$menu[$k][$key][0][1]}</span></a>\n";
                        $bar = " | ";

                        $pulldown .= "<table id='pulldown_$key' cellpadding=0 cellspacing=0 style='display:none; position:absolute;' onpropertychange=\"selectBoxHidden('pulldown_$key')\">";
                        $pulldown .= "<tr><td class=bg_line1></td></tr>";
                        $pulldown .= print_menu($k, $key, 1);
                        $pulldown .= "<tr><td class=bg_line1></td></tr>";
                        $pulldown .= "</table>\n";

                        if ($k==$menu1 && $key==$menu2)
                        {
                            $submenu .= "<table cellpadding=0 cellspacing=0 background='{$g4[path]}/img/ca_bg.gif'>";
                            $submenu .= "<tr><td class=bg_title><font color=white><b>{$menu[$k][$key][0][1]}</b></font></td></tr>";
                            $submenu .= print_menu($k, $key, 2);
                            $submenu .= "<tr><td><img src='{$g4[path]}/img/ca_bottom.gif'></td></tr>";
                            $submenu .= "</table>\n";
                        }
                    }
                    $i++;
                }
                echo "\n</span>\n";
            }

            echo $pulldown;
            ?>
        </td>
        <!-- 서브 메뉴 end -->
    </tr>
<!-- 상단 테이블 -->
</table>

<table width='900' cellpadding=0 cellspacing=0 align=center onmouseover="layer_view('','','','','')">
<!-- 메인 테이블 -->
    <tr>
        <td valign=top width=180>
        <!-- 왼쪽 메뉴 -->
            <table cellpadding=0 cellspacing=0>
                <tr><td align=center><?=outlogin("v11")?></td></tr>
            </table>

            <div style="clear:both; padding:0 0 10 0;"></div>

            <?
            if ($submenu)
                echo $submenu;
            else
            {
                echo "
                <table cellpadding=0 cellspacing=0>
                <tr><td height=80><a href='$g4[path]/youngcart/yc_pg.php'><img src='$g4[path]/img/main_b01.gif' border=0 width=179 height=61></a></td></tr>
                <tr><td><a href='$g4[bbs_path]/board.php?bo_table=pr_request'><img src='$g4[path]/img/main_b02.gif' border=0 width=179 height=109></a></td></tr>
                <tr><td><a href='$g4[path]/youngcart/yc_partner.php'><img src='$g4[path]/img/main_b03.gif' border=0 width=179 height=109></a></td></tr>
                <tr><td><a href='$g4[path]/youngcart/make.php'><img src='$g4[path]/img/main_b04.gif' border=0 width=179 height=93></a></td></tr>
                <tr><td><a href='$g4[path]/customer/support.php'><img src='$g4[path]/img/main_b05.gif' border=0 width=179 height=95></a></td></tr>";

                echo "</table>";
            }
            ?>

        <!-- 왼쪽 메뉴 end -->
        </td>
        <td width=10></td>
        <td valign=top width=710>
        <!-- 메인 -->
추천
1

댓글 34개

아무리 이해할려고 해도 이해할 수가 없네요

도대체 어느부분의 코드가 지저분하다는 거죠...???

ㅡ__ㅡ a

감사합니다.
하루종일 자르고 붙이고 아주 좋습니다.
기존에 그룹별 페이지분기문을 돌려서 그룹별 레이아웃이 담긴 폴더를 찾아 로드되는 형태로 사용하면서 2% 아쉬운점이 있었는데, 관리자님의 소스를 보면서 뭔가 해결의 실마리가 보입니다.

스위치문에서 특정폴더에 특정그룹값을 원하는대로 줄 수 있는 부분은 각문서 상단에 그룹을 지정해주는 수고를 하지않고 특정폴더에 넣어주는 것만으로 되니 이것 또한 좋습니다.
제가 필요로 했던 중요한 한가지는 벌써 얻은셈입니다.

SIR 처럼 서브메뉴 올라올 자리를 활용하려면 어디를 들여다 봐야 할까??
와 단지 파일 한개일 뿐인데...입이 벌어지네요....ㅠ_ㅠ

장난 아니게 머리 아픈 한개의 파일......멋집니다....진짜 입이 안 다물어져서 지금 침 닦고 있습니다..ㅠ_ㅠ
php의 p자도 모르는 초본데요. 이 코드는 어떤 기능을 하는 거죠? 그리구 저 위의 코드 사용법은 어떻게 하는거죠? head.php 라는 파일을 찾아서 덮어씌우면 뭔가 달라진 기능을 기대할 수 있을 것 같은 예감이 드는데?

어떤 기능이 바뀐건지 모르겠습니다. 고수님들 제 질문에 자세히 답변해 주시길 부탁드릴께요. ^^
과연 제가 할수있을지..  자잘한것만 만져서 안단해봐야겠어요.. 이미지는  ??  일단 여기거 가져다다 뜨는거 확인하고... 제게 맞게 고치면... 관리자님 이 만들어 놓은거랑 비스므리 하게 될려나...  역시 코드를 모르는 제가 과연 해 낼수 있을지... 

이소스로 메뉴 수정에 돌입해봅니다..
전체 34 |RSS
그누4 팁자료실 내용 검색
  • 개별 목록 구성 번호 제목 작성자 작성일 추천 조회
  • 게시물이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT