무었이 문제냐면..분류랑 다 보이는데.. 나열되게 했는데..
로그인을 풀고 비회원으로 보니까 분류목록이 안보이더라구요...
ㅠ ㅁ ㅠ 이부분 어떻게 비회원도 분류 목록을 볼수 없을까요????ㅠ
아래 리스트 부분에 한부분 입니다 ㅠ
<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>
<? } ?>
댓글 2개
이렇게 되어야 할 것 같네요:
[code]
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<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>
[/code]
[code]
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<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>
[/code]
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기