[제목에 new아이콘 보이기] 3.0버전에서 게시판 제목
<!-- 게시판 목록 시작 -->
<p style="line-height:3px; margin-top:0; margin-bottom:0;"> </p>
<?
$sqlgr = " select * from $cfg[table_group] where gr_id = 'yes'";
$resgr = sql_query($sqlgr);
while ($rowgr = mysql_fetch_array($resgr)) {
echo " <table width=100% border=0 cellpadding=0 cellspacing=1>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
<tr class='subject subjectbg ht' height=30><td height=22 align=center><b> ☞ $rowgr[gr_subject]</b></td></tr>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
<tr><td height=3></td></tr>
</table>";
$sqlbo = " select * from $cfg[table_board] where gr_id = '$rowgr[gr_id]' order by bo_table ";
$resbo = sql_query($sqlbo);
while ($rowbo = mysql_fetch_array($resbo)) {
$result = sql_query(" select * from {$cfg[write_table_prefix]}{$rowbo[bo_table]} where wr_comment = 0 order by wr_id");
$row = mysql_fetch_array($result);
$icon_new = "";
if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $rowbo[bo_new] * 3600))
$icon_new = "<img src='./$cfg[bbs_dir]/skin/basic/icon_new.gif' align=absmiddle border=0>";
echo " <table width=100% border=0 cellpadding=0 cellspacing=1>
<tr bgcolor='#ffffff' height=19><td height=19 align=left> → <a href='./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$rowbo[bo_table]'>$rowbo[bo_subject]$icon_new</a></td></tr>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
</table>";
}
mysql_free_result($resbo);
}
mysql_free_result($resgr);
?>
<!-- 게시판 목록 끝 -->
<p style="line-height:3px; margin-top:0; margin-bottom:0;"> </p>
<?
$sqlgr = " select * from $cfg[table_group] where gr_id = 'yes'";
$resgr = sql_query($sqlgr);
while ($rowgr = mysql_fetch_array($resgr)) {
echo " <table width=100% border=0 cellpadding=0 cellspacing=1>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
<tr class='subject subjectbg ht' height=30><td height=22 align=center><b> ☞ $rowgr[gr_subject]</b></td></tr>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
<tr><td height=3></td></tr>
</table>";
$sqlbo = " select * from $cfg[table_board] where gr_id = '$rowgr[gr_id]' order by bo_table ";
$resbo = sql_query($sqlbo);
while ($rowbo = mysql_fetch_array($resbo)) {
$result = sql_query(" select * from {$cfg[write_table_prefix]}{$rowbo[bo_table]} where wr_comment = 0 order by wr_id");
$row = mysql_fetch_array($result);
$icon_new = "";
if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $rowbo[bo_new] * 3600))
$icon_new = "<img src='./$cfg[bbs_dir]/skin/basic/icon_new.gif' align=absmiddle border=0>";
echo " <table width=100% border=0 cellpadding=0 cellspacing=1>
<tr bgcolor='#ffffff' height=19><td height=19 align=left> → <a href='./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$rowbo[bo_table]'>$rowbo[bo_subject]$icon_new</a></td></tr>
<tr><td height=1 background='./$cfg[bbs_dir]/line.gif'></td></tr>
</table>";
}
mysql_free_result($resbo);
}
mysql_free_result($resgr);
?>
<!-- 게시판 목록 끝 -->
첨부파일
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 3개
팁을 사용하시는 분들이 경로를 본인에게 맞게 설정하시면 될 듯 싶네요......*^^*
답변 감사^^*
초보를 위해 간단하게 설명 부탁 합니다