사용자: 전체스타일

This commit is contained in:
whitedot
2013-02-06 11:00:22 +09:00
parent b02e6f87bb
commit dc108a4205
7 changed files with 60 additions and 57 deletions

View File

@ -26,6 +26,34 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
}
?>
<nav id="bo_v_top">
<h2>게시물 상단 버튼</h2>
<?
ob_start();
?>
<? if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>" class="btn02">이전글</a></li><? } ?>
<? if ($next_href) { ?><li><a href="<?=$next_href?>" class="btn02">다음글</a></li><? } ?>
</ul>
<? } ?>
<ul class="bo_v_com">
<? if ($update_href) { ?><li><a href="<?=$update_href?>" class="btn02">수정</a></li><? } ?>
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" onclick="del(this.href); return false;" class="btn02">삭제</a></li><? } ?>
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" onclick="board_move(this.href); return false;" class="btn03">복사</a></li><? } ?>
<? if ($move_href) { ?><li><a href="<?=$move_href?>" onclick="board_move(this.href); return false;" class="btn03">이동</a></li><? } ?>
<? if ($search_href) { ?><li><a href="<?=$search_href?>" class="btn02">검색</a></li><? } ?>
<li><a href="<?=$list_href?>" class="btn02">목록</a></li>
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>" class="btn02">답변</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
</ul>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</nav>
<? if($cnt) { ?>
<section id="bo_v_file">
<h2>첨부파일</h2>
@ -81,47 +109,21 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</section>
<? } ?>
<nav id="bo_v_top">
<h2>게시물 상단 버튼</h2>
<?
ob_start();
?>
<? if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>" class="btn02">이전글</a></li><? } ?>
<? if ($next_href) { ?><li><a href="<?=$next_href?>" class="btn02">다음글</a></li><? } ?>
</ul>
<? } ?>
<ul class="bo_v_com">
<? if ($update_href) { ?><li><a href="<?=$update_href?>" class="btn02">수정</a></li><? } ?>
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" onclick="del(this.href); return false;" class="btn02">삭제</a></li><? } ?>
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" onclick="board_move(this.href); return false;" class="btn03">복사</a></li><? } ?>
<? if ($move_href) { ?><li><a href="<?=$move_href?>" onclick="board_move(this.href); return false;" class="btn03">이동</a></li><? } ?>
<? if ($search_href) { ?><li><a href="<?=$search_href?>" class="btn02">검색</a></li><? } ?>
<li><a href="<?=$list_href?>" class="btn02">목록</a></li>
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>" class="btn02">답변</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
</ul>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</nav>
<article id="bo_v_atc">
<header>
<h1>본문</h1>
</header>
<div id="bo_v_img">
<?
// 파일 출력
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view'])
echo $view['file'][$i]['view'];
<?
// 파일 출력
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
if ($i == 0) echo "<div id=\"bo_v_img\">";
echo $view['file'][$i]['view'];
if ($i == 0) echo "</div>";
}
?>
</div>
}
?>
<div id="bo_v_con"><?=$view['content'];?></div>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>

View File

@ -24,7 +24,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str);
?>
<article id="c_<?=$comment_id?>" <?if ($cmt_depth) {?>style="margin-left:<?=$cmt_depth?>px;border-top-color:#eee"<?}?>>
<article id="c_<?=$comment_id?>" <?if ($cmt_depth) {?>style="margin-left:<?=$cmt_depth?>px;border-top-color:#e0e0e0"<?}?>>
<header>
<h1><?=$list[$i]['wr_name']?>님의 댓글</h1>
<?=$list[$i]['name']?>

View File

@ -1,5 +1,6 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 회원수는 $row['mb_cnt'];
?>
<strong><?=$row['total_cnt']?></strong>명 중 회원 <?=$row['mb_cnt']?>
<?=$row['total_cnt']?>명