최근게시물 스킨

This commit is contained in:
whitedot
2012-12-04 16:35:21 +09:00
parent 402dcbfe5d
commit 994cfd2059
2 changed files with 26 additions and 30 deletions

View File

@ -13,6 +13,13 @@ g4s 강좌 홈페이지에 오신 것을 환영합니다.
<a href="<?=$g4['path']?>/bbs/board.php?bo_table=1">테스트용 게시판</a>
</p>
<?=latest("neo",1,5)?>
<?=latest("neo",1,5)?>
<?=latest("neo",1,5)?>
<?=latest("neo",1,5)?>
<?=latest("neo",1,5)?>
<?=latest("neo",1,5)?>
<?
include_once('./_tail.php');
?>

View File

@ -2,33 +2,22 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>'><?=$board['bo_subject']?></a></strong></td>
<td width=37 background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
<td width=14><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
<div>
<strong><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$board['bo_subject']?></a></strong>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
echo $list[$i]['icon_reply']." ";
echo "<a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
echo "<strong>".$list[$i]['subject']."<strong>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo $list[$i]['subject'];
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
echo " <a href=\"{$list[$i]['comment_href']}\">".$list[$i]['comment_cnt']."</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
@ -38,12 +27,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?>2</td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
?>
</li>
<? } ?>
<? if (count($list) == 0) { //게시물이 없을 때 ?>
<li>게시물이 없습니다.</li>
<? } ?>
</ul>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>">더보기</a>
</div>