관리자일 경우에만 a href가 작동하게.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

관리자일 경우에만 a href가 작동하게.. 정보

관리자일 경우에만 a href가 작동하게..

본문


<tr> 
         <td width="20" align="right"><img src="<?=$connect_skin_path?>/img/icon.gif" width="14" height="14"></td>
         <td width="170">&nbsp;&nbsp;<a href='<?=$g4['bbs_path']?>/current_connect.php'><strong>동접</strong>: <?=$row['total_cnt']?>명</a></td>
     </tr>

이런 소스코드가 있는데요..

관리자일 경우에만 동접 *명을 누르면 a href태그가 작동하게 하고 싶습니다..

참고로


<tr> 
<td width="20" align="right"><img src="<?=$connect_skin_path?>/img/icon.gif" width="14" height="14"></td> 
<td width="170">&nbsp;&nbsp; 
<? if($is_admin == 'super'){ ?> 
<a href='<?=$g4['bbs_path']?>/current_connect.php'> 
<? } else {?> 
<strong>동접</strong>: <?=$row['total_cnt']?>명</a></td> 
</tr> 
<? } ?> 





<? if($is_admin == 'super'){ ?> 
<a href='<?=$g4['bbs_path']?>/current_connect.php'><strong>동접</strong>: <?=$row['total_cnt']?>명</a> 
<? } else {?> 
<strong>동접</strong>: <?=$row['total_cnt']?>명</a></td> 
</tr> 
<? } ?>


둘다 안됩니다..

댓글 전체


<?php
if($is_admin == 'super'){ 
echo "<a href='$g4[bbs_path]/current_connect.php'>";
} 
echo "<strong>동접</strong>: $row[total_cnt]명";
if($is_admin == 'super'){ 
echo "</a>";
}
?> 

요렇게 해보세요 ㅇㅂㅇ
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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