가로 카테고리를 넣었는데요 .. 정보
가로 카테고리를 넣었는데요 ..본문
아래 소스를 이용해서 가로 카테고리를 넣었는데요 한줄로 쪽 내려가게 됩니다.
어느부분을 수정해야 그림 아래 쪽 처럼 될까요 답변좀 부탁드립니다.
<!-- 분류 가로카테고리형, 게시물 몇건, 관리자화면 링크 -->
<? if ($admin_href) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25"> </tr>
<tr height="25">
<td 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>
<tr><td height=5></td></tr>
</table>
<?}?>
<? if ($is_category) { ?>
<table width="100%" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDDDDD">
<tr bgcolor="#F6F6F6">
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table='$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name='$arr[$i]' and wr_comment >=0 ";
$row1 = sql_fetch($sql1);
$str .= "<a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a> ";
if ($cnt%$board[bo_7] == 0) {
$cnt = 0; $str .= "<br>";
}
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<td width="100%" style='word-break:break-all;padding-left:10px;' valign='middle'><font size=2 color=#666666><b><?=$board[bo_4]?></b></font> <a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>&mode=subject'><span class="style1">전체등록제품</span> : <?=$Total_Cat?> </a>
<? if ($admin_href) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25"> </tr>
<tr height="25">
<td 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>
<tr><td height=5></td></tr>
</table>
<?}?>
<? if ($is_category) { ?>
<table width="100%" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDDDDD">
<tr bgcolor="#F6F6F6">
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table='$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name='$arr[$i]' and wr_comment >=0 ";
$row1 = sql_fetch($sql1);
$str .= "<a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a> ";
if ($cnt%$board[bo_7] == 0) {
$cnt = 0; $str .= "<br>";
}
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>
<td width="100%" style='word-break:break-all;padding-left:10px;' valign='middle'><font size=2 color=#666666><b><?=$board[bo_4]?></b></font> <a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>&mode=subject'><span class="style1">전체등록제품</span> : <?=$Total_Cat?> </a>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" style='word-break:break-all;line-height:170%;padding-left:10px;' valign='middle'><?=$str?></td>
</tr>
<tr bgcolor="#F6F6F6">
<td width="100%" height="5"></td>
</tr>
</table>
<div style='height:5px;'></div>
<? } ?>
<!-- 분류 셀렉트 박스형, 게시물 몇건, 관리자화면 링크 -->
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" style='word-break:break-all;line-height:170%;padding-left:10px;' valign='middle'><?=$str?></td>
</tr>
<tr bgcolor="#F6F6F6">
<td width="100%" height="5"></td>
</tr>
</table>
<div style='height:5px;'></div>
<? } ?>
<!-- 분류 셀렉트 박스형, 게시물 몇건, 관리자화면 링크 -->
댓글 전체

if ($cnt%$board[bo_7] == 0) {
$cnt = 0; $str .= "<br>";
}
이부분을 삭제하면 되지 않을까요~?
$cnt = 0; $str .= "<br>";
}
이부분을 삭제하면 되지 않을까요~?

게시판관리의 여분필드 7에 가로갯수 숫자를 넣어주세요,.,
5 를 넣으면 한줄에 다섯개씩 나오게 됩니다..^^
5 를 넣으면 한줄에 다섯개씩 나오게 됩니다..^^
감사합니다.
이런것도 있답니다. ^^
<?for ($i=1; $row_cate = sql_fetch_array($result_board); $i++) {?>
<td width="250" height=25 align="left"
<?if($i%2 == '0' ){?>bgcolor="white"<?} else{?>bgcolor="#E7E7E7"<?}?>
height="20"><img src="<?=$board_skin_path?>/img/plus.gif" border="0"> <a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row_cate[bo_table]?>"><?=$row_cate[bo_subject]?></a></td>
<?if($i%3 =='0'){
echo '<tr>';
}
?>
<?}
?>
<?for ($i=1; $row_cate = sql_fetch_array($result_board); $i++) {?>
<td width="250" height=25 align="left"
<?if($i%2 == '0' ){?>bgcolor="white"<?} else{?>bgcolor="#E7E7E7"<?}?>
height="20"><img src="<?=$board_skin_path?>/img/plus.gif" border="0"> <a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$row_cate[bo_table]?>"><?=$row_cate[bo_subject]?></a></td>
<?if($i%3 =='0'){
echo '<tr>';
}
?>
<?}
?>
PhotoFly 님 감사합니다. 더 좋은 답을 주셨는데 윗분께 포인트를 드렸네요 ^^;
두분다 답변 주셔서 감사합니다.
두분다 답변 주셔서 감사합니다.

포인트 벌기위한 답변이 아니니 괜찮아유 ~~~ ^^