Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -18,7 +18,7 @@ function print_menu2($key, $no)
|
||||
{
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g4;
|
||||
|
||||
$str .= "<ul>";
|
||||
$str .= "<ul class=\"gnb_sub_ul\">";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
|
||||
@ -159,7 +159,7 @@ $colspan = 8;
|
||||
<option value="mobile"<?=get_selected($row['gr_device'], 'mobile');?>>모바일</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="td_mng"><?=$s_upd?></td>
|
||||
<td class="td_smallmng"><?=$s_upd?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
|
||||
@ -1,32 +1,40 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
$g4['title'] = $group['gr_subject'];
|
||||
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_MOBILE_PATH.'/group.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$g4['title'] = $group[gr_subject];
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest('basic', $row[bo_table], 5, 70);
|
||||
echo '<p>';
|
||||
}
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$lt_style = "";
|
||||
if ($i%2==1) $lt_style = "margin-left:20px";
|
||||
else $lt_style = "";
|
||||
?>
|
||||
<div style="float:left;<?=$lt_style?>">
|
||||
<?
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest('basic', $row['bo_table'], 5, 70);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?
|
||||
|
||||
@ -55,7 +55,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="act" value="<?=$act?>">
|
||||
<input type="hidden" name="url" value="<?=$_SERVER['HTTP_REFERER']?>">
|
||||
<table>
|
||||
<table class="basic_tbl">
|
||||
<caption><?=$act?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@ -361,6 +361,7 @@ include_once('./board_head.php');
|
||||
|
||||
$action_url = G4_HTTPS_BBS_URL."/write_update.php";
|
||||
|
||||
echo '<!-- skin : '.$board_skin_path.' -->';
|
||||
include_once ($board_skin_path.'/write.skin.php');
|
||||
|
||||
include_once('./board_tail.php');
|
||||
|
||||
@ -53,36 +53,30 @@ h2 {font-size:1.2em}
|
||||
#snb a {display:inline-block;padding:5px 0;color:#e0e0e0;font-size:0.9em;text-decoration:none}
|
||||
|
||||
/* gnb js off */
|
||||
#gnb {}
|
||||
#gnb ul {z-index:10}
|
||||
.gnb_1depth {position:relative;margin-left:-1px;background:#383a3f;zoom:1}
|
||||
#gnb {z-index:10;background:#383a3f}
|
||||
#gnb h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||
#gnb_ul {margin:0 auto;padding:0;width:1000px;zoom:1}
|
||||
#gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth {z-index:10;clear:both;zoom:1}
|
||||
.gnb_1depth:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth a {display:block;float:left;width:90px;height:35px;color:#e0e0e0;font-weight:bold;line-height:2.95em !important;line-height:2.65em}
|
||||
.gnb_1depth_air a,
|
||||
.gnb_1depth_on a {color:#000}
|
||||
.gnb_1depth a {display:block;float:left;width:80px;height:35px;color:#e0e0e0;font-weight:bold;line-height:2.95em;text-decoration:none}
|
||||
.gnb_1depth a:focus,
|
||||
.gnb_1depth a:hover,
|
||||
.gnb_1depth a:active {text-decoration:none}
|
||||
.gnb_1depth ul {float:left;zoom:1}
|
||||
.gnb_1depth ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth li {float:left}
|
||||
.gnb_2depth a {display:inline-block;float:none;margin-right:10px;padding:5px;width:auto;height:25px;border-bottom:0;color:#e0e0e0;font-weight:normal;text-align:left;line-height:2.1em !important;line-height:1.8em}
|
||||
.gnb_1depth a:hover {text-decoration:none}
|
||||
.gnb_sub_ul {float:left;width:auto}
|
||||
.gnb_2depth {float:left}
|
||||
.gnb_2depth a {color:#e0e0e0;font-weight:normal}
|
||||
/* gnb js on */
|
||||
.gnb_js {}
|
||||
.gnb_js ul {zoom:1}
|
||||
.gnb_js ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_js .gnb_1depth {position:relative;float:left;margin-left:-1px;width:90px;border:1px solid #222;border-top:0;border-bottom:0}
|
||||
.gnb_js .gnb_1depth a {display:inline-block;float:none;width:90px;height:35px;color:#e0e0e0;font-weight:bold;text-align:center}
|
||||
.gnb_js {padding-left:1px}
|
||||
.gnb_js #gnb_ul {zoom:1}
|
||||
.gnb_js #gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_js .gnb_1depth {clear:none;position:relative;float:left;margin:0 0 0 -1px;border:1px solid #222;border-top:0;border-bottom:0}
|
||||
.gnb_js .gnb_1depth a {color:#fff;text-align:center}
|
||||
.gnb_js .gnb_1depth_air a {float:none;background:#f7f7f2;color:#000}
|
||||
.gnb_js .gnb_1depth_on a {float:none;background:#fff;color:#000}
|
||||
.gnb_js .gnb_1depth a:focus,
|
||||
.gnb_js .gnb_1depth a:hover,
|
||||
.gnb_js .gnb_1depth a:active {text-decoration:none}
|
||||
.gnb_js .gnb_1depth ul {width:0;height:0;overflow:hidden}
|
||||
.gnb_js .gnb_1depth li {float:none}
|
||||
.gnb_js .gnb_1depth_over ul {position:absolute;top:35px;left:-1px;width:181px;height:auto;border:1px solid #ccc;border-top:0}
|
||||
.gnb_js .gnb_1depth_over2 ul {position:absolute;top:35px;right:-1px;width:181px;height:auto;border:1px solid #ccc;border-top:0}
|
||||
.gnb_js .gnb_2depth a {display:inline-block;margin:0;padding:5px 10px;width:161px;height:25px;border-bottom:0;background:#fff;color:#000;font-weight:normal;text-align:left;line-height:2.1em}
|
||||
.gnb_js .gnb_sub_ul {position:absolute;top:35px;width:1px;height:1px;overflow:hidden}
|
||||
.gnb_js .gnb_2depth a {display:inline-block;float:none !important;padding:0 10px;width:161px;text-align:left}
|
||||
.gnb_1depth_over .gnb_sub_ul {left:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
.gnb_1depth_over2 .gnb_sub_ul {right:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
|
||||
#current_loc {position:absolute;top:-5000px;left:0}
|
||||
|
||||
@ -226,6 +220,7 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
/* 회원메일발송 목록 */
|
||||
.td_test, .td_send {width:50px;text-align:center}
|
||||
.td_mng {width:110px;text-align:center}
|
||||
.td_smallmng {width:50px;text-align:center}
|
||||
/* 투표관리 목록 */
|
||||
.td_etc {width:80px;text-align:center}
|
||||
/* 게시판관리 목록 */
|
||||
|
||||
@ -8,7 +8,12 @@ h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:"dotum"}
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
||||
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"}
|
||||
input {margin:0;padding:0;border-radius:0;font-family:"dotum"}
|
||||
input[type=text],
|
||||
input[type=password],
|
||||
input[type=submit],
|
||||
input[type=image] {-webkit-appearance:none}
|
||||
button {border-radius:0;-webkit-appearance:none}
|
||||
p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all}
|
||||
hr {display:none}
|
||||
pre {overflow-x:scroll;font-size:1.1em}
|
||||
@ -34,11 +39,11 @@ a:active {color:#000;text-decoration:underline}
|
||||
#captcha_wav img {border:1px solid #cfded8;border-left:0;background:#494949}
|
||||
|
||||
/* 상단 레이아웃 */
|
||||
#hd {border-top:3px solid #151515;border-bottom:1px solid #e7f1ed;background:#fff}
|
||||
#hd {height:73px;border-top:3px solid #151515;border-bottom:1px solid #e7f1ed;background:#fff}
|
||||
#hd h1 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
||||
|
||||
#logo {padding:17px 0 17px 0}
|
||||
#logo {padding:17px 0}
|
||||
#logo span {display:inline-block;margin-left:10px;color:#109ff1;font-family:"verdana";vertical-align:middle}
|
||||
|
||||
#schall {position:absolute;top:22px;left:70px;margin:0;padding:0;letter-spacing:-5px}
|
||||
@ -56,50 +61,43 @@ a:active {color:#000;text-decoration:underline}
|
||||
#snb img {margin-right:3px}
|
||||
|
||||
/* gnb js off */
|
||||
#gnb {margin-top:-1px;background:#f0f4f8}
|
||||
#gnb {z-index:10;margin:-1px 0 0;border-bottom:1px solid #c3c7c5;background:#f0f4f8}
|
||||
#gnb h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||
#gnb_ul {z-index:10;margin:0 auto;padding:0;width:980px}
|
||||
.gnb_1depth {position:relative;margin-left:-1px;zoom:1}
|
||||
#gnb_ul {margin:0 auto;padding:0;width:980px;zoom:1}
|
||||
#gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth {z-index:10;clear:both;zoom:1}
|
||||
.gnb_1depth:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth a {display:block;float:left;height:35px;color:#000;line-height:2.7em !important;line-height:2.4em}
|
||||
.gnb_1depth_air a,
|
||||
.gnb_1depth_on a {color:#000}
|
||||
.gnb_1depth a {display:block;float:left;width:80px;height:35px;font-weight:bold;line-height:2.95em;text-decoration:none}
|
||||
.gnb_1depth a:focus,
|
||||
.gnb_1depth a:hover,
|
||||
.gnb_1depth a:active {text-decoration:none}
|
||||
.gnb_1depth ul {float:left;zoom:1}
|
||||
.gnb_1depth ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_1depth li {float:left}
|
||||
.gnb_2depth a {display:inline-block;float:none;margin-right:10px;padding:0 5px;width:auto;height:35px;border-bottom:0;color:#000;font-weight:normal;text-align:left;line-height:2.7em !important;line-height:2.4em}
|
||||
.gnb_1depth a:hover {text-decoration:none}
|
||||
.gnb_1depth ul {float:left;width:auto}
|
||||
.gnb_2depth {float:left}
|
||||
.gnb_2depth a {font-weight:normal}
|
||||
/* gnb js on */
|
||||
.gnb_js {padding-left:1px;border-bottom:1px solid #c3c7c5;background:#fff}
|
||||
.gnb_js ul {zoom:1}
|
||||
.gnb_js ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_js .gnb_1depth {position:relative;float:left;margin-left:-1px;width:80px;border:1px solid #e0e5e9;border-top:0;border-bottom:0}
|
||||
.gnb_js .gnb_1depth a {display:inline-block;float:none;width:100%;height:35px;color:#000;font-size:1.1em;font-weight:bold;text-align:center;letter-spacing:-0.1em;line-height:2.1em}
|
||||
.gnb_js {padding-left:1px}
|
||||
.gnb_js #gnb_ul {zoom:1}
|
||||
.gnb_js #gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.gnb_js .gnb_1depth {clear:none;position:relative;float:left;margin:0 0 0 -1px;border:1px solid #e0e5e9;border-top:0;border-bottom:0}
|
||||
.gnb_js .gnb_1depth a {text-align:center}
|
||||
.gnb_js .gnb_1depth_air a {float:none;background:#f7f7f2;color:#000}
|
||||
.gnb_js .gnb_1depth_on a {float:none;background:#fff;color:#000}
|
||||
.gnb_js .gnb_1depth a:focus,
|
||||
.gnb_js .gnb_1depth a:hover,
|
||||
.gnb_js .gnb_1depth a:active {text-decoration:none}
|
||||
.gnb_js .gnb_1depth ul {width:0 !important;height:0 !important;overflow:hidden}
|
||||
.gnb_js .gnb_1depth li {float:none}
|
||||
.gnb_js .gnb_1depth_over ul {position:absolute;top:35px;left:-1px;width:181px !important;height:auto !important;border:1px solid #c3c7c5;border-top:0}
|
||||
.gnb_js .gnb_1depth_over2 ul {position:absolute;top:35px;right:-1px;width:181px !important;height:auto !important;border:1px solid #c3c7c5;border-top:0}
|
||||
.gnb_js .gnb_2depth a {display:inline-block;margin:0;padding:5px 10px;width:161px;height:25px;border:0;background:#fff;color:#000;font-weight:normal;text-align:left;line-height:2.1em !important}
|
||||
.gnb_js .gnb_sub_ul {position:absolute;top:35px;width:1px;height:1px;overflow:hidden}
|
||||
.gnb_js .gnb_2depth a {display:inline-block;float:none !important;padding:0 10px;width:161px;text-align:left}
|
||||
.gnb_1depth_over .gnb_sub_ul {left:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
.gnb_1depth_over2 .gnb_sub_ul {right:-1px;width:181px;height:auto;border:1px solid #c3c7c5;border-top:0;background:#fff}
|
||||
|
||||
/* 배포시에는 필요없는 부분 */
|
||||
#sirgle_title {height:100px;color:#fff;font-size:3em}
|
||||
#sirgle_title_span {display:block;position:relative;top:33px;left:0;margin:0 auto;width:980px}
|
||||
|
||||
/* 중간 레이아웃 */
|
||||
#wrapper {margin:50px auto;width:980px;zoom:1}
|
||||
#wrapper {z-index:5;margin:50px auto;width:980px;zoom:1}
|
||||
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#wrapper_title {margin-bottom:20px;font-size:1.2em}
|
||||
|
||||
#lnb {float:right;width:209px;border:1px solid #cfded8;background:#fff}
|
||||
|
||||
#container {position:relative;float:left;padding:25px 15px 15px;width:728px;min-height:500px;height:auto !important;height:500px;border:1px solid #cfded8;background:#fff;zoom:1}
|
||||
#container {z-index:4;position:relative;float:left;padding:25px 15px 15px;width:728px;min-height:500px;height:auto !important;height:500px;border:1px solid #cfded8;background:#fff;zoom:1}
|
||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
/* 하단 레이아웃 */
|
||||
@ -260,7 +258,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
||||
|
||||
/* 아웃로그인 스킨 */
|
||||
.ol {position:relative;padding:15px 15px 14px 14px}
|
||||
.ol h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
.ol h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||
.ol ul {margin:0;padding:0;list-style:none}
|
||||
|
||||
#ol_before {}
|
||||
@ -385,7 +383,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
||||
#poll_result_cmt h2 {text-align:center}
|
||||
#poll_result_cmt h3 {margin:0 auto 10px;padding-top:15px;width:93%}
|
||||
#poll_result_cmt article {margin:0 18px 15px;border-bottom:1px solid #eee}
|
||||
#poll_result_cmt h1 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#poll_result_cmt h1 {margin:0;padding:0;height:0;border:0;font-size:0;line-height:0;overflow:hidden}
|
||||
.poll_datetime {display:inline-block;margin-left:10px}
|
||||
#poll_result_cmt p {padding:3px 0}
|
||||
#poll_result_cmt fieldset {margin-bottom:0;text-align:left}
|
||||
|
||||
@ -336,14 +336,12 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei
|
||||
#profile .sv_wrap a {margin:0 0 0.3em;padding:0;font-weight:bold;line-height:1em}
|
||||
|
||||
/* 최근게시물 스킨 (latest) */
|
||||
.lt {float:left}
|
||||
.lt ul {display:none}
|
||||
.lt_title {display:inline-block;padding:1em}
|
||||
.lt_title:focus ~ ul,
|
||||
.lt_title:hover ~ ul,
|
||||
.lt_title:active ~ ul {display:block;position:absolute;top:100px;left:0}
|
||||
.lt {position:relative;margin:0 0 1em;padding:0 1em 1.5em;border-bottom:1px solid #ddd}
|
||||
.lt ul {margin:0 0 1em;padding:0;list-style:none}
|
||||
.lt li {padding:0.2em 0}
|
||||
.lt a {color:#000;text-decoration:none}
|
||||
.lt_more {display:none}
|
||||
.lt_title {display:block;padding:1em 0}
|
||||
.lt_more {position:absolute;top:1em;right:1em}
|
||||
|
||||
/* 현재접속자 */
|
||||
#current_connect_tbl {}
|
||||
|
||||
3
head.php
3
head.php
@ -137,7 +137,7 @@ if ($config['cf_include_head']) {
|
||||
?>
|
||||
<li class="gnb_1depth">
|
||||
<a href="<?=G4_BBS_URL?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_subject']?></a>
|
||||
<ul>
|
||||
<ul class="gnb_sub_ul">
|
||||
<?
|
||||
$sql2 = " select * from {$g4['board_table']} where gr_id = '{$row['gr_id']}' order by bo_order ";
|
||||
$result2 = sql_query($sql2);
|
||||
@ -163,4 +163,5 @@ if ($config['cf_include_head']) {
|
||||
<div id="text_size">
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'increase');">크게</button>
|
||||
<button class="no_text_resize" onclick="font_resize('container', 'decrease');">작게</button>
|
||||
<button class="no_text_resize" onclick="font_default('container');">기본</button>
|
||||
</div>
|
||||
18
head.sub.php
18
head.sub.php
@ -40,6 +40,20 @@ header("Pragma: no-cache"); // HTTP/1.0
|
||||
<? } else { ?>
|
||||
<link rel="stylesheet" href="<?=G4_CSS_URL?>/<?=(G4_IS_MOBILE?'mobile':'default')?>.css?=<?=date("md")?>">
|
||||
<?}?>
|
||||
<? // 스킨의 style sheet 불러옴
|
||||
if(isset($board_skin_path))
|
||||
echo get_skin_stylesheet($board_skin_path);
|
||||
if(isset($member_skin_path))
|
||||
echo get_skin_stylesheet($member_skin_path);
|
||||
if(isset($new_skin_path))
|
||||
echo get_skin_stylesheet($new_skin_path);
|
||||
if(isset($search_skin_path))
|
||||
echo get_skin_stylesheet($search_skin_path);
|
||||
if(isset($connect_skin_path))
|
||||
echo get_skin_stylesheet($connect_skin_path);
|
||||
if(isset($poll_skin_path))
|
||||
echo get_skin_stylesheet($poll_skin_path);
|
||||
?>
|
||||
<!--[if lte IE 8]>
|
||||
<script src="<?=G4_JS_URL?>/html5.js"></script>
|
||||
<![endif]-->
|
||||
@ -62,10 +76,10 @@ var g4_cookie_domain = "<?=G4_COOKIE_DOMAIN?>";
|
||||
<script src="<?=G4_JS_URL?>/wrest.js"></script>
|
||||
<? if(G4_IS_MOBILE) { ?>
|
||||
<script>
|
||||
document.cookie = "device_width=" + screen.width;
|
||||
set_cookie("device_width", screen.width, 6, g4_cookie_domain);
|
||||
</script>
|
||||
<? } ?>
|
||||
<? if (!defined('G4_IS_ADMIN')) { echo $config['cf_add_script']; } ?>
|
||||
</head>
|
||||
<body>
|
||||
<? if ($is_member) { ?><span id="hd_login_msg"><?=$member['mb_nick']?>님 로그인 중</span><? } ?>
|
||||
<? if ($is_member) { ?><div id="hd_login_msg"><?=$member['mb_nick']?>님 로그인 중</div><? } ?>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?
|
||||
define('_INDEX_', true);
|
||||
include_once('./_common.php');
|
||||
|
||||
|
||||
33
js/common.js
33
js/common.js
@ -530,6 +530,10 @@ function font_resize(id, act)
|
||||
if(isNaN(count))
|
||||
count = 0;
|
||||
|
||||
// 크롬의 최소 폰트사이즈 버그로 작게는 한단계만 가능
|
||||
if(count == -1)
|
||||
return;
|
||||
|
||||
$elements.each(function() {
|
||||
if($(this).hasClass("no_text_resize"))
|
||||
return true;
|
||||
@ -567,12 +571,39 @@ function font_resize(id, act)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 텍스트 기본사이즈
|
||||
**/
|
||||
function font_default(id)
|
||||
{
|
||||
var act;
|
||||
var count = parseInt(get_cookie("ck_font_resize_count"));
|
||||
if(isNaN(count))
|
||||
count = 0;
|
||||
|
||||
if(count > 0) {
|
||||
act = "decrease";
|
||||
} else {
|
||||
act = "increase";
|
||||
// 작게 후 기본 크기가 되지 않는 문제해결을 위해 추가
|
||||
set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain);
|
||||
}
|
||||
|
||||
for(i=0; i<Math.abs(count); i++) {
|
||||
font_resize(id, act);
|
||||
}
|
||||
|
||||
// font resize 카운트 초기화
|
||||
set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* font_resize 함수를 반복 할 때 사용
|
||||
**/
|
||||
function font_resize2(id, act, loop)
|
||||
{
|
||||
// fotn resize 카운트 초기화
|
||||
// font resize 카운트 초기화
|
||||
set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain);
|
||||
|
||||
for(i=0; i<loop; i++) {
|
||||
|
||||
@ -987,6 +987,9 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
|
||||
$title_mb_id = '['.$mb_id.']';
|
||||
} else {
|
||||
if(!$bo_table)
|
||||
return $name;
|
||||
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\" title=\"$name 이름으로 검색\"class=\"sv_guest\" onclick=\"return false;\">$name</a>";
|
||||
$title_mb_id = '[비회원]';
|
||||
}
|
||||
@ -1785,4 +1788,37 @@ function delete_editor_thumbnail($contents)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 스킨 style sheet 파일 얻기
|
||||
function get_skin_stylesheet($skin_path)
|
||||
{
|
||||
if(!$skin_path)
|
||||
return "";
|
||||
|
||||
$str = "";
|
||||
|
||||
$p = parse_url(G4_URL);
|
||||
$skin_url = $p['scheme'].'://'.$p['host'];
|
||||
if(isset($p['port']))
|
||||
$skin_url .= ':'.$p['port'];
|
||||
$skin_url .= str_replace($_SERVER['DOCUMENT_ROOT'], "", $skin_path);
|
||||
|
||||
if(is_dir($skin_path)) {
|
||||
if($dh = opendir($skin_path)) {
|
||||
while(($file = readdir($dh)) !== false) {
|
||||
if($file == "." || $file == "..")
|
||||
continue;
|
||||
|
||||
if(is_dir($skin_path.'/'.$file))
|
||||
continue;
|
||||
|
||||
if(preg_match("/\.(css)$/i", $file))
|
||||
$str .= '<link rel="stylesheet" href="'.$skin_url.'/'.$file.'?='.date("md").'">'."\n";
|
||||
}
|
||||
closedir($dh);
|
||||
}
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
?>
|
||||
25
mobile/group.php
Normal file
25
mobile/group.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_MOBILE_PATH.'/_head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest('basic', $row['bo_table'], 5, 70);
|
||||
}
|
||||
?>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?
|
||||
include_once(G4_MOBILE_PATH.'/_tail.php');
|
||||
?>
|
||||
@ -1,8 +1,24 @@
|
||||
<?php
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_MOBILE_PATH.'/_head.php');
|
||||
?>
|
||||
|
||||
모바일 메인
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest("basic", $row['bo_table'], 5, 25);
|
||||
}
|
||||
?>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?
|
||||
include_once(G4_MOBILE_PATH.'/_tail.php');
|
||||
|
||||
@ -35,5 +35,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li>게시물이 없습니다.</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>">더보기</a></div>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><span class="sound_only"><?=$bo_subject?></span>더보기</a></div>
|
||||
</div>
|
||||
|
||||
@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</p>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" class="btn_submit" value="스크랩">
|
||||
<input type="submit" class="btn_submit" value="스크랩 확인">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -109,10 +109,12 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
<li><span class="sound_only">작성자 </span><?=$list[$i]['name']?></li>
|
||||
<li><span class="sound_only">작성일 </span><?=$list[$i]['datetime2']?></li>
|
||||
<li><span class="sound_only">조회 </span><?=$list[$i]['wr_hit']?></li>
|
||||
<? if ($is_good || $is_nogood) {?>
|
||||
<li>
|
||||
<span>추천<strong><?=$list[$i]['wr_good']?></strong></span>
|
||||
<span>비추천<strong><?=$list[$i]['wr_nogood']?></strong></span>
|
||||
<? if ($is_good) {?><span>추천<strong><?=$list[$i]['wr_good']?></strong></span><? } ?>
|
||||
<? if ($is_nogood) {?><span>비추천<strong><?=$list[$i]['wr_nogood']?></strong></span><? } ?>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? } ?>
|
||||
|
||||
@ -35,5 +35,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li>게시물이 없습니다.</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>">더보기</a></div>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><span class="sound_only"><?=$bo_subject?></span>더보기</a></div>
|
||||
</div>
|
||||
|
||||
@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</p>
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="스크랩" class="btn_submit">
|
||||
<input type="submit" value="스크랩 확인" class="btn_submit">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user