서브메뉴 만들기 팁 > 그누4 팁자료실

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

그누4 팁자료실

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

서브메뉴 만들기 팁 정보

서브메뉴 만들기 팁

본문

별거는아니구요 페이지마다 서브메뉴를 

require"submenu.php";
하나로 끝내는 방법인데걍 제가 쓰던거 짤라서 올려봅니다. 보시면 대충요롷게했구나하는거만보시묜 도움이 될거 가테요

http://58.146.212.151/

여기사이트에서 쓰는 서브메뉴에요 함보세욧 개인섭이라 접속안될수도있어요 작업중이라서리요

<?
$sub_clan_ok = substr($bo_table,0,5);
if($sub_clan_ok == "clan_")
{
 //바로기기에 클랜게시판을 등록했을때 서브메뉴와 서브타이틀이 클랜명인식을 못하기때문에
 //clan_xxxx_1 의 $bo_table 변수에서 클랜명인 xxxx를 추출
 $str=str_replace("clan_","",$bo_table);
 $str=str_replace("_1","",$str);
 $str=str_replace("_2","",$str);
 $str=str_replace("_3","",$str);
 if(!$clan&&$bo_table!=="clan_admin_mainpage")$clan=$str;
 }

if ($sidemenu=="news"||$bo_table =="news" ||$bo_table =="notice"||$bo_table =="help"||$bo_table =="emnotice")
{
 if($sidemenu =="news")$bold1 = "<b>";$bold1_end="</b>";
 if($bo_table =="notice")$bold2 = "<b>";$bold2_end="</b>";
 if($bo_table =="help")$bold3 = "<b>";$bold3_end="</b>";
 if($bo_table =="emnotice")$bold4 = "<b>";$bold4_end="</b>";

 echo"
<br>
<table width=100% cellspacing=0 cellpadding=0>
<tr><td colspan=2><img src=block.gif> <img src=news.gif></td></tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/news.php?sidemenu=news>$bold1 SC뉴스 $bold1_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=notice>$bold2 공지사항$bold2_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=help>$bold3 도움말$bold3_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=emnotice>$bold4 긴급공지$bold4_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>

</table><br><br>
<img src=naver.gif width=198 style=\"border:1px #999999 solid;\">
";
}
if ($sidemenu=="laboratory"||$bo_table =="laboratory"||$bo_table =="strategy"||$bo_table =="ps_labor"||$bo_table =="user_labor")
{
 if($bo_table =="strategy")$bold1 = "<b>";$bold1_end="</b>";
 if($bo_table =="ps_labor")$bold2 = "<b>";$bold2_end="</b>";
 if($bo_table =="user_labor")$bold3 = "<b>";$bold3_end="</b>";
 if($bo_table =="laboratory"&&$wr_id =="1")$bold4 = "<b>";$bold4_end="</b>";
 if($bo_table =="laboratory"&&$wr_id =="2")$bold5 = "<b>";$bold5_end="</b>";
 if($bo_table =="laboratory"&&$wr_id =="3")$bold6 = "<b>";$bold6_end="</b>";

 echo"
<br>
<table width=100% cellspacing=0 cellpadding=0>
<tr><td colspan=2><img src=block.gif> <a href=$g4[path]/laboratory.php?sidemenu=laboratory><img src=sc.gif></a></td></tr>

<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=strategy>$bold1 전략연구소$bold1_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=ps_labor>$bold2 ps실험실$bold2_end                               
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=user_labor>$bold3 유저실험실$bold3_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=laboratory&wr_id=1>$bold4 시스템및 단축키$bold4_end                      
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=laboratory&wr_id=2>$bold5 종족정보$bold5_end                                 
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=laboratory&wr_id=3>$bold6 유닛정보$bold6_end                                 
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>

</table>
";
}
if ($bo_table =="free")
{
 if(!$sca)$bold = "<b>";$bold_end="</b>";
 if($sca=="전략")$bold1 = "<b>";$bold1_end="</b>";
 if($sca=="짤방")$bold2 = "<b>";$bold2_end="</b>";
 if($sca=="홍보")$bold3 = "<b>";$bold3_end="</b>";
 if($sca=="테란")$bold4 = "<b>";$bold4_end="</b>";
 if($sca=="저그")$bold5 = "<b>";$bold5_end="</b>";
 if($sca=="프로토스")$bold6 = "<b>";$bold6_end="</b>";
 if($sca=="빌드오더")$bold7 = "<b>";$bold7_end="</b>";
 if($sca=="팀플레이")$bold8 = "<b>";$bold8_end="</b>";
 if($sca=="게임팁")$bold9 = "<b>";$bold9_end="</b>";
 if($sca=="기타")$bold10 = "<b>";$bold10_end="</b>";
 if($sca=="버그")$bold11 = "<b>";$bold11_end="</b>";
 if($sca=="맵연구")$bold12 = "<b>";$bold12_end="</b>";
 if($sca=="프로게이머")$bold13 = "<b>";$bold13_end="</b>";

 

 //if(!$sca=="전략")$bold4 = "<img src=arrows.gif><b>";$bold4_end="</b>";

 echo"<br>
<table width=100% cellspacing=0 cellpadding=0>
<tr><td><img src=block.gif> <a href=$g4[path]/bbs/board.php?bo_table=free><img src=free.gif></a></td></tr>
<tr><td height=1 bgcolor=#cccccc></td></tr>
<tr><td><span style=line-height=180%;letter-spacing:1px;TEXT-ALIGN: justify><a href=./board.php?bo_table=free&sca=>$bold 전체$bold_end</a><a href=./board.php?bo_table=free&sca=전략>$bold1 전략$bold1_end</a><a href=./board.php?bo_table=free&sca=짤방>$bold2 짤방$bold2_end</a><a href=./board.php?bo_table=free&sca=홍보>$bold3 홍보$bold3_end</a><a href=./board.php?bo_table=free&sca=테란>$bold4 테란$bold4_end</a><a href=./board.php?bo_table=free&sca=저그>$bold5 저그$bold5_end</a><a href=./board.php?bo_table=free&sca=프로토스>$bold6 프로토스$bold6_end</a><a href=./board.php?bo_table=free&sca=빌드오더>$bold7 빌드오더$bold7_end</a><a href=./board.php?bo_table=free&sca=팀플레이>$bold8 팀플레이$bold8_end</a><br><a href=./board.php?bo_table=free&sca=게임팁>$bold9 게임팁$bold9_end</a><a href=./board.php?bo_table=free&sca=버그>$bold11 버그$bold11_end</a><a href=./board.php?bo_table=free&sca=맵연구>$bold12 맵연구$bold12_end</a><a href=./board.php?bo_table=free&sca=프로게이머>$bold13 프로게이머$bold13_end</a><a href=./board.php?bo_table=free&sca=기타>$bold10 기타$bold10_end</a></span></td></tr>
</table>

<br>
<table width=100%  cellspacing=0 cellpadding=0>
<tr><td><img src=block.gif> <img src=free_help.gif></td></tr>
<tr><td height=1 bgcolor=#cccccc></td></tr>
<tr><td><a href=#  onmouseover=previewShow(event,this,'1');><img src=arrows.gif>이미지를 링크시키려면?</a></td></tr>
<tr><td><span style=display:none><div id=1 class=none>
sdfsdfsdfsdfdfsdfsdfs<br><br>ldkjfsldfjl;asjflsjdflskhfhfkljahflkhslfkjhasfkljhas<br><br>dkjhaslfkjhaslkjfhaslhfajdhfjdhfljdhfsadfasdfasdfsadfasdfasfsa

</div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'2');><img src=arrows.gif>동영상을 링크시키려면?</a><span style=display:none><div id=2 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'3');><img src=arrows.gif>편리한 스크랩기능을 써보세요.</a></td></tr>
<tr><td><span style=display:none><div id=3 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'4');><img src=arrows.gif>편리한 검색기능을 써보세요.</a></td></tr>
<tr><td><span style=display:none><div id=4 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'5');><img src=arrows.gif>회원에게 쪽지를 보낼수 있어요.</a></td></tr>
<tr><td><span style=display:none><div id=5 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'6');><img src=arrows.gif>베넷ID로 글을 검색할수 있어요.</a></td></tr>
<tr><td><span style=display:none><div id=6 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'7');><img src=arrows.gif>클랜명으로 글을 검색할수 있어요.</a></td></tr>
<tr><td><span style=display:none><div id=7 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'8');><img src=arrows.gif>자료이용에 질문은 물어보세요.</a></td></tr>
<tr><td><span style=display:none><div id=8 class=none></div></span></td></tr>

<tr><td><a href=#  onmouseover=previewShow(event,this,'9');><img src=arrows.gif>추가기능을 요청하세요.</a></td></tr>
<tr><td><span style=display:none><div id=9 class=none></div></span></td></tr>

</table>
<br><br>


<table width=100% cellspacing=0 cellpadding=0>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=free&sca=&sfl=mb_id%2C1&stx=$member[mb_id]&sop=and>내글보기                                  
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>

<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td><a href=$g4[path]/bbs/board.php?bo_table=free&sca=&sfl=mb_id%2C1&stx=$member[mb_id]&sop=and>질문하기                                  </td></td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>

<tr height=28><td colspan=2>
자유게시판 검색
<form method=get style=margin:0px;>
<input type=hidden name=bo_table value=$bo_table>
<input type=hidden name=sca      value=$sca>
<input type=hidden name=sfl      value='wr_subject||wr_content||mb_id||wr_1||wr_2||wr_3||wr_name'>
<input name=stx maxlength=15 itemname=검색어 required value='$stx' style='width:150px;background-color:#f6f6f6;border:1px solid #7f9db9; height:21px;'>
<input type=image src=$board_skin_path/img/btn_search.gif border=0 align=absmiddle>
</form>
</td></tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>

</table>
";
}
if ($bo_table =="pds"||$sidemenu=="pds"||$bo_table =="util"||$bo_table =="patch"||$bo_table =="map")
{
 //if($sidemenu =="pds")$bold1 = "<b>";$bold1_end="</b>";
 if($bo_table =="util")$bold2 = "<b>";$bold2_end="</b>";
 if($bo_table =="patch")$bold3 = "<b>";$bold3_end="</b>";
 if($bo_table =="replay")$bold4 = "<b>";$bold4_end="</b>";
 if($bo_table =="map")$bold5 = "<b>";$bold5_end="</b>";

 echo"
<br>
<table width=100% cellspacing=0 cellpadding=0>
<tr><td colspan=2><img src=block.gif> <a href=$g4[path]/pds.php?sidemenu=pds><img src=pds.gif></a></td></tr>

<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=util>$bold2 유틸리티$bold2_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=patch>$bold3 패치$bold3_end                                 
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=replay>$bold4 리플레이 $bold4_end                             
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>
<tr height=28><td>
<a href=$g4[path]/bbs/board.php?bo_table=map>$bold5 맵$bold5_end                        
</a>
</td>
<td align=right ><img src=s_arrow.gif>  </td>
</tr>
<tr><td height=1 bgcolor=#cccccc colspan=2></td></tr>

</table>
";
}

추천
0

댓글 1개

전체 3,313 |RSS
그누4 팁자료실 내용 검색

회원로그인

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