Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
chicpro
2013-01-09 08:57:44 +09:00
3 changed files with 16 additions and 17 deletions

View File

@ -83,30 +83,30 @@ h6 {margin:0 0 20px}
#hdsch_submit {position:relative;margin-left:-5px} #hdsch_submit {position:relative;margin-left:-5px}
/* 사이드 네비게이션: 아웃로그인, 설문조사 등 */ /* 사이드 네비게이션: 아웃로그인, 설문조사 등 */
#snb {z-index:3;position:absolute;top:120px;right:0;font-family:"verdana","dotum"} #snb {z-index:3;position:absolute;top:113px;right:0;font-family:"verdana","dotum"}
#snb ul {margin:0;padding:0;list-style:none} #snb ul {margin:0;padding:0;list-style:none}
/* 아웃로그인 */ /* 아웃로그인 */
.outlogin {position:relative;margin-bottom:5px;border-bottom:1px solid #dedace;line-height:1em} .outlogin {position:relative;border-bottom:1px solid #dedace;border-left:1px solid #ddd;background:#f9faf5;line-height:1em}
.outlogin h2 {margin:0;padding:0;height:0;overflow:hidden} .outlogin h2 {margin:0;padding:0;height:0;overflow:hidden}
/* 로그인 전 */ /* 로그인 전 */
#ol_before {padding:10px 10px 0;width:199px;background:#f9f9f5;font-size:0.7em} #ol_before {padding:15px 10px 0;width:199px;background:#f9f9f5;font-size:0.7em}
#ol_before fieldset {margin:0;padding:0;border:0;background:transparent} #ol_before fieldset {margin:0;padding:0;border:0;background:transparent}
#ol_before legend {position:absolute;padding:0;width:0;height:0;border:0;background:transparent;overflow:hidden} #ol_before legend {position:absolute;padding:0;width:0;height:0;border:0;background:transparent;overflow:hidden}
#ol_before input:focus {background:#333;color:#fff} #ol_before input:focus {background:#333;color:#fff}
#ol_mb_id{display:block;margin-bottom:3px;padding:0 5px;width:185px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em} #ol_mb_id{display:block;margin-bottom:3px;padding:0 5px;width:185px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em}
#ol_mb_id_label {z-index:2;position:absolute;top:18px;left:20px;color:#696969} #ol_mb_id_label {z-index:2;position:absolute;top:23px;left:20px;color:#696969}
#ol_mb_pw {display:block;padding:0 5px;width:120px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em} #ol_mb_pw {display:block;padding:0 5px;width:120px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em}
#ol_mb_pw_label {z-index:2;position:absolute;top:45px;left:20px;color:#696969} #ol_mb_pw_label {z-index:2;position:absolute;top:50px;left:20px;color:#696969}
#auto_login {position:absolute;top:69px;left:13px} #auto_login {position:absolute;top:74px;left:13px}
#auto_login_label {position:absolute;top:71px;left:28px;color:#696969;letter-spacing:-0.1em} #auto_login_label {position:absolute;top:76px;left:30px;color:#696969;letter-spacing:-0.1em}
#ol_before ul {position:relative;top:0;left:112px;margin:10px 0;width:90px;zoom:1} #ol_before ul {position:relative;top:0;left:112px;margin:10px 0;width:90px;zoom:1}
#ol_before ul:after {display:block;visibility:hidden;clear:both;content:""} #ol_before ul:after {display:block;visibility:hidden;clear:both;content:""}
#ol_before li {float:left;margin-right:5px} #ol_before li {float:left;margin-right:5px}
#ol_before a {color:#696969;text-decoration:none;letter-spacing:-0.1em} #ol_before a {color:#696969;text-decoration:none;letter-spacing:-0.1em}
#ol_submit {position:absolute;top:37px;right:12px;width:60px;height:24px;border:1px solid #b7b7b7;background:#fff;font-size:1em;font-weight:bold;letter-spacing:-0.1em;line-height:2em} #ol_submit {position:absolute;top:42px;right:12px;width:60px;height:24px;border:1px solid #b7b7b7;background:#fff;font-size:1em;font-weight:bold;letter-spacing:-0.1em;line-height:2em}
/* 로그인 후 */ /* 로그인 후 */
#ol_after {width:219px;background:#f9f9f5;color:#000;font-size:0.75em} #ol_after {padding-top:15px;width:219px;background:#f9f9f5;color:#000;font-size:0.75em}
#ol_after header {padding:10px 0;text-align:center} #ol_after header {padding:10px 0;text-align:center}
#ol_after ul {padding:5px 0;background:#fff} #ol_after ul {padding:5px 0;background:#fff}
#ol_after li a {display:block;position:relative;padding:7px 10px;color:#000;text-decoration:none} #ol_after li a {display:block;position:relative;padding:7px 10px;color:#000;text-decoration:none}
@ -115,7 +115,7 @@ h6 {margin:0 0 20px}
#ol_after footer a {display:inline-block;padding:0 10px;color:#000;text-decoration:none} #ol_after footer a {display:inline-block;padding:0 10px;color:#000;text-decoration:none}
/* 설문조사 */ /* 설문조사 */
#poll {width:219px;border-bottom:1px solid #dedace;background:#fff;font-size:0.75em} #poll {width:219px;border-bottom:1px solid #dedace;border-left:1px solid #ddd;background:#fff;font-size:0.75em}
#poll header {padding:10px 10px 1px;border-bottom:1px solid #efeada;background:#f9f9f5} #poll header {padding:10px 10px 1px;border-bottom:1px solid #efeada;background:#f9f9f5}
#poll h2 {display:inline-block;margin:0;font-size:1em} #poll h2 {display:inline-block;margin:0;font-size:1em}
#poll p {padding:0} #poll p {padding:0}
@ -150,7 +150,7 @@ h6 {margin:0 0 20px}
#poll_result_another a {display:block;padding:5px 0} #poll_result_another a {display:block;padding:5px 0}
/* 레이아웃 중간 */ /* 레이아웃 중간 */
#wrapper {z-index:2;clear:both;position:relative;margin:-2px 0 0 0;padding:1px 250px 30px 30px;min-height:520px;height:auto !important;height:520px;background:url("../img/wrapper_bg.jpg") top right repeat-y} #wrapper {z-index:2;clear:both;position:relative;margin:-2px 0 0 0;padding:1px 250px 30px 30px;min-height:520px;height:auto !important;height:520px;min-width:1000px;width:auto !important;width:1000px;background:url("../img/wrapper_bg.jpg") top right repeat-y}
#wrapper h1 {margin-top:30px} #wrapper h1 {margin-top:30px}
/* 레이아웃 하단 */ /* 레이아웃 하단 */
@ -352,7 +352,7 @@ h6 {margin:0 0 20px}
#memo_write textarea {height:100px} #memo_write textarea {height:100px}
/* pagination */ /* pagination */
.pg {clear:both;margin-bottom:30px;font-size:0.875em;text-align:center} .pg {clear:both;margin:0 0 10px;padding-top:20px;font-size:0.875em;text-align:center}
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle} .pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle}
.pg_page {text-decoration:none} .pg_page {text-decoration:none}
.pg_current {font-weight:normal} .pg_current {font-weight:normal}

View File

@ -2,14 +2,13 @@
include_once('./_common.php'); include_once('./_common.php');
include_once($g4['path'].'/lib/latest.lib.php'); include_once($g4['path'].'/lib/latest.lib.php');
$index = 1; $index = 1;
$g4['title'] = '';
include_once('./_head.php'); include_once('./_head.php');
?> ?>
<!-- 메인화면 최신글 시작 --> <!-- 메인화면 최신글 시작 -->
<? <?
// 최신글 // 최신글
$sql = " select bo_table, bo_subject 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); $result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) { for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다. // 이 함수가 바로 최신글을 추출하는 역할을 합니다.

View File

@ -11,7 +11,7 @@ if ($is_nogood) $colspan++;
<? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?> <? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?>
<? if ($admin_href) { ?><div id="btn_board_adm"><a href="<?=$admin_href?>">게시판 관리자 바로가기</a></div><?}?> <? if ($admin_href) { ?><div id="btn_bo_adm"><a href="<?=$admin_href?>">게시판 관리자 바로가기</a></div><?}?>
<div class="btn_bo"> <div class="btn_bo">
<fieldset id="bo_sch"> <fieldset id="bo_sch">
@ -83,7 +83,7 @@ if ($is_nogood) $colspan++;
<? <?
for ($i=0; $i<count($list); $i++) { for ($i=0; $i<count($list); $i++) {
?> ?>
<tr<? if ($list[$i]['is_notice']) echo " class=\"board_notice\"";?>> <tr<? if ($list[$i]['is_notice']) echo " class=\"bo_notice\"";?>>
<td class="td_bignum"> <td class="td_bignum">
<? <?
if ($list[$i]['is_notice']) // 공지사항 if ($list[$i]['is_notice']) // 공지사항
@ -101,7 +101,7 @@ for ($i=0; $i<count($list); $i++) {
echo $list[$i]['icon_reply']; echo $list[$i]['icon_reply'];
if ($is_category && $list[$i]['ca_name']) { if ($is_category && $list[$i]['ca_name']) {
?> ?>
<a href="<?=$list[$i]['ca_name_href']?>" class="board_cate_link"><?=$list[$i]['ca_name']?></a> <a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
<? } ?> <? } ?>
<a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?> <a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?>