<?php
$sruri = $_SERVER["REQUEST_URI"];
$bc_array = explode("/", $sruri); // url '/'로 구분해서 배열로 넣어줌
if ($_SERVER['QUERY_STRING'] == "") { // 쿼리스트링 없으면
$file_name = basename($_SERVER['PHP_SELF'], ".php"); // 파일명.php에서 .php뺀 이름 남겨줌
} else { // 쿼리스트링 있으면
$file_name = $_GET['bo_table']; // (그누보드) 'bo_table' 쿼리스트링 가져옴
}
?>
<div id="breadcrumbs" class="forMOB">
<a href="/ko/index.php" class="home">
<p class="forSR">HOME</p>
</a><!-- .home -->
<div class="dep1">
<span>
<?php if ($bc_array[2] == "company") { ?>회사소개<?php } ?>
<?php if ($bc_array[2] == "business" || strpos($bc_array[3], 'performance')) { ?>사업소개<?php } ?>
<?php if ($bc_array[2] == "rnd") { ?>R&D<?php } ?>
<?php if ($bc_array[2] == "cs" || strpos($bc_array[3], 'news') || strpos($bc_array[3], 'notice')) { ?>고객지원<?php } ?>
<?php if ($bc_array[2] == "careers") { ?>인재채용<?php } ?>
</span>
<ul>
<li><a href="/ko/company/greeting.php">회사소개</a></li>
<li><a href="/ko/business/business.php">사업소개</a></li>
<li><a href="/ko/rnd/institute.php">R&D</a></li>
<li><a href="/board/bbs/board.php?bo_table=news">고객지원</a></li>
<li><a href="/ko/careers/talent.php">인재채용</a></li>
</ul>
</div><!-- .dep1 -->
<div class="lnb">
<?php
if ($bc_array[2] == "company") { ?>
<span>
<?= $file_name == "greeting" ? "인사말" : "" ?>
<?= $file_name == "intro" ? "소개" : "" ?>
<?= $file_name == "history" ? "연혁" : "" ?>
<?= $file_name == "orgnzChart" ? "조직도" : "" ?>
<?= $file_name == "ci" ? "CI 소개" : "" ?>
<?= $file_name == "contribution" ? "사회공헌" : "" ?>
</span>
<ul>
<li><a href="/ko/company/greeting.php">인사말</a></li>
<li><a href="/ko/company/intro.php">소개</a></li>
<li><a href="/ko/company/history.php">연혁</a></li>
<li><a href="/ko/company/orgnzChart.php">조직도</a></li>
<li><a href="/ko/company/ci.php">CI 소개</a></li>
<li><a href="/ko/company/contribution.php">사회공헌</a></li>
</ul>
<? } elseif ($bc_array[2] == "business" || strpos($bc_array[3], 'performance')) { ?>
<span>
<?= $file_name == "business" ? "사업영역" : "" ?>
<?= $file_name == "factory" ? "공장 및 설비현황" : "" ?>
<?= $file_name == "performance" ? "사업실적" : "" ?>
<?= $file_name == "orgnzChart" ? "조직도" : "" ?>
<?= $file_name == "project" ? "프로젝트" : "" ?>
</span>
<ul>
<li><a href="/ko/business/business.php">사업영역</a></li>
<li><a href="/ko/business/factory.php">공장 및 설비현황</a></li>
<li><a href="/board/bbs/board.php?bo_table=performance">사업실적</a></li>
<li><a href="/ko/business/project.php">프로젝트</a></li>
</ul>
<? } elseif ($bc_array[2] == "rnd") { ?>
<span>
<?= $file_name == "institute" ? "기술연구소" : "" ?>
<?= $file_name == "qa" ? "품질보증 시스템" : "" ?>
<?= $file_name == "patent" ? "인증현황 & 수상내역" : "" ?>
</span>
<ul>
<li><a href="/ko/rnd/institute.php">기술연구소</a></li>
<li><a href="/ko/rnd/qa.php">품질보증 시스템</a></li>
<li><a href="/ko/rnd/patent.php">인증현황 & 수상내역</a></li>
</ul>
<? } elseif ($bc_array[2] == "cs" || strpos($bc_array[3], 'news') || strpos($bc_array[3], 'notice')) { ?>
<span>
<?= $file_name == "news" ? "회사뉴스" : "" ?>
<?= $file_name == "notice" ? "공지사항" : "" ?>
<?= $file_name == "inquiry" ? "고객상담" : "" ?>
<?= $file_name == "directions" ? "오시는길" : "" ?>
</span>
<ul>
<li><a href="/board/bbs/board.php?bo_table=news">회사뉴스</a></li>
<li><a href="/board/bbs/board.php?bo_table=notice">공지사항</a></li>
<li><a href="/ko/cs/inquiry.php">고객상담</a></li>
<li><a href="/ko/cs/directions.php">오시는길</a></li>
</ul>
<? } elseif ($bc_array[2] == "careers") { ?>
<span>
<?= $file_name == "talent" ? "인재상" : "" ?>
<?= $file_name == "benefit" ? "복리후생" : "" ?>
<?= $file_name == "recruit" ? "채용정보" : "" ?>
</span>
<ul>
<li><a href="/ko/careers/talent.php">인재상</a></li>
<li><a href="/ko/careers/benefit.php">복리후생</a></li>
<li><a href="/ko/careers/recruit.php">채용정보</a></li>
</ul>
<? };
?>
</div><!-- .lnb -->
</div><!-- .forMOB -->
모기 ㄳㄳ
728x90