diff --git a/main.php b/main.php
index 8cf83a08f..027ca2332 100644
--- a/main.php
+++ b/main.php
@@ -9,7 +9,7 @@ include_once('./_head.php');
// 최신글
-$sql = " select bo_table from $g4[board_table] order by gr_id, bo_table ";
+$sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
@@ -17,16 +17,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
+ if(($i % 2 == 1))
+ echo "
";
+ else
+ echo "
";
+
echo latest("neo", $row['bo_table'], 5, 25);
+ echo "
";
}
?>
-
-
diff --git a/skin/latest/neo/latest.skin.php b/skin/latest/neo/latest.skin.php
index f7dfd2331..74285319c 100644
--- a/skin/latest/neo/latest.skin.php
+++ b/skin/latest/neo/latest.skin.php
@@ -2,39 +2,36 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
-
+ // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
+ // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
+
+ if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
+ if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
+ if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
+ if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
+ if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
+ ?>
+
+ } ?>
+
+ if (count($list) == 0) { //게시물이 없을 때 ?>
+
게시물이 없습니다.
+ } ?>
+