메인 최글글 margin 처리 부분 재수정
This commit is contained in:
12
main.php
12
main.php
@ -17,17 +17,17 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
|
|
||||||
// 사용방법
|
// 사용방법
|
||||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||||
if(($i % 2 == 1))
|
|
||||||
echo "<div class=\"lt\" style=\"margin-left: 20px;\">";
|
|
||||||
else
|
|
||||||
echo "<div class=\"lt\">";
|
|
||||||
|
|
||||||
echo latest("neo", $row['bo_table'], 5, 25);
|
echo latest("neo", $row['bo_table'], 5, 25);
|
||||||
echo "</div>";
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!-- 메인화면 최신글 끝 -->
|
<!-- 메인화면 최신글 끝 -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$(".lt:odd").css("margin-left", "20px");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./_tail.php');
|
include_once('./_tail.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div class="lt">
|
||||||
<strong class="lt_title"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$bo_subject?></a></strong>
|
<strong class="lt_title"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$bo_subject?></a></strong>
|
||||||
<ul>
|
<ul>
|
||||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||||
@ -35,3 +36,4 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
<p>게시물이 없습니다.</p>
|
<p>게시물이 없습니다.</p>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<div class="lt_more"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/icon_more.gif" alt=""></a></div>
|
<div class="lt_more"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/icon_more.gif" alt=""></a></div>
|
||||||
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user