목록에 번호를 세로로... > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

목록에 번호를 세로로... 정보

목록에 번호를 세로로...

본문

현재 첨부된 이미지처럼... 번호가 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>";
} ?>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로