사용자: 게시판스킨 전체 디자인 수정 중
This commit is contained in:
42
css/def.css
42
css/def.css
@ -55,12 +55,8 @@ fieldset button:focus,
|
||||
#to_content a:active {padding:10px 0;width:100%;height:auto;background:#333;color:#fff;text-align:center;overflow:auto}
|
||||
|
||||
/* 헤딩 */
|
||||
h1 {margin:0 0 30px;font-size:1.6em}
|
||||
h2 {margin:0 0 20px}
|
||||
h3 {margin:0 0 20px}
|
||||
h4 {margin:0 0 20px}
|
||||
h5 {margin:0 0 20px}
|
||||
h6 {margin:0 0 20px}
|
||||
h1 {margin:0 0 20px;font-size:1.6em}
|
||||
h2, h3, h4, h5, h6 {margin:0 0 20px}
|
||||
|
||||
/* 레이아웃 - 상단 */
|
||||
#header {z-index:3;position:relative}
|
||||
@ -191,13 +187,13 @@ h6 {margin:0 0 20px}
|
||||
|
||||
/* ##################################################################### 스킨 및 컨텐츠 */
|
||||
/* 버튼 */
|
||||
.btn01 {display:inline-block;padding:0 10px;height:25px;border:1px solid #ff5e1c;background:#ff7200;color:#fff;font-size:0.8em;text-decoration:none;line-height:2.2em}
|
||||
.btn01 {display:inline-block;padding:0 10px;height:24px;border:1px solid #ff5e1c;background:#ff7200;color:#fff;font-size:0.75em;text-decoration:none;line-height:2.2em}
|
||||
.btn01:hover,
|
||||
.btn01:focus {}
|
||||
.btn02 {display:inline-block;padding:0 10px;height:25px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.8em;text-decoration:none;line-height:2.2em}
|
||||
.btn02 {display:inline-block;padding:0 10px;height:24px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.75em;text-decoration:none;line-height:2.2em}
|
||||
.btn02:hover,
|
||||
.btn02:focus {}
|
||||
.btn03 {display:inline-block;padding:0 10px;height:25px;border:1px solid #555;background:#555;color:#fff;font-size:0.8em;text-decoration:none;line-height:2.2em}
|
||||
.btn03 {display:inline-block;padding:0 10px;height:24px;border:1px solid #555;background:#555;color:#fff;font-size:0.75em;text-decoration:none;line-height:2.2em}
|
||||
.btn02:hover,
|
||||
.btn02:focus {}
|
||||
|
||||
@ -263,24 +259,27 @@ h6 {margin:0 0 20px}
|
||||
/* 게시판 목록 */
|
||||
#btn_bo_adm {text-align:center}
|
||||
#btn_bo_adm a {display:inline-block;margin-bottom:20px;padding:10px 20px;text-align:center}
|
||||
.btn_bo {margin-bottom:10px;zoom:1}
|
||||
.btn_bo:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.btn_bo ul {margin:0;padding:0;list-style:none}
|
||||
.btn_bo_user {float:right}
|
||||
.bo_link {margin-bottom:5px;zoom:1}
|
||||
.bo_link:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_link ul {margin:0;padding:0;list-style:none}
|
||||
#bo_cate {float:left;margin-bottom:10px;font-size:0.75em}
|
||||
#bo_cate form {display:inline-block}
|
||||
#bo_cate select {margin-right:5px;padding:2px;border:1px solid #ddd;background:#f9f9f5;vertical-align:top}
|
||||
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
|
||||
.btn_bo_user li {float:left;margin-left:5px}
|
||||
.btn_bo_user a {display:block}
|
||||
.btn_bo_adm {float:left}
|
||||
.btn_bo_adm li {float:left;margin-right:5px}
|
||||
.btn_bo_adm a {display:block}
|
||||
#bo_sch {float:left;padding:0;margin:0;border:0}
|
||||
#bo_sch {text-align:center}
|
||||
#bo_sch legend {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
#bo_sch form {display:inline-block}
|
||||
#bo_sch .fieldset_submit {border:1px solid #ccc;background:#fafafa;color:#000}
|
||||
#bo_cate {margin-bottom:10px}
|
||||
#fcategory {display:inline-block}
|
||||
#fcategory select {margin-right:5px;padding:2px;border:1px solid #ddd;background:#f9f9f5;vertical-align:middle}
|
||||
#bo_list caption {padding:0;height:0;overflow:hidden}
|
||||
.bo_cate_link {display:inline-block;margin-right:10px;color:#ff7200;font-weight:bold;text-decoration:none}
|
||||
#bo_list td {line-height:1em}
|
||||
#bo_list a {color:#000;text-decoration:none}
|
||||
#bo_list img {vertical-align:top}
|
||||
.bo_cate_link {display:inline-block;margin:0 10px 0 5px;font-weight:bold;text-decoration:none}
|
||||
.td_subject img {margin-left:5px}
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
@ -423,6 +422,9 @@ h6 {margin:0 0 20px}
|
||||
|
||||
/* pagination */
|
||||
.pg {clear:both;margin:0 0 10px;padding-top:20px;font-size:0.75em;text-align:center}
|
||||
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 12px;height:30px;border:1px solid #ddd;background:#fff;color:#000;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page {text-decoration:none}
|
||||
.pg_wrap {display:inline-block;border:1px solid #ddd;letter-spacing:-4px}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 12px;height:30px;background:#fff;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page {background:#f9f9f9;text-decoration:none}
|
||||
.pg_start, .pg_prev {border-right:1px solid #ddd}
|
||||
.pg_end, .pg_next {border-left:1px solid #ddd}
|
||||
.pg_current {background:#595959;color:#fff}
|
||||
|
||||
@ -19,8 +19,9 @@ function get_microtime()
|
||||
function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$str = '';
|
||||
$str .= "<span class=\"pg_wrap\">";
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page">처음</a>'.PHP_EOL;
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page pg_start">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
@ -28,7 +29,7 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="pg_page">이전</a>'.PHP_EOL;
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="pg_page pg_prev">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
@ -39,12 +40,12 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="pg_page">다음</a>'.PHP_EOL;
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="pg_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="pg_page">맨끝</a>'.PHP_EOL;
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="pg_page pg_end">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
$str .= "";
|
||||
$str .= "</span>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
@ -11,50 +11,26 @@ if ($is_nogood) $colspan++;
|
||||
|
||||
<? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?>
|
||||
|
||||
<? if ($admin_href) { ?><div id="btn_bo_adm"><a href="<?=$admin_href?>">게시판 관리자 바로가기</a></div><?}?>
|
||||
<? if ($admin_href) { ?><div id="btn_bo_adm"></div><?}?>
|
||||
|
||||
<div id="bo_cate">
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
<select name="sca" onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
</form>
|
||||
<? } ?>
|
||||
<span>Total <?=number_format($total_count)?>건</span>
|
||||
<?=$page?> 페이지
|
||||
</div>
|
||||
|
||||
<div class="btn_bo">
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
<div class="bo_link">
|
||||
<div id="bo_cate">
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
<select name="sca" onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="radio" id="sop_and" name="sop" value="and">
|
||||
<label for="sop_and">and</label>
|
||||
<input type="radio" id="sop_or" name="sop" value="or">
|
||||
<label for="sop_or">or</label>
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
|
||||
</fieldset>
|
||||
<? } ?>
|
||||
<span>Total <?=number_format($total_count)?>건</span>
|
||||
<?=$page?> 페이지
|
||||
</div>
|
||||
|
||||
<? if ($rss_href || $write_href) {?>
|
||||
<ul class="btn_bo_user">
|
||||
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn02">RSS</a></li><? } ?>
|
||||
<? if ($admin_href) { ?><li><a href="<?=$admin_href?>" class="btn03">관리자</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
@ -136,15 +112,15 @@ for ($i=0; $i<count($list); $i++) {
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="btn_bo">
|
||||
<div class="bo_link">
|
||||
<ul class="btn_bo_adm">
|
||||
<? if ($list_href) { ?>
|
||||
<li><a href="<?=$list_href?>">목록</a></li>
|
||||
<? } ?>
|
||||
<? if ($is_checkbox) { ?>
|
||||
<li><a href="javascript:select_delete();" class="btn03">선택삭제</a></li>
|
||||
<li><a href="javascript:select_copy('copy');" class="btn03">선택복사</a></li>
|
||||
<li><a href="javascript:select_copy('move');" class="btn03">선택이동</a></li>
|
||||
<li><a href="javascript:select_delete();" class="btn02">선택삭제</a></li>
|
||||
<li><a href="javascript:select_copy('copy');" class="btn02">선택복사</a></li>
|
||||
<li><a href="javascript:select_copy('move');" class="btn02">선택이동</a></li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
@ -160,6 +136,32 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
||||
</div>
|
||||
|
||||
<?/*
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="radio" id="sop_and" name="sop" value="and">
|
||||
<label for="sop_and">and</label>
|
||||
<input type="radio" id="sop_or" name="sop" value="or">
|
||||
<label for="sop_or">or</label>
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
</fieldset>
|
||||
*/?>
|
||||
|
||||
<script>
|
||||
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
|
||||
if ('<?=$stx?>') {
|
||||
|
||||
@ -81,10 +81,12 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
<input type="checkbox" id="wr_secret" name="wr_secret" value="secret">
|
||||
<label for="wr_secret">비밀글</label>
|
||||
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
|
||||
<textarea id="wr_content" name="wr_content" required
|
||||
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>></textarea>
|
||||
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||
<input type="submit" class="fieldset_submit" value="댓글입력">
|
||||
<div id="bo_vc_warea">
|
||||
<textarea id="wr_content" name="wr_content" required
|
||||
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>></textarea>
|
||||
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||
</div>
|
||||
<input type="submit" class="bo_vc_submit" value="댓글입력">
|
||||
</fieldset>
|
||||
</aside>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user