unmanaged codestyle update

This commit is contained in:
Amberstone 2024-09-23 11:45:33 +09:00
parent 99e42ff33c
commit ca0a04bc24
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
46 changed files with 2879 additions and 2222 deletions

View file

@ -1,81 +1,114 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; if (!defined('_GNUBOARD_'))
exit;
// 방문자수 출력 // 방문자수 출력
function visit($skin_dir='basic') function visit($skin_dir = 'basic')
{ {
global $config, $g5; global $config, $g5;
// visit 배열변수에 // visit 배열변수에
// $visit[1] = 오늘 // $visit[1] = 오늘
// $visit[2] = 어제 // $visit[2] = 어제
// $visit[3] = 최대 // $visit[3] = 최대
// $visit[4] = 전체 // $visit[4] = 전체
// 숫자가 들어감 // 숫자가 들어감
preg_match("/오늘:(.*),어제:(.*),최대:(.*),전체:(.*)/", $config['cf_visit'], $visit); preg_match("/오늘:(.*),어제:(.*),최대:(.*),전체:(.*)/", $config['cf_visit'], $visit);
settype($visit[1], "integer"); settype($visit[1], "integer");
settype($visit[2], "integer"); settype($visit[2], "integer");
settype($visit[3], "integer"); settype($visit[3], "integer");
settype($visit[4], "integer"); settype($visit[4], "integer");
$visit_skin_path = G5_SKIN_PATH.'/visit/'.$skin_dir; $visit_skin_path = G5_SKIN_PATH . '/visit/' . $skin_dir;
$visit_skin_url = G5_SKIN_URL.'/visit/'.$skin_dir; $visit_skin_url = G5_SKIN_URL . '/visit/' . $skin_dir;
ob_start(); ob_start();
include_once ($visit_skin_path.'/visit.skin.php'); include_once($visit_skin_path . '/visit.skin.php');
$content = ob_get_contents(); $content = ob_get_contents();
ob_end_clean(); ob_end_clean();
return $content; return $content;
} }
// get_browser() 함수는 이미 있음 // get_browser() 함수는 이미 있음
function get_brow($agent) function get_brow($agent)
{ {
$agent = strtolower($agent); $agent = strtolower($agent);
//echo $agent; echo "<br/>"; //echo $agent; echo "<br/>";
if (preg_match("/msie ([1-9][0-9]\.[0-9]+)/", $agent, $m)) { $s = 'MSIE '.$m[1]; } if (preg_match("/msie ([1-9][0-9]\.[0-9]+)/", $agent, $m)) {
else if(preg_match("/firefox/", $agent)) { $s = "FireFox"; } $s = 'MSIE ' . $m[1];
else if(preg_match("/chrome/", $agent)) { $s = "Chrome"; } } else if (preg_match("/firefox/", $agent)) {
else if(preg_match("/x11/", $agent)) { $s = "Netscape"; } $s = "FireFox";
else if(preg_match("/opera/", $agent)) { $s = "Opera"; } } else if (preg_match("/chrome/", $agent)) {
else if(preg_match("/gec/", $agent)) { $s = "Gecko"; } $s = "Chrome";
else if(preg_match("/bot|slurp/", $agent)) { $s = "Robot"; } } else if (preg_match("/x11/", $agent)) {
else if(preg_match("/internet explorer/", $agent)) { $s = "IE"; } $s = "Netscape";
else if(preg_match("/mozilla/", $agent)) { $s = "Mozilla"; } } else if (preg_match("/opera/", $agent)) {
else { $s = "기타"; } $s = "Opera";
} else if (preg_match("/gec/", $agent)) {
$s = "Gecko";
} else if (preg_match("/bot|slurp/", $agent)) {
$s = "Robot";
} else if (preg_match("/internet explorer/", $agent)) {
$s = "IE";
} else if (preg_match("/mozilla/", $agent)) {
$s = "Mozilla";
} else {
$s = "기타";
}
return $s; return $s;
} }
function get_os($agent) function get_os($agent)
{ {
$agent = strtolower($agent); $agent = strtolower($agent);
//echo $agent; echo "<br/>"; //echo $agent; echo "<br/>";
if (preg_match("/windows 98/", $agent)) { $s = "98"; } if (preg_match("/windows 98/", $agent)) {
else if(preg_match("/windows 95/", $agent)) { $s = "95"; } $s = "98";
else if(preg_match("/windows nt 4\.[0-9]*/", $agent)) { $s = "NT"; } } else if (preg_match("/windows 95/", $agent)) {
else if(preg_match("/windows nt 5\.0/", $agent)) { $s = "2000"; } $s = "95";
else if(preg_match("/windows nt 5\.1/", $agent)) { $s = "XP"; } } else if (preg_match("/windows nt 4\.[0-9]*/", $agent)) {
else if(preg_match("/windows nt 5\.2/", $agent)) { $s = "2003"; } $s = "NT";
else if(preg_match("/windows nt 6\.0/", $agent)) { $s = "Vista"; } } else if (preg_match("/windows nt 5\.0/", $agent)) {
else if(preg_match("/windows nt 6\.1/", $agent)) { $s = "Windows7"; } $s = "2000";
else if(preg_match("/windows nt 6\.2/", $agent)) { $s = "Windows8"; } } else if (preg_match("/windows nt 5\.1/", $agent)) {
else if(preg_match("/windows 9x/", $agent)) { $s = "ME"; } $s = "XP";
else if(preg_match("/windows ce/", $agent)) { $s = "CE"; } } else if (preg_match("/windows nt 5\.2/", $agent)) {
else if(preg_match("/mac/", $agent)) { $s = "MAC"; } $s = "2003";
else if(preg_match("/linux/", $agent)) { $s = "Linux"; } } else if (preg_match("/windows nt 6\.0/", $agent)) {
else if(preg_match("/sunos/", $agent)) { $s = "sunOS"; } $s = "Vista";
else if(preg_match("/irix/", $agent)) { $s = "IRIX"; } } else if (preg_match("/windows nt 6\.1/", $agent)) {
else if(preg_match("/phone/", $agent)) { $s = "Phone"; } $s = "Windows7";
else if(preg_match("/bot|slurp/", $agent)) { $s = "Robot"; } } else if (preg_match("/windows nt 6\.2/", $agent)) {
else if(preg_match("/internet explorer/", $agent)) { $s = "IE"; } $s = "Windows8";
else if(preg_match("/mozilla/", $agent)) { $s = "Mozilla"; } } else if (preg_match("/windows 9x/", $agent)) {
else { $s = "기타"; } $s = "ME";
} else if (preg_match("/windows ce/", $agent)) {
$s = "CE";
} else if (preg_match("/mac/", $agent)) {
$s = "MAC";
} else if (preg_match("/linux/", $agent)) {
$s = "Linux";
} else if (preg_match("/sunos/", $agent)) {
$s = "sunOS";
} else if (preg_match("/irix/", $agent)) {
$s = "IRIX";
} else if (preg_match("/phone/", $agent)) {
$s = "Phone";
} else if (preg_match("/bot|slurp/", $agent)) {
$s = "Robot";
} else if (preg_match("/internet explorer/", $agent)) {
$s = "IE";
} else if (preg_match("/mozilla/", $agent)) {
$s = "Mozilla";
} else {
$s = "기타";
}
return $s; return $s;
} }

View file

@ -1,22 +1,23 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// 1. S : 탐색 (성공여부, 획득아이템 ID, 획득아이템이름, 인벤 ID) // 1. S : 탐색 (성공여부, 획득아이템 ID, 획득아이템이름, 인벤 ID)
?> ?>
<div class="log-item-box data-S"> <div class="log-item-box data-S">
<?php if($data_log[1] == 'S') { ?> <?php if ($data_log[1] == 'S') { ?>
<em> <em>
<img src="<?=get_item_img($data_log[2])?>" /> <img src="<?= get_item_img($data_log[2]) ?>" />
</em> </em>
<p> <p>
<span><strong><?=$data_log[3]?></strong><?=j($data_log[3], '을')?> 제작했습니다!</span> <span><strong><?= $data_log[3] ?></strong><?= j($data_log[3], '을') ?> 제작했습니다!</span>
</p> </p>
<?php } else { ?> <?php } else { ?>
<em></em> <em></em>
<p> <p>
제작에 실패하였습니다. 제작에 실패하였습니다.
</p> </p>
<?php } ?> <?php } ?>
</div> </div>

View file

@ -1,22 +1,23 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// 1. S : 탐색 (성공여부, 획득아이템 ID, 획득아이템이름, 인벤 ID) // 1. S : 탐색 (성공여부, 획득아이템 ID, 획득아이템이름, 인벤 ID)
?> ?>
<div class="log-item-box data-S"> <div class="log-item-box data-S">
<?php if($data_log[1] == 'S') { ?> <?php if ($data_log[1] == 'S') { ?>
<em> <em>
<img src="<?=get_item_img($data_log[2])?>" /> <img src="<?= get_item_img($data_log[2]) ?>" />
</em> </em>
<p> <p>
<span>탐색하여 <strong><?=$data_log[3]?></strong><?=j($data_log[3], '을')?> 획득했습니다!</span> <span>탐색하여 <strong><?= $data_log[3] ?></strong><?= j($data_log[3], '을') ?> 획득했습니다!</span>
</p> </p>
<?php } else { ?> <?php } else { ?>
<em></em> <em></em>
<p> <p>
탐색했지만 아무것도 얻지 못했습니다. 탐색했지만 아무것도 얻지 못했습니다.
</p> </p>
<?php } ?> <?php } ?>
</div> </div>

View file

@ -1,41 +1,44 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// 아이템 ID / 이름 / 기능 / 값 / 내용 / 효능 // 아이템 ID / 이름 / 기능 / 값 / 내용 / 효능
?> ?>
<?php if($item_log[0] == 'D') { <?php if ($item_log[0] == 'D') {
// 일반 템 사용 // 일반 템 사용
IF($item_log[1]) { if ($item_log[1]) {
?> ?>
<div class="log-item-box data-item"> <div class="log-item-box data-item">
<em> <em>
<img src="<?=get_item_img($item_log[1])?>" /> <img src="<?= get_item_img($item_log[1]) ?>" />
</em> </em>
<p> <p>
<span><strong><?=$item_log[2]?></strong><?=j($item_log[2], '을')?> 사용했습니다! (<?=$item_log[6]?>)</span> <span><strong><?= $item_log[2] ?></strong><?= j($item_log[2], '을') ?> 사용했습니다! (<?= $item_log[6] ?>)</span>
</p> </p>
</div> </div>
<?php } } else if($item_log[0] == 'S') { <?php }
// 뽑기 획득에 성공 } else if ($item_log[0] == 'S') {
?> // 뽑기 획득에 성공
<div class="log-item-box data-item"> ?>
<em> <div class="log-item-box data-item">
<img src="<?=get_item_img($item_log[3])?>" /> <em>
</em> <img src="<?= get_item_img($item_log[3]) ?>" />
<p> </em>
<span><strong><?=$item_log[2]?></strong><?=j($item_log[2], '을')?> 사용해서 <strong><?=$item_log[4]?></strong><?=j($item_log[4], '을')?> 획득하였습니다!</span> <p>
</p> <span><strong><?= $item_log[2] ?></strong><?= j($item_log[2], '을') ?> 사용해서
</div> <strong><?= $item_log[4] ?></strong><?= j($item_log[4], '을') ?> 획득하였습니다!</span>
</p>
</div>
<?php } else { <?php } else {
// 뽑기 획득에 실패 // 뽑기 획득에 실패
?> ?>
<div class="log-item-box data-item"> <div class="log-item-box data-item">
<em></em> <em></em>
<p> <p>
<span><strong><?=$item_log[2]?></strong><?=j($item_log[2], '을')?> 사용했지만 <strong>아무것도 획득하지 못했습니다</strong>...</span> <span><strong><?= $item_log[2] ?></strong><?= j($item_log[2], '을') ?> 사용했지만 <strong>아무것도 획득하지 못했습니다</strong>...</span>
</p> </p>
</div> </div>
<?php } ?> <?php } ?>

View file

@ -1,17 +1,17 @@
<?php <?php
include_once "./_common.php"; include_once "./_common.php";
if($is_member) { if ($is_member) {
$is_favorite = sql_fetch("select ms_id from {$g5['scrap_table']} where mb_id = '{$mb_id}' and wr_id = '{$wr_id}' and bo_table = '{$bo_table}'"); $is_favorite = sql_fetch("select ms_id from {$g5['scrap_table']} where mb_id = '{$mb_id}' and wr_id = '{$wr_id}' and bo_table = '{$bo_table}'");
if($is_favorite['ms_id']) { if ($is_favorite['ms_id']) {
// 즐겨찾기 내역이 이미 존재할 경우 // 즐겨찾기 내역이 이미 존재할 경우
// 해당 내역을 제거한다. // 해당 내역을 제거한다.
sql_query("delete from {$g5['scrap_table']} where ms_id = '{$is_favorite['ms_id']}'"); sql_query("delete from {$g5['scrap_table']} where ms_id = '{$is_favorite['ms_id']}'");
echo "off"; echo "off";
} else { } else {
// 즐겨찾기 내역 추가 // 즐겨찾기 내역 추가
sql_query(" insert {$g5['scrap_table']} set bo_table = '{$bo_table}', wr_id = '{$wr_id}', mb_id = '{$member['mb_id']}', ms_datetime = '".G5_TIME_YMDHIS."' "); sql_query(" insert {$g5['scrap_table']} set bo_table = '{$bo_table}', wr_id = '{$wr_id}', mb_id = '{$member['mb_id']}', ms_datetime = '" . G5_TIME_YMDHIS . "' ");
echo "on"; echo "on";
} }
} }

View file

@ -2,102 +2,102 @@
fn_layout_setting(); fn_layout_setting();
// 화면 사이즈가 변경 될 시, 레이아웃 셋팅 실행 // 화면 사이즈가 변경 될 시, 레이아웃 셋팅 실행
window.onresize = function() { fn_layout_setting(); }; window.onresize = function () { fn_layout_setting(); };
// 즐겨찾기 추가 - Ajax // 즐겨찾기 추가 - Ajax
$('a[data-function="favorite"]').on('click', function() { $('a[data-function="favorite"]').on('click', function () {
var formData = new FormData(); var formData = new FormData();
var idx = $(this).data('idx'); var idx = $(this).data('idx');
var obj = $(this); var obj = $(this);
formData.append("wr_id", idx); formData.append("wr_id", idx);
formData.append("bo_table", g5_bo_table); formData.append("bo_table", g5_bo_table);
formData.append("mb_id", avo_mb_id); formData.append("mb_id", avo_mb_id);
$.ajax({ $.ajax({
url:avo_board_skin_url + '/ajax/add_favorite.php' url: avo_board_skin_url + '/ajax/add_favorite.php'
, data: formData , data: formData
, processData: false , processData: false
, contentType: false , contentType: false
, type: 'POST' , type: 'POST'
, success: function(data){ , success: function (data) {
if(data == 'on') { if (data == 'on') {
obj.removeClass('on'); obj.removeClass('on');
obj.addClass(data); obj.addClass(data);
}else if(data == 'off') { } else if (data == 'off') {
obj.removeClass('on'); obj.removeClass('on');
} }
} }
}); });
return false; return false;
}); });
$('a.ui-open-log').on('click', function() { $('a.ui-open-log').on('click', function () {
var obj = $(this).closest('.pic-data').children('div'); var obj = $(this).closest('.pic-data').children('div');
var state = $(obj).hasClass('on'); var state = $(obj).hasClass('on');
var original_height = $(obj).find('img').height(); var original_height = $(obj).find('img').height();
var setting_height = 470; var setting_height = 470;
if(state){ if (state) {
//닫기 //닫기
$(obj).stop().animate({height: setting_height + "px"}, 1000); $(obj).stop().animate({ height: setting_height + "px" }, 1000);
$(obj).removeClass('on'); $(obj).removeClass('on');
$(this).text("OPEN"); $(this).text("OPEN");
} else { } else {
// 열기 // 열기
$(obj).stop().animate({height: original_height + "px"}, 1000); $(obj).stop().animate({ height: original_height + "px" }, 1000);
$(obj).addClass('on'); $(obj).addClass('on');
$(this).text("CLOSE"); $(this).text("CLOSE");
} }
return false; return false;
}); });
$('a.ui-remove-blind').on('click', function() { $('a.ui-remove-blind').on('click', function () {
$(this).closest('.pic-data').removeClass('ui-blind'); $(this).closest('.pic-data').removeClass('ui-blind');
$(this).fadeOut(); $(this).fadeOut();
return false; return false;
}); });
$('.send_memo').on('click', function() { $('.send_memo').on('click', function () {
var target = $(this).attr('href'); var target = $(this).attr('href');
window.open(target, 'memo', "width=500, height=300"); window.open(target, 'memo', "width=500, height=300");
return false; return false;
}); });
$('.btn-search-guide').on('click', function() { $('.btn-search-guide').on('click', function () {
$('#searc_keyword').toggleClass('on'); $('#searc_keyword').toggleClass('on');
return false; return false;
}); });
$(window).ready(function() { $(window).ready(function () {
$('#load_log_board').css('opacity', '1.0'); $('#load_log_board').css('opacity', '1.0');
}); });
function fn_layout_setting() { function fn_layout_setting() {
$('#log_list > .item').each(function(){ $('#log_list > .item').each(function () {
var log_data_width = $(this).find('.ui-pic').data('width'); var log_data_width = $(this).find('.ui-pic').data('width');
var log_width = $(this).find('.pic-data').find('img').width(); var log_width = $(this).find('.pic-data').find('img').width();
if(log_data_width < log_width && log_width > 300) {
log_data_width = log_width;
}
var comment_width = $('#log_list .item-inner').width() - log_data_width + 10; if (log_data_width < log_width && log_width > 300) {
if(comment_width > 320) { log_data_width = log_width;
$(this).removeClass('both'); }
$(this).find('.ui-comment').css('width', comment_width - 20 + "px");
} else { var comment_width = $('#log_list .item-inner').width() - log_data_width + 10;
$(this).addClass('both'); if (comment_width > 320) {
$(this).find('.ui-comment').css('width', "auto"); $(this).removeClass('both');
} $(this).find('.ui-comment').css('width', comment_width - 20 + "px");
}); } else {
$(this).addClass('both');
$(this).find('.ui-comment').css('width', "auto");
}
});
}; };
$('.new_win').on('click', function() { $('.new_win').on('click', function () {
var target = $(this).attr('href'); var target = $(this).attr('href');
window.open(target, 'emoticon', "width=400, height=600"); window.open(target, 'emoticon', "width=400, height=600");
return false; return false;
}); });

View file

@ -1,100 +1,101 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 폼메일 시작 { --> <!-- 폼메일 시작 { -->
<div id="formmail" class="new_win mbskin"> <div id="formmail" class="new_win mbskin">
<h1 id="win_title"><?php echo $name ?>님께 메일보내기</h1> <h1 id="win_title"><?php echo $name ?>님께 메일보내기</h1>
<form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post" enctype="multipart/form-data" style="margin:0px;"> <form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post"
enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?php echo $email ?>"> <input type="hidden" name="to" value="<?php echo $email ?>">
<input type="hidden" name="attach" value="2"> <input type="hidden" name="attach" value="2">
<?php if ($is_member) { // 회원이면 ?> <?php if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?php echo get_text($member['mb_nick']); ?>"> <input type="hidden" name="fnick" value="<?php echo get_text($member['mb_nick']); ?>">
<input type="hidden" name="fmail" value="<?php echo $member['mb_email'] ?>"> <input type="hidden" name="fmail" value="<?php echo $member['mb_email'] ?>">
<?php } ?> <?php } ?>
<div class="tbl_frm01 tbl_form"> <div class="tbl_frm01 tbl_form">
<table> <table>
<caption>메일쓰기</caption> <caption>메일쓰기</caption>
<tbody> <tbody>
<?php if (!$is_member) { ?> <?php if (!$is_member) { ?>
<tr> <tr>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="fnick" id="fnick" required class="frm_input required"></td> <td><input type="text" name="fnick" id="fnick" required class="frm_input required"></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="fmail" id="fmail" required class="frm_input required"></td> <td><input type="text" name="fmail" id="fmail" required class="frm_input required"></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="subject" id="subject" required class="frm_input required"></td> <td><input type="text" name="subject" id="subject" required class="frm_input required"></td>
</tr> </tr>
<tr> <tr>
<th scope="row">형식</th> <th scope="row">형식</th>
<td> <td>
<input type="radio" name="type" value="0" id="type_text" checked> <label for="type_text">TEXT</label> <input type="radio" name="type" value="0" id="type_text" checked> <label for="type_text">TEXT</label>
<input type="radio" name="type" value="1" id="type_html"> <label for="type_html">HTML</label> <input type="radio" name="type" value="1" id="type_html"> <label for="type_html">HTML</label>
<input type="radio" name="type" value="2" id="type_both"> <label for="type_both">TEXT+HTML</label> <input type="radio" name="type" value="2" id="type_both"> <label for="type_both">TEXT+HTML</label>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="content">내용<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="content">내용<strong class="sound_only">필수</strong></label></th>
<td><textarea name="content" id="content" required class="required"></textarea></td> <td><textarea name="content" id="content" required class="required"></textarea></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="file1">첨부 파일 1</label></th> <th scope="row"><label for="file1">첨부 파일 1</label></th>
<td> <td>
<input type="file" name="file1" id="file1" class="frm_input"> <input type="file" name="file1" id="file1" class="frm_input">
첨부 파일은 누락될 있으므로 메일을 보낸 파일이 첨부 되었는지 반드시 확인해 주시기 바랍니다. 첨부 파일은 누락될 있으므로 메일을 보낸 파일이 첨부 되었는지 반드시 확인해 주시기 바랍니다.
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="file2">첨부 파일 2</label></th> <th scope="row"><label for="file2">첨부 파일 2</label></th>
<td><input type="file" name="file2" id="file2" class="frm_input"></td> <td><input type="file" name="file2" id="file2" class="frm_input"></td>
</tr> </tr>
<tr> <tr>
<th scope="row">자동등록방지</th> <th scope="row">자동등록방지</th>
<td><?php echo captcha_html(); ?></td> <td><?php echo captcha_html(); ?></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="win_btn"> <div class="win_btn">
<input type="submit" value="메일발송" id="btn_submit" class="btn_submit"> <input type="submit" value="메일발송" id="btn_submit" class="btn_submit">
<button type="button" onclick="window.close();">창닫기</button> <button type="button" onclick="window.close();">창닫기</button>
</div> </div>
</form> </form>
</div> </div>
<script> <script>
with (document.fformmail) { with (document.fformmail) {
if (typeof fname != "undefined") if (typeof fname != "undefined")
fname.focus(); fname.focus();
else if (typeof subject != "undefined") else if (typeof subject != "undefined")
subject.focus(); subject.focus();
} }
function fformmail_submit(f) function fformmail_submit(f) {
{ <?php echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
if (f.file1.value || f.file2.value) { if (f.file1.value || f.file2.value) {
// 4.00.11 // 4.00.11
if (!confirm("첨부파일의 용량이 큰경우 전송시간이 오래 걸립니다.\n\n메일보내기가 완료되기 전에 창을 닫거나 새로고침 하지 마십시오.")) if (!confirm("첨부파일의 용량이 큰경우 전송시간이 오래 걸립니다.\n\n메일보내기가 완료되기 전에 창을 닫거나 새로고침 하지 마십시오."))
return false; return false;
} }
document.getElementById('btn_submit').disabled = true; document.getElementById('btn_submit').disabled = true;
return true; return true;
} }
</script> </script>
<!-- } 폼메일 --> <!-- } 폼메일 -->

View file

@ -1,83 +1,84 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.admin.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.admin.css">', 0);
?> ?>
<div id="login_page_box"> <div id="login_page_box">
<div id="login_title"> <div id="login_title">
<div class="inner"> <div class="inner">
<h1> <h1>
<em> <em>
<strong><?=$config['cf_title']?> 관리자</strong> 로그인 <strong><?= $config['cf_title'] ?> 관리자</strong> 로그인
</em> </em>
<span> <span>
AVOCADO EDITION Ver.<?=G5_GNUBOARD_VER?> AVOCADO EDITION Ver.<?= G5_GNUBOARD_VER ?>
</span> </span>
<sup> <sup>
관리자 비번을 잊을 , DB 접속을 통해 직접 변경 하여야 합니다.<br /> 관리자 비번을 잊을 , DB 접속을 통해 직접 변경 하여야 합니다.<br />
최대한 비밀번호를 잊지 않도록 조심해 주시길 바랍니다.<br /> 최대한 비밀번호를 잊지 않도록 조심해 주시길 바랍니다.<br />
DB 관리툴은 호스팅 업체에 문의해 주시길 바랍니다. DB 관리툴은 호스팅 업체에 문의해 주시길 바랍니다.
</sup> </sup>
</h1> </h1>
</div> </div>
</div> </div>
<!-- 로그인 시작 { --> <!-- 로그인 시작 { -->
<div id="mb_login" class="mbskin"> <div id="mb_login" class="mbskin">
<div class="inner"> <div class="inner">
<form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);" method="post"> <form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);" method="post">
<input type="hidden" name="url" value="<?php echo $login_url ?>"> <input type="hidden" name="url" value="<?php echo $login_url ?>">
<fieldset class="input"> <fieldset class="input">
<input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20"> <input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20">
<label for="login_id" class="login_id">회원아이디<strong class="sound_only"> 필수</strong></label> <label for="login_id" class="login_id">회원아이디<strong class="sound_only"> 필수</strong></label>
</fieldset> </fieldset>
<fieldset class="input"> <fieldset class="input">
<input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20" maxLength="20"> <input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20"
<label for="login_pw" class="login_pw">비밀번호<strong class="sound_only"> 필수</strong></label> maxLength="20">
</fieldset> <label for="login_pw" class="login_pw">비밀번호<strong class="sound_only"> 필수</strong></label>
</fieldset>
<fieldset class="check">
<input type="checkbox" name="auto_login" id="login_auto_login">
<label for="login_auto_login">자동로그인</label>
</fieldset>
<fieldset class="button"> <fieldset class="check">
<button type="submit" class="btn_submit">로그인</button> <input type="checkbox" name="auto_login" id="login_auto_login">
</fieldset> <label for="login_auto_login">자동로그인</label>
</form> </fieldset>
<p id="copyright"> <fieldset class="button">
COPYRIGHT &copy; 2017 System by Avocado<br /> <button type="submit" class="btn_submit">로그인</button>
-<br /> </fieldset>
GNU BOARD 5.2.7 </form>
</p>
<p id="copyright">
COPYRIGHT &copy; 2017 System by Avocado<br />
-<br />
GNU BOARD 5.2.7
</p>
</div>
</div>
</div>
</div>
</div> </div>
<script> <script>
$(function(){ $(function () {
$("#login_auto_login").click(function(){ $("#login_auto_login").click(function () {
if (this.checked) { if (this.checked) {
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 비밀번호를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?"); this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 비밀번호를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
} }
}); });
}); });
function flogin_submit(f) function flogin_submit(f) {
{
return true; return true;
} }
</script> </script>
<!-- } 로그인 --> <!-- } 로그인 -->

View file

@ -1,50 +1,55 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
if(strstr($url, 'adm')) { exit; // 개별 페이지 접근 불가
include_once($member_skin_path.'/login.admin.skin.php'); if (strstr($url, 'adm')) {
include_once($member_skin_path . '/login.admin.skin.php');
} else { } else {
add_stylesheet('<link rel="stylesheet" href="'.G5_CSS_URL.'/login.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/login.css">', 0);
/*********** Logo Data ************/ /*********** Logo Data ************/
$logo = get_logo(); $logo = get_logo();
$m_logo = get_logo(); $m_logo = get_logo();
$logo_data = ""; $logo_data = "";
if($logo) $logo_data .= "<img src='".$logo."' />"; if ($logo)
/*********************************/ $logo_data .= "<img src='" . $logo . "' />";
?> /*********************************/
<div class="loginWrap"> ?>
<div class="login-inner"> <div class="loginWrap">
<?php <div class="login-inner">
// 등록된 로고 파일이 있을 경우에만 출력 한다. <?php
if($logo_data) { ?> // 등록된 로고 파일이 있을 경우에만 출력 한다.
<div class="login-logo"> if ($logo_data) { ?>
<?=$logo_data?> <div class="login-logo">
</div> <?= $logo_data ?>
<hr class="padding" /> </div>
<?php } ?> <hr class="padding" />
<div class="login-form-box theme-box"> <?php } ?>
<div class="inner"> <div class="login-form-box theme-box">
<form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);" method="post"> <div class="inner">
<input type="hidden" name="url" value='<?php echo $login_url ?>'> <form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);"
<fieldset> method="post">
<input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20" placeholder="아이디"> <input type="hidden" name="url" value='<?php echo $login_url ?>'>
</fieldset> <fieldset>
<fieldset> <input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20"
<input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20" maxLength="20" placeholder="비밀번호"> placeholder="아이디">
</fieldset> </fieldset>
<button type="submit" class="ui-btn point">LOGIN</button> <fieldset>
</form> <input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20"
</div> maxLength="20" placeholder="비밀번호">
</div> </fieldset>
</div> <button type="submit" class="ui-btn point">LOGIN</button>
</div> </form>
<script> </div>
function flogin_submit(f) { </div>
return true; </div>
} </div>
</script> <script>
<!-- } 로그인 --> function flogin_submit(f) {
return true;
}
</script>
<!-- } 로그인 -->
<?php } ?> <?php } ?>

View file

@ -1,5 +1,6 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요. // 자신만의 코드를 넣어주세요.
?>

View file

@ -1,54 +1,56 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<div id="password_box" class="theme-box"> <div id="password_box" class="theme-box">
<h1>비밀번호 확인</h1> <h1>비밀번호 확인</h1>
<hr class="line" /> <hr class="line" />
<div class="descript"> <div class="descript">
<p> <p>
<strong>비밀번호를 한번 입력해주세요.</strong> <strong>비밀번호를 한번 입력해주세요.</strong>
<?php if ($url == 'member_leave.php') { ?> <?php if ($url == 'member_leave.php') { ?>
비밀번호를 입력하시면 회원탈퇴가 완료됩니다. 비밀번호를 입력하시면 회원탈퇴가 완료됩니다.
<?php }else{ ?> <?php } else { ?>
회원님의 정보를 안전하게 보호하기 위해 비밀번호를 한번 확인합니다. 회원님의 정보를 안전하게 보호하기 위해 비밀번호를 한번 확인합니다.
<?php } ?> <?php } ?>
</p> </p>
<div class="pass-form">
<form name="fmemberconfirm" action="<?php echo $url ?>" onsubmit="return fmemberconfirm_submit(this);" method="post"> <div class="pass-form">
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id'] ?>">
<input type="hidden" name="w" value="u">
<fieldset class="box-id"> <form name="fmemberconfirm" action="<?php echo $url ?>" onsubmit="return fmemberconfirm_submit(this);"
<span id="mb_confirm_id" class="form-input"><?php echo $member['mb_id'] ?></span> method="post">
</fieldset> <input type="hidden" name="mb_id" value="<?php echo $member['mb_id'] ?>">
<fieldset class="box-pw"> <input type="hidden" name="w" value="u">
<input type="password" name="mb_password" id="confirm_mb_password" required class="required frm_input" size="15" maxLength="20">
</fieldset>
<fieldset class="box-btn"> <fieldset class="box-id">
<button type="submit" id="btn_submit" class="ui-btn point">확인</button> <span id="mb_confirm_id" class="form-input"><?php echo $member['mb_id'] ?></span>
</fieldset> </fieldset>
<fieldset class="box-pw">
<input type="password" name="mb_password" id="confirm_mb_password" required class="required frm_input"
size="15" maxLength="20">
</fieldset>
</form> <fieldset class="box-btn">
<button type="submit" id="btn_submit" class="ui-btn point">확인</button>
</fieldset>
</div> </form>
</div>
<hr class="line" /> </div>
<div class="btn_confirm"> </div>
<a href="<?php echo G5_URL ?>" class="ui-btn">메인으로 돌아가기</a> <hr class="line" />
</div> <div class="btn_confirm">
<a href="<?php echo G5_URL ?>" class="ui-btn">메인으로 돌아가기</a>
</div>
</div> </div>
<script> <script>
function fmemberconfirm_submit(f) function fmemberconfirm_submit(f) {
{ document.getElementById("btn_submit").disabled = true;
document.getElementById("btn_submit").disabled = true; return true;
return true; }
}
</script> </script>
<!-- } 회원 비밀번호 확인 --> <!-- } 회원 비밀번호 확인 -->

View file

@ -1,10 +1,11 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<script> <script>
window.close(); window.close();
</script> </script>

View file

@ -1,47 +1,50 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 쪽지 보내기 시작 { --> <!-- 쪽지 보내기 시작 { -->
<div id="memo_write" class="new_win mbskin"> <div id="memo_write" class="new_win mbskin">
<form name="fmemoform" action="<?php echo $memo_action_url; ?>" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off"> <form name="fmemoform" action="<?php echo $memo_action_url; ?>" onsubmit="return fmemoform_submit(this);"
<table class="theme-form"> method="post" autocomplete="off">
<colgroup> <table class="theme-form">
<col style="width: 80px;" /> <colgroup>
<col /> <col style="width: 80px;" />
</colgroup> <col />
<tbody> </colgroup>
<tr> <tbody>
<th scope="row"><label for="me_recv_mb_id">아이디<strong class="sound_only">필수</strong></label></th> <tr>
<td> <th scope="row"><label for="me_recv_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required class="frm_input required" size="47"> <td>
<span class="frm_info">여러 회원에게 보낼때는 컴마(,) 구분하세요.</span> <input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required
</td> class="frm_input required" size="47">
</tr> <span class="frm_info">여러 회원에게 보낼때는 컴마(,) 구분하세요.</span>
<tr> </td>
<th scope="row"><label for="me_memo">내용</label></th> </tr>
<td><textarea name="me_memo" id="me_memo" required class="required" style="min-height: 140px;"><?php echo $content ?></textarea></td> <tr>
</tr> <th scope="row"><label for="me_memo">내용</label></th>
<td><textarea name="me_memo" id="me_memo" required class="required"
</tbody> style="min-height: 140px;"><?php echo $content ?></textarea></td>
</table> </tr>
<hr class="padding" />
<div class="win_btn txt-center"> </tbody>
<input type="submit" value="보내기" id="btn_submit" class="ui-btn"> </table>
<button type="button" onclick="window.close();" class="ui-btn">창닫기</button> <hr class="padding" />
</div> <div class="win_btn txt-center">
</form> <input type="submit" value="보내기" id="btn_submit" class="ui-btn">
<button type="button" onclick="window.close();" class="ui-btn">창닫기</button>
</div>
</form>
</div> </div>
<script> <script>
function fmemoform_submit(f) function fmemoform_submit(f) {
{ <?php echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
return true; return true;
} }
</script> </script>
<!-- } 쪽지 보내기 --> <!-- } 쪽지 보내기 -->

View file

@ -1,4 +1,4 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
goto_url('./memo_form.php?me_recv_mb_id='.$mb['mb_id']); exit; // 개별 페이지 접근 불가
?> goto_url('./memo_form.php?me_recv_mb_id=' . $mb['mb_id']);

View file

@ -1,57 +1,63 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$delete_str = ""; $delete_str = "";
if ($w == 'x') $delete_str = ""; if ($w == 'x')
if ($w == 'u') $g5['title'] = $delete_str."글 수정"; $delete_str = "";
else if ($w == 'd' || $w == 'x') $g5['title'] = $delete_str."글 삭제"; if ($w == 'u')
else $g5['title'] = $g5['title']; $g5['title'] = $delete_str . "글 수정";
else if ($w == 'd' || $w == 'x')
$g5['title'] = $delete_str . "글 삭제";
else
$g5['title'] = $g5['title'];
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 비밀번호 확인 시작 { --> <!-- 비밀번호 확인 시작 { -->
<div id="password_box" class="theme-box"> <div id="password_box" class="theme-box">
<h1>비밀번호 확인</h1> <h1>비밀번호 확인</h1>
<hr class="line" /> <hr class="line" />
<div class="descript"> <div class="descript">
<p> <p>
<?php if ($w == 'u') { ?> <?php if ($w == 'u') { ?>
<strong class="txt-point">작성자만 글을 수정할 있습니다.</strong> <strong class="txt-point">작성자만 글을 수정할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 수정할 있습니다. 작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 수정할 있습니다.
<?php } else if ($w == 'd' || $w == 'x') { ?> <?php } else if ($w == 'd' || $w == 'x') { ?>
<strong class="txt-point">작성자만 글을 삭제할 있습니다.</strong> <strong class="txt-point">작성자만 글을 삭제할 있습니다.</strong>
작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 삭제할 있습니다. 작성자 본인이라면, 작성시 입력한 비밀번호를 입력하여 글을 삭제할 있습니다.
<?php } else { ?> <?php } else { ?>
<strong class="txt-point">비밀글 기능으로 보호된 글입니다.</strong> <strong class="txt-point">비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 있습니다. 본인이라면 비밀번호를 입력하세요. 작성자와 관리자만 열람하실 있습니다. 본인이라면 비밀번호를 입력하세요.
<?php } ?> <?php } ?>
</p> </p>
<div class="pass-form"> <div class="pass-form">
<form name="fboardpassword" action="<?php echo $action; ?>" method="post"> <form name="fboardpassword" action="<?php echo $action; ?>" method="post">
<input type="hidden" name="w" value="<?php echo $w ?>"> <input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>"> <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="comment_id" value="<?php echo $comment_id ?>"> <input type="hidden" name="comment_id" value="<?php echo $comment_id ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>"> <input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>"> <input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="page" value="<?php echo $page ?>">
<fieldset class="box-pw"> <fieldset class="box-pw">
<input type="password" name="wr_password" id="password_wr_password" required class="frm_input required" size="15" maxLength="20"> <input type="password" name="wr_password" id="password_wr_password" required class="frm_input required"
</fieldset> size="15" maxLength="20">
</fieldset>
<fieldset class="box-btn"> <fieldset class="box-btn">
<button type="submit" class="point ui-btn">확인</button> <button type="submit" class="point ui-btn">확인</button>
</fieldset> </fieldset>
</form> </form>
</div> </div>
</div> </div>
<hr class="line" /> <hr class="line" />
<div class="btn_confirm"> <div class="btn_confirm">
<a href="<?php echo $return_url ?>" class="ui-btn">이전으로 돌아가기</a> <a href="<?php echo $return_url ?>" class="ui-btn">이전으로 돌아가기</a>
</div> </div>
</div> </div>
<!-- } 비밀번호 확인 --> <!-- } 비밀번호 확인 -->

View file

@ -1,47 +1,48 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 회원정보 찾기 시작 { --> <!-- 회원정보 찾기 시작 { -->
<div id="find_info" class="new_win mbskin"> <div id="find_info" class="new_win mbskin">
<h1 id="win_title">회원정보 찾기</h1> <h1 id="win_title">회원정보 찾기</h1>
<form name="fpasswordlost" action="<?php echo $action_url ?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off"> <form name="fpasswordlost" action="<?php echo $action_url ?>" onsubmit="return fpasswordlost_submit(this);"
method="post" autocomplete="off">
<fieldset id="info_fs"> <fieldset id="info_fs">
<p> <p>
회원가입 등록하신 이메일 주소를 입력해 주세요.<br> 회원가입 등록하신 이메일 주소를 입력해 주세요.<br>
해당 이메일로 아이디와 비밀번호 정보를 보내드립니다. 해당 이메일로 아이디와 비밀번호 정보를 보내드립니다.
</p> </p>
<label for="mb_email">E-mail 주소<strong class="sound_only">필수</strong></label> <label for="mb_email">E-mail 주소<strong class="sound_only">필수</strong></label>
<input type="text" name="mb_email" id="mb_email" required class="required frm_input email" size="30"> <input type="text" name="mb_email" id="mb_email" required class="required frm_input email" size="30">
</fieldset> </fieldset>
<?php echo captcha_html(); ?> <?php echo captcha_html(); ?>
<div class="win_btn"> <div class="win_btn">
<input type="submit" value="확인" class="btn_submit"> <input type="submit" value="확인" class="btn_submit">
<button type="button" onclick="window.close();">창닫기</button> <button type="button" onclick="window.close();">창닫기</button>
</div> </div>
</form> </form>
</div> </div>
<script> <script>
function fpasswordlost_submit(f) function fpasswordlost_submit(f) {
{ <?php echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
return true; return true;
} }
$(function() { $(function () {
var sw = screen.width; var sw = screen.width;
var sh = screen.height; var sh = screen.height;
var cw = document.body.clientWidth; var cw = document.body.clientWidth;
var ch = document.body.clientHeight; var ch = document.body.clientHeight;
var top = sh / 2 - ch / 2 - 100; var top = sh / 2 - ch / 2 - 100;
var left = sw / 2 - cw / 2; var left = sw / 2 - cw / 2;
moveTo(left, top); moveTo(left, top);
}); });
</script> </script>
<!-- } 회원정보 찾기 --> <!-- } 회원정보 찾기 -->

View file

@ -1,26 +1,27 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<div id="point" class="new_win"> <div id="point" class="new_win">
<h1 id="win_title"><?php echo $g5['title'] ?></h1> <h1 id="win_title"><?php echo $g5['title'] ?></h1>
<div class="tbl_head01 tbl_wrap"> <div class="tbl_head01 tbl_wrap">
<table> <table>
<caption>포인트 사용내역 목록</caption> <caption>포인트 사용내역 목록</caption>
<thead> <thead>
<tr> <tr>
<th scope="col">일시</th> <th scope="col">일시</th>
<th scope="col">내용</th> <th scope="col">내용</th>
<th scope="col">만료일</th> <th scope="col">만료일</th>
<th scope="col">지급포인트</th> <th scope="col">지급포인트</th>
<th scope="col">사용포인트</th> <th scope="col">사용포인트</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
$sum_point1 = $sum_point2 = $sum_point3 = 0; $sum_point1 = $sum_point2 = $sum_point3 = 0;
@ -29,60 +30,61 @@ add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">',
{$sql_order} {$sql_order}
limit {$from_record}, {$rows} "; limit {$from_record}, {$rows} ";
$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++) {
$point1 = $point2 = 0; $point1 = $point2 = 0;
if ($row['po_point'] > 0) { if ($row['po_point'] > 0) {
$point1 = '+' .number_format($row['po_point']); $point1 = '+' . number_format($row['po_point']);
$sum_point1 += $row['po_point']; $sum_point1 += $row['po_point'];
} else { } else {
$point2 = number_format($row['po_point']); $point2 = number_format($row['po_point']);
$sum_point2 += $row['po_point']; $sum_point2 += $row['po_point'];
} }
$po_content = $row['po_content']; $po_content = $row['po_content'];
$expr = ''; $expr = '';
if($row['po_expired'] == 1) if ($row['po_expired'] == 1)
$expr = ' txt_expired'; $expr = ' txt_expired';
?> ?>
<tr> <tr>
<td class="td_datetime"><?php echo $row['po_datetime']; ?></td> <td class="td_datetime"><?php echo $row['po_datetime']; ?></td>
<td><?php echo $po_content; ?></td> <td><?php echo $po_content; ?></td>
<td class="td_date<?php echo $expr; ?>"> <td class="td_date<?php echo $expr; ?>">
<?php if ($row['po_expired'] == 1) { ?> <?php if ($row['po_expired'] == 1) { ?>
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?> 만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? '&nbsp;' : $row['po_expire_date']; ?> <?php } else
echo $row['po_expire_date'] == '9999-12-31' ? '&nbsp;' : $row['po_expire_date']; ?>
</td> </td>
<td class="td_numbig"><?php echo $point1; ?></td> <td class="td_numbig"><?php echo $point1; ?></td>
<td class="td_numbig"><?php echo $point2; ?></td> <td class="td_numbig"><?php echo $point2; ?></td>
</tr> </tr>
<?php <?php
} }
if ($i == 0) if ($i == 0)
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>'; echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
else { else {
if ($sum_point1 > 0) if ($sum_point1 > 0)
$sum_point1 = "+" . number_format($sum_point1); $sum_point1 = "+" . number_format($sum_point1);
$sum_point2 = number_format($sum_point2); $sum_point2 = number_format($sum_point2);
} }
?> ?>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<th scope="row" colspan="3">소계</th> <th scope="row" colspan="3">소계</th>
<td><?php echo $sum_point1; ?></td> <td><?php echo $sum_point1; ?></td>
<td><?php echo $sum_point2; ?></td> <td><?php echo $sum_point2; ?></td>
</tr> </tr>
<tr> <tr>
<th scope="row" colspan="3">보유포인트</th> <th scope="row" colspan="3">보유포인트</th>
<td colspan="2"><?php echo number_format($member['mb_point']); ?></td> <td colspan="2"><?php echo number_format($member['mb_point']); ?></td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
</div> </div>
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&amp;page='); ?> <?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&amp;page='); ?>
<div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div> <div class="win_btn"><button type="button" onclick="javascript:window.close();">창닫기</button></div>
</div> </div>

View file

@ -1,50 +1,53 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 자기소개 시작 { --> <!-- 자기소개 시작 { -->
<div id="profile" class="new_win mbskin"> <div id="profile" class="new_win mbskin">
<h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1> <h1 id="win_title"><?php echo $mb_nick ?>님의 프로필</h1>
<div class="tbl_head01 tbl_wrap"> <div class="tbl_head01 tbl_wrap">
<table> <table>
<tbody> <tbody>
<tr> <tr>
<th scope="row">회원권한</th> <th scope="row">회원권한</th>
<td><?php echo $mb['mb_level'] ?></td> <td><?php echo $mb['mb_level'] ?></td>
</tr> </tr>
<tr> <tr>
<th scope="row">포인트</th> <th scope="row">포인트</th>
<td><?php echo number_format($mb['mb_point']) ?></td> <td><?php echo number_format($mb['mb_point']) ?></td>
</tr> </tr>
<?php if ($mb_homepage) { ?> <?php if ($mb_homepage) { ?>
<tr> <tr>
<th scope="row">홈페이지</th> <th scope="row">홈페이지</th>
<td><a href="<?php echo $mb_homepage ?>" target="_blank"><?php echo $mb_homepage ?></a></td> <td><a href="<?php echo $mb_homepage ?>" target="_blank"><?php echo $mb_homepage ?></a></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<th scope="row">회원가입일</th> <th scope="row">회원가입일</th>
<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음"; ?></td> <td>
<?php echo ($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'], 0, 10) . " (" . number_format($mb_reg_after) . " 일)" : "알 수 없음"; ?>
</td>
</tr> </tr>
<tr> <tr>
<th scope="row">최종접속일</th> <th scope="row">최종접속일</th>
<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음"; ?></td> <td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음"; ?></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<section> <section>
<h2>인사말</h2> <h2>인사말</h2>
<p><?php echo $mb_profile ?></p> <p><?php echo $mb_profile ?></p>
</section> </section>
<div class="win_btn"> <div class="win_btn">
<button type="button" onclick="window.close();">창닫기</button> <button type="button" onclick="window.close();">창닫기</button>
</div> </div>
</div> </div>
<!-- } 자기소개 --> <!-- } 자기소개 -->

View file

@ -1,70 +1,69 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<div id="member_page"> <div id="member_page">
<h1 class="member-title"> <h1 class="member-title">
<strong>오너 동의 사항</strong> <strong>오너 동의 사항</strong>
<span> Community Joining Assent </span> <span> Community Joining Assent </span>
</h1> </h1>
<!-- 회원가입약관 동의 시작 { --> <!-- 회원가입약관 동의 시작 { -->
<div class="member-contents agree-pannel"> <div class="member-contents agree-pannel">
<form name="fregister" id="fregister" action="<?php echo $register_action_url ?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off"> <form name="fregister" id="fregister" action="<?php echo $register_action_url ?>"
onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
<section id="fregister_term"> <section id="fregister_term">
<h2>커뮤니티 활동 규칙</h2> <h2>커뮤니티 활동 규칙</h2>
<div class="theme-box"> <div class="theme-box">
<?=nl2br($config['cf_stipulation'])?> <?= nl2br($config['cf_stipulation']) ?>
</div> </div>
<fieldset class="check-agree"> <fieldset class="check-agree">
<input type="checkbox" name="agree" value="1" id="agree11"> <input type="checkbox" name="agree" value="1" id="agree11">
<label for="agree11">커뮤니티 활동 규칙 내용에 동의합니다.</label> <label for="agree11">커뮤니티 활동 규칙 내용에 동의합니다.</label>
</fieldset> </fieldset>
</section> </section>
<section id="fregister_private"> <section id="fregister_private">
<h2>캐릭터 유의사항</h2> <h2>캐릭터 유의사항</h2>
<div class="theme-box"> <div class="theme-box">
<?=nl2br($config['cf_privacy'])?> <?= nl2br($config['cf_privacy']) ?>
</div> </div>
<fieldset class="check-agree"> <fieldset class="check-agree">
<input type="checkbox" name="agree2" value="1" id="agree21"> <input type="checkbox" name="agree2" value="1" id="agree21">
<label for="agree21">캐릭터 유의사항 내용에 동의합니다.</label> <label for="agree21">캐릭터 유의사항 내용에 동의합니다.</label>
</fieldset> </fieldset>
</section> </section>
<div class="ui-button-box txt-center"> <div class="ui-button-box txt-center">
<button type="submit" class="ui-btn point">계정생성</button> <button type="submit" class="ui-btn point">계정생성</button>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
<script> <script>
function fregister_submit(f) function fregister_submit(f) {
{ if (!f.agree.checked) {
if (!f.agree.checked) { alert("커뮤니티 활동 규칙의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
alert("커뮤니티 활동 규칙의 내용에 동의하셔야 회원가입 하실 수 있습니다."); f.agree.focus();
f.agree.focus(); return false;
return false; }
}
if (!f.agree2.checked) { if (!f.agree2.checked) {
alert("캐릭터 유의사항의 내용에 동의하셔야 회원가입 하실 수 있습니다."); alert("캐릭터 유의사항의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
f.agree2.focus(); f.agree2.focus();
return false; return false;
} }
return true; return true;
} }
</script> </script>

View file

@ -1,133 +1,143 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script> <script src="<?php echo G5_JS_URL ?>/jquery.register_form.js"></script>
<?php if($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?> <?php if ($config['cf_cert_use'] && ($config['cf_cert_ipin'] || $config['cf_cert_hp'])) { ?>
<script src="<?php echo G5_JS_URL ?>/certify.js?v=<?php echo G5_JS_VER; ?>"></script> <script src="<?php echo G5_JS_URL ?>/certify.js?v=<?php echo G5_JS_VER; ?>"></script>
<?php } ?> <?php } ?>
<div id="member_page"> <div id="member_page">
<h1 class="member-title"> <h1 class="member-title">
<strong>계정 정보 <?=$w == '' ? "등록" : "수정"?></strong> <strong>계정 정보 <?= $w == '' ? "등록" : "수정" ?></strong>
<span> Community Register Form </span> <span> Community Register Form </span>
</h1> </h1>
<div class="member-contents register-pannel"> <div class="member-contents register-pannel">
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off"> <form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url ?>"
<input type="hidden" name="w" value="<?php echo $w ?>"> onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="url" value="<?php echo $urlencode ?>"> <input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="agree" value="<?php echo $agree ?>"> <input type="hidden" name="url" value="<?php echo $urlencode ?>">
<input type="hidden" name="agree2" value="<?php echo $agree2 ?>"> <input type="hidden" name="agree" value="<?php echo $agree ?>">
<input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>"> <input type="hidden" name="agree2" value="<?php echo $agree2 ?>">
<input type="hidden" name="cert_no" value=""> <input type="hidden" name="cert_type" value="<?php echo $member['mb_certify']; ?>">
<input type="hidden" name="mb_open_default" value="<?php echo $member['mb_open'] ?>"> <input type="hidden" name="cert_no" value="">
<input type="hidden" name="mb_open" value="1"> <input type="hidden" name="mb_open_default" value="<?php echo $member['mb_open'] ?>">
<input type="hidden" name="mb_open" value="1">
<?php if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php echo $member['mb_sex'] ?>"><?php } ?> <?php if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex"
<?php if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 닉네임수정일이 지나지 않았다면 ?> value="<?php echo $member['mb_sex'] ?>"><?php } ?>
<input type="hidden" name="mb_nick_default" value="<?php echo get_text($member['mb_nick']) ?>"> <?php if (isset($member['mb_nick_date']) && $member['mb_nick_date'] > date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400))) { // 닉네임수정일이 지나지 않았다면 ?>
<input type="hidden" name="mb_nick" value="<?php echo get_text($member['mb_nick']) ?>"> <input type="hidden" name="mb_nick_default" value="<?php echo get_text($member['mb_nick']) ?>">
<?php } ?> <input type="hidden" name="mb_nick" value="<?php echo get_text($member['mb_nick']) ?>">
<?php } ?>
<table class="member-form theme-form"> <table class="member-form theme-form">
<colgroup> <colgroup>
<col style="width: 110px;" /> <col style="width: 110px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th>아이디</th> <th>아이디</th>
<td> <td>
<input type="text" name="mb_id" value="<?php echo $member['mb_id'] ?>" id="reg_mb_id" <?php echo $required ?> <?php echo $readonly ?> class="frm_input <?php echo $required ?> <?php echo $readonly ?>" minlength="3" maxlength="20"> <input type="text" name="mb_id" value="<?php echo $member['mb_id'] ?>" id="reg_mb_id" <?php echo $required ?> <?php echo $readonly ?> class="frm_input <?php echo $required ?> <?php echo $readonly ?>"
<span id="msg_mb_id"></span> minlength="3" maxlength="20">
</td> <span id="msg_mb_id"></span>
</tr> </td>
<tr> </tr>
<th scope="row">비밀번호</th> <tr>
<td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td> <th scope="row">비밀번호</th>
</tr> <td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?>
<tr> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
<th scope="row">비밀번호 확인</th> </tr>
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td> <tr>
</tr> <th scope="row">비밀번호 확인</th>
</tbody> <td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?>
</table> class="frm_input <?php echo $required ?>" minlength="3" maxlength="20"></td>
</tr>
</tbody>
</table>
<table class="member-form theme-form"> <table class="member-form theme-form">
<colgroup> <colgroup>
<col style="width: 110px;" /> <col style="width: 110px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th scope="row">닉네임</th> <th scope="row">닉네임</th>
<td> <td>
<input type="text" name="mb_name" value="<?php echo isset($member['mb_name'])?get_text($member['mb_name']):''; ?>" required class="frm_input required" size="10" maxlength="20"> <input type="text" name="mb_name"
</td> value="<?php echo isset($member['mb_name']) ? get_text($member['mb_name']) : ''; ?>" required
</tr> class="frm_input required" size="10" maxlength="20">
<tr> </td>
<th scope="row">생년</th> </tr>
<td> <tr>
<input type="text" name="mb_birth" value="<?php echo isset($member['mb_birth'])?$member['mb_birth']:''; ?>" required class="frm_input required" size="5" maxlength="100"> <th scope="row">생년</th>
</td> <td>
</tr> <input type="text" name="mb_birth"
</tbody> value="<?php echo isset($member['mb_birth']) ? $member['mb_birth'] : ''; ?>" required
</table> class="frm_input required" size="5" maxlength="100">
</td>
<div class="btn_confirm txt-center"> </tr>
<button type="submit" id="btn_submit" class="ui-btn point" accesskey="s"><?php echo $w==''?'회원가입':'정보수정'; ?></button> </tbody>
<a href="<?php echo G5_URL ?>" class="ui-btn">취소</a> </table>
</div>
</form> <div class="btn_confirm txt-center">
</div> <button type="submit" id="btn_submit" class="ui-btn point"
accesskey="s"><?php echo $w == '' ? '회원가입' : '정보수정'; ?></button>
<a href="<?php echo G5_URL ?>" class="ui-btn">취소</a>
</div>
</form>
</div>
</div> </div>
<script> <script>
// submit 최종 폼체크 // submit 최종 폼체크
function fregisterform_submit(f) function fregisterform_submit(f) {
{ // 회원아이디 검사
// 회원아이디 검사 if (f.w.value == "") {
if (f.w.value == "") { var msg = reg_mb_id_check();
var msg = reg_mb_id_check(); if (msg) {
if (msg) { alert(msg);
alert(msg); f.mb_id.select();
f.mb_id.select(); return false;
return false; }
} }
}
if (f.w.value == "") { if (f.w.value == "") {
if (f.mb_password.value.length < 3) { if (f.mb_password.value.length < 3) {
alert("비밀번호를 3글자 이상 입력하십시오."); alert("비밀번호를 3글자 이상 입력하십시오.");
f.mb_password.focus(); f.mb_password.focus();
return false; return false;
} }
} }
if (f.mb_password.value != f.mb_password_re.value) { if (f.mb_password.value != f.mb_password_re.value) {
alert("비밀번호가 같지 않습니다."); alert("비밀번호가 같지 않습니다.");
f.mb_password_re.focus(); f.mb_password_re.focus();
return false; return false;
} }
if (f.mb_password.value.length > 0) { if (f.mb_password.value.length > 0) {
if (f.mb_password_re.value.length < 3) { if (f.mb_password_re.value.length < 3) {
alert("비밀번호를 3글자 이상 입력하십시오."); alert("비밀번호를 3글자 이상 입력하십시오.");
f.mb_password_re.focus(); f.mb_password_re.focus();
return false; return false;
} }
} }
document.getElementById("btn_submit").disabled = "disabled"; document.getElementById("btn_submit").disabled = "disabled";
return true; return true;
} }
</script> </script>
</div> </div>
<!-- } 회원정보 입력/수정 --> <!-- } 회원정보 입력/수정 -->

View file

@ -1,39 +1,42 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<div id="member_page"> <div id="member_page">
<h1 class="member-title"> <h1 class="member-title">
<strong>계정 생성 완료</strong> <strong>계정 생성 완료</strong>
<span> Complete Community Account </span> <span> Complete Community Account </span>
</h1> </h1>
<div class="member-contents register-pannel"> <div class="member-contents register-pannel">
<section> <section>
<h2>정보관리 안내</h2> <h2>정보관리 안내</h2>
<div class="theme-box"> <div class="theme-box">
<p><strong class="txt-point">"<?php echo get_text($mb['mb_name']); ?>"</strong>님의 <strong><?=$config['cf_title']?></strong> 가입을 진심으로 축하합니다.</p> <p><strong class="txt-point">"<?php echo get_text($mb['mb_name']); ?>"</strong>님의
<p>회원님의 비밀번호는 아무도 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.</p> <strong><?= $config['cf_title'] ?></strong> 가입을 진심으로 축하합니다.</p>
<p>아이디, 비밀번호 분실시에는 총괄에게 문의해 주시길 바랍니다.</p> <p>회원님의 비밀번호는 아무도 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.</p>
</div> <p>아이디, 비밀번호 분실시에는 총괄에게 문의해 주시길 바랍니다.</p>
</section> </div>
</section>
<section> <section>
<h2>캐릭터 생성</h2> <h2>캐릭터 생성</h2>
<div class="theme-box"> <div class="theme-box">
<p>캐릭터 생성은 신청기간 동안 생성하실 있습니다.</p> <p>캐릭터 생성은 신청기간 동안 생성하실 있습니다.</p>
<p>로그인 <strong>[ <a href="<?=G5_URL?>/mypage/">MY PAGE</a> > <a href="<?=G5_URL?>/mypage/character/">CHARACTER</a> ]</strong> 메뉴를 통해 생성 수정 관리를 하실 있습니다.</p> <p>로그인 <strong>[ <a href="<?= G5_URL ?>/mypage/">MY PAGE</a> > <a
<p>신청기간이 끝난 뒤에 합격된 캐릭터들은 관리자 승인 MEMBER LIST 자동으로 등록됩니다.</p> href="<?= G5_URL ?>/mypage/character/">CHARACTER</a> ]</strong> 메뉴를 통해 생성 수정 관리를 하실 있습니다.</p>
</div> <p>신청기간이 끝난 뒤에 합격된 캐릭터들은 관리자 승인 MEMBER LIST 자동으로 등록됩니다.</p>
</section> </div>
</section>
<div class="ui-button-box txt-center"> <div class="ui-button-box txt-center">
<button class="ui-btn point" onclick="location.href='<?=G5_URL?>';">메인화면으로</button> <button class="ui-btn point" onclick="location.href='<?= G5_URL ?>';">메인화면으로</button>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,46 +1,53 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 스크랩 목록 시작 { --> <!-- 스크랩 목록 시작 { -->
<div id="scrap" class="new_win mbskin"> <div id="scrap" class="new_win mbskin">
<h1 id="win_title"><?php echo $g5['title'] ?></h1> <h1 id="win_title"><?php echo $g5['title'] ?></h1>
<div class="tbl_head01 tbl_wrap"> <div class="tbl_head01 tbl_wrap">
<table> <table>
<caption>스크랩 목록</caption> <caption>스크랩 목록</caption>
<thead> <thead>
<tr> <tr>
<th scope="col">번호</th> <th scope="col">번호</th>
<th scope="col">게시판</th> <th scope="col">게시판</th>
<th scope="col">제목</th> <th scope="col">제목</th>
<th scope="col">보관일시</th> <th scope="col">보관일시</th>
<th scope="col">삭제</th> <th scope="col">삭제</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php for ($i=0; $i<count($list); $i++) { ?> <?php for ($i = 0; $i < count($list); $i++) { ?>
<tr> <tr>
<td class="td_num"><?php echo $list[$i]['num'] ?></td> <td class="td_num"><?php echo $list[$i]['num'] ?></td>
<td class="td_board"><a href="<?php echo $list[$i]['opener_href'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href'] ?>'; return false;"><?php echo $list[$i]['bo_subject'] ?></a></td> <td class="td_board"><a href="<?php echo $list[$i]['opener_href'] ?>" target="_blank"
<td><a href="<?php echo $list[$i]['opener_href_wr_id'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id'] ?>'; return false;"><?php echo $list[$i]['subject'] ?></a></td> onclick="opener.document.location.href='<?php echo $list[$i]['opener_href'] ?>'; return false;"><?php echo $list[$i]['bo_subject'] ?></a>
</td>
<td><a href="<?php echo $list[$i]['opener_href_wr_id'] ?>" target="_blank"
onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id'] ?>'; return false;"><?php echo $list[$i]['subject'] ?></a>
</td>
<td class="td_datetime"><?php echo $list[$i]['ms_datetime'] ?></td> <td class="td_datetime"><?php echo $list[$i]['ms_datetime'] ?></td>
<td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td> <td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>"
</tr> onclick="del(this.href); return false;">삭제</a></td>
<?php } ?> </tr>
<?php } ?>
<?php if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?> <?php if ($i == 0)
</tbody> echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</table> </tbody>
</div> </table>
</div>
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page="); ?> <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page="); ?>
<div class="win_btn"> <div class="win_btn">
<button type="button" onclick="window.close();">창닫기</button> <button type="button" onclick="window.close();">창닫기</button>
</div> </div>
</div> </div>
<!-- } 스크랩 목록 --> <!-- } 스크랩 목록 -->

View file

@ -1,41 +1,42 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $member_skin_url . '/style.css">', 0);
?> ?>
<!-- 스크랩 시작 { --> <!-- 스크랩 시작 { -->
<div id="scrap_do" class="new_win mbskin"> <div id="scrap_do" class="new_win mbskin">
<h1 id="win_title">스크랩하기</h1> <h1 id="win_title">스크랩하기</h1>
<form name="f_scrap_popin" action="./scrap_popin_update.php" method="post"> <form name="f_scrap_popin" action="./scrap_popin_update.php" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>"> <input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<div class="tbl_frm01 tbl_wrap"> <div class="tbl_frm01 tbl_wrap">
<table> <table>
<caption>제목 확인 댓글 쓰기</caption> <caption>제목 확인 댓글 쓰기</caption>
<tbody> <tbody>
<tr> <tr>
<th scope="row">제목</th> <th scope="row">제목</th>
<td><?php echo get_text(cut_str($write['wr_subject'], 255)) ?></td> <td><?php echo get_text(cut_str($write['wr_subject'], 255)) ?></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="wr_content">댓글</label></th> <th scope="row"><label for="wr_content">댓글</label></th>
<td><textarea name="wr_content" id="wr_content"></textarea></td> <td><textarea name="wr_content" id="wr_content"></textarea></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<p class="win_desc"> <p class="win_desc">
스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 있습니다. 스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 있습니다.
</p> </p>
<div class="win_btn"> <div class="win_btn">
<input type="submit" value="스크랩 확인" class="btn_submit"> <input type="submit" value="스크랩 확인" class="btn_submit">
</div> </div>
</form> </form>
</div> </div>
<!-- } 스크랩 --> <!-- } 스크랩 -->

View file

@ -1,231 +1,265 @@
@charset "utf-8"; @charset "utf-8";
@import url(//fonts.googleapis.com/earlyaccess/notosanskr.css); @import url(//fonts.googleapis.com/earlyaccess/notosanskr.css);
@font-face { @font-face {
font-family: 'icon'; font-family: 'icon';
src: url('../../../css/fonts/icomoon.eot?y5isk6'); src: url('../../../css/fonts/icomoon.eot?y5isk6');
src: url('../../../css/fonts/icomoon.eot?y5isk6#iefix') format('embedded-opentype'), src: url('../../../css/fonts/icomoon.eot?y5isk6#iefix') format('embedded-opentype'),
url('../../../css/fonts/icomoon.ttf?y5isk6') format('truetype'), url('../../../css/fonts/icomoon.ttf?y5isk6') format('truetype'),
url('../../../css/fonts/icomoon.woff?y5isk6') format('woff'), url('../../../css/fonts/icomoon.woff?y5isk6') format('woff'),
url('../../../css/fonts/icomoon.svg?y5isk6#icomoon') format('svg'); url('../../../css/fonts/icomoon.svg?y5isk6#icomoon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
html, body { position: relative; height: 100%; background: #fff; } html,
body {
#login_page_box { position: relative; height: 100%; } position: relative;
#login_page_box:before { height: 100%;
content: ""; background: #fff;
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
box-sizing: border-box;
border-top: 8px solid #ecc6c6;
background: url('./img/bak_admin_login_top_pattern.png');
z-index: 0;
}
#login_page_box:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: rgba(0,0,0,0);
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.5) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(65%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0.5)));
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.5) 100%);
background: -o-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.5) 100%);
background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.5) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.5) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0 );
} }
#login_title { #login_page_box {
display: block; position: relative;
position: relative; height: 100%;
height: 50%;
padding-bottom: 130px;
box-sizing: border-box;
z-index: 3;
}
#login_title .inner {
position: relative;
width: 100%;
height: 100%;
}
#login_title h1 {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
font-family: 'Noto Sans KR', sans-serif;
font-size: 35px;
font-weight: 600;
} }
#login_title em { #login_page_box:before {
font-style: normal; content: "";
color: #ecc6c6; display: block;
text-align: center; position: absolute;
line-height: 1.5em; top: 0;
} left: 0;
#login_title em strong { right: 0;
color: #fff; height: 50%;
} box-sizing: border-box;
#login_title span { border-top: 8px solid #ecc6c6;
display: block; background: url('./img/bak_admin_login_top_pattern.png');
font-size: 16px; z-index: 0;
font-weight: 400;
color: #999;
text-align: center;
}
#login_title sup {
display: block;
position: relative;
font-size: 13px;
font-weight: 300;
text-align: center;
padding: 0;
margin-top: 20px;
color: #777;
} }
#mb_login { #login_page_box:after {
position: absolute; content: "";
top: 50%; display: block;
left: 50%; position: absolute;
width: 500px; top: 0;
height: 260px; left: 0;
right: 0;
height: 50%;
border-top: 5px solid #ecc6c6; background: rgba(0, 0, 0, 0);
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.5)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.5) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}
transform: translateX(-50%) translateY(-50%); #login_title {
background: #fff; display: block;
position: relative;
height: 50%;
padding-bottom: 130px;
box-sizing: border-box;
z-index: 3;
}
-webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.49); #login_title .inner {
-moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.49); position: relative;
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.49); width: 100%;
height: 100%;
}
z-index: 5; #login_title h1 {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
font-family: 'Noto Sans KR', sans-serif;
font-size: 35px;
font-weight: 600;
}
#login_title em {
font-style: normal;
color: #ecc6c6;
text-align: center;
line-height: 1.5em;
}
#login_title em strong {
color: #fff;
}
#login_title span {
display: block;
font-size: 16px;
font-weight: 400;
color: #999;
text-align: center;
}
#login_title sup {
display: block;
position: relative;
font-size: 13px;
font-weight: 300;
text-align: center;
padding: 0;
margin-top: 20px;
color: #777;
}
#mb_login {
position: absolute;
top: 50%;
left: 50%;
width: 500px;
height: 260px;
border-top: 5px solid #ecc6c6;
transform: translateX(-50%) translateY(-50%);
background: #fff;
-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.49);
-moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.49);
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.49);
z-index: 5;
} }
#mb_login:before { #mb_login:before {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: -20px; bottom: -20px;
background: #fff; background: #fff;
z-index: 0; z-index: 0;
} }
#mb_login .inner { #mb_login .inner {
position: relative; position: relative;
padding: 30px; padding: 30px;
z-index: 1; z-index: 1;
} }
#mb_login fieldset.input { #mb_login fieldset.input {
display: block; display: block;
position: relative; position: relative;
margin-bottom: 5px; margin-bottom: 5px;
margin-right: 130px; margin-right: 130px;
} }
#mb_login fieldset.input input {
display: block;
width: 100%;
box-sizing: border-box;
background: #fff !important; #mb_login fieldset.input input {
color: #3a3a3b; display: block;
height: 45px; width: 100%;
padding: 0 15px 0 45px; box-sizing: border-box;
font-size: 15px;
font-family: 'Noto Sans KR', sans-serif; background: #fff !important;
outline: none; color: #3a3a3b;
border: 1px solid #eaeaea; height: 45px;
padding: 0 15px 0 45px;
font-size: 15px;
font-family: 'Noto Sans KR', sans-serif;
outline: none;
border: 1px solid #eaeaea;
} }
#mb_login fieldset.input input:focus { border: 2px solid #ecc6c6; }
#mb_login fieldset.input label { #mb_login fieldset.input input:focus {
display: block; border: 2px solid #ecc6c6;
position: absolute; }
top: 0;
left: 0; #mb_login fieldset.input label {
width: 45px; display: block;
height: 45px; position: absolute;
line-height: 45px; top: 0;
overflow: hidden; left: 0;
text-indent: -999px; width: 45px;
height: 45px;
line-height: 45px;
overflow: hidden;
text-indent: -999px;
} }
#mb_login fieldset.input label:before {
display: block; #mb_login fieldset.input label:before {
position: absolute; display: block;
top: 0; position: absolute;
left: 0; top: 0;
right: 0; left: 0;
bottom: 0; right: 0;
text-indent: 0; bottom: 0;
text-align: center; text-indent: 0;
font-family: 'icon'; text-align: center;
font-size: 16px; font-family: 'icon';
color: #ccc; font-size: 16px;
color: #ccc;
}
#mb_login fieldset.input input:focus+label:before {
color: #ecc6c6;
}
#mb_login fieldset.input label.login_id:before {
content: "\e976";
}
#mb_login fieldset.input label.login_pw:before {
content: "\e98e";
} }
#mb_login fieldset.input input:focus + label:before { color: #ecc6c6; }
#mb_login fieldset.input label.login_id:before { content: "\e976"; }
#mb_login fieldset.input label.login_pw:before { content: "\e98e"; }
#mb_login fieldset.input input:-webkit-autofill { #mb_login fieldset.input input:-webkit-autofill {
transition: background-color 50000s ease-in-out 0s; transition: background-color 50000s ease-in-out 0s;
-webkit-box-shadow: 0 0 0 30px white inset; -webkit-box-shadow: 0 0 0 30px white inset;
-webkit-text-fill-color: #3a3a3b !important; -webkit-text-fill-color: #3a3a3b !important;
} }
#mb_login fieldset.check { #mb_login fieldset.check {
display: block; display: block;
position: relative; position: relative;
padding: 5px; padding: 5px;
background: #f6f6f6; background: #f6f6f6;
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
color: #3a3a3a; color: #3a3a3a;
margin: 5px 130px 5px 0; margin: 5px 130px 5px 0;
font-size: 11px; font-size: 11px;
}
#mb_login fieldset.check label { cursor: pointer; }
#mb_login fieldset.button {
display: block;
position: absolute;
top: 30px;
right: 30px;
width: 126px;
height: 128px;
}
#mb_login fieldset.button .btn_submit {
display: block;
width: 100%;
height: 100%;
background: #ecc6c6;
font-family: 'Noto Sans KR', sans-serif;
font-size: 18px;
border: none;
cursor: pointer;
color: #fff;
} }
#copyright { #mb_login fieldset.check label {
padding-top: 30px; cursor: pointer;
font-size: 12px; }
color: #aaa;
text-align: center; #mb_login fieldset.button {
} display: block;
position: absolute;
top: 30px;
right: 30px;
width: 126px;
height: 128px;
}
#mb_login fieldset.button .btn_submit {
display: block;
width: 100%;
height: 100%;
background: #ecc6c6;
font-family: 'Noto Sans KR', sans-serif;
font-size: 18px;
border: none;
cursor: pointer;
color: #fff;
}
#copyright {
padding-top: 30px;
font-size: 12px;
color: #aaa;
text-align: center;
}

View file

@ -1,99 +1,153 @@
@charset "utf-8"; @charset "utf-8";
#member_page { #member_page {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
max-width: 800px; max-width: 800px;
margin: 0 auto; margin: 0 auto;
padding-bottom: 80px; padding-bottom: 80px;
} }
#member_page .agree-pannel .theme-box { #member_page .agree-pannel .theme-box {
height: 300px; height: 300px;
overflow: auto; overflow: auto;
} }
#member_page .member-title { #member_page .member-title {
font-size: 24px; font-size: 24px;
padding-top: 20px; padding-top: 20px;
text-align: center; text-align: center;
}
#member_page .member-title * { display: block; }
#member_page .member-title span {
font-size: 15px;
font-weight: 600;
}
#member_page .member-contents { padding-top: 20px; }
#member_page .member-contents h2 {
font-size: 16px;
line-height: 1.5em;
padding-bottom: 10px;
} }
#member_page .member-contents section { #member_page .member-title * {
padding-bottom: 30px; display: block;
} }
#member_page .member-contents .theme-box { #member_page .member-title span {
padding: 15px; font-size: 15px;
line-height: 1.8em; font-weight: 600;
} }
#member_page .check-agree { #member_page .member-contents {
padding-top: 10px; padding-top: 20px;
text-align: right;
} }
#member_page .check-agree input { display: none; }
#member_page .check-agree input + label:before { #member_page .member-contents h2 {
content: "\ea53"; font-size: 16px;
display: inline-block; line-height: 1.5em;
vertical-align: middle; padding-bottom: 10px;
font-family: 'icon';
margin-right: 5px;
font-size: 18px;
} }
#member_page .check-agree input:checked + label:before {
content: "\ea52"; #member_page .member-contents section {
padding-bottom: 30px;
}
#member_page .member-contents .theme-box {
padding: 15px;
line-height: 1.8em;
}
#member_page .check-agree {
padding-top: 10px;
text-align: right;
}
#member_page .check-agree input {
display: none;
}
#member_page .check-agree input+label:before {
content: "\ea53";
display: inline-block;
vertical-align: middle;
font-family: 'icon';
margin-right: 5px;
font-size: 18px;
}
#member_page .check-agree input:checked+label:before {
content: "\ea52";
} }
.member-form { .member-form {
width: 100%; width: 100%;
margin-bottom: 30px; margin-bottom: 30px;
} }
.member-form th {
font-size: 13px; .member-form th {
font-weight: 400; font-size: 13px;
text-align: left; font-weight: 400;
text-align: left;
} }
/*** PASSWORD ***/ /*** PASSWORD ***/
#password_box {display:block; position:absolute; top:50%; left:50%; width:300px; transform:translate(-50%, -50%); -webkit-transform:translate(-50%, -50%);} #password_box {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 300px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
}
#password_box h1 {
display: block;
width: 100%;
height: auto;
padding: .5em;
font-size: 1.2em;
text-align: center;
}
#password_box h1+.theme-box {
border-top-width: 0;
margin-bottom: 3px;
}
#password_box .descript strong {
display: block;
}
#password_box .pass-form {
position: relative;
padding-right: 80px;
margin-top: 10px;
}
#password_box .pass-form fieldset {
display: block;
}
#password_box .pass-form fieldset+fieldset {
margin-top: 3px;
}
#password_box h1 {display:block; width:100%; height:auto; padding:.5em; font-size:1.2em; text-align:center;}
#password_box h1 + .theme-box { border-top-width: 0; margin-bottom: 3px; }
#password_box .descript strong {display:block;}
#password_box .pass-form {position:relative; padding-right:80px; margin-top:10px;}
#password_box .pass-form fieldset { display: block; }
#password_box .pass-form fieldset + fieldset { margin-top: 3px; }
#password_box .pass-form .box-btn { #password_box .pass-form .box-btn {
display: block; display: block;
position: absolute; position: absolute;
margin: 0; margin: 0;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
width: 70px; width: 70px;
} }
#password_box .pass-form input[type="password"] { width: 100%; }
#password_box .pass-form .box-btn .ui-btn { #password_box .pass-form input[type="password"] {
width: 100%; width: 100%;
height: 100%; }
padding: 0;
#password_box .pass-form .box-btn .ui-btn {
width: 100%;
height: 100%;
padding: 0;
}
#password_box .btn_confirm {
padding: 0;
} }
#password_box .btn_confirm {padding:0;}

View file

@ -1,32 +1,34 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// 선택삭제으로 인해 셀합치기가 가변적으로 변함 // 선택삭제으로 인해 셀합치기가 가변적으로 변함
$colspan = 5; $colspan = 5;
if ($is_admin) $colspan++; if ($is_admin)
$colspan++;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$new_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $new_skin_url . '/style.css">', 0);
?> ?>
<!-- 전체게시물 검색 시작 { --> <!-- 전체게시물 검색 시작 { -->
<fieldset id="new_sch"> <fieldset id="new_sch">
<legend>상세검색</legend> <legend>상세검색</legend>
<form name="fnew" method="get"> <form name="fnew" method="get">
<?php echo $group_select ?> <?php echo $group_select ?>
<label for="view" class="sound_only">검색대상</label> <label for="view" class="sound_only">검색대상</label>
<select name="view" id="view"> <select name="view" id="view">
<option value="">전체게시물 <option value="">전체게시물
<option value="w">원글만 <option value="w">원글만
<option value="c">코멘트만 <option value="c">코멘트만
</select> </select>
<label for="mb_id" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label> <label for="mb_id" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="mb_id" value="<?php echo $mb_id ?>" id="mb_id" required class="frm_input required"> <input type="text" name="mb_id" value="<?php echo $mb_id ?>" id="mb_id" required class="frm_input required">
<input type="submit" value="검색" class="btn_submit"> <input type="submit" value="검색" class="btn_submit">
<p>회원 아이디만 검색 가능</p> <p>회원 아이디만 검색 가능</p>
</form> </form>
<script> <script>
/* 셀렉트 박스에서 자동 이동 해제 /* 셀렉트 박스에서 자동 이동 해제
function select_change() function select_change()
{ {
@ -35,110 +37,113 @@ add_stylesheet('<link rel="stylesheet" href="'.$new_skin_url.'/style.css">', 0);
*/ */
document.getElementById("gr_id").value = "<?php echo $gr_id ?>"; document.getElementById("gr_id").value = "<?php echo $gr_id ?>";
document.getElementById("view").value = "<?php echo $view ?>"; document.getElementById("view").value = "<?php echo $view ?>";
</script> </script>
</fieldset> </fieldset>
<!-- } 전체게시물 검색 --> <!-- } 전체게시물 검색 -->
<!-- 전체게시물 목록 시작 { --> <!-- 전체게시물 목록 시작 { -->
<form name="fnewlist" method="post" action="#" onsubmit="return fnew_submit(this);"> <form name="fnewlist" method="post" action="#" onsubmit="return fnew_submit(this);">
<input type="hidden" name="sw" value="move"> <input type="hidden" name="sw" value="move">
<input type="hidden" name="view" value="<?php echo $view; ?>"> <input type="hidden" name="view" value="<?php echo $view; ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>"> <input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
<input type="hidden" name="stx" value="<?php echo $stx; ?>"> <input type="hidden" name="stx" value="<?php echo $stx; ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>"> <input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>"> <input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="pressed" value=""> <input type="hidden" name="pressed" value="">
<div class="tbl_head01 tbl_wrap"> <div class="tbl_head01 tbl_wrap">
<table> <table>
<thead> <thead>
<tr> <tr>
<?php if ($is_admin) { ?> <?php if ($is_admin) { ?>
<th scope="col"> <th scope="col">
<label for="all_chk" class="sound_only">목록 전체</label> <label for="all_chk" class="sound_only">목록 전체</label>
<input type="checkbox" id="all_chk"> <input type="checkbox" id="all_chk">
</th> </th>
<?php } ?>
<th scope="col">그룹</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">이름</th>
<th scope="col">일시</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0; $i < count($list); $i++) {
$num = $total_count - ($page - 1) * $config['cf_page_rows'] - $i;
$gr_subject = cut_str($list[$i]['gr_subject'], 20);
$bo_subject = cut_str($list[$i]['bo_subject'], 20);
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 80));
?>
<tr>
<?php if ($is_admin) { ?>
<td class="td_chk">
<label for="chk_bn_id_<?php echo $i; ?>" class="sound_only"><?php echo $num ?>번</label>
<input type="checkbox" name="chk_bn_id[]" value="<?php echo $i; ?>" id="chk_bn_id_<?php echo $i; ?>">
<input type="hidden" name="bo_table[<?php echo $i; ?>]" value="<?php echo $list[$i]['bo_table']; ?>">
<input type="hidden" name="wr_id[<?php echo $i; ?>]" value="<?php echo $list[$i]['wr_id']; ?>">
</td>
<?php } ?>
<td class="td_group"><a href="./new.php?gr_id=<?php echo $list[$i]['gr_id'] ?>"><?php echo $gr_subject ?></a>
</td>
<td class="td_board"><a
href="./board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"><?php echo $bo_subject ?></a></td>
<td><a href="<?php echo $list[$i]['href'] ?>"><?php echo $list[$i]['comment'] ?><?php echo $wr_subject ?></a>
</td>
<td class="td_name">
<div><?php echo $list[$i]['name'] ?></div>
</td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
</tr>
<?php } ?> <?php } ?>
<th scope="col">그룹</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">이름</th>
<th scope="col">일시</th>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++)
{
$num = $total_count - ($page - 1) * $config['cf_page_rows'] - $i;
$gr_subject = cut_str($list[$i]['gr_subject'], 20);
$bo_subject = cut_str($list[$i]['bo_subject'], 20);
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 80));
?>
<tr>
<?php if ($is_admin) { ?>
<td class="td_chk">
<label for="chk_bn_id_<?php echo $i; ?>" class="sound_only"><?php echo $num?>번</label>
<input type="checkbox" name="chk_bn_id[]" value="<?php echo $i; ?>" id="chk_bn_id_<?php echo $i; ?>">
<input type="hidden" name="bo_table[<?php echo $i; ?>]" value="<?php echo $list[$i]['bo_table']; ?>">
<input type="hidden" name="wr_id[<?php echo $i; ?>]" value="<?php echo $list[$i]['wr_id']; ?>">
</td>
<?php } ?>
<td class="td_group"><a href="./new.php?gr_id=<?php echo $list[$i]['gr_id'] ?>"><?php echo $gr_subject ?></a></td>
<td class="td_board"><a href="./board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"><?php echo $bo_subject ?></a></td>
<td><a href="<?php echo $list[$i]['href'] ?>"><?php echo $list[$i]['comment'] ?><?php echo $wr_subject ?></a></td>
<td class="td_name"><div><?php echo $list[$i]['name'] ?></div></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
</tr>
<?php } ?>
<?php if ($i == 0) <?php if ($i == 0)
echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; echo '<tr><td colspan="' . $colspan . '" class="empty_table">게시물이 없습니다.</td></tr>';
?> ?>
</tbody> </tbody>
</table> </table>
</div> </div>
<?php if ($is_admin) { ?> <?php if ($is_admin) { ?>
<div class="sir_bw02 sir_bw"> <div class="sir_bw02 sir_bw">
<input type="submit" onclick="document.pressed=this.value" value="선택삭제" class="btn_submit"> <input type="submit" onclick="document.pressed=this.value" value="선택삭제" class="btn_submit">
</div> </div>
<?php } ?> <?php } ?>
</form> </form>
<?php if ($is_admin) { ?> <?php if ($is_admin) { ?>
<script> <script>
$(function(){ $(function () {
$('#all_chk').click(function(){ $('#all_chk').click(function () {
$('[name="chk_bn_id[]"]').attr('checked', this.checked); $('[name="chk_bn_id[]"]').attr('checked', this.checked);
});
}); });
});
function fnew_submit(f) function fnew_submit(f) {
{ f.pressed.value = document.pressed;
f.pressed.value = document.pressed;
var cnt = 0; var cnt = 0;
for (var i=0; i<f.length; i++) { for (var i = 0; i < f.length; i++) {
if (f.elements[i].name == "chk_bn_id[]" && f.elements[i].checked) if (f.elements[i].name == "chk_bn_id[]" && f.elements[i].checked)
cnt++; cnt++;
} }
if (!cnt) { if (!cnt) {
alert(document.pressed+"할 게시물을 하나 이상 선택하세요."); alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
return false; return false;
} }
if (!confirm("선택한 게시물을 정말 "+document.pressed+" 하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) { if (!confirm("선택한 게시물을 정말 " + document.pressed + " 하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) {
return false; return false;
}
f.action = "./new_delete.php";
return true;
} }
</script>
f.action = "./new_delete.php";
return true;
}
</script>
<?php } ?> <?php } ?>
<?php echo $write_pages ?> <?php echo $write_pages ?>
<!-- } 전체게시물 목록 --> <!-- } 전체게시물 목록 -->

View file

@ -2,6 +2,24 @@
/* SIR 지운아빠 */ /* SIR 지운아빠 */
/* 최근게시물 스킨 (new) */ /* 최근게시물 스킨 (new) */
#new_sch {margin-bottom:10px;text-align:right} #new_sch {
#new_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden} margin-bottom: 10px;
#new_sch p {padding:5px 0 0;font-size:0.95em;text-align:right;letter-spacing:-0.1em} text-align: right
}
#new_sch legend {
position: absolute;
margin: 0;
padding: 0;
font-size: 0;
line-height: 0;
text-indent: -9999em;
overflow: hidden
}
#new_sch p {
padding: 5px 0 0;
font-size: 0.95em;
text-align: right;
letter-spacing: -0.1em
}

View file

@ -1,34 +1,35 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">', 0); exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $outlogin_skin_url . '/style.css">', 0);
?> ?>
<div class="login-skin-basic"> <div class="login-skin-basic">
<form name="foutlogin" action="<?php echo $outlogin_action_url ?>" method="post" autocomplete="off"> <form name="foutlogin" action="<?php echo $outlogin_action_url ?>" method="post" autocomplete="off">
<fieldset class="box-id"> <fieldset class="box-id">
<!-- 아이디 입력 --> <!-- 아이디 입력 -->
<input type="text" name="mb_id" required class="required" maxlength="20"> <input type="text" name="mb_id" required class="required" maxlength="20">
</fieldset> </fieldset>
<fieldset class="box-pw"> <fieldset class="box-pw">
<!-- 비밀번호 입력 --> <!-- 비밀번호 입력 -->
<input type="password" name="mb_password" required class="required" maxlength="20"> <input type="password" name="mb_password" required class="required" maxlength="20">
</fieldset> </fieldset>
<fieldset class="box-btn"> <fieldset class="box-btn">
<!-- 로그인 버튼 --> <!-- 로그인 버튼 -->
<button type="submit" class="ui-btn point">로그인</button> <button type="submit" class="ui-btn point">로그인</button>
</fieldset> </fieldset>
<?php if($is_add_register) { <?php if ($is_add_register) {
// 사이트 설정이 계정 생성이 가능할 시 // 사이트 설정이 계정 생성이 가능할 시
?> ?>
<fieldset class="box-join"> <fieldset class="box-join">
<a href="<?php echo G5_BBS_URL ?>/register.php" class="ui-btn">계정생성</a> <a href="<?php echo G5_BBS_URL ?>/register.php" class="ui-btn">계정생성</a>
</fieldset> </fieldset>
<?php } ?> <?php } ?>
</form> </form>
</div> </div>

View file

@ -1,76 +1,76 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
add_stylesheet('<link rel="stylesheet" href="'.$outlogin_skin_url.'/style.css">', 0); exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $outlogin_skin_url . '/style.css">', 0);
?> ?>
<div class="logined-skin-basic"> <div class="logined-skin-basic">
<div class="ui-thumb"> <div class="ui-thumb">
<?php if($character['ch_id']) { <?php if ($character['ch_id']) {
if($character['ch_thumb']) { if ($character['ch_thumb']) {
echo " echo "
<a href='".G5_URL."/mypage/character/viewer.php?ch_id={$character['ch_id']}' class='thumb-box'> <a href='" . G5_URL . "/mypage/character/viewer.php?ch_id={$character['ch_id']}' class='thumb-box'>
<img src='{$character['ch_thumb']}' /> <img src='{$character['ch_thumb']}' />
</a>"; </a>";
} else { } else {
echo "<span class='ui-btn etc'></span>"; echo "<span class='ui-btn etc'></span>";
} }
} else { } else {
if($is_add_character) { if ($is_add_character) {
echo "<a href='".G5_URL."/mypage/character/character_form.php' class='ui-btn point'>캐릭터 생성</a>"; echo "<a href='" . G5_URL . "/mypage/character/character_form.php' class='ui-btn point'>캐릭터 생성</a>";
} else { } else {
echo "<span class='ui-btn etc'></span>"; echo "<span class='ui-btn etc'></span>";
} }
} ?> } ?>
</div> </div>
<div class="info"> <div class="info">
<?php <?php
if($character['ch_name']) { if ($character['ch_name']) {
echo "<p class='character txt-point'>{$character['ch_name']}</p>"; echo "<p class='character txt-point'>{$character['ch_name']}</p>";
} }
?> ?>
<p class="name"> <p class="name">
<?php echo $nick ?> <?php echo $nick ?>
<?php if($is_admin) { ?> <?php if ($is_admin) { ?>
<a href="<?=G5_ADMIN_URL?>" class="ui-btn admin" target="_blank">관리자</a> <a href="<?= G5_ADMIN_URL ?>" class="ui-btn admin" target="_blank">관리자</a>
<?php } ?> <?php } ?>
</p> </p>
<?php <?php
if(!$character['ch_name']) { if (!$character['ch_name']) {
if($is_add_character) { if ($is_add_character) {
echo "<p class='descript'>보유중인 캐릭터가 없습니다.</p>"; echo "<p class='descript'>보유중인 캐릭터가 없습니다.</p>";
} else { } else {
echo "<p class='descript'>캐릭터 생성기간이 아닙니다.</p>"; echo "<p class='descript'>캐릭터 생성기간이 아닙니다.</p>";
} }
} }
?> ?>
<ul class="control-group"> <ul class="control-group">
<li class="link-memo"> <li class="link-memo">
<?php if($memo_not_read) { // 새로운 쪽지가 도착 했을 때 <?php if ($memo_not_read) { // 새로운 쪽지가 도착 했을 때
?> ?>
<a href="<?php echo G5_URL ?>/mypage/memo/" class="ui-btn point"> <a href="<?php echo G5_URL ?>/mypage/memo/" class="ui-btn point">
쪽지 쪽지
<i><?php echo $memo_not_read ?></i> <i><?php echo $memo_not_read ?></i>
</a> </a>
<?php } else { ?> <?php } else { ?>
<a href="<?php echo G5_URL ?>/mypage/memo/" class="ui-btn"> <a href="<?php echo G5_URL ?>/mypage/memo/" class="ui-btn">
쪽지 쪽지
</a> </a>
<?php } ?> <?php } ?>
</li> </li>
<li class="link-my"> <li class="link-my">
<a href="<?php echo G5_URL ?>/mypage/" class="ui-btn"> <a href="<?php echo G5_URL ?>/mypage/" class="ui-btn">
계정관리 계정관리
</a> </a>
</li> </li>
<li class="link-logout"> <li class="link-logout">
<a href="<?php echo G5_BBS_URL ?>/logout.php" class="ui-btn"> <a href="<?php echo G5_BBS_URL ?>/logout.php" class="ui-btn">
로그아웃 로그아웃
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>

View file

@ -1,158 +1,192 @@
@charset "utf-8"; @charset "utf-8";
.login-skin-basic { .login-skin-basic {
display: block; display: block;
position: relative; position: relative;
} }
.login-skin-basic fieldset { .login-skin-basic fieldset {
display: block; display: block;
position: relative; position: relative;
margin-bottom: 3px; margin-bottom: 3px;
margin-right: 75px; margin-right: 75px;
} }
.login-skin-basic fieldset input[type="text"], .login-skin-basic fieldset input[type="text"],
.login-skin-basic fieldset input[type="password"] { display: block; width: 100%; padding-left: 30px; } .login-skin-basic fieldset input[type="password"] {
.login-skin-basic .box-id:before { display: block;
content: "\e976"; width: 100%;
font-family: 'icon'; padding-left: 30px;
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 10px;
line-height: 30px;
}
.login-skin-basic .box-pw:before {
content: "\e98d";
font-family: 'icon';
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 10px;
line-height: 30px;
} }
.login-skin-basic fieldset.box-btn { .login-skin-basic .box-id:before {
position: absolute; content: "\e976";
top: 0; font-family: 'icon';
right: 0; display: block;
width: 72px; position: absolute;
height: 63px; top: 0;
bottom: 0;
margin-right: 0; left: 10px;
line-height: 30px;
}
.login-skin-basic .box-pw:before {
content: "\e98d";
font-family: 'icon';
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 10px;
line-height: 30px;
}
.login-skin-basic fieldset.box-btn {
position: absolute;
top: 0;
right: 0;
width: 72px;
height: 63px;
margin-right: 0;
}
.login-skin-basic fieldset.box-btn button {
width: 100%;
height: 100%;
}
.login-skin-basic fieldset.box-join {
margin-right: 0;
}
.login-skin-basic fieldset.box-join .ui-btn {
width: 100%;
} }
.login-skin-basic fieldset.box-btn button { width: 100%; height: 100%; }
.login-skin-basic fieldset.box-join { margin-right: 0; }
.login-skin-basic fieldset.box-join .ui-btn { width: 100%; }
.logined-skin-basic { .logined-skin-basic {
position: relative; position: relative;
padding-left: 80px; padding-left: 80px;
height: 90px; height: 90px;
} }
.logined-skin-basic .ui-thumb {
position: absolute; .logined-skin-basic .ui-thumb {
top: 0; position: absolute;
left: 0; top: 0;
width: 70px; left: 0;
height: 90px; width: 70px;
overflow: hidden; height: 90px;
overflow: hidden;
} }
.logined-skin-basic .ui-thumb .thumb-box {
display: block; .logined-skin-basic .ui-thumb .thumb-box {
position: relative; display: block;
width: 100%; position: relative;
height: 100%; width: 100%;
overflow: hidden; height: 100%;
background: rgba(0, 0, 0, 0.5); overflow: hidden;
background: rgba(0, 0, 0, 0.5);
} }
.logined-skin-basic .ui-thumb .thumb-box img {
min-width: 100%; .logined-skin-basic .ui-thumb .thumb-box img {
height: 100%; min-width: 100%;
max-width: 120%; height: 100%;
max-width: 120%;
} }
.logined-skin-basic .ui-thumb .ui-btn {
display: block; .logined-skin-basic .ui-thumb .ui-btn {
width: 100%; display: block;
height: 100%; width: 100%;
line-height: 1.2em; height: 100%;
padding: 8px; line-height: 1.2em;
padding: 8px;
} }
.logined-skin-basic .ui-thumb .ui-btn:before {
content: "\e973"; .logined-skin-basic .ui-thumb .ui-btn:before {
display: block; content: "\e973";
padding-top: 10px; display: block;
padding-bottom: 10px; padding-top: 10px;
font-family: 'icon'; padding-bottom: 10px;
font-size: 20px; font-family: 'icon';
font-size: 20px;
} }
.logined-skin-basic .ui-thumb .ui-btn.etc:before {
content: "\ea4e"; .logined-skin-basic .ui-thumb .ui-btn.etc:before {
padding-top: 30px; content: "\ea4e";
padding-top: 30px;
} }
.logined-skin-basic .info { position: relative; height: 100%; }
.logined-skin-basic .info {
position: relative;
height: 100%;
}
.logined-skin-basic .info .name, .logined-skin-basic .info .name,
.logined-skin-basic .info .character { .logined-skin-basic .info .character {
display: block; display: block;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
.logined-skin-basic .info .character + .name { .logined-skin-basic .info .character+.name {
padding-top: 5px; padding-top: 5px;
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
} }
.logined-skin-basic .info .name .ui-btn { .logined-skin-basic .info .name .ui-btn {
font-size: 11px; font-size: 11px;
height: 20px; height: 20px;
line-height: 18px; line-height: 18px;
padding: 0 8px; padding: 0 8px;
margin-left: 5px; margin-left: 5px;
} }
.logined-skin-basic .info .descript { .logined-skin-basic .info .descript {
padding: 5px 0; padding: 5px 0;
font-size: 12px; font-size: 12px;
} }
.logined-skin-basic .control-group { .logined-skin-basic .control-group {
display: block; display: block;
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
overflow: hidden; overflow: hidden;
} }
.logined-skin-basic .control-group li {
display: block; .logined-skin-basic .control-group li {
position: relative; display: block;
width: 33.33%; position: relative;
float: left; width: 33.33%;
float: left;
} }
.logined-skin-basic .control-group .ui-btn {
display: block; .logined-skin-basic .control-group .ui-btn {
width: 100%; display: block;
letter-spacing: -1px; width: 100%;
font-size: 12px; letter-spacing: -1px;
padding: 0 5px; font-size: 12px;
padding: 0 5px;
} }
.logined-skin-basic .control-group .ui-btn i {
display: inline-block; .logined-skin-basic .control-group .ui-btn i {
width: 18px; display: inline-block;
height: 18px; width: 18px;
vertical-align: middle; height: 18px;
text-align: center; vertical-align: middle;
line-height: 18px; text-align: center;
color: #fff; line-height: 18px;
background: #8d3333; color: #fff;
border-radius: 100%; background: #8d3333;
font-size: 11px; border-radius: 100%;
font-size: 11px;
} }
.logined-skin-basic .control-group li + li .ui-btn { border-left-width: 0; }
.logined-skin-basic .control-group li+li .ui-btn {
border-left-width: 0;
}

View file

@ -1,65 +1,67 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $poll_skin_url . '/style.css">', 0);
?> ?>
<!-- 설문조사 시작 { --> <!-- 설문조사 시작 { -->
<form name="fpoll" action="<?php echo G5_BBS_URL ?>/poll_update.php" onsubmit="return fpoll_submit(this);" method="post"> <form name="fpoll" action="<?php echo G5_BBS_URL ?>/poll_update.php" onsubmit="return fpoll_submit(this);"
<input type="hidden" name="po_id" value="<?php echo $po_id ?>"> method="post">
<input type="hidden" name="skin_dir" value="<?php echo urlencode($skin_dir); ?>"> <input type="hidden" name="po_id" value="<?php echo $po_id ?>">
<section id="poll" class="theme-box" style="margin: 10px;"> <input type="hidden" name="skin_dir" value="<?php echo urlencode($skin_dir); ?>">
<header> <section id="poll" class="theme-box" style="margin: 10px;">
<h2><?php echo $po['po_subject'] ?></h2> <header>
</header> <h2><?php echo $po['po_subject'] ?></h2>
<ul> </header>
<?php for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?> <ul>
<li><input type="radio" name="gb_poll" value="<?php echo $i ?>" id="gb_poll_<?php echo $i ?>"> <label for="gb_poll_<?php echo $i ?>"><?php echo $po['po_poll'.$i] ?></label></li> <?php for ($i = 1; $i <= 9 && $po["po_poll{$i}"]; $i++) { ?>
<?php } ?> <li><input type="radio" name="gb_poll" value="<?php echo $i ?>" id="gb_poll_<?php echo $i ?>"> <label
</ul> for="gb_poll_<?php echo $i ?>"><?php echo $po['po_poll' . $i] ?></label></li>
<footer> <?php } ?>
<input type="submit" value="투표하기" class="ui-btn point"> </ul>
<a href="<?php echo G5_BBS_URL."/poll_result.php?po_id=$po_id&amp;skin_dir=".urlencode($skin_dir); ?>" target="_blank" onclick="poll_result(this.href); return false;" class="ui-btn">결과보기</a> <footer>
</footer> <input type="submit" value="투표하기" class="ui-btn point">
</section> <a href="<?php echo G5_BBS_URL . "/poll_result.php?po_id=$po_id&amp;skin_dir=" . urlencode($skin_dir); ?>"
target="_blank" onclick="poll_result(this.href); return false;" class="ui-btn">결과보기</a>
</footer>
</section>
</form> </form>
<script> <script>
function fpoll_submit(f) function fpoll_submit(f) {
{ <?php
<?php if ($member['mb_level'] < $po['po_level'])
if ($member['mb_level'] < $po['po_level']) echo " alert('권한 {$po['po_level']} 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; ";
echo " alert('권한 {$po['po_level']} 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; "; ?>
?>
var chk = false; var chk = false;
for (i=0; i<f.gb_poll.length;i ++) { for (i = 0; i < f.gb_poll.length; i++) {
if (f.gb_poll[i].checked == true) { if (f.gb_poll[i].checked == true) {
chk = f.gb_poll[i].value; chk = f.gb_poll[i].value;
break; break;
} }
} }
if (!chk) { if (!chk) {
alert("투표하실 설문항목을 선택하세요"); alert("투표하실 설문항목을 선택하세요");
return false; return false;
} }
var new_win = window.open("about:blank", "win_poll", "width=616,height=500,scrollbars=yes,resizable=yes"); var new_win = window.open("about:blank", "win_poll", "width=616,height=500,scrollbars=yes,resizable=yes");
f.target = "win_poll"; f.target = "win_poll";
return true; return true;
} }
function poll_result(url) function poll_result(url) {
{ <?php
<?php if ($member['mb_level'] < $po['po_level'])
if ($member['mb_level'] < $po['po_level']) echo " alert('권한 {$po['po_level']} 이상의 회원만 결과를 보실 수 있습니다.'); return false; ";
echo " alert('권한 {$po['po_level']} 이상의 회원만 결과를 보실 수 있습니다.'); return false; "; ?>
?>
win_poll(url); win_poll(url);
} }
</script> </script>
<!-- } 설문조사 --> <!-- } 설문조사 -->

View file

@ -1,125 +1,134 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$poll_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $poll_skin_url . '/style.css">', 0);
?> ?>
<!-- 설문조사 결과 시작 { --> <!-- 설문조사 결과 시작 { -->
<div id="poll_result" class="new_win"> <div id="poll_result" class="new_win">
<!-- 설문조사 결과 그래프 시작 { --> <!-- 설문조사 결과 그래프 시작 { -->
<section id="poll_result_list" class="theme-box"> <section id="poll_result_list" class="theme-box">
<h2><?php echo $po_subject ?> 결과</h2> <h2><?php echo $po_subject ?> 결과</h2>
<dl> <dl>
<dt><span>전체 <?php echo $nf_total_po_cnt ?>표</span></dt> <dt><span>전체 <?php echo $nf_total_po_cnt ?>표</span></dt>
<dd> <dd>
<ol> <ol>
<?php for ($i=1; $i<=count($list); $i++) { ?> <?php for ($i = 1; $i <= count($list); $i++) { ?>
<li> <li>
<p> <p>
<?php echo $list[$i]['content'] ?> <?php echo $list[$i]['content'] ?>
<strong><?php echo $list[$i]['cnt'] ?> 표</strong> <strong><?php echo $list[$i]['cnt'] ?> 표</strong>
<span><?php echo number_format($list[$i]['rate'], 1) ?> 퍼센트</span> <span><?php echo number_format($list[$i]['rate'], 1) ?> 퍼센트</span>
</p> </p>
<div class="poll_result_graph"> <div class="poll_result_graph">
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span> <span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span>
</div> </div>
</li> </li>
<?php } ?> <?php } ?>
</ol> </ol>
</dd> </dd>
</dl> </dl>
</section> </section>
<!-- } 설문조사 결과 그래프 --> <!-- } 설문조사 결과 그래프 -->
<!-- 설문조사 기타의견 시작 { --> <!-- 설문조사 기타의견 시작 { -->
<?php if ($is_etc) { ?> <?php if ($is_etc) { ?>
<section id="poll_result_cmt" class="theme-box"> <section id="poll_result_cmt" class="theme-box">
<h2>기타의견</h2> <h2>기타의견</h2>
<?php for ($i=0; $i<count($list2); $i++) { ?> <?php for ($i = 0; $i < count($list2); $i++) { ?>
<article> <article>
<header> <header>
<h1><?php echo $list2[$i]['pc_name'] ?><span class="sound_only">님의 의견</span></h1> <h1><?php echo $list2[$i]['pc_name'] ?><span class="sound_only">님의 의견</span></h1>
<?php echo $list2[$i]['name'] ?> <?php echo $list2[$i]['name'] ?>
<span class="poll_datetime"><?php echo $list2[$i]['datetime'] ?></span> <span class="poll_datetime"><?php echo $list2[$i]['datetime'] ?></span>
</header> </header>
<p> <p>
<?php echo $list2[$i]['idea'] ?> <?php echo $list2[$i]['idea'] ?>
</p> </p>
<footer> <footer>
<span class="poll_cmt_del"><?php if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span> <span class="poll_cmt_del"><?php if ($list2[$i]['del']) {
</footer> echo $list2[$i]['del'] . "삭제</a>";
</article> } ?></span>
<?php } ?> </footer>
</article>
<?php } ?>
<?php if ($member['mb_level'] >= $po['po_level']) { ?> <?php if ($member['mb_level'] >= $po['po_level']) { ?>
<form name="fpollresult" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" method="post" autocomplete="off"> <form name="fpollresult" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" method="post"
<input type="hidden" name="po_id" value="<?php echo $po_id ?>"> autocomplete="off">
<input type="hidden" name="w" value=""> <input type="hidden" name="po_id" value="<?php echo $po_id ?>">
<input type="hidden" name="skin_dir" value="<?php echo $skin_dir ?>"> <input type="hidden" name="w" value="">
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo get_text(cut_str($member['mb_nick'],255)); ?>"><?php } ?> <input type="hidden" name="skin_dir" value="<?php echo $skin_dir ?>">
<h3><?php echo $po_etc ?></h3> <?php if ($is_member) { ?><input type="hidden" name="pc_name"
value="<?php echo get_text(cut_str($member['mb_nick'], 255)); ?>"><?php } ?>
<h3><?php echo $po_etc ?></h3>
<div class="tbl_frm01 tbl_wrap"> <div class="tbl_frm01 tbl_wrap">
<table id="poll_result_wcmt"> <table id="poll_result_wcmt">
<tbody> <tbody>
<?php if ($is_guest) { ?> <?php if ($is_guest) { ?>
<tr> <tr>
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td> <td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input full required" maxlength="100"></td> <td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input full required"
</tr> maxlength="100"></td>
<?php if ($is_guest) { ?> </tr>
<tr> <?php if ($is_guest) { ?>
<th scope="row">자동등록방지</th> <tr>
<td><?php echo captcha_html(); ?></td> <th scope="row">자동등록방지</th>
</tr> <td><?php echo captcha_html(); ?></td>
<?php } ?> </tr>
</tbody> <?php } ?>
</table> </tbody>
</div> </table>
</div>
<div class="btn_confirm"> <div class="btn_confirm">
<input type="submit" class="btn_submit ui-btn point full" value="의견남기기"> <input type="submit" class="btn_submit ui-btn point full" value="의견남기기">
</div> </div>
</form> </form>
<?php } ?> <?php } ?>
</section> </section>
<?php } ?> <?php } ?>
<!-- } 설문조사 기타의견 --> <!-- } 설문조사 기타의견 -->
<!-- 설문조사 다른 결과 보기 시작 { --> <!-- 설문조사 다른 결과 보기 시작 { -->
<aside id="poll_result_oth" class="theme-box"> <aside id="poll_result_oth" class="theme-box">
<ul> <ul>
<?php for ($i=0; $i<count($list3); $i++) { ?> <?php for ($i = 0; $i < count($list3); $i++) { ?>
<li><a href="./poll_result.php?po_id=<?php echo $list3[$i]['po_id'] ?>&amp;skin_dir=<?php echo $skin_dir ?>">[<?php echo $list3[$i]['date'] ?>] <?php echo $list3[$i]['subject'] ?></a></li> <li><a
<?php } ?> href="./poll_result.php?po_id=<?php echo $list3[$i]['po_id'] ?>&amp;skin_dir=<?php echo $skin_dir ?>">[<?php echo $list3[$i]['date'] ?>]
</ul> <?php echo $list3[$i]['subject'] ?></a></li>
</aside> <?php } ?>
<!-- } 설문조사 다른 결과 보기 --> </ul>
</aside>
<!-- } 설문조사 다른 결과 보기 -->
</div> </div>
<script> <script>
$(function() { $(function () {
$(".poll_delete").click(function() { $(".poll_delete").click(function () {
if(!confirm("해당 기타의견을 삭제하시겠습니까?")) if (!confirm("해당 기타의견을 삭제하시겠습니까?"))
return false; return false;
}); });
}); });
function fpollresult_submit(f) function fpollresult_submit(f) {
{ <?php if ($is_guest) {
<?php if ($is_guest) { echo chk_captcha_js(); } ?> echo chk_captcha_js();
} ?>
return true; return true;
} }
</script> </script>
<!-- } 설문조사 결과 --> <!-- } 설문조사 결과 -->

View file

@ -3,20 +3,33 @@
/* ### 기본 스타일 커스터마이징 시작 ### */ /* ### 기본 스타일 커스터마이징 시작 ### */
#poll a.btn_admin {} /* 관리자 전용 버튼 */ #poll a.btn_admin {}
#poll a.btn_admin:focus, #poll a.btn_admin:hover {}
/* 관리자 전용 버튼 */
#poll a.btn_admin:focus,
#poll a.btn_admin:hover {}
#poll_result .tbl_frm table {} #poll_result .tbl_frm table {}
#poll_result .tbl_frm .frm_info {} #poll_result .tbl_frm .frm_info {}
#poll_result .tbl_frm .frm_address {} #poll_result .tbl_frm .frm_address {}
#poll_result .tbl_frm .frm_file {} #poll_result .tbl_frm .frm_file {}
#poll_result .tbl_frm caption {} #poll_result .tbl_frm caption {}
#poll_result .tbl_frm01 {} #poll_result .tbl_frm01 {}
#poll_result .tbl_frm01 th {} #poll_result .tbl_frm01 th {}
#poll_result .tbl_frm01 td {} #poll_result .tbl_frm01 td {}
#poll_result .tbl_frm01 textarea, #poll_result tbl_frm01 .frm_input {}
#poll_result .tbl_frm01 textarea,
#poll_result tbl_frm01 .frm_input {}
#poll_result .tbl_frm01 textarea {} #poll_result .tbl_frm01 textarea {}
/* /*
#poll_result .tbl_frm01 #captcha {} #poll_result .tbl_frm01 #captcha {}
#poll_result .tbl_frm01 #captcha input {} #poll_result .tbl_frm01 #captcha input {}
@ -24,64 +37,245 @@
#poll_result .tbl_frm01 a {} #poll_result .tbl_frm01 a {}
/* 필수입력 */ /* 필수입력 */
#poll_result .required, #poll_result textarea.required {} #poll_result .required,
#poll_result textarea.required {}
#poll_result .btn_confirm {} /* 서식단계 진행 */ #poll_result .btn_confirm {}
/* 서식단계 진행 */
#poll_result .btn_submit {} #poll_result .btn_submit {}
#poll_result button.btn_submit {} #poll_result button.btn_submit {}
#poll_result .win_btn {} /* 새창용 */
#poll_result .win_btn {}
/* 새창용 */
#poll_result .win_btn button {} #poll_result .win_btn button {}
#poll_result .win_btn input {} #poll_result .win_btn input {}
#poll_result .win_btn a {} #poll_result .win_btn a {}
#poll_result .win_btn a:focus, #poll_result .win_btn a:hover {}
#poll_result .win_btn a:focus,
#poll_result .win_btn a:hover {}
/* ### 기본 스타일 커스터마이징 끝 ### */ /* ### 기본 스타일 커스터마이징 끝 ### */
/* 설문조사 스킨 */ /* 설문조사 스킨 */
#poll header {position:relative;padding:15px 14px 0} #poll header {
#poll h2 { text-align: center; border-bottom: 1px solid #fff; padding-bottom: 20px; margin-bottom: 20px; } position: relative;
#poll header .btn_admin {margin-top:5px;width:158px;text-align:center} padding: 15px 14px 0
#poll header p {padding:5px 0 0} }
#poll ul {margin:0 0 10px;padding:5px 14px;list-style:none}
#poll li {padding:3px 0} #poll h2 {
#poll footer {padding:0 14px 14px; text-align: center;} text-align: center;
border-bottom: 1px solid #fff;
padding-bottom: 20px;
margin-bottom: 20px;
}
#poll header .btn_admin {
margin-top: 5px;
width: 158px;
text-align: center
}
#poll header p {
padding: 5px 0 0
}
#poll ul {
margin: 0 0 10px;
padding: 5px 14px;
list-style: none
}
#poll li {
padding: 3px 0
}
#poll footer {
padding: 0 14px 14px;
text-align: center;
}
/* 설문조사 결과 (새창) */ /* 설문조사 결과 (새창) */
#poll_result { padding: 20px 0; } #poll_result {
#poll_result section {margin:0 20px 20px;padding:15px;} padding: 20px 0;
#poll_result .tbl_wrap {margin:0} }
#poll_result h2 {margin:0;padding:20px 0}
#poll_result section {
margin: 0 20px 20px;
padding: 15px;
}
#poll_result .tbl_wrap {
margin: 0
}
#poll_result h2 {
margin: 0;
padding: 20px 0
}
#poll_result a {} #poll_result a {}
#poll_result .sv_member, #poll_result .sv_member,
#poll_result .sv_guest {font-weight:bold} #poll_result .sv_guest {
#poll_result_list {margin:0 auto 20px} font-weight: bold
#poll_result_list h2 {text-align:center} }
#poll_result_list {
margin: 0 auto 20px
}
#poll_result_list h2 {
text-align: center
}
#poll_result_list dl, #poll_result_list dl,
#poll_result_list dt, #poll_result_list dt,
#poll_result_list dd {margin:0;padding:0} #poll_result_list dd {
#poll_result_list dl {padding-bottom:30px} margin: 0;
#poll_result_list dt {margin-right:5%;color:#e8180d;text-align:right} padding: 0
#poll_result_list ol {margin:0;padding-left:30px} }
#poll_result_list li {margin-top:10px}
#poll_result_list p {position:relative;margin:0;padding:5px 0} #poll_result_list dl {
#poll_result_list p strong {position:absolute;top:5px;right:5%;padding-right:80px;width:100px;text-align:right} padding-bottom: 30px
#poll_result_list p span {position:absolute;top:5px;right:5%;width:80px;color:#68999c;text-align:right} }
.poll_result_graph {position:relative;margin-right:5%;height:5px;background:#eee}
.poll_result_graph span {position:absolute;top:0;left:0;height:5px;background:#565e60;font-size:0.1em} #poll_result_list dt {
margin-right: 5%;
color: #e8180d;
text-align: right
}
#poll_result_list ol {
margin: 0;
padding-left: 30px
}
#poll_result_list li {
margin-top: 10px
}
#poll_result_list p {
position: relative;
margin: 0;
padding: 5px 0
}
#poll_result_list p strong {
position: absolute;
top: 5px;
right: 5%;
padding-right: 80px;
width: 100px;
text-align: right
}
#poll_result_list p span {
position: absolute;
top: 5px;
right: 5%;
width: 80px;
color: #68999c;
text-align: right
}
.poll_result_graph {
position: relative;
margin-right: 5%;
height: 5px;
background: #eee
}
.poll_result_graph span {
position: absolute;
top: 0;
left: 0;
height: 5px;
background: #565e60;
font-size: 0.1em
}
#poll_result_cmt {} #poll_result_cmt {}
#poll_result_cmt h2 {text-align:center}
#poll_result_cmt h3 {margin:0 0 10px} #poll_result_cmt h2 {
#poll_result_cmt article {margin:0 0 15px;border-bottom:1px solid #eee} text-align: center
#poll_result_cmt h1 {position:absolute;margin:0;padding:0;border:0;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden} }
.poll_datetime {display:inline-block;margin-left:10px}
#poll_result_cmt p {padding:3px 0} #poll_result_cmt h3 {
#poll_result_cmt fieldset {margin-bottom:0;text-align:left} margin: 0 0 10px
#poll_result_cmt fieldset p {margin:0 0 15px;padding:3px 0 0px;text-align:left} }
#poll_result_cmt footer {text-align:right}
#poll_result_wcmt {margin:0 0 10px} #poll_result_cmt article {
.poll_cmt_del a {display:inline-block;padding-bottom:10px} margin: 0 0 15px;
#poll_result_oth {margin:0 auto 20px;width:93%} border-bottom: 1px solid #eee
#poll_result_oth h2 {padding:0 0 10px} }
#poll_result_oth ul {margin:0;padding:0;list-style:none}
#poll_result_oth a {display:block;padding:10px 0;border-bottom:1px solid #eee} #poll_result_cmt h1 {
position: absolute;
margin: 0;
padding: 0;
border: 0;
font-size: 0;
text-indent: -9999em;
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
}
#poll_result_cmt fieldset p {
margin: 0 0 15px;
padding: 3px 0 0px;
text-align: left
}
#poll_result_cmt footer {
text-align: right
}
#poll_result_wcmt {
margin: 0 0 10px
}
.poll_cmt_del a {
display: inline-block;
padding-bottom: 10px
}
#poll_result_oth {
margin: 0 auto 20px;
width: 93%
}
#poll_result_oth h2 {
padding: 0 0 10px
}
#poll_result_oth ul {
margin: 0;
padding: 0;
list-style: none
}
#poll_result_oth a {
display: block;
padding: 10px 0;
border-bottom: 1px solid #eee
}

View file

@ -1,19 +1,22 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $popular_skin_url . '/style.css">', 0);
?> ?>
<!-- 인기검색어 시작 { --> <!-- 인기검색어 시작 { -->
<section id="popular"> <section id="popular">
<div> <div>
<h2>인기검색어</h2> <h2>인기검색어</h2>
<ul> <ul>
<?php for ($i=0; $i<count($list); $i++) { ?> <?php for ($i = 0; $i < count($list); $i++) { ?>
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&amp;sop=and&amp;stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li> <li><a
<?php } ?> href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&amp;sop=and&amp;stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a>
</ul> </li>
</div> <?php } ?>
</ul>
</div>
</section> </section>
<!-- } 인기검색어 --> <!-- } 인기검색어 -->

View file

@ -2,11 +2,44 @@
/* SIR 지운아빠 */ /* SIR 지운아빠 */
/* 인기검색어 */ /* 인기검색어 */
#popular {border-bottom:1px dotted #dde4e9} #popular {
#popular div {margin:0 auto;width:970px;zoom:1} border-bottom: 1px dotted #dde4e9
#popular div:after {display:block;visibility:hidden;clear:both;content:""} }
#popular h2 {float:left;padding:10px 45px 10px 0}
#popular ul {float:left;margin:0;padding:0;list-style:none} #popular div {
#popular li {float:left} margin: 0 auto;
#popular a {display:inline-block;padding:10px;text-decoration:none} width: 970px;
#popular a:focus, #popular a:hover {} zoom: 1
}
#popular div:after {
display: block;
visibility: hidden;
clear: both;
content: ""
}
#popular h2 {
float: left;
padding: 10px 45px 10px 0
}
#popular ul {
float: left;
margin: 0;
padding: 0;
list-style: none
}
#popular li {
float: left
}
#popular a {
display: inline-block;
padding: 10px;
text-decoration: none
}
#popular a:focus,
#popular a:hover {}

View file

@ -1,146 +1,154 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함 // 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 6; $colspan = 6;
if ($is_checkbox) $colspan++; if ($is_checkbox)
$colspan++;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">', 0);
?> ?>
<?php if($qaconfig['qa_content_head']) { ?> <?php if ($qaconfig['qa_content_head']) { ?>
<div class="board-notice"> <div class="board-notice">
<?=conv_content($qaconfig['qa_content_head'], 1);?> <?= conv_content($qaconfig['qa_content_head'], 1); ?>
</div> </div>
<hr class="padding" /> <hr class="padding" />
<?php } ?> <?php } ?>
<div id="bo_list"> <div id="bo_list">
<form name="fqalist" id="fqalist" action="./qadelete.php" onsubmit="return fqalist_submit(this);" method="post">
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<form name="fqalist" id="fqalist" action="./qadelete.php" onsubmit="return fqalist_submit(this);" method="post">
<table class="theme-list"> <input type="hidden" name="stx" value="<?php echo $stx; ?>">
<caption><?php echo $board['bo_subject'] ?> 목록</caption> <input type="hidden" name="sca" value="<?php echo $sca; ?>">
<thead> <input type="hidden" name="page" value="<?php echo $page; ?>">
<tr>
<th scope="col">번호</th>
<?php if ($is_checkbox) { ?>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">제목</th>
<th scope="col">작성자</th>
<th scope="col">상태</th>
<th scope="col">등록일</th>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++) {
?>
<tr>
<td class="td_num txt-center"><?php echo $list[$i]['num']; ?></td>
<?php if ($is_checkbox) { ?>
<td class="td_chk txt-center">
<label for="chk_qa_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject']; ?></label>
<input type="checkbox" name="chk_qa_id[]" value="<?php echo $list[$i]['qa_id'] ?>" id="chk_qa_id_<?php echo $i ?>">
</td>
<?php } ?>
<td class="td_subject">
<a href="<?php echo $list[$i]['view_href']; ?>">
<?php echo $list[$i]['subject']; ?>
</a>
<?php echo $list[$i]['icon_file']; ?>
</td>
<td class="td_name txt-center"><?php echo $list[$i]['name']; ?></td>
<td class="td_stat txt-center <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($list[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></td>
<td class="td_date txt-center"><?php echo $list[$i]['date']; ?></td>
</tr>
<?php
}
?>
<?php if ($i == 0) { echo '<tr><td colspan="'.$colspan.'" class="no-data">게시물이 없습니다.</td></tr>'; } ?>
</tbody>
</table>
<div class="bo_fx"> <table class="theme-list">
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<?php if ($is_checkbox) { ?>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">제목</th>
<th scope="col">작성자</th>
<th scope="col">상태</th>
<th scope="col">등록일</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0; $i < count($list); $i++) {
?>
<tr>
<td class="td_num txt-center"><?php echo $list[$i]['num']; ?></td>
<?php if ($is_checkbox) { ?>
<td class="td_chk txt-center">
<label for="chk_qa_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject']; ?></label>
<input type="checkbox" name="chk_qa_id[]" value="<?php echo $list[$i]['qa_id'] ?>"
id="chk_qa_id_<?php echo $i ?>">
</td>
<?php } ?>
<td class="td_subject">
<a href="<?php echo $list[$i]['view_href']; ?>">
<?php echo $list[$i]['subject']; ?>
</a>
<?php echo $list[$i]['icon_file']; ?>
</td>
<td class="td_name txt-center"><?php echo $list[$i]['name']; ?></td>
<td class="td_stat txt-center <?php echo ($list[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>">
<?php echo ($list[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></td>
<td class="td_date txt-center"><?php echo $list[$i]['date']; ?></td>
</tr>
<?php
}
?>
<div class="btn_bo_user txt-right"> <?php if ($i == 0) {
<?php if ($is_checkbox) { ?><input type="submit" name="btn_submit" class="ui-btn admin" value="선택삭제" onclick="document.pressed=this.value"><?php } ?> echo '<tr><td colspan="' . $colspan . '" class="no-data">게시물이 없습니다.</td></tr>';
<?php if ($list_href) { ?><a href="<?php echo $list_href ?>" class="ui-btn">목록</a><?php } ?> } ?>
<?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="ui-btn point">문의등록</a><?php } ?> </tbody>
</div> </table>
</div>
</form>
<div class="bo_fx">
<div class="btn_bo_user txt-right">
<?php if ($is_checkbox) { ?><input type="submit" name="btn_submit" class="ui-btn admin" value="선택삭제"
onclick="document.pressed=this.value"><?php } ?>
<?php if ($list_href) { ?><a href="<?php echo $list_href ?>" class="ui-btn">목록</a><?php } ?>
<?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="ui-btn point">문의등록</a><?php } ?>
</div>
</div>
</form>
</div> </div>
<?php if($is_checkbox) { ?> <?php if ($is_checkbox) { ?>
<noscript> <noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p> <p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript> </noscript>
<?php } ?> <?php } ?>
<!-- 페이지 --> <!-- 페이지 -->
<?php echo $list_pages; ?> <?php echo $list_pages; ?>
<!-- 게시판 검색 시작 { --> <!-- 게시판 검색 시작 { -->
<fieldset id="bo_sch" class="txt-center"> <fieldset id="bo_sch" class="txt-center">
<legend>게시물 검색</legend> <legend>게시물 검색</legend>
<form name="fsearch" method="get"> <form name="fsearch" method="get">
<input type="hidden" name="sca" value="<?php echo $sca ?>"> <input type="hidden" name="sca" value="<?php echo $sca ?>">
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label> <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" required class="frm_input required" size="15" maxlength="15"> <input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" required class="frm_input required"
<input type="submit" value="검색" class="ui-btn"> size="15" maxlength="15">
</form> <input type="submit" value="검색" class="ui-btn">
</form>
</fieldset> </fieldset>
<!-- } 게시판 검색 --> <!-- } 게시판 검색 -->
<?php if ($is_checkbox) { ?> <?php if ($is_checkbox) { ?>
<script> <script>
function all_checked(sw) { function all_checked(sw) {
var f = document.fqalist; var f = document.fqalist;
for (var i=0; i<f.length; i++) { for (var i = 0; i < f.length; i++) {
if (f.elements[i].name == "chk_qa_id[]") if (f.elements[i].name == "chk_qa_id[]")
f.elements[i].checked = sw; f.elements[i].checked = sw;
} }
} }
function fqalist_submit(f) { function fqalist_submit(f) {
var chk_count = 0; var chk_count = 0;
for (var i=0; i<f.length; i++) { for (var i = 0; i < f.length; i++) {
if (f.elements[i].name == "chk_qa_id[]" && f.elements[i].checked) if (f.elements[i].name == "chk_qa_id[]" && f.elements[i].checked)
chk_count++; chk_count++;
} }
if (!chk_count) { if (!chk_count) {
alert(document.pressed + "할 게시물을 하나 이상 선택하세요."); alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
return false; return false;
} }
if(document.pressed == "선택삭제") { if (document.pressed == "선택삭제") {
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
return false; return false;
} }
return true; return true;
} }
</script> </script>
<?php } ?> <?php } ?>
<!-- } 게시판 목록 --> <!-- } 게시판 목록 -->

View file

@ -2,8 +2,18 @@
/** Notice Box **/ /** Notice Box **/
.board-notice { width: 264px; padding: 10px; margin: 0 auto; text-align: center; box-sizing: border-box; } .board-notice {
.btn_bo_user { padding: 15px 0; } width: 264px;
padding: 10px;
margin: 0 auto;
text-align: center;
box-sizing: border-box;
}
.btn_bo_user {
padding: 15px 0;
}
/* /*
@media all and (max-width: 640px) { @media all and (max-width: 640px) {
@ -30,4 +40,4 @@
.theme-form.write td { .theme-form.write td {
padding: 0px 20px 10px 20px !important; padding: 0px 20px 10px 20px !important;
} }
}*/ }*/

View file

@ -1,33 +1,34 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
?> ?>
<table class="theme-form"> <table class="theme-form">
<colgroup> <colgroup>
<col style="width: 100px;" /> <col style="width: 100px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th>답변</th> <th>답변</th>
<td><?php echo get_text($answer['qa_subject']); ?></td> <td><?php echo get_text($answer['qa_subject']); ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<!-- 본문 내용 시작 { --> <!-- 본문 내용 시작 { -->
<div style="min-height: 120px; padding: 10px;"> <div style="min-height: 120px; padding: 10px;">
<?php echo conv_content($answer['qa_content'], $answer['qa_html']); ?> <?php echo conv_content($answer['qa_content'], $answer['qa_html']); ?>
</div> </div>
<!-- } 본문 내용 --> <!-- } 본문 내용 -->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div id="ans_add" class="txt-center" style="padding: 20px 0;"> <div id="ans_add" class="txt-center" style="padding: 20px 0;">
<?php if($answer_update_href) { ?> <?php if ($answer_update_href) { ?>
<a href="<?php echo $answer_update_href; ?>" class="ui-btn">답변수정</a> <a href="<?php echo $answer_update_href; ?>" class="ui-btn">답변수정</a>
<?php } ?> <?php } ?>
<?php if($answer_delete_href) { ?> <?php if ($answer_delete_href) { ?>
<a href="<?php echo $answer_delete_href; ?>" class="ui-btn admin" onclick="del(this.href); return false;">답변삭제</a> <a href="<?php echo $answer_delete_href; ?>" class="ui-btn admin" onclick="del(this.href); return false;">답변삭제</a>
<?php } ?> <?php } ?>
</div> </div>

View file

@ -1,120 +1,119 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
?> ?>
<section id="bo_v_ans"> <section id="bo_v_ans">
<?php <?php
if($is_admin) // 관리자이면 답변등록 if ($is_admin) // 관리자이면 답변등록
{ {
?> ?>
<h2 style="padding-bottom: 20px; padding-left: 20px;">답변등록</h2> <h2 style="padding-bottom: 20px; padding-left: 20px;">답변등록</h2>
<form name="fanswer" method="post" action="./qawrite_update.php" onsubmit="return fwrite_submit(this);" autocomplete="off"> <form name="fanswer" method="post" action="./qawrite_update.php" onsubmit="return fwrite_submit(this);"
<input type="hidden" name="qa_id" value="<?php echo $view['qa_id']; ?>"> autocomplete="off">
<input type="hidden" name="w" value="a"> <input type="hidden" name="qa_id" value="<?php echo $view['qa_id']; ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>"> <input type="hidden" name="w" value="a">
<input type="hidden" name="stx" value="<?php echo $stx; ?>"> <input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>"> <input type="hidden" name="stx" value="<?php echo $stx; ?>">
<?php <input type="hidden" name="page" value="<?php echo $page; ?>">
$option = ''; <?php
$option_hidden = ''; $option = '';
$option = ''; $option_hidden = '';
$option = '';
if ($is_dhtml_editor) { if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" name="qa_html" value="1">'; $option_hidden .= '<input type="hidden" name="qa_html" value="1">';
} else { } else {
$option .= "\n".'<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="qa_html">html</label>'; $option .= "\n" . '<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="' . $html_value . '" ' . $html_checked . '>' . "\n" . '<label for="qa_html">html</label>';
} }
echo $option_hidden; echo $option_hidden;
?> ?>
<table class="theme-form"> <table class="theme-form">
<colgroup> <colgroup>
<col style="width: 100px;" /> <col style="width: 100px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th><label for="qa_subject">제목</label></th> <th><label for="qa_subject">제목</label></th>
<td><input type="text" name="qa_subject" value="" id="qa_subject" required class="frm_input required full" maxlength="255"></td> <td><input type="text" name="qa_subject" value="" id="qa_subject" required class="frm_input required full"
</tr> maxlength="255"></td>
<tr> </tr>
<th scope="row"><label for="qa_content">내용<strong class="sound_only">필수</strong></label></th> <tr>
<td class="wr_content"> <th scope="row"><label for="qa_content">내용<strong class="sound_only">필수</strong></label></th>
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?> <td class="wr_content">
</td> <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
</tr> </td>
</tbody> </tr>
</table> </tbody>
</table>
<div class="btn_confirm txt-center" style="padding-top: 20px;"> <div class="btn_confirm txt-center" style="padding-top: 20px;">
<input type="submit" value="답변쓰기" id="btn_submit" accesskey="s" class="ui-btn"> <input type="submit" value="답변쓰기" id="btn_submit" accesskey="s" class="ui-btn">
</div> </div>
</form> </form>
<script> <script>
function html_auto_br(obj) function html_auto_br(obj) {
{ if (obj.checked) {
if (obj.checked) { result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다."); if (result)
if (result) obj.value = "2";
obj.value = "2"; else
else obj.value = "1";
obj.value = "1"; }
} else
else obj.value = "";
obj.value = ""; }
}
function fwrite_submit(f) function fwrite_submit(f) {
{ <?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
var subject = ""; var subject = "";
var content = ""; var content = "";
$.ajax({ $.ajax({
url: g5_bbs_url+"/ajax.filter.php", url: g5_bbs_url + "/ajax.filter.php",
type: "POST", type: "POST",
data: { data: {
"subject": f.qa_subject.value, "subject": f.qa_subject.value,
"content": f.qa_content.value "content": f.qa_content.value
}, },
dataType: "json", dataType: "json",
async: false, async: false,
cache: false, cache: false,
success: function(data, textStatus) { success: function (data, textStatus) {
subject = data.subject; subject = data.subject;
content = data.content; content = data.content;
} }
}); });
if (subject) { if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다"); alert("제목에 금지단어('" + subject + "')가 포함되어있습니다");
f.qa_subject.focus(); f.qa_subject.focus();
return false; return false;
} }
if (content) { if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다"); alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
if (typeof(ed_qa_content) != "undefined") if (typeof (ed_qa_content) != "undefined")
ed_qa_content.returnFalse(); ed_qa_content.returnFalse();
else else
f.qa_content.focus(); f.qa_content.focus();
return false; return false;
} }
document.getElementById("btn_submit").disabled = "disabled"; document.getElementById("btn_submit").disabled = "disabled";
return true; return true;
} }
</script> </script>
<?php <?php
} } else {
else ?>
{ <p id="ans_msg">고객님의 문의에 대한 답변을 준비 중입니다.</p>
?> <?php
<p id="ans_msg">고객님의 문의에 대한 답변을 준비 중입니다.</p> }
<?php ?>
} </section>
?>
</section>

View file

@ -1,128 +1,130 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
include_once(G5_LIB_PATH.'/thumbnail.lib.php'); exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">', 0);
?> ?>
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script> <script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>
<table class="theme-form"> <table class="theme-form">
<colgroup> <colgroup>
<col style="width: 100px;" /> <col style="width: 100px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<tr> <tr>
<th>제목</th> <th>제목</th>
<td><?=$view['subject']?></td> <td><?= $view['subject'] ?></td>
</tr> </tr>
<tr> <tr>
<th>작성자</th> <th>작성자</th>
<td><?php echo $view['name'] ?></td> <td><?php echo $view['name'] ?></td>
</tr> </tr>
<tr> <tr>
<th>작성일</th> <th>작성일</th>
<td><?php echo $view['datetime']; ?></td> <td><?php echo $view['datetime']; ?></td>
</tr> </tr>
<?php if($view['download_count'] > 0) { ?> <?php if ($view['download_count'] > 0) { ?>
<tr> <tr>
<th>첨부파일</th> <th>첨부파일</th>
<td> <td>
<?php <?php
// 가변 파일 // 가변 파일
for ($i=0; $i<$view['download_count']; $i++) { for ($i = 0; $i < $view['download_count']; $i++) {
?> ?>
<li> <li>
<a href="<?php echo $view['download_href'][$i]; ?>" class="view_file_download"> <a href="<?php echo $view['download_href'][$i]; ?>" class="view_file_download">
<img src="<?php echo $qa_skin_url ?>/img/icon_file.gif" alt="첨부"> <img src="<?php echo $qa_skin_url ?>/img/icon_file.gif" alt="첨부">
<strong><?php echo $view['download_source'][$i] ?></strong> <strong><?php echo $view['download_source'][$i] ?></strong>
</a> </a>
</li> </li>
<?php <?php
} }
?> ?>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<?php <?php
// 파일 출력 // 파일 출력
if($view['img_count']) { if ($view['img_count']) {
echo "<div id=\"bo_v_img\">\n"; echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<$view['img_count']; $i++) { for ($i = 0; $i < $view['img_count']; $i++) {
//echo $view['img_file'][$i]; //echo $view['img_file'][$i];
echo get_view_thumbnail($view['img_file'][$i], $qaconfig['qa_image_width']); echo get_view_thumbnail($view['img_file'][$i], $qaconfig['qa_image_width']);
} }
echo "</div>\n"; echo "</div>\n";
} }
?> ?>
<!-- 본문 내용 시작 { --> <!-- 본문 내용 시작 { -->
<div id="bo_v_con" style="min-height: 120px; padding: 10px;"> <div id="bo_v_con" style="min-height: 120px; padding: 10px;">
<?php echo get_view_thumbnail($view['content'], $qaconfig['qa_image_width']); ?> <?php echo get_view_thumbnail($view['content'], $qaconfig['qa_image_width']); ?>
</div> </div>
<!-- } 본문 내용 --> <!-- } 본문 내용 -->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<article id="bo_v"> <article id="bo_v">
<!-- 게시물 상단 버튼 시작 { --> <!-- 게시물 상단 버튼 시작 { -->
<div id="bo_v_top" class="txt-center" style="padding: 20px 0;"> <div id="bo_v_top" class="txt-center" style="padding: 20px 0;">
<?php <?php
ob_start(); ob_start();
?> ?>
<?php if ($prev_href) { ?><a href="<?php echo $prev_href ?>" class="ui-btn">이전글</a><?php } ?> <?php if ($prev_href) { ?><a href="<?php echo $prev_href ?>" class="ui-btn">이전글</a><?php } ?>
<?php if ($next_href) { ?><a href="<?php echo $next_href ?>" class="ui-btn">다음글</a><?php } ?> <?php if ($next_href) { ?><a href="<?php echo $next_href ?>" class="ui-btn">다음글</a><?php } ?>
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn">수정</a><?php } ?> <?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn">수정</a><?php } ?>
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn" onclick="del(this.href); return false;">삭제</a><?php } ?> <?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn"
<a href="<?php echo $list_href ?>" class="ui-btn">목록</a> onclick="del(this.href); return false;">삭제</a><?php } ?>
<?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="ui-btn">글쓰기</a><?php } ?> <a href="<?php echo $list_href ?>" class="ui-btn">목록</a>
<?php <?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="ui-btn">글쓰기</a><?php } ?>
$link_buttons = ob_get_contents(); <?php
ob_end_flush(); $link_buttons = ob_get_contents();
?> ob_end_flush();
</div> ?>
<!-- } 게시물 상단 버튼 --> </div>
<!-- } 게시물 상단 버튼 -->
<?php <?php
// 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력 // 질문글에서 답변이 있으면 답변 출력, 답변이 없고 관리자이면 답변등록폼 출력
if(!$view['qa_type']) { if (!$view['qa_type']) {
if($view['qa_status'] && $answer['qa_id']) if ($view['qa_status'] && $answer['qa_id'])
include_once($qa_skin_path.'/view.answer.skin.php'); include_once($qa_skin_path . '/view.answer.skin.php');
else else
include_once($qa_skin_path.'/view.answerform.skin.php'); include_once($qa_skin_path . '/view.answerform.skin.php');
} }
?> ?>
<!-- 링크 버튼 시작 { --> <!-- 링크 버튼 시작 { -->
<div id="bo_v_bot" class="txt-center" style="padding: 20px 0;"> <div id="bo_v_bot" class="txt-center" style="padding: 20px 0;">
<?php echo $link_buttons ?> <?php echo $link_buttons ?>
</div> </div>
<!-- } 링크 버튼 --> <!-- } 링크 버튼 -->
</article> </article>
<!-- } 게시판 읽기 --> <!-- } 게시판 읽기 -->
<script> <script>
$(function() { $(function () {
$("a.view_image").click(function() { $("a.view_image").click(function () {
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no"); window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
return false; return false;
}); });
// 이미지 리사이즈 // 이미지 리사이즈
$("#bo_v_atc").viewimageresize(); $("#bo_v_atc").viewimageresize();
}); });
</script> </script>

View file

@ -1,167 +1,173 @@
<?php <?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$qa_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $qa_skin_url . '/style.css">', 0);
?> ?>
<!-- 게시물 작성/수정 시작 { --> <!-- 게시물 작성/수정 시작 { -->
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off"> <form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post"
<input type="hidden" name="w" value="<?php echo $w ?>"> enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="qa_id" value="<?php echo $qa_id ?>"> <input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>"> <input type="hidden" name="qa_id" value="<?php echo $qa_id ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>"> <input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="stx" value="<?php echo $stx ?>">
<?php <input type="hidden" name="page" value="<?php echo $page ?>">
$option = ''; <?php
$option_hidden = ''; $option = '';
$option = ''; $option_hidden = '';
$option = '';
if ($is_dhtml_editor) { if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" name="qa_html" value="1">'; $option_hidden .= '<input type="hidden" name="qa_html" value="1">';
} else { } else {
$option .= "\n".'<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="qa_html">html</label>'; $option .= "\n" . '<input type="checkbox" id="qa_html" name="qa_html" onclick="html_auto_br(this);" value="' . $html_value . '" ' . $html_checked . '>' . "\n" . '<label for="qa_html">html</label>';
} }
echo $option_hidden; echo $option_hidden;
?> ?>
<table class="theme-form write"> <table class="theme-form write">
<colgroup> <colgroup>
<col style="width: 100px;" /> <col style="width: 100px;" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
<?php if ($category_option) { ?> <?php if ($category_option) { ?>
<tr> <tr>
<th scope="row"><label for="qa_category">분류<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="qa_category">분류<strong class="sound_only">필수</strong></label></th>
<td> <td>
<select name="qa_category" id="qa_category" required class="required" > <select name="qa_category" id="qa_category" required class="required">
<option value="">선택하세요</option> <option value="">선택하세요</option>
<?php echo $category_option ?> <?php echo $category_option ?>
</select> </select>
</td> </td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if ($is_email) { ?> <?php if ($is_email) { ?>
<tr> <tr>
<th scope="row"><label for="qa_email">이메일</label></th> <th scope="row"><label for="qa_email">이메일</label></th>
<td> <td>
<input type="text" name="qa_email" value="<?php echo get_text($write['qa_email']); ?>" id="qa_email" <?php echo $req_email; ?> class="<?php echo $req_email.' '; ?>frm_input email" size="50" maxlength="100"> <input type="text" name="qa_email" value="<?php echo get_text($write['qa_email']); ?>" id="qa_email" <?php echo $req_email; ?> class="<?php echo $req_email . ' '; ?>frm_input email" size="50" maxlength="100">
<input type="checkbox" name="qa_email_recv" value="1" <?php if($write['qa_email_recv']) echo 'checked="checked"'; ?>> <input type="checkbox" name="qa_email_recv" value="1" <?php if ($write['qa_email_recv'])
<label for="qa_email_recv">답변받기</label> echo 'checked="checked"'; ?>>
</td> <label for="qa_email_recv">답변받기</label>
</tr> </td>
<?php } ?> </tr>
<?php } ?>
<tr> <tr>
<th scope="row"><label for="qa_subject">제목<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="qa_subject">제목<strong class="sound_only">필수</strong></label></th>
<td> <td>
<input type="text" name="qa_subject" value="<?php echo get_text($write['qa_subject']); ?>" id="qa_subject" required class="frm_input required" size="50" maxlength="255"> <input type="text" name="qa_subject" value="<?php echo get_text($write['qa_subject']); ?>" id="qa_subject"
</td> required class="frm_input required" size="50" maxlength="255">
</tr> </td>
</tr>
<tr> <tr>
<th scope="row"><label for="qa_content">내용<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="qa_content">내용<strong class="sound_only">필수</strong></label></th>
<td class="wr_content"> <td class="wr_content">
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?> <?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">파일 #1</th> <th scope="row">파일 #1</th>
<td> <td>
<input type="file" name="bf_file[1]" title="파일첨부 1 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file frm_input"> <input type="file" name="bf_file[1]" title="파일첨부 1 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능"
<?php if($w == 'u' && $write['qa_file1']) { ?> class="frm_file frm_input">
<input type="checkbox" id="bf_file_del1" name="bf_file_del[1]" value="1"> <label for="bf_file_del1"><?php echo $write['qa_source1']; ?> 파일 삭제</label> <?php if ($w == 'u' && $write['qa_file1']) { ?>
<?php } ?> <input type="checkbox" id="bf_file_del1" name="bf_file_del[1]" value="1"> <label
</td> for="bf_file_del1"><?php echo $write['qa_source1']; ?> 파일 삭제</label>
</tr> <?php } ?>
</td>
</tr>
<tr> <tr>
<th scope="row">파일 #2</th> <th scope="row">파일 #2</th>
<td> <td>
<input type="file" name="bf_file[2]" title="파일첨부 2 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능" class="frm_file frm_input"> <input type="file" name="bf_file[2]" title="파일첨부 2 : 용량 <?php echo $upload_max_filesize; ?> 이하만 업로드 가능"
<?php if($w == 'u' && $write['qa_file2']) { ?> class="frm_file frm_input">
<input type="checkbox" id="bf_file_del2" name="bf_file_del[2]" value="1"> <label for="bf_file_del2"><?php echo $write['qa_source2']; ?> 파일 삭제</label> <?php if ($w == 'u' && $write['qa_file2']) { ?>
<?php } ?> <input type="checkbox" id="bf_file_del2" name="bf_file_del[2]" value="1"> <label
</td> for="bf_file_del2"><?php echo $write['qa_source2']; ?> 파일 삭제</label>
</tr> <?php } ?>
</td>
</tr>
</tbody> </tbody>
</table> </table>
<hr class="padding" /> <hr class="padding" />
<div class="btn_confirm txt-center"> <div class="btn_confirm txt-center">
<input type="submit" value="작성완료" id="btn_submit" accesskey="s" class="ui-btn point"> <input type="submit" value="작성완료" id="btn_submit" accesskey="s" class="ui-btn point">
<a href="<?php echo $list_href; ?>" class="ui-btn">목록</a> <a href="<?php echo $list_href; ?>" class="ui-btn">목록</a>
</div> </div>
</form> </form>
<script> <script>
function html_auto_br(obj) function html_auto_br(obj) {
{ if (obj.checked) {
if (obj.checked) { result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다."); if (result)
if (result) obj.value = "2";
obj.value = "2"; else
else obj.value = "1";
obj.value = "1"; }
} else
else obj.value = "";
obj.value = ""; }
}
function fwrite_submit(f) function fwrite_submit(f) {
{ <?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
var subject = ""; var subject = "";
var content = ""; var content = "";
$.ajax({ $.ajax({
url: g5_bbs_url+"/ajax.filter.php", url: g5_bbs_url + "/ajax.filter.php",
type: "POST", type: "POST",
data: { data: {
"subject": f.qa_subject.value, "subject": f.qa_subject.value,
"content": f.qa_content.value "content": f.qa_content.value
}, },
dataType: "json", dataType: "json",
async: false, async: false,
cache: false, cache: false,
success: function(data, textStatus) { success: function (data, textStatus) {
subject = data.subject; subject = data.subject;
content = data.content; content = data.content;
} }
}); });
if (subject) { if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다"); alert("제목에 금지단어('" + subject + "')가 포함되어있습니다");
f.qa_subject.focus(); f.qa_subject.focus();
return false; return false;
} }
if (content) { if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다"); alert("내용에 금지단어('" + content + "')가 포함되어있습니다");
if (typeof(ed_qa_content) != "undefined") if (typeof (ed_qa_content) != "undefined")
ed_qa_content.returnFalse(); ed_qa_content.returnFalse();
else else
f.qa_content.focus(); f.qa_content.focus();
return false; return false;
} }
<?php if ($is_hp) { ?> <?php if ($is_hp) { ?>
var hp = f.qa_hp.value.replace(/[0-9\-]/g, ""); var hp = f.qa_hp.value.replace(/[0-9\-]/g, "");
if(hp.length > 0) { if (hp.length > 0) {
alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오."); alert("휴대폰번호는 숫자, - 으로만 입력해 주십시오.");
return false; return false;
} }
<?php } ?> <?php } ?>
document.getElementById("btn_submit").disabled = "disabled"; document.getElementById("btn_submit").disabled = "disabled";
return true; return true;
} }
</script> </script>
<!-- } 게시물 작성/수정 --> <!-- } 게시물 작성/수정 -->

View file

@ -1,140 +1,147 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$search_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $search_skin_url . '/style.css">', 0);
?> ?>
<!-- 전체검색 시작 { --> <!-- 전체검색 시작 { -->
<form name="fsearch" onsubmit="return fsearch_submit(this);" method="get"> <form name="fsearch" onsubmit="return fsearch_submit(this);" method="get">
<input type="hidden" name="srows" value="<?php echo $srows ?>"> <input type="hidden" name="srows" value="<?php echo $srows ?>">
<fieldset id="sch_res_detail"> <fieldset id="sch_res_detail">
<legend>상세검색</legend> <legend>상세검색</legend>
<?php echo $group_select ?> <?php echo $group_select ?>
<script>document.getElementById("gr_id").value = "<?php echo $gr_id ?>";</script> <script>document.getElementById("gr_id").value = "<?php echo $gr_id ?>";</script>
<label for="sfl" class="sound_only">검색조건</label> <label for="sfl" class="sound_only">검색조건</label>
<select name="sfl" id="sfl"> <select name="sfl" id="sfl">
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option> <option value="wr_subject||wr_content" <?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option> </option>
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option> <option value="wr_subject" <?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option> <option value="wr_content" <?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option> <option value="mb_id" <?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
<option value="wr_name" <?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
</select> </select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label> <label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $text_stx ?>" id="stx" required class="frm_input required" maxlength="20"> <input type="text" name="stx" value="<?php echo $text_stx ?>" id="stx" required class="frm_input required"
maxlength="20">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">
<script> <script>
function fsearch_submit(f) function fsearch_submit(f) {
{
if (f.stx.value.length < 2) { if (f.stx.value.length < 2) {
alert("검색어는 두글자 이상 입력하십시오."); alert("검색어는 두글자 이상 입력하십시오.");
f.stx.select(); f.stx.select();
f.stx.focus(); f.stx.focus();
return false; return false;
} }
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요. // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0; var cnt = 0;
for (var i=0; i<f.stx.value.length; i++) { for (var i = 0; i < f.stx.value.length; i++) {
if (f.stx.value.charAt(i) == ' ') if (f.stx.value.charAt(i) == ' ')
cnt++; cnt++;
} }
if (cnt > 1) { if (cnt > 1) {
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다."); alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select(); f.stx.select();
f.stx.focus(); f.stx.focus();
return false; return false;
} }
f.action = ""; f.action = "";
return true; return true;
} }
</script> </script>
<input type="radio" value="or" <?php echo ($sop == "or") ? "checked" : ""; ?> id="sop_or" name="sop"> <input type="radio" value="or" <?php echo ($sop == "or") ? "checked" : ""; ?> id="sop_or" name="sop">
<label for="sop_or">OR</label> <label for="sop_or">OR</label>
<input type="radio" value="and" <?php echo ($sop == "and") ? "checked" : ""; ?> id="sop_and" name="sop"> <input type="radio" value="and" <?php echo ($sop == "and") ? "checked" : ""; ?> id="sop_and" name="sop">
<label for="sop_and">AND</label> <label for="sop_and">AND</label>
</fieldset> </fieldset>
</form> </form>
<div id="sch_result"> <div id="sch_result">
<?php <?php
if ($stx) { if ($stx) {
if ($board_count) { if ($board_count) {
?> ?>
<section id="sch_res_ov"> <section id="sch_res_ov">
<h2><?php echo $stx ?> 전체검색 결과</h2> <h2><?php echo $stx ?> 전체검색 결과</h2>
<dl> <dl>
<dt>게시판</dt> <dt>게시판</dt>
<dd><strong class="sch_word"><?php echo $board_count ?>개</strong></dd> <dd><strong class="sch_word"><?php echo $board_count ?>개</strong></dd>
<dt>게시물</dt> <dt>게시물</dt>
<dd><strong class="sch_word"><?php echo number_format($total_count) ?>개</strong></dd> <dd><strong class="sch_word"><?php echo number_format($total_count) ?>개</strong></dd>
</dl> </dl>
<p><?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</p> <p><?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</p>
</section> </section>
<?php <?php
}
} }
?> }
?>
<?php <?php
if ($stx) { if ($stx) {
if ($board_count) { if ($board_count) {
?> ?>
<ul id="sch_res_board"> <ul id="sch_res_board">
<li><a href="?<?php echo $search_query ?>&amp;gr_id=<?php echo $gr_id ?>" <?php echo $sch_all ?>>전체게시판</a></li> <li><a href="?<?php echo $search_query ?>&amp;gr_id=<?php echo $gr_id ?>" <?php echo $sch_all ?>>전체게시판</a></li>
<?php echo $str_board_list; ?> <?php echo $str_board_list; ?>
</ul> </ul>
<?php <?php
} else { } else {
?> ?>
<div class="empty_list">검색된 자료가 하나도 없습니다.</div> <div class="empty_list">검색된 자료가 하나도 없습니다.</div>
<?php } } ?> <?php }
} ?>
<hr> <hr>
<?php if ($stx && $board_count) { ?><section class="sch_res_list"><?php } ?> <?php if ($stx && $board_count) { ?>
<section class="sch_res_list"><?php } ?>
<?php <?php
$k=0; $k = 0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) { for ($idx = $table_index, $k = 0; $idx < count($search_table) && $k < $rows; $idx++) {
?> ?>
<h2><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?> 게시판 내 결과</a></h2> <h2><a
<ul> href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?>
게시판 결과</a></h2>
<ul>
<?php <?php
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) { for ($i = 0; $i < count($list[$idx]) && $k < $rows; $i++, $k++) {
if ($list[$idx][$i]['wr_is_comment']) if ($list[$idx][$i]['wr_is_comment']) {
{ $comment_def = '<span class="cmt_def">댓글 | </span>';
$comment_def = '<span class="cmt_def">댓글 | </span>'; $comment_href = '#c_' . $list[$idx][$i]['wr_id'];
$comment_href = '#c_'.$list[$idx][$i]['wr_id']; } else {
} $comment_def = '';
else $comment_href = '';
{ }
$comment_def = ''; ?>
$comment_href = '';
}
?>
<li> <li>
<a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>" class="sch_res_title"><?php echo $comment_def ?><?php echo $list[$idx][$i]['subject'] ?></a> <a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>"
<a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>" target="_blank">새창</a> class="sch_res_title"><?php echo $comment_def ?><?php echo $list[$idx][$i]['subject'] ?></a>
<p><?php echo $list[$idx][$i]['content'] ?></p> <a href="<?php echo $list[$idx][$i]['href'] ?><?php echo $comment_href ?>" target="_blank">새창</a>
<?php echo $list[$idx][$i]['name'] ?> <p><?php echo $list[$idx][$i]['content'] ?></p>
<span class="sch_datetime"><?php echo $list[$idx][$i]['wr_datetime'] ?></span> <?php echo $list[$idx][$i]['name'] ?>
</li> <span class="sch_datetime"><?php echo $list[$idx][$i]['wr_datetime'] ?></span>
<?php } ?> </li>
</ul> <?php } ?>
<div class="sch_more"><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><strong><?php echo $bo_subject[$idx] ?></strong> 결과 더보기</a></div> </ul>
<div class="sch_more"><a
href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><strong><?php echo $bo_subject[$idx] ?></strong>
결과 더보기</a></div>
<hr> <hr>
<?php } ?> <?php } ?>
<?php if ($stx && $board_count) { ?></section><?php } ?> <?php if ($stx && $board_count) { ?>
</section><?php } ?>
<?php echo $write_pages ?> <?php echo $write_pages ?>
</div> </div>
<!-- } 전체검색 --> <!-- } 전체검색 -->

View file

@ -2,28 +2,140 @@
/* SIR 지운아빠 */ /* SIR 지운아빠 */
/* 전체검색결과 스킨 */ /* 전체검색결과 스킨 */
#sch_res_detail {padding:0 0 10px;border-bottom:1px solid #e9e9e9;text-align:center} #sch_res_detail {
#sch_res_detail legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden} padding: 0 0 10px;
#sch_res_ov {margin:0 0 10px;padding:10px;border-bottom:1px solid #e9e9e9;background:#f5f6fa;zoom:1} border-bottom: 1px solid #e9e9e9;
#sch_res_ov:after {display:block;visibility:hidden;clear:both;content:""} text-align: center
#sch_res_ov h2 {float:left} }
#sch_res_ov dl {float:left;margin:0 0 0 10px}
#sch_res_ov dt {float:left}
#sch_res_ov dd {float:left;margin:0 10px 0 5px}
#sch_res_ov p {float:right;margin:0;padding:0;line-height:1em}
#sch_res_board {margin:0 0 10px;padding-left:1px;list-style:none;zoom:1} #sch_res_detail legend {
#sch_res_board:after {display:block;visibility:hidden;clear:both;content:""} position: absolute;
#sch_res_board li {float:left;margin-bottom:-1px} margin: 0;
#sch_res_board a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:180px;border:1px solid #ddd;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer} padding: 0;
#sch_res_board a:focus, #sch_res_board a:hover, #sch_res_board a:active {text-decoration:none} font-size: 0;
#sch_res_board .cnt_cmt {font-weight:normal !important} line-height: 0;
text-indent: -9999em;
overflow: hidden
}
.sch_res_list {margin:0 0 10px;padding:10px 0 15px} #sch_res_ov {
.sch_res_list h2 {margin:0 0 15px;font-size:1.2em} margin: 0 0 10px;
.sch_res_list ul {margin:0;padding:0;list-style:none} padding: 10px;
.sch_res_list li {margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e9e9e9} border-bottom: 1px solid #e9e9e9;
.sch_res_title {display:inline-block;margin:0 0 5px} background: #f5f6fa;
.sch_res_list p {margin:0 0 10px;line-height:1.8em} zoom: 1
.sch_more {text-align:right} }
.sch_on {color:#ff3061}
#sch_res_ov:after {
display: block;
visibility: hidden;
clear: both;
content: ""
}
#sch_res_ov h2 {
float: left
}
#sch_res_ov dl {
float: left;
margin: 0 0 0 10px
}
#sch_res_ov dt {
float: left
}
#sch_res_ov dd {
float: left;
margin: 0 10px 0 5px
}
#sch_res_ov p {
float: right;
margin: 0;
padding: 0;
line-height: 1em
}
#sch_res_board {
margin: 0 0 10px;
padding-left: 1px;
list-style: none;
zoom: 1
}
#sch_res_board:after {
display: block;
visibility: hidden;
clear: both;
content: ""
}
#sch_res_board li {
float: left;
margin-bottom: -1px
}
#sch_res_board a {
display: block;
position: relative;
margin-left: -1px;
padding: 6px 0 5px;
width: 180px;
border: 1px solid #ddd;
text-align: center;
letter-spacing: -0.1em;
line-height: 1.2em;
cursor: pointer
}
#sch_res_board a:focus,
#sch_res_board a:hover,
#sch_res_board a:active {
text-decoration: none
}
#sch_res_board .cnt_cmt {
font-weight: normal !important
}
.sch_res_list {
margin: 0 0 10px;
padding: 10px 0 15px
}
.sch_res_list h2 {
margin: 0 0 15px;
font-size: 1.2em
}
.sch_res_list ul {
margin: 0;
padding: 0;
list-style: none
}
.sch_res_list li {
margin: 0 0 10px;
padding: 0 0 10px;
border-bottom: 1px solid #e9e9e9
}
.sch_res_title {
display: inline-block;
margin: 0 0 5px
}
.sch_res_list p {
margin: 0 0 10px;
line-height: 1.8em
}
.sch_more {
text-align: right
}
.sch_on {
color: #ff3061
}

View file

@ -2,12 +2,51 @@
/* SIR 지운아빠 */ /* SIR 지운아빠 */
/* 방문자 집계 */ /* 방문자 집계 */
#visit {border-bottom:1px dotted #dde4e9} #visit {
#visit div {margin:0 auto;width:970px;zoom:1} border-bottom: 1px dotted #dde4e9
#visit div:after {display:block;visibility:hidden;clear:both;content:""} }
#visit h2 {float:left;padding:10px 45px 10px 0}
#visit dl {float:left;margin:0 0 0 10px;padding:0} #visit div {
#visit dt {float:left;margin:0;padding:10px 0 10px} margin: 0 auto;
#visit dd {float:left;margin:0 30px 0 0;padding:10px} width: 970px;
#visit a {display:inline-block;padding:10px;text-decoration:none} zoom: 1
#visit a:focus, #visit a:hover {} }
#visit div:after {
display: block;
visibility: hidden;
clear: both;
content: ""
}
#visit h2 {
float: left;
padding: 10px 45px 10px 0
}
#visit dl {
float: left;
margin: 0 0 0 10px;
padding: 0
}
#visit dt {
float: left;
margin: 0;
padding: 10px 0 10px
}
#visit dd {
float: left;
margin: 0 30px 0 0;
padding: 10px
}
#visit a {
display: inline-block;
padding: 10px;
text-decoration: none
}
#visit a:focus,
#visit a:hover {}

View file

@ -1,27 +1,28 @@
<?php <?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
global $is_admin; global $is_admin;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$visit_skin_url.'/style.css">', 0); add_stylesheet('<link rel="stylesheet" href="' . $visit_skin_url . '/style.css">', 0);
?> ?>
<!-- 접속자집계 시작 { --> <!-- 접속자집계 시작 { -->
<section id="visit"> <section id="visit">
<div> <div>
<h2>접속자집계</h2> <h2>접속자집계</h2>
<dl> <dl>
<dt>오늘</dt> <dt>오늘</dt>
<dd><?php echo number_format($visit[1]) ?></dd> <dd><?php echo number_format($visit[1]) ?></dd>
<dt>어제</dt> <dt>어제</dt>
<dd><?php echo number_format($visit[2]) ?></dd> <dd><?php echo number_format($visit[2]) ?></dd>
<dt>최대</dt> <dt>최대</dt>
<dd><?php echo number_format($visit[3]) ?></dd> <dd><?php echo number_format($visit[3]) ?></dd>
<dt>전체</dt> <dt>전체</dt>
<dd><?php echo number_format($visit[4]) ?></dd> <dd><?php echo number_format($visit[4]) ?></dd>
</dl> </dl>
<?php if ($is_admin == "super") { ?><a href="<?php echo G5_ADMIN_URL ?>/visit_list.php">상세보기</a><?php } ?> <?php if ($is_admin == "super") { ?><a href="<?php echo G5_ADMIN_URL ?>/visit_list.php">상세보기</a><?php } ?>
</div> </div>
</section> </section>
<!-- } 접속자집계 --> <!-- } 접속자집계 -->

View file

@ -12,7 +12,8 @@
</div> </div>
<ul> <ul>
<li> <li>
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" class="play" onclick="return fn_control_bgm('play')"> <a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" class="play"
onclick="return fn_control_bgm('play')">
재생 재생
</a> </a>
</li> </li>