Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -132,14 +132,19 @@ if ($sca || $stx) {
|
||||
|
||||
//if ($prev_spt >= $min_spt)
|
||||
$prev_spt = $spt - $config['cf_search_part'];
|
||||
if (isset($min_spt) && $prev_spt >= $min_spt)
|
||||
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
||||
$prev_part_href = './board.php?bo_table='.$bo_table.$qstr.'&spt='.$prev_spt.'&page=1';
|
||||
$write_pages = page_insertbefore($write_pages, '<a href="'.$prev_part_href.'">이전검색</a>');
|
||||
}
|
||||
|
||||
$next_spt = $spt + $config['cf_search_part'];
|
||||
if ($next_spt < 0)
|
||||
if ($next_spt < 0) {
|
||||
$next_part_href = './board.php?bo_table='.$bo_table.$qstr.'&spt='.$next_spt.'&page=1';
|
||||
$write_pages = page_insertafter($write_pages, '<a href="'.$next_part_href.'">다음검색</a>');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$write_href = '';
|
||||
if ($member['mb_level'] >= $board['bo_write_level']) {
|
||||
$write_href = './write.php?bo_table='.$bo_table;
|
||||
|
||||
@ -9,8 +9,9 @@ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
|
||||
header ul, nav ul, footer ul {margin:0;padding:0;list-style:none}
|
||||
label, input, select, img {vertical-align:middle}
|
||||
input {margin:0;padding:0;font-family:"dotum"}
|
||||
p {margin:0;padding:10px 0;line-height:1.5em;word-break:break-all}
|
||||
p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all}
|
||||
hr {display:none}
|
||||
pre {overflow-x:scroll}
|
||||
|
||||
/* 웹접근성 스킬 --- 기본 block 속성에는 적용 안됨*/
|
||||
.sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
@ -246,7 +247,7 @@ table a {color:#000;text-decoration:none}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v_title {}
|
||||
#bo_v {position:relative;margin-bottom:30px;border-top:5px solid #666;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
|
||||
#bo_v {position:relative;margin-bottom:10px;border-top:5px solid #666;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
|
||||
#bo_v a {color:#000;text-decoration:none}
|
||||
#bo_v_h1 {padding:20px 20px 10px;font-size:1.2em}
|
||||
#bo_v_info {padding:0 0 15px;border-bottom:1px solid #eee}
|
||||
@ -282,10 +283,10 @@ table a {color:#000;text-decoration:none}
|
||||
#bo_v_bot {zoom:1}
|
||||
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_bot h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_bot ul {padding:0 20px 15px;list-style:none}
|
||||
#bo_v_nb {float:left;margin:10px 0}
|
||||
#bo_v_bot ul {margin:0;padding:0 0 15px;list-style:none}
|
||||
#bo_v_nb {float:left}
|
||||
#bo_v_nb li {float:left;margin-right:5px}
|
||||
.bo_v_com {float:right;margin:10px 0}
|
||||
.bo_v_com {float:right}
|
||||
.bo_v_com li {float:left;margin-left:5px}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
@ -296,7 +297,7 @@ table a {color:#000;text-decoration:none}
|
||||
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
|
||||
#bo_vc header span {}
|
||||
#bo_vc h1 {display:inline-block;margin:15px 0 5px}
|
||||
#bo_vc h1 {display:inline-block;margin:15px 10px 5px 0}
|
||||
#bo_vc a {color:#000;text-decoration:none}
|
||||
#bo_vc p {padding:0 0 5px;line-height:1.8em}
|
||||
#bo_vc fieldset {margin:0 0 10px;padding:0}
|
||||
|
||||
@ -51,6 +51,21 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
return "";
|
||||
}
|
||||
|
||||
// 페이징 코드의 <div><span> 태그 다음에 코드를 삽입
|
||||
function page_insertbefore($paging_html, $insert_html)
|
||||
{
|
||||
if ($paging_html) {
|
||||
return preg_replace("/^(<div[^>]+><span[^>]+>)/", '$1'.$insert_html, $paging_html);
|
||||
}
|
||||
}
|
||||
|
||||
// 페이징 코드의 </span></div> 태그 이전에 코드를 삽입
|
||||
function page_insertafter($paging_html, $insert_html)
|
||||
{
|
||||
if ($paging_html) {
|
||||
return preg_replace("/(<\/span><\/div>)$/", $insert_html.'$1', $paging_html);
|
||||
}
|
||||
}
|
||||
|
||||
// 변수 또는 배열의 이름과 값을 얻어냄. print_r() 함수의 변형
|
||||
function print_r2($var)
|
||||
|
||||
@ -156,9 +156,7 @@ if ($is_nogood) $colspan++;
|
||||
<? } ?>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<? if ($prev_part_href) { echo '<a href="'.$prev_part_href.'">이전검색</a>'; } ?>
|
||||
<?=$write_pages?>
|
||||
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
||||
<? echo $write_pages; ?>
|
||||
|
||||
<script>
|
||||
<? if ($sca) { echo "document.fcategory.sca.value = \"$sca\";"; } ?>
|
||||
|
||||
@ -144,21 +144,21 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once('./view_comment.php');
|
||||
?>
|
||||
|
||||
<aside id="bo_v_bot">
|
||||
<h2>게시물 하단 버튼</h2>
|
||||
<? if ($prev_href || $next_href) { ?>
|
||||
<ul id="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>
|
||||
<? } ?>
|
||||
|
||||
<!-- 링크 버튼 -->
|
||||
<?=$link_buttons?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<aside id="bo_v_bot">
|
||||
<h2>게시물 하단 버튼</h2>
|
||||
<? if ($prev_href || $next_href) { ?>
|
||||
<ul id="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>
|
||||
<? } ?>
|
||||
|
||||
<!-- 링크 버튼 -->
|
||||
<?=$link_buttons?>
|
||||
</aside>
|
||||
|
||||
<script>
|
||||
function file_download(link, file) {
|
||||
<? if ($board['bo_download_point'] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
|
||||
|
||||
2
tail.php
2
tail.php
@ -8,7 +8,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<footer id="ft">
|
||||
<h1><?=$config['cf_title']?> 정보</h1>
|
||||
<?=popular('neo',100); // 인기검색어 ?>
|
||||
<?=popular('neo'); // 인기검색어 ?>
|
||||
<?=visit("neo"); // 방문자수 ?>
|
||||
<div id="ft_catch"><img src="<?=$g4['path']?>/img/ft_catch.jpg" alt="Sharing All Possibilities"></div>
|
||||
<div id="ft_copy">
|
||||
|
||||
Reference in New Issue
Block a user