목록에 번호를 세로로... 정보
목록에 번호를 세로로...
본문
현재 첨부된 이미지처럼... 번호가 1-1, 1-2, 1-3, 1-4... 이렇게 되었는데...
1-1 2-1 ...
1-2 2-2
1-3 2-3
1-4 2-4
1-5 2-5
이런식으로 나오려고 하려면 어떤 부분을 수정해야 할까요?
<? {
echo "<table cellpadding='5' cellspacing='5' style='padding:0 0 0 0;' width='98%'>";
$wr_2 = explode("|",$board[bo_2]);
$ca_td_num = "6";
for ($c=0, $cnt=count($wr_2); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
echo "<td align=center bgcolor=#e2e2e2 height=100><font color=#60491B></font> ";
if ($sca == $wr_2[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_2 = '$wr_2[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/write.php?bo_table=".$bo_table."&sca=".urlencode($wr_2[$c])."'>";
echo $bcoral.$wr_2[$c]."<br><img src='../skin/board/exe_skin/img/btn_reserve.gif' border='0'></a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
1-1 2-1 ...
1-2 2-2
1-3 2-3
1-4 2-4
1-5 2-5
이런식으로 나오려고 하려면 어떤 부분을 수정해야 할까요?
<? {
echo "<table cellpadding='5' cellspacing='5' style='padding:0 0 0 0;' width='98%'>";
$wr_2 = explode("|",$board[bo_2]);
$ca_td_num = "6";
for ($c=0, $cnt=count($wr_2); $c<$cnt; $c++) {
if (($c == "0") || (($c >= $ca_td_num) && ($c % $ca_td_num == "0"))) { echo "<tr>"; }
echo "<td align=center bgcolor=#e2e2e2 height=100><font color=#60491B></font> ";
if ($sca == $wr_2[$c]) { $bcoral = "<b style='color:coral'>"; } else { $bcoral = ""; }
$sqlCnum = " select count(*) as Cnum from $write_table where wr_2 = '$wr_2[$c]'";
$rowCnum = sql_fetch($sqlCnum);
echo "<a href='".$g4['bbs_path']."/write.php?bo_table=".$bo_table."&sca=".urlencode($wr_2[$c])."'>";
echo $bcoral.$wr_2[$c]."<br><img src='../skin/board/exe_skin/img/btn_reserve.gif' border='0'></a>";
echo "</td>";
}
echo "</tr></table>";
} ?>
댓글 전체
게시판 환경설정 2번째 추가필드를 보세요.
도움이 되었습니다....