로그인안한 비회원도 분류 가보이게.. 정보
로그인안한 비회원도 분류 가보이게..첨부파일
본문
무었이 문제냐면..분류랑 다 보이는데.. 나열되게 했는데..
로그인을 풀고 비회원으로 보니까 분류목록이 안보이더라구요...
ㅠ ㅁ ㅠ 이부분 어떻게 비회원도 분류 목록을 볼수 없을까요????ㅠ
아래 리스트 부분에 한부분 입니다 ㅠ
<table width="100%" height="45" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 제품등록수
<p align=right><font class=w_font>총 <?=number_format($total_count)?>개의 제품 등록</font></p> -->
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<? if ($admin_href) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<?
if ($is_category) {
$arr = array();
$arr[] = "<a href='?bo_table=$bo_table'>전체</a> ($board[bo_count_write])";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> ($row[cnt])";
}
$str = implode(" | ", $arr);
echo $str;
}
?>
</td>
<td height=25 align="right"><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a></td>
</tr>
</table>
<? } ?>
로그인을 풀고 비회원으로 보니까 분류목록이 안보이더라구요...
ㅠ ㅁ ㅠ 이부분 어떻게 비회원도 분류 목록을 볼수 없을까요????ㅠ
아래 리스트 부분에 한부분 입니다 ㅠ
<table width="100%" height="45" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 제품등록수
<p align=right><font class=w_font>총 <?=number_format($total_count)?>개의 제품 등록</font></p> -->
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<? if ($admin_href) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<?
if ($is_category) {
$arr = array();
$arr[] = "<a href='?bo_table=$bo_table'>전체</a> ($board[bo_count_write])";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> ($row[cnt])";
}
$str = implode(" | ", $arr);
echo $str;
}
?>
</td>
<td height=25 align="right"><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a></td>
</tr>
</table>
<? } ?>
댓글 전체
<? if ($admin_href) { ?>
<?}?>
위부분을 빼주셔야 합니다
<?}?>
위부분을 빼주셔야 합니다
이렇게 되어야 할 것 같네요:
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">
<?
if ($is_category) {
$arr = array();
$arr[] = "<a href='?bo_table=$bo_table'>전체</a> ($board[bo_count_write])";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> ($row[cnt])";
}
$str = implode(" | ", $arr);
echo $str;
}
?>
</td>
<td height=25 align="right"><? if ($admin_href) { ?> <a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><? } ?> </td>
</tr>
</table>