최신글에서 관리자만 클릭되게끔.. 정보
최신글에서 관리자만 클릭되게끔..본문
<td align="center" width=90><?
$title_list = str_replace("|","",$list[$i][wr_11]) ;// 견적항목출력사항;
$list_ca="";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['wr_8']}</strong>";
else
echo" $list_ca ";
echo cut_str(strip_tags($list[$i]['wr_8']),12,'...') ;
echo "(㎡)</a>";
?></td>
최신글 내용인데요.. 관리자만 클릭을 할수 있게 바꾸고 싶은데
if ($is_admin == 'super') 이런걸로 감싸줘도 잘 안되네요..
부탁드립니다.
$title_list = str_replace("|","",$list[$i][wr_11]) ;// 견적항목출력사항;
$list_ca="";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['wr_8']}</strong>";
else
echo" $list_ca ";
echo cut_str(strip_tags($list[$i]['wr_8']),12,'...') ;
echo "(㎡)</a>";
?></td>
최신글 내용인데요.. 관리자만 클릭을 할수 있게 바꾸고 싶은데
if ($is_admin == 'super') 이런걸로 감싸줘도 잘 안되네요..
부탁드립니다.
댓글 전체
<td align="center" width=90><?
$title_list = str_replace("|","",$list[$i][wr_11]) ;// 견적항목출력사항;
$list_ca="";
if ($is_admin == "super" || $is_auth) {
echo "<a href='{$list[$i]['href']}'>";
}
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['wr_8']}</strong>";
else
echo" $list_ca ";
echo cut_str(strip_tags($list[$i]['wr_8']),12,'...') ;
echo "(㎡)</a>";
?></td>
$title_list = str_replace("|","",$list[$i][wr_11]) ;// 견적항목출력사항;
$list_ca="";
if ($is_admin == "super" || $is_auth) {
echo "<a href='{$list[$i]['href']}'>";
}
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['wr_8']}</strong>";
else
echo" $list_ca ";
echo cut_str(strip_tags($list[$i]['wr_8']),12,'...') ;
echo "(㎡)</a>";
?></td>
알려주신대로 하면 관리자도 클릭이 안되네요...
아.. 해결 됐네요.. latest.lib.php 상단에 global $g4, $is_admin; 이부분 추가해줘야 하네요.. 도움 감사합니다..