메뉴중에서 특정메뉴의 경우 관리자만 볼수 있도록 설정할수있을가요?
본문
메뉴중에서 특정메뉴의 경우 관리자만 볼수 있도록 설정할수있을가요?
정확히 말슴을 들이면
일반회원이 로그인했을경우에는 나타나지 않는데
관리자가 로그인을 했을때 특정 게시판으로 이동하는 메뉴가 나타나도록 하고 싶거든요^^*
어떻게 고치면 될까요?
<td height="20" valign="top" bgcolor="#eef2f3" onmouseover=this.style.backgroundColor='#5fa2f1';this.style.color='#ffffff' onmouseout=this.style.backgroundColor='';this.style.color='' style="cursor:hand;" onclick="location.href='<?=$g4['path']?>/bbs/board.php?bo_table=bamstorytop'">관리자페이지</td>
답변 2
<?php if($is_admin){?>
<td height="20" valign="top" bgcolor="#eef2f3" onmouseover=this.style.backgroundColor='#5fa2f1';this.style.color='#ffffff' onmouseout=this.style.backgroundColor='';this.style.color='' style="cursor:hand;" onclick="location.href='<?=$g4['path']?>/bbs/board.php?bo_table=bamstorytop'">관리자페이지</td>
<?php } >?
오늘 만들어 보았습니다. 참고하세요.
https://sir.kr/g5_tip/12948?sfl=wr_subject%7C%7Cwr_content&stx=%EB%A9%94%EB%89%B4&page=1