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

Conflicts:
	skin/member/neo/register_form.skin.php
This commit is contained in:
gnuboard
2013-01-08 09:06:05 +09:00
28 changed files with 774 additions and 409 deletions

View File

@ -1,2 +0,0 @@
$(document).ready(function(){
});

View File

@ -180,7 +180,7 @@ if ($member['mb_id'] && ($is_admin == 'super' || $group['gr_admin'] == $member['
include_once('./board_head.php');
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
echo "<script src=\"".$g4['path']."/js/sideview.js\"></script>";
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if (isset($wr_id) && $wr_id) {

View File

@ -25,7 +25,7 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$group_select = '<select name="gr_id" id="gr_id" onchange="select_change();"><option value="">전체그룹';
$group_select = '<select name="gr_id" id="gr_id" title="검색대상" onchange="select_change();"><option value="">전체그룹';
$sql = " select gr_id, gr_subject from {$g4[group_table]} order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)

View File

@ -37,72 +37,75 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
}
?>
<h1>포인트내역</h1>
<div id="point" class="new_win">
<h1><?=$g4['title']?></h1>
<table>
<caption>포인트내역 목록</caption>
<thead>
<tr>
<th scope="col">일시</th>
<th scope="col">내용</th>
<th scope="col">지급포인트</th>
<th scope="col">사용포인트</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">소계</td>
<td><?=number_format($sum_point1)?></td>
<td><?=number_format($sum_point2)?></td>
</tr>
</tfoot>
<tbody>
<?
$sum_point1 = $sum_point2 = 0;
<table>
<caption>포인트내역 목록</caption>
<thead>
<tr>
<th scope="col">일시</th>
<th scope="col">내용</th>
<th scope="col">지급포인트</th>
<th scope="col">사용포인트</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2">소계</td>
<td><?=number_format($sum_point1)?></td>
<td><?=number_format($sum_point2)?></td>
</tr>
</tfoot>
<tbody>
<?
$sum_point1 = $sum_point2 = 0;
$sql = " select *
{$sql_common}
{$sql_order}
limit {$from_record}, {$rows} ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$point1 = $point2 = 0;
if ($row[po_point] > 0) {
$point1 = '+' .number_format($row[po_point]);
$sum_point1 += $row[po_point];
} else {
$point2 = number_format($row[po_point]);
$sum_point2 += $row[po_point];
$sql = " select *
{$sql_common}
{$sql_order}
limit {$from_record}, {$rows} ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$point1 = $point2 = 0;
if ($row[po_point] > 0) {
$point1 = '+' .number_format($row[po_point]);
$sum_point1 += $row[po_point];
} else {
$point2 = number_format($row[po_point]);
$sum_point2 += $row[po_point];
}
?>
<tr>
<td class="td_datetime"><?=$row[po_datetime]?></td>
<td><?=$row[po_content]?></td>
<td class="td_bignum"><?=$point1?></td>
<td class="td_bignum"><?=$point2?></td>
</tr>
<?
}
?>
<tr>
<td><?=$row[po_datetime]?></td>
<td><?=$row[po_content]?></td>
<td><?=$point1?></td>
<td><?=$point2?></td>
</tr>
<?
}
if ($i == 0)
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
else {
if ($sum_point1 > 0)
$sum_point1 = "+" . number_format($sum_point1);
$sum_point2 = number_format($sum_point2);
}
?>
</tbody>
</table>
if ($i == 0)
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
else {
if ($sum_point1 > 0)
$sum_point1 = "+" . number_format($sum_point1);
$sum_point2 = number_format($sum_point2);
}
?>
</tbody>
</table>
<p>보유 포인트 <?=number_format($member[mb_point])?>점</p>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, $_SERVER[PHP_SELF].'?'.$qstr.'&amp;page=');?>
</div>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, $_SERVER[PHP_SELF].'?'.$qstr.'&amp;page=');?>
</div>
<p>보유 포인트 <?=number_format($member[mb_point])?>점</p>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>
<?

View File

@ -3,7 +3,7 @@ include_once('./_common.php');
//if (!$stx) alert("검색어가 없습니다.");
$g4['title'] = '검색 : '.$stx;
$g4['title'] = "전체검색 결과";
include_once('./_head.php');
if ($stx)
@ -221,7 +221,7 @@ if ($stx)
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';
}
$group_select = '<select id="gr_id" name="gr_id" class="select"><option value="">전체 분류';
$group_select = '<select id="gr_id" name="gr_id" class="select" title="그룹선택"><option value="">전체 분류';
$sql = " select gr_id, gr_subject from {$g4[group_table]} order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)

View File

@ -2,58 +2,165 @@
/* 초기화 */
html {overflow-y:scroll}
body {font-size:1em}
html, body, h1, h2, h3, h4, h5, h6 {margin:0;padding:0}
body {background:#fff;font-size:1em}
html, body, h1, h2, h3, h4, h5, h6 {margin:0 0 0;padding:0}
h1, h2, h3, h4, h5, h6 {font-family:"verdana","dotum"}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
header ul, nav ul {margin:0;padding:0;list-style:none}
table {border-collapse:collapse;border-spacing:0} tfoot td {font-weight:bold;text-align:center}
form, img {border:0}
input, img {vertical-align:middle}
p {margin:10px 0;line-height:1.5em}
label, input, img {vertical-align:middle}
input {margin:0;padding:0;font-family:"verdana","dotum"}
p {margin:5px 0;padding:10px 0;line-height:1.5em}
hr {display:none}
/* 기본테이블 */
table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0}
tfoot td {background:#f9f9f5;font-weight:bold;text-align:center}
caption {padding:0 0 10px;text-align:left}
.caption_desc {font-size:0.75em}
th {padding:12px 0 8px;border-top:3px solid #666;border-bottom:1px solid #a9a9a9;font-size:0.8em}
td {padding:10px 0;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;font-size:0.75em}
.empty_table {padding:50px 0;text-align:center}
/* 필드셋 */
fieldset {margin-bottom:20px;padding:13px;border:1px solid #dedace;background:#fefefe}
legend {margin-left:0;padding:7px 10px;border:1px solid #dedace;background:#333;color:#fff}
fieldset .fieldset_input {padding:3px;border:1px solid #ddd;background:#f9f9f5;vertical-align:middle}
fieldset .fieldset_input:focus {padding:4px;border:0;background:#333;color:#fff}
fieldset select {padding:2px;border:1px solid #ddd;background:#f9f9f5;vertical-align:middle}
fieldset p {margin:0}
fieldset .span_highlight {color:#ff3061}
fieldset button,
.fieldset_submit {padding:0 15px;height:23px;border:0;background:#333;color:#fff;font-size:0.8em;line-height:1.9em;vertical-align:middle;cursor:pointer}
fieldset button:focus,
.fieldset_submit:focus {padding:0 15px;height:23px;border:0;background:#555;color:#fff;font-size:0.8em;line-height:1.9em;vertical-align:middle}
.readonly {background:#ff3061}
/* 이미지 등비율 리사이징 */
.img_fix {float:left;width:100%;height:auto}
/* 그누보드4s 설치 완료 메세지 */
#install_done {position:absolute;margin-top:-30px;width:100%;height:580px;background:#e7ebee}
#install_done h1,
#install_done section {margin:0 auto;width:700px}
#install_done div {position:relative;margin:0 auto;width:700px;background:#000}
#install_done div span {position:absolute;top:-28px;left:0;width:700px;height:580px;background:url("../img/install_done.jpg")}
/* 내용 건너뛰기 */
#to_content a {display:block;position:absolute;top:0;left:0;margin:5px;height:0;text-decoration:none;overflow:hidden}
#to_content a {display:block;position:absolute;top:0;left:0;height:0;text-decoration:none;overflow:hidden}
#to_content a:focus,
#to_content a:active {height:auto;padding:5px 10px;border:1px solid #000;background:#333;color:#fff;font-size:0.75em;overflow:auto}
#to_content a:active {padding:10px 0;width:100%;height:auto;background:#333;color:#fff;text-align:center;overflow:auto}
/* 헤딩 */
h1 {margin:0 0 30px;font-size:1.6em}
h2 {margin:0 0 20px}
h3 {margin:0 0 20px}
h4 {margin:0 0 20px}
h5 {margin:0 0 20px}
h6 {margin:0 0 20px}
/* 레이아웃 - 상단 */
#header {z-index:3;position:relative;margin-bottom:30px;height:100px;border-bottom:1px solid #ddd}
#header h1 {height:0;overflow:hidden}
#header {z-index:3;position:relative;margin-bottom:30px}
#header h1 {margin:0;height:0;overflow:hidden}
#logo {position:absolute;top:40px;left:50px}
/* 로고 */
#logo {background:#333;text-align:center}
#logo a {display:inline-block;padding:20px 30px}
#tnb {position:absolute;top:43px;left:140px;zoom:1}
/* 상단메뉴 */
#tnb {padding-left:50px;border-bottom:1px solid #ddd;background:#f9f9f5;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left;margin-right:15px}
#tnb a {display:block;padding:10px;color:#333;font-family:"dotum";font-size:0.9em;font-weight:bold;text-decoration:none}
#tnb li {float:left;margin-left:-1px}
#tnb a {display:block;padding:20px;border-right:1px solid #e9e9e9;border-left:1px solid #e9e9e9;color:#595959;font-family:"dotum";font-size:0.875em;font-weight:bold;text-decoration:none}
#tnb a:hover,
#tnb a:focus {background:#faf9f5}
#hdsch {position:absolute;top:47px;right:45px;padding:0;border:0}
#hdsch legend {height:0;overflow:hidden}
#hdsch_stx {height:26px;width:168px;border:1px solid #d7d7d7;border-right:0;background:#f8f9fa}
#hdsch_stx:focus {background:#e7ebee;outline:0}
#hdsch_submit {position:relative;margin-left:-5px;border:1px solid #d7d7d7;border-left:0}
/* 전체검색 */
#hdsch {position:absolute;top:90px;right:50px;margin:0;padding:0;border:1px solid #ccc;background:#fff}
#hdsch legend {position:absolute;padding:0;width:0;height:0;border:0;overflow:hidden}
#hdsch_stx {margin:5px 0 5px 5px;height:16px;width:166px;border:0;background:transparent}
#hdsch_stx:focus {background:#464649;color:#fff}
#hdsch_submit {position:relative;margin-left:-5px}
.outlogin {position:absolute;top:130px;right:50px;font-size:0.75em}
.outlogin h2 {height:0;overflow:hidden}
#ol_before fieldset {padding:0;border:0}
#ol_before legend {height:0;overflow:hidden}
/* 사이드 네비게이션: 아웃로그인, 설문조사 등 */
#snb {position:absolute;top:150px;right:50px;font-family:"verdana","dotum"}
#snb ul {margin:0;padding:0;list-style:none}
#poll {position:absolute;top:250px;right:50px;font-size:0.75em}
#poll h2 {display:inline-block;font-size:1em}
/* 아웃로그인 */
.outlogin {margin-bottom:5px;border:1px solid #dedace}
.outlogin h2 {margin:0;height:0;overflow:hidden}
/* 로그인 전 */
#ol_before {padding:10px 10px 0;width:178px;background:#f9f9f5;font-size:0.7em}
#ol_before fieldset {margin:0;padding:0;border:0;background:transparent}
#ol_before legend {position:absolute;padding:0;width:0;height:0;border:0;background:transparent;overflow:hidden}
#ol_before input:focus {background:#333;color:#fff}
#ol_before ul {position:relative;top:0;left:90px;margin:10px 0;width:90px;zoom:1}
#ol_before ul:after {display:block;visibility:hidden;clear:both;content:""}
#ol_before li {float:left;margin-right:5px}
#ol_before a {color:#696969;text-decoration:none;letter-spacing:-0.1em}
#ol_mb_id{display:block;margin-bottom:3px;padding:0 5px;width:165px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em}
#ol_mb_id_label {z-index:2;position:absolute;top:17px;left:20px;color:#696969}
#ol_mb_pw {display:block;padding:0 5px;width:100px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em}
#ol_mb_pw_label {z-index:2;position:absolute;top:45px;left:20px;color:#696969}
#auto_login {position:absolute;top:71px;left:13px}
#auto_login_label {position:absolute;top:72px;left:28px;color:#696969;letter-spacing:-0.1em}
#ol_submit {position:absolute;top:38px;right:12px;width:60px;height:24px;border:1px solid #b7b7b7;background:#fff;font-size:1em;font-weight:bold;letter-spacing:-0.1em;line-height:2em}
/* 로그인 후 */
#ol_after {width:198px;background:#f9f9f5;color:#000;font-size:0.75em}
#ol_after header {padding:10px 0;text-align:center}
#ol_after ul {padding:5px 0;background:#fff}
#ol_after li a {display:block;position:relative;padding:7px 10px;color:#000;text-decoration:none}
#ol_after li span {position:absolute;top:7px;right:10px}
#ol_after footer {padding:7px 0 10px;text-align:center}
#ol_after footer a {display:inline-block;padding:0 5px;color:#000;text-decoration:none}
/* 설문조사 */
#poll {width:198px;border:1px solid #dedace;background:#fff;font-size:0.75em}
#poll header {padding:10px 10px 1px;border-bottom:1px solid #efeada;background:#f9f9f5}
#poll h2 {display:inline-block;margin:0;font-size:1em}
#poll p {padding:0}
#poll ul {margin:10px}
#poll li {margin:7px 0}
#poll footer {padding:10px;border-top:1px solid #efeada;text-align:center}
#poll footer input {padding:0 15px;height:24px;border:0;background:#333;color:#fff;font-size:0.9em;letter-spacing:-0.1em;vertical-align:top}
#poll footer a {display:inline-block;padding:0 5px;height:22px;border:1px solid #b7b7b7;background:#fff;color:#000;font-size:0.9em;vertical-align:top;text-decoration:none;letter-spacing:-0.1em;line-height:2.1em}
/* 설문조사 결과 (새창) */
#poll_result section {margin:0 auto 20px;;padding:10px;width:90%}
#poll_result h2 {margin-top:10px;font-size:1em}
#poll_result_list {border:1px solid #ddd;background:#f7f7f7}
#poll_result_list h2 {padding:10px 0 0;text-align:center}
#poll_result_list dl,
#poll_result_list dt,
#poll_result_list dd {margin:0;padding:0}
#poll_result_list dt {text-align:center}
#poll_result_list p {position:relative;margin-bottom:0}
#poll_result_list p span {position:absolute;top:5px;right:5%}
.poll_result_graph {position:relative;margin-right:5%;height:10px;background:#ddd}
.poll_result_graph span {position:absolute;top:0;left:0;height:100%;background:#ff7200}
#poll_result_cmt {border:1px solid #ddd;background:#f7f7f7}
#poll_result_cmt h2 {text-align:center}
#poll_result_cmt article {margin-bottom:15px;border-bottom:1px solid #e7e7e7}
#poll_result_cmt h1 {display:inline-block;margin:0 10px 0 0;padding:0;font-size:0.875em}
#poll_result_cmt h1 a {color:#000;text-decoration:none}
#poll_result_cmt .poll_datetime,
#poll_result_cmt .poll_del {font-size:0.75em}
#poll_result_cmt p {padding:3px 0;font-size:0.875em}
#poll_result_cmt fieldset {border:0;text-align:center}
#poll_result_cmt legend {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
#poll_result_cmt fieldset p {margin:0 0 15px;padding:3px 0 10px;border-bottom:1px solid #dedede;text-align:left}
#poll_result_another a {display:block;padding:5px 0}
/* 레이아웃 중간 */
#wrapper {z-index:2;position:relative;margin-right:270px;padding-left:50px;min-height:520px;height:auto !important;height:520px}
#wrapper {z-index:2;clear:both;position:relative;margin-right:270px;padding-left:50px;min-height:520px;height:auto !important;height:520px}
/* 레이아웃 하단 */
#footer {z-index:1;position:relative;margin-top:30px;padding:15px 0 20px;border-top:1px solid #ddd;color:#595959;font-size:0.75em}
#footer h1 {height:0;overflow:hidden}
#footer h1 {margin:0;height:0;overflow:hidden}
#footer section {margin-left:50px}
#footer h2 {width:100px;color:#000;font-size:1em}
#footer h2 {margin:0;width:100px;color:#000;font-size:1em}
#footer a {color:#595959;text-decoration:none}
/* 방문자집계 */
#visit {margin-bottom:10px;zoom:1}
#visit:after {display:block;visibility:hidden;clear:both;content:""}
#visit h2 {float:left}
@ -63,10 +170,12 @@ p {margin:10px 0;line-height:1.5em}
#visit dd {float:left;margin:0 15px 0 5px;color:#000;font-style:italic}
#visit a {float:left;font-weight:bold}
/* 현재접속자 */
#current_connect {margin-bottom:10px;zoom:1}
#current_connect:after {display:block;visibility:hidden;clear:both;content:""}
#current_connect h2 {float:left}
/*인기검색어 */
#popular {margin-bottom:10px;zoom:1}
#popular:after {display:block;visibility:hidden;clear:both;content:""}
#popular h2 {float:left}
@ -74,8 +183,92 @@ p {margin:10px 0;line-height:1.5em}
#popular ul:after {display:block;visibility:hidden;clear:both;content:""}
#popular li {float:left;margin-right:20px}
#footer p {position:absolute;top:15px;right:50px}
/* 카피라이트 */
#footer p {position:absolute;top:25px;right:50px}
/* 테이블 */
table {margin-bottom:10px;width:100%}
caption {padding:10px 0 15px;text-align:left;font-size:1em;font-weight:bold}
/* ##################################################################### 스킨 및 컨텐츠 */
/* 폼 테이블 */
.frm_tbl {}
.frm_tbl caption {padding-top:10px;border-bottom:1px solid #aaa;font-weight:bold}
.frm_tbl th {width:170px;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;text-align:left}
.frm_tbl textarea,
.frm_tbl .frm_input,
.frm_tbl select {border:1px solid #d7d7d7;background:#f6f9fa;vertical-align:middle}
.frm_tbl textarea,
.frm_tbl .frm_input {padding:3px;background:#f5f5f2}
.frm_tbl textarea:focus,
.frm_tbl .frm_input:focus {padding:4px;border:0;background:#333;color:#fff}
.frm_tbl textarea {width:90%}
.frm_tbl select {padding:2px}
.frm_info {display:block;padding:10px 0 0;color:#595959;line-height:1.3em}
/* 테이블 항목별 정의 */
.td_group {width:100px;text-align:center}
.td_board {width:120px;text-align:center}
.td_num {width:50px;text-align:center}
.td_bignum {width:100px;text-align:center}
.td_mb_id {width:120px;text-align:center}
.td_nick {width:120px;text-align:center}
.td_name {width:120px;text-align:left}
.td_name div {position:relative}
.td_date {width:60px;text-align:center}
.td_datetime {width:100px;text-align:center}
.td_mng {width:80px;text-align:center}
/* 현재접속자 */
#current_connect_tbl .td_name {text-align:center}
/* 전체검색 */
#sch_result_hd {margin:0;border:1px solid #ddd;background:#fff}
#sch_result_hd dt {padding:10px;background:#f5f5f2}
#sch_result_hd dd {margin:0;padding:0}
.sch_result {}
.sch_result dt {font-weight:bold}
.sch_result dd {margin-bottom:30px}
.sch_result ul {padding:0}
.sch_result li {padding:10px 0;border-bottom:1px solid #ddd}
.sch_result p {margin:5px 0;padding:0;font-size:0.75em}
.sch_sideview {display:inline-block;font-size:0.75em}
.sch_datetime {font-size:0.75em}
/* 새창 공통 */
.new_win h1 {padding:10px 30px;background:#333;color:#fff;font-size:1.2em}
.new_win article h1 {background:transparent;color:#000}
.new_win table {margin:0 auto 30px;width:90%}
.new_win fieldset {margin:0 auto 30px;width:90%}
.new_win_ul {margin:-30px 0 20px 0;padding:0 0 0 30px;border-bottom:1px solid #ddd;background:#fff;font-size:0.8em;list-style:none;zoom:1}
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
.new_win_ul li {float:left;margin-left:-1px}
.new_win_ul a {display:block;padding:10px;border-right:1px solid #eee;border-left:1px solid #eee;color:#595959;font-family:"dotum";font-size:0.875em;font-weight:bold;text-decoration:none}
.new_win_ul a:hover,
.new_win_ul a:focus {background:#faf9f5}
/* 포인트 내역 */
#point p {text-align:center}
#point .td_datetime {width:150px}
/* 쪽지 */
/* 스크랩 */
/* 우편번호 검색 */
#post_num dl {margin:0 auto 10px;padding:0;width:90%}
#post_num dt {margin-bottom:15px}
#post_num dd {margin:0;padding:0}
#post_num ul {margin:0;padding:0;list-style:none}
#post_num li a {display:block;padding:5px 0;font-size:0.8em}
#post_num p {margin:0 auto 30px;width:90%}
/* 회원가입 약관 */
#fregister {padding:20px;background:#f5f5f2}
#fregister h2 {padding-top:10px;text-align:center}
#fregister_term {float:left;width:49%}
#fregister_private {float:right;width:49%}
#fregister textarea {display:block;margin-bottom:10px;width:99%;height:200px;border:1px solid #ddd}
#fregister label {display:inline-block;margin-right:10px}
/* pagination */
.pg {margin-bottom:30px;font-size:0.875em;text-align:center}
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle}
.pg_page {text-decoration:none}
.pg_current {font-weight:normal}

View File

@ -36,11 +36,45 @@ include_once($g4['path'].'/lib/popular.lib.php');
<fieldset id="hdsch">
<legend>사이트 내 전체검색</legend>
<input type="text" id="hdsch_stx" name="stx" title="검색어" maxlength="20">
<input type="image" id="hdsch_submit" src="<?=$g4['path']?>/img/btn_search.jpg" value="검색">
<input type="image" id="hdsch_submit" src="<?=$g4['path']?>/img/btn_search.jpg" alt="검색">
</fieldset>
</form>
<?=outlogin('neo'); // 외부 로그인 ?>
<?=poll('neo'); // 설문조사 ?>
</header>
<div id="wrapper">
<div id="snb">
<?=outlogin('neo'); // 외부 로그인 ?>
<?=poll('neo'); // 설문조사 ?>
</div>
<? /* if ($index || 게시판이 하나도 없을때) {?>
<!-- 설치 완료 메세지 -->
<article id="install_done">
<h1>Welcome to Gnuboard 4s</h1>
<div><span><!-- --></span></div>
<section>
<h2>한글 안내</h2>
<p>
그누보드4표준 버전을 설치해주셔서 감사합니다.<br>
그누보드4표준 버전은 웹 접근성과 웹 표준을 준수합니다.<br>
새로운 게시판을 생성하시면 이 메세지는 사라집니다.<br>
감사합니다.
</p>
</section>
<section>
<h2>영문 안내</h2>
<p>
Thank you for installing Gnuboard4 Standard version.<br>
This version is for Web Accessibility and Web Standard version.<br>
This message will disappear after Create a new board.<br>
Thank you.
</p>
</section>
</article>
<!-- 설치 완료 메세지 끝 -->
<? }*/ ?>
<hr>
<div id="wrapper">
<? if (!$bo_table) {?><h1><?=$g4['title']?></h1><?}?>

View File

@ -48,6 +48,7 @@ header("Pragma: no-cache"); // HTTP/1.0
<head>
<meta charset="<?=$g4['charset']?>">
<title><?=$g4['title']?></title>
<meta http-equiv='X-UA-Compatible' content='IE=Edge' />
<? if (isset($administrator)) { ?>
<link rel="stylesheet" href="<?=$g4['path']?>/css/adm.css?=<?=date("md")?>">
<? } else { ?>
@ -72,6 +73,7 @@ var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<script src="<?=$g4['path']?>/js/jquery-1.4.2.min.js"></script>
<script src="<?=$g4['path']?>/js/common.js"></script>
<script src="<?=$g4['path']?>/js/wrest.js"></script>
<script src="<?=$g4['path']?>/js/html5.js"></script>
<?
if (!empty($g4['js_file'])) {
foreach ($g4['js_file'] as $key=>$value) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 715 B

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -1,7 +1,7 @@
<?php
include_once('./_common.php');
include_once($g4['path'].'/lib/latest.lib.php');
$index = 1;
$g4['title'] = '';
include_once('./_head.php');
?>

3
js/html5.js Normal file
View File

@ -0,0 +1,3 @@
/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
Uncompressed source: https://github.com/aFarkas/html5shiv */
(function(a,b){function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a}function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f();a.createElement=function(a){if(!l.shivMethods)return c(a);var f;return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(a){return c(a),g.createElement(a),'c("'+a+'")'})+");return n}")(l,g)}function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),g||(b=!j(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g;(function(){var c=b.createElement("a");c.innerHTML="<xyz></xyz>",f="hidden"in c,f&&typeof injectElementWithStyles=="function"&&injectElementWithStyles("#modernizr{}",function(b){b.hidden=!0,f=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).display=="none"}),g=c.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var l={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:k};a.html5=l,k(b)})(this,document)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 B

After

Width:  |  Height:  |  Size: 51 B

View File

@ -120,7 +120,7 @@ if ($option) {
<? for ($i=1; $i<=$g4['link_count']; $i++) { ?>
<tr>
<th scope="row"><label for="wr_link<?=$i?>">링크 #<?=$i?></label></th>
<td><input type="text" id="wr_link<?=$i?>" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write["wr_link{$i}"];}?>"></td>
<td><input type="text" id="wr_link<?=$i?>" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>"></td>
</tr>
<? } ?>
<? } ?>

View File

@ -2,7 +2,7 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<table>
<table id="current_connect_tbl">
<caption>현재접속자 목록</caption>
<thead>
<tr>
@ -21,8 +21,8 @@ for ($i=0; $i<count($list); $i++) {
else $display_location = $location;
?>
<tr>
<td><?=$list[$i]['num']?></td>
<td><?=$list[$i]['name']?></td>
<td class="td_num"><?=$list[$i]['num']?></td>
<td class="td_name"><?=$list[$i]['name']?></td>
<td><?=$display_location?></td>
</tr>
<?

View File

@ -2,36 +2,42 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>쪽지함</h1>
<div id="memo_list" class="new_win">
<h1><?=$g4['title']?></h1>
<ul>
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
<li><a href="./memo_form.php">쪽지보내기</a></li>
</ul>
<ul class="new_win_ul">
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
<li><a href="./memo_form.php">쪽지보내기</a></li>
</ul>
<table>
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
쪽지 보관일수는 최장 <?=$config[cf_memo_del]?>일 입니다.
</caption>
<thead>
<tr>
<th scope="col"><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col">보낸시간</th>
<th scope="col">읽은시간</th>
<th scope="col">쪽지삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][name]?></td>
<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></font></td>
<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></font></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');"><img src="<?=$member_skin_path?>/img/btn_comment_delete.gif" width="45" height="14" border="0"></a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<table>
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
<span class="caption_desc">쪽지 보관일수는 최장 <?=$config[cf_memo_del]?>일 입니다.</span>
</caption>
<thead>
<tr>
<th scope="col"><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col">보낸시간</th>
<th scope="col">읽은시간</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><div><?=$list[$i][name]?></div></td>
<td class="td_datetime"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></font></td>
<td class="td_datetime"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></font></td>
<td class="td_mng"><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,21 +2,22 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<form name="fregister" method="POST" onsubmit="return fregister_submit(this);" autocomplete="off">
<form id="fregister" name="fregister" method="POST" onsubmit="return fregister_submit(this);" autocomplete="off">
<section>
<section id="fregister_term">
<h2>회원가입약관</h2>
<textarea readonly><?=get_text($config['cf_stipulation'])?></textarea>
<input type="radio" id="agree11" name="agree" value="1"><label for="agree11">동의합니다.</label>
<input type="radio" id="agree10" name="agree" value="0"><label for="agree10">동의하지 않습니다.</label>
</section>
<section>
<section id="fregister_private">
<h2>개인정보취급방침</h2>
<textarea readonly><?=get_text($config['cf_privacy'])?></textarea>
<input type="radio" id="agree21" name="agree2" value="1"><label for="agree21">동의합니다.</label>
<input type="radio" id="agree20" name="agree2" value="0"><label for="agree20">동의하지 않습니다.</label>
<input type="radio" id="agree21" name="agree2" value="1">
<label for="agree21">동의니다.</label>
<input type="radio" id="agree20" name="agree2" value="0">
<label for="agree20">동의하지 않습니다.</label>
</section>
<div class="btn_confirm">
@ -25,8 +26,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</form>
<script type="text/javascript">
<script>
function fregister_submit(f)
{
var agree1 = document.getElementsByName("agree");

View File

@ -1,5 +1,9 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$required = "";
$readonly = "";
if ($w == '') $required = "required";
else if ($w == 'u') $readonly = "readonly";
?>
<script>
@ -15,37 +19,54 @@ var member_skin_path = "<?=$member_skin_path?>";
<input type="hidden" id="mb_nick_enabled" name="mb_nick_enabled" value="">
<input type="hidden" id="mb_email_enabled" name="mb_email_enabled" value="">
<? if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?=$member['mb_sex']?>"><? } ?>
<? if (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?>
<? if (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?>
<input type="hidden" name="mb_nick_default" value="<?=$member['mb_nick']?>">
<input type="hidden" name="mb_nick" value="<?=$member['mb_nick']?>">
<? } ?>
<table>
<table class="frm_tbl">
<caption>사이트 이용정보 입력</caption>
<tr>
<th scope="row"><label for="reg_mb_id">아이디</label></th>
<td>
<<<<<<< HEAD
<input type="text" id="reg_mb_id" name="mb_id" class="minlength_3" value="<?=$member['mb_id']?>" maxlength="20" <? if ($w=='u') { echo "readonly style='background-color:#dddddd;'"; } ?> <? if ($w=='') { echo 'required="required"'; } ?> title="회원아이디">
=======
<input type="text" id="reg_mb_id" name="mb_id" class="frm_input <?=$required?> <?=$readonly?>" value="<?=$member['mb_id']?>" maxlength="20" <?=$required?> <?=$readonly?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_id"></span>
<span>영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
</td>
</tr>
<tr>
<<<<<<< HEAD
<th scope="row"><label for="mb_password">패스워드</label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="minlength_3" <?=($w=='')?'required="required"':'';?> maxlength="20" title="패스워드"></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인</label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="minlength_3" <?=($w=='')?'required="required"':'';?> maxlength="20" title="패스워드 확인"></td>
=======
<th scope="row"><label for="reg_mb_password">패스워드</label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="frm_input <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인</label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="frm_input <?=$required?>" maxlength="20" <?=$required?>></td>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
</tr>
</table>
<table>
<table class="frm_tbl">
<caption>개인정보 입력</caption>
<tr>
<th scope="row"><label for="reg_mb_name">이름</label></th>
<td>
<<<<<<< HEAD
<input type="text" id="reg_mb_name" name="mb_name" class="hangul" value="<?=$member['mb_name']?>" <?=$member['mb_name']?"readonly2":"";?><?echo($w==''?'required="required"':'');?> title="이름">
=======
<input id="reg_mb_name" name="mb_name" class="frm_input <?=$required?> <?=$readonly?>" value="<?=$member['mb_name']?>" <?=$required?> <?=$readonly?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<? if ($w=='') { echo "(공백없이 한글만 입력 가능)"; } ?>
</td>
</tr>
@ -54,10 +75,16 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row"><label for="reg_mb_nick">별명</label></th>
<td>
<input type="hidden" name="mb_nick_default" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>">
<<<<<<< HEAD
<input type="text" id="reg_mb_nick" name="mb_nick" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" maxlength="20" <?echo($w==''?'required="required"':'');?> title="별명">
=======
<input type="text" id="reg_mb_nick" name="mb_nick" class="frm_input required" maxlength="20" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" required>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_nick"></span>
<br>공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)
<br>별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
<span class="frm_info">
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
</span>
</td>
</tr>
<? } ?>
@ -66,11 +93,17 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row"><label for="reg_mb_email">E-mail</label></th>
<td>
<input type="hidden" name="old_email" value="<?=$member['mb_email']?>">
<<<<<<< HEAD
<input type="text" id="reg_mb_email" name="mb_email" class="email" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' maxlength="100" required="required" title="E-mail">
=======
<input type="text" id="reg_mb_email" name="mb_email" class="frm_input <?=$config['cf_use_email_certify']?"required":"";?>" maxlength="100" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' <?=$config['cf_use_email_certify']?"required":"";?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_email"></span>
<? if ($config['cf_use_email_certify']) { ?>
<? if ($w=='') { echo "<br>e-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "<br>e-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
<span class="frm_info">
<? if ($w=='') { echo "e-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "e-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
</span>
<? } ?>
</td>
</tr>
@ -78,21 +111,21 @@ var member_skin_path = "<?=$member_skin_path?>";
<? if ($config['cf_use_homepage']) { ?>
<tr>
<th scope="row"><label for="reg_mb_homepage">홈페이지</label></th>
<td><input type="text" id="reg_mb_homepage" name="mb_homepage" maxlength="255" <?=$config['cf_req_homepage']?'required':'';?> value="<?=$member[mb_homepage]?>"></td>
<td><input type="text" id="reg_mb_homepage" name="mb_homepage" class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" maxlength="255" <?=$config['cf_req_homepage']?"required":"";?> value="<?=$member['mb_homepage']?>"></td>
</tr>
<? } ?>
<? if ($config['cf_use_tel']) { ?>
<tr>
<th scope="row"><label for="reg_mb_tel">전화번호</label></th>
<td><input type="text" id="reg_mb_tel" name="mb_tel" maxlength="20" <?=$config['cf_req_tel']?'required':'';?> value="<?=$member[mb_tel]?>"></td>
<td><input type="text" id="reg_mb_tel" name="mb_tel" class="frm_input <?=$config['cf_req_tel']?"required":"";?>" maxlength="20" <?=$config['cf_req_tel']?"required":"";?> value="<?=$member['mb_tel']?>"></td>
</tr>
<? } ?>
<? if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">핸드폰번호</label></th>
<td><input type="text" id="reg_mb_hp" name="mb_hp" maxlength="20" <?=$config['cf_req_hp']?'required':'';?> value="<?=$member[mb_hp]?>"></td>
<td><input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20" <?=$config['cf_req_hp']?"required":"";?> value="<?=$member[mb_hp]?>"></td>
</tr>
<? } ?>
@ -100,30 +133,30 @@ var member_skin_path = "<?=$member_skin_path?>";
<tr>
<th scope="row">주소</th>
<td>
<input type="text" id="reg_mb_zip1" name="mb_zip1" maxlength="3" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_zip1]?>" title="우편번호 앞자리">
<input type="text" id="reg_mb_zip1" name="mb_zip1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" maxlength="3" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip1']?>" title="우편번호 앞자리">
-
<input type="text" id="reg_mb_zip2" name="mb_zip2" maxlength="3" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_zip2]?>" title="우편번호 뒷자리">
<input type="text" id="reg_mb_zip2" name="mb_zip2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" maxlength="3" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip2']?>" title="우편번호 뒷자리">
<a href="javascript:;" onclick="win_zip('fregisterform', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');">주소찾기</a>
<input type="text" id="reg_mb_addr1" name="mb_addr1" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_addr1]?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_addr2]?>" title="상세주소">
<input type="text" id="reg_mb_addr1" name="mb_addr1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr1']?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr2']?>" title="상세주소">
</td>
</tr>
<? } ?>
</table>
<table>
<table class="frm_tbl">
<caption>기타 개인설정</caption>
<? if ($config['cf_use_signature']) { ?>
<tr>
<th scope="row"><label for="reg_mb_signature">서명</label></th>
<td><textarea id="reg_mb_signature" name="mb_signature" <?=$config[cf_req_signature]?'required':'';?>><?=$member[mb_signature]?></textarea></td>
<td><textarea id="reg_mb_signature" name="mb_signature" class="<?=$config['cf_req_signature']?"required":"";?>" <?=$config['cf_req_signature']?"required":"";?>><?=$member['mb_signature']?></textarea></td>
</tr>
<? } ?>
<? if ($config['cf_use_profile']) { ?>
<tr>
<th scope="row"><label for="reg_mb_profile">자기소개</label></th>
<td><textarea id="reg_mb_profile" name="mb_profile" <?=$config[cf_req_profile]?'required':'';?>><?=$member[mb_profile]?></textarea></td>
<td><textarea id="reg_mb_profile" name="mb_profile" class="<?=$config['cf_req_profile']?"required":"";?>" <?=$config['cf_req_profile']?"required":"";?>><?=$member['mb_profile']?></textarea></td>
</tr>
<? } ?>
@ -131,32 +164,47 @@ var member_skin_path = "<?=$member_skin_path?>";
<tr>
<th scope="row"><label for="reg_mb_icon">회원아이콘</label></th>
<td>
<input type="file" id="reg_mb_icon" name="mb_icon">
이미지 크기는 가로 <?=$config[cf_member_icon_width]?>픽셀, 세로 <?=$config[cf_member_icon_height]?>픽셀 이하로 해주세요.<br>
gif만 가능 / 용량:<?=number_format($config[cf_member_icon_size])?>바이트 이하만 등록됩니다.)
<input type="file" id="reg_mb_icon" name="mb_icon" class="frm_input">
<? if ($w == 'u' && file_exists($mb_icon)) { ?>
<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1"> 삭제
<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">
<label for="del_mb_icon">삭제</label>
<? } ?>
<span class="frm_info">
이미지 크기는 가로 <?=$config['cf_member_icon_width']?>픽셀, 세로 <?=$config['cf_member_icon_height']?>픽셀 이하로 해주세요.<br>
gif만 가능하며 용량 <?=number_format($config['cf_member_icon_size'])?>바이트 이하만 등록됩니다.
</span>
</td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="reg_mb_mailling">메일링서비스</label></th>
<td><input type="checkbox" id="reg_mb_mailling" name="mb_mailling" value="1" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>정보 메일을 받겠습니다.</td>
<td>
<input type="checkbox" id="reg_mb_mailling" name="mb_mailling" value="1" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>
정보 메일을 받겠습니다.
</td>
</tr>
<? if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
<td><input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>핸드폰 문자메세지를 받겠습니다.</td>
<td>
<input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
핸드폰 문자메세지를 받겠습니다.
</td>
</tr>
<? } ?>
<? if (isset($member['mb_open_date']) && $member['mb_open_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_open_modify'] * 86400))) { // 정보공개 수정일이 지났다면 수정가능 ?>
<tr>
<th scope="row"><label for="reg_mb_open">정보공개</label></th>
<td>
<input type="hidden" name="mb_open_default" value="<?=$member['mb_open']?>">
<input type="checkbox" id="reg_mb_open" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?>>다른분들이 나의 정보를 볼 수 있도록 합니다.<br>
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
<input type="checkbox" id="reg_mb_open" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?>>
다른분들이 나의 정보를 볼 수 있도록 합니다.
<span class="frm_info">
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
</span>
</td>
</tr>
<? } else { ?>
@ -164,8 +212,10 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row">정보공개</th>
<td>
<input type="hidden" name="mb_open" value="<?=$member['mb_open']?>">
정보공개는 수정후 <?=(int)$config['cf_open_modify']?>일 이내, <?=date("Y년 m월 j일", isset($member['mb_open_date']) ? strtotime("{$member['mb_open_date']} 00:00:00")+$config['cf_open_modify']*86400:$g4['server_time']+$config['cf_open_modify']*86400);?> 까지는 변경이 안됩니다.<br>
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
<span class="frm_info">
정보공개 수정후 <?=(int)$config['cf_open_modify']?>일 이내, <?=date("Y년 m월 j일", isset($member['mb_open_date']) ? strtotime("{$member['mb_open_date']} 00:00:00")+$config['cf_open_modify']*86400:$g4['server_time']+$config['cf_open_modify']*86400);?> 까지는 변경이 안됩니다.<br>
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
</span>
</td>
</tr>
<? } ?>

View File

@ -2,38 +2,40 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>스크랩</h1>
<div id="scrap" class="new_win">
<h1><?=$g4['title']?></h1>
<table>
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][num]?></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href_wr_id]?>';"><?=$list[$i][subject]?></a></td>
<td><?=$list[$i][ms_datetime]?></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<table>
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][num]?></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href_wr_id]?>';"><?=$list[$i][subject]?></a></td>
<td><?=$list[$i][ms_datetime]?></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<? if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<? if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&amp;page=");?>
</div>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&amp;page=");?>
</div>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,53 +2,62 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>우편번호검색</h1>
<div id="post_num" class="new_win">
<h1><?=$g4['title']?></h1>
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
<fieldset>
<legend>우편번호 검색</legend>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" value="<?=$addr1?>" required minlength=2>
<input type="submit" value="검색">
</fieldset>
<fieldset>
<legend>우편번호 검색</legend>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" class="fieldset_input" value="<?=$addr1?>" required minlength=2>
<input type="submit" class="fieldset_submit" value="검색">
</fieldset>
<!-- 검색결과 여기서부터 -->
<!-- 검색결과 여기서부터 -->
<script>
document.fzip.addr1.focus();
</script>
<script>
document.fzip.addr1.focus();
</script>
<? if ($search_count > 0) { ?>
<p>총 <?=$search_count?>건 가나다순 정렬</p>
<? if ($search_count > 0) { ?>
<dl>
<dt>총 <?=$search_count?>건 가나다순 정렬</dt>
<dd>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li><a href='javascript:;' onclick="find_zip('<?=$list[$i][zip1]?>', '<?=$list[$i][zip2]?>', '<?=$list[$i][addr]?>');"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
<? } ?>
</ul>
</dd>
</dl>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li><a href='javascript:;' onclick="find_zip('<?=$list[$i][zip1]?>', '<?=$list[$i][zip2]?>', '<?=$list[$i][addr]?>');"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
<p>검색결과가 끝났습니다.</p>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
<script>
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?=$frm_name?>;
of.<?=$frm_zip1?>.value = zip1;
of.<?=$frm_zip2?>.value = zip2;
of.<?=$frm_addr1?>.value = addr1;
of.<?=$frm_addr2?>.focus();
window.close();
return false;
}
</script>
<? } ?>
</ul>
<p>검색결과가 끝났습니다.</p>
<script>
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?=$frm_name?>;
of.<?=$frm_zip1?>.value = zip1;
of.<?=$frm_zip2?>.value = zip2;
of.<?=$frm_addr1?>.value = addr1;
of.<?=$frm_addr2?>.focus();
window.close();
return false;
}
</script>
<? } ?>
</div>

View File

@ -18,17 +18,16 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?
for ($i=0; $i<count($list); $i++)
{
$gr_subject = cut_str($list[$i][gr_subject], 10);
$bo_subject = cut_str($list[$i][bo_subject], 10);
$wr_subject = get_text(cut_str($list[$i][wr_subject], 40));
$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>
<td><a href="./new.php?gr_id=<?=$list[$i][gr_id]?>"><?=$gr_subject?></a></td>
<td><a href="./board.php?bo_table=<?=$list[$i][bo_table]?>"><?=$bo_subject?></a></td>
<td class="td_group"><a href="./new.php?gr_id=<?=$list[$i][gr_id]?>"><?=$gr_subject?></a></td>
<td class="td_board"><a href="./board.php?bo_table=<?=$list[$i][bo_table]?>"><?=$bo_subject?></a></td>
<td><a href="<?=$list[$i][href]?>"><?=$list[$i][comment]?><?=$wr_subject?></a></td>
<td><?=$list[$i][name]?></td>
<td><?=$list[$i][datetime2]?></td>
<!-- <a href="javascript:;" onclick="document.getElementById('mb_id').value={$list[$i][mb_id]}';">&middot;</a> -->
<td class="td_name"><div><?=$list[$i][name]?></div></td>
<td class="td_datetime"><?=$list[$i][datetime2]?></td>
</tr>
<? } ?>
@ -38,25 +37,22 @@ for ($i=0; $i<count($list); $i++)
</tbody>
</table>
<div id="pg">
<div class="pg">
<?=$write_pages?>
</div>
<!-- 분류 시작 -->
<!-- 검색 -->
<form name="fnew" method="get">
<fieldset>
<legend>사이트 상세검색</legend>
<label for="gr_id">검색대상</label>
<legend>상세검색</legend>
<?=$group_select?>
<label for="view">검색종류</label>
<select id="view" name="view" onchange="select_change()">
<select id="view" name="view" onchange="select_change()" title="검색종류">
<option value="">전체게시물
<option value="w">원글만
<option value="c">코멘트만
</select>
<label for="mb_id">회원아이디</label>
<input type="text" id="mb_id" name="mb_id" value="<?=$mb_id?>">
<input type="submit" value="검색">
<input type="text" id="mb_id" name="mb_id" class="fieldset_input" value="<?=$mb_id?>" title="검색어">
<input type="submit" class="fieldset_submit" value="검색">
<script>
function select_change()
{
@ -67,4 +63,4 @@ for ($i=0; $i<count($list); $i++)
</script>
</fieldset>
</form>
<!-- 분류 끝 -->
<!-- 검색 끝 -->

View File

@ -32,25 +32,50 @@ else
?>
<section id="ol_before" class="outlogin">
<h2>사이트 회원</h2>
<h2>멤버쉽</h2>
<!-- 로그인 전 외부로그인 시작 -->
<form name="fhead" method="post" action="<?=$action_url?>" onsubmit="return fhead_submit(this);" autocomplete="off">
<fieldset>
<legend>로그인</legend>
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<label for="mb_id">아이디</label>
<input type="text" id="mb_id" name="mb_id" maxlength="20" required>
<label for="mb_password">패스워드</label>
<input type="password" id="mb_password" name="mb_password" maxlength="20">
<label for="ol_mb_id" id="ol_mb_id_label">아이디</label>
<input type="text" id="ol_mb_id" name="mb_id" maxlength="20" required>
<label for="ol_mb_pw" id="ol_mb_pw_label">패스워드</label>
<input type="password" id="ol_mb_pw" name="mb_password" maxlength="20">
<input type="checkbox" id="auto_login" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }">
<label for="auto_login">자동로그인</label>
<input type="submit" value="로그인">
<a href="javascript:win_password_lost();">아이디/패스워드 찾기</a>
<a href="<?=$g4['bbs_path']?>/register.php">회원가입</a>
<label for="auto_login" id="auto_login_label">자동로그인</label>
<input type="submit" id="ol_submit" value="로그인">
<ul>
<li><a href="<?=$g4['bbs_path']?>/register.php">회원가입</a></li>
<li><a href="javascript:win_password_lost();">정보찾기</a></li>
</ul>
</fieldset>
</form>
</section>
<script>
$(document).ready(function(){
$omi = $('#ol_mb_id');
$omp = $('#ol_mb_pw');
$omi_label = $('#ol_mb_id_label');
$omp_label = $('#ol_mb_pw_label');
$omi.focus(function() {
$omi_label.css('visibility','hidden');
});
$omp.focus(function() {
$omp_label.css('visibility','hidden');
});
$omi.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_mb_id" && $this.attr('value') == "") $omi_label.css('visibility','visible');
});
$omp.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_mb_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible');
});
});
</script>
<script>
function fhead_submit(f)
{

View File

@ -4,14 +4,20 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<!-- 로그인 후 외부로그인 시작 -->
<section id="ol_after" class="outlogin">
<h2>나의 회원정보</h2>
<?=$nick?>님
<? if ($is_admin == 'super' || $is_auth) { ?><a href="<?=$g4['admin_path']?>/">관리자</a><? } ?>
<a href="javascript:win_point();">포인트 : <?=$point?>점</a>
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">정보수정</a>
<a href="javascript:win_memo();">쪽지 <?=$memo_not_read?>통</a>
<a href="javascript:win_scrap();">스크랩</a>
<a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a>
<header>
<h2>나의 회원정보</h2>
<strong><?=$nick?></strong>님
<? if ($is_admin == 'super' || $is_auth) { ?><a href="<?=$g4['admin_path']?>/" id="ol_admin">관리자</a><? } ?>
</header>
<ul>
<li><a href="javascript:win_memo();">안 읽은 쪽지 <span><?=$memo_not_read?>통</span></a></li>
<li><a href="javascript:win_point();">포인트 <span><?=$point?>점</span></a></li>
</ul>
<footer>
<a href="javascript:win_scrap();">스크랩</a>
<a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">정보수정</a>
<a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a>
</footer>
</section>
<script>
@ -19,7 +25,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->

View File

@ -18,16 +18,20 @@ $po = sql_fetch(" select * from $g4[poll_table] where po_id = '$po_id' ");
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<section id="poll">
<h2>설문조사</h2>
<? if ($is_admin == "super") { ?><a href="<?=$g4[admin_path]?>/poll_form.php?w=u&amp;po_id=<?=$po_id?>">설문조사 관리</a><? } ?>
<?=$po['po_subject']?>
<ul>
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<li><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'> <label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></li>
<? } ?>
</ul>
<input type="submit" value="투표하기">
<a href="javascript:;" onclick="poll_result('<?=$po_id?>');">결과보기</a>
<header>
<h2>설문조사</h2>
<? if ($is_admin == "super") { ?><a href="<?=$g4[admin_path]?>/poll_form.php?w=u&amp;po_id=<?=$po_id?>">설문조사 관리</a><? } ?>
<p><?=$po['po_subject']?></p>
</header>
<ul>
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<li><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'> <label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></li>
<? } ?>
</ul>
<footer>
<input type="submit" value="투표하기">
<a href="javascript:;" onclick="poll_result('<?=$po_id?>');">결과보기</a>
</footer>
</section>
</form>

View File

@ -2,80 +2,90 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>설문조사 결과</h1>
<div id="poll_result" class="new_win">
<h1><?=$g4['title']?></h1>
<section>
<h2><?=$po_subject?> 결과</h2>
<span>전체 <?=$nf_total_po_cnt?>표</span>
<section id="poll_result_list">
<h2><?=$po_subject?> 결과</h2>
<dl>
<dt><span>전체 <?=$nf_total_po_cnt?>표</span></dt>
<dd>
<ol>
<? for ($i=1; $i<=count($list); $i++) { ?>
<li>
<p>
<?=$list[$i][content]?>
<span><?=$list[$i][cnt]?>표 <?=number_format($list[$i][rate], 1)?>%</span>
</p>
<div class="poll_result_graph">
<span style="width:<?=number_format($list[$i][rate], 1)?>%"></span>
</div>
</li>
<? } ?>
</ol>
</dd>
</dl>
</section>
<ol>
<? for ($i=1; $i<=count($list); $i++) { ?>
<li>
<p>
<?=$list[$i][content]?>
<span><?=$list[$i][cnt]?>표 <?=number_format($list[$i][rate], 1)?>%</span>
</p>
<div>
<span></span>
</div>
</li>
<? } ?>
</ol>
</section>
<? if ($is_etc) { ?>
<section id="poll_result_cmt">
<h2>이 설문에 대한 기타의견</h2>
<? if ($is_etc) { ?>
<section>
<h2>의견</h2>
<? for ($i=0; $i<count($list2); $i++) { ?>
<article>
<header>
<h1><?=$list2[$i][name]?>님의 의견</h1>
<span class="poll_datetime"><?=$list2[$i][datetime]?></span>
<span class="poll_del"><? if ($list2[$i][del]) { echo $list2[$i][del]."삭제</a>"; } ?></span>
</header>
<p>
<?=$list2[$i][idea]?>
</p>
</article>
<? } ?>
<? if ($member[mb_level] >= $po[po_level]) { ?>
<form name="fpollresult" method="post" onsubmit="return fpollresult_submit(this);" autocomplete="off">
<input type=hidden name="po_id" value="<?=$po_id?>">
<input type=hidden name="w" value="">
<input type=hidden name="skin_dir" value="<?=$skin_dir?>">
<? if ($member[mb_level] >= $po[po_level]) { ?>
<form name="fpollresult" method="post" onsubmit="return fpollresult_submit(this);" autocomplete="off">
<input type=hidden name="po_id" value="<?=$po_id?>">
<input type=hidden name="w" value="">
<input type=hidden name="skin_dir" value="<?=$skin_dir?>">
<fieldset>
<legend>의견남기기</legend>
<p><?=$po_etc?></p>
<? if ($member[mb_id]) { ?>
<?
$comment_size = "";
if ($member[mb_id]) { $comment_size = 52; ?>
<input type="hidden" name="pc_name" value="<?=cut_str($member[mb_nick],255)?>">
<b><?=$member[mb_nick]?></b>
<? } else { ?>
<label for="pc_name">이름</label> <input type='text' id="pc_name" name="pc_name" size="10" required>
<? } else { $comment_size = 32; ?>
<label for="pc_name">이름</label>
<input type='text' id="pc_name" name="pc_name" class="fieldset_input required" size="10" required>
<? } ?>
<label for="pc_idea">의견</label> <input type="text" id="pc_idea" name="pc_idea" size="55" required maxlength="100">
<input type="submit" value="의견남기기">
<input type="text" id="pc_idea" name="pc_idea" class="fieldset_input required" size="<?=$comment_size?>" required maxlength="100" title="의견">
<input type="submit" class="fieldset_submit" value="의견남기기">
</fieldset>
</form>
</form>
<script>
function fpollresult_submit(f)
{
f.action = "./poll_etc_update.php";
return true;
}
</script>
<script>
function fpollresult_submit(f)
{
f.action = "./poll_etc_update.php";
return true;
}
</script>
<? } ?>
</section>
<? } ?>
<? for ($i=0; $i<count($list2); $i++) { ?>
<article>
<header>
<h1><?=$list2[$i][name]?>님의 의견</h1>
<?=$list2[$i][datetime]?>
</header>
<p>
<?=$list2[$i][idea]?>
</p>
<? if ($list2[$i][del]) { echo $list2[$i][del]."삭제</a>"; } ?>
</article>
<? } ?>
<section id="poll_result_another">
<h2>다른 투표 결과 보기</h2>
<ul>
<? for ($i=0; $i<count($list3); $i++) { ?><li><a href="./poll_result.php?po_id=<?=$list3[$i][po_id]?>&amp;skin_dir=<?=$skin_dir?>">[<?=$list3[$i][date]?>] <?=$list3[$i][subject]?></a></li><? } ?>
</ul>
</section>
</section>
<? } ?>
<section>
<h2>다른 투표 결과 보기</h2>
<ul>
<? for ($i=0; $i<count($list3); $i++) { ?><li><a href="./poll_result.php?po_id=<?=$list3[$i][po_id]?>&amp;skin_dir=<?=$skin_dir?>">[<?=$list3[$i][date]?>] <?=$list3[$i][subject]?></a></li><? } ?>
</ul>
</section>
<a href="javascript:window.close();">창닫기</a>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,13 +2,86 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<? if ($stx) { ?>
<? if ($board_count) { ?>
<dl id="sch_result_hd">
<dt>검색어 <strong><?=$stx?></strong>에 대한 결과입니다.</dt>
<dd>
<ul>
<li><span class="span_highlight"><?=$board_count?></span>개의 게시판</li>
<li><span class="span_highlight"><?=number_format($total_count)?></span>개의 게시글</li>
<li>현재 <?=number_format($page)?>/<?=number_format($total_page)?> 페이지 열람 중</li>
</ul>
</dd>
</dl>
<? } ?>
<? } ?>
<?
if ($stx) {
if ($board_count) {
?>
<dl class="sch_result">
<dt>검색결과가 있는 게시판 목록</dt>
<dd>
<ul>
<? if ($onetable) { ?>
<li><a href="?<?=$search_query?>&amp;gr_id=<?=$gr_id?>">전체게시판 검색</a>
<? } ?>
<?=$str_board_list;?>
</ul>
</dd>
</dl>
<?
} else {
?>
<p>검색된 자료가 하나도 없습니다.</p>
<? } } ?>
<hr>
<? if ($stx && $board_count) { ?><dl class="sch_result"><? } ?>
<?
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
$comment_href = "";
?>
<dt><a href="./board.php?bo_table=<?=$search_table[$idx]?>&amp;<?=$search_query?>"><?=$bo_subject[$idx]?></a>에서의 검색결과</dt>
<dd>
<ul>
<?
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
if ($list[$idx][$i][wr_is_comment])
{
echo "댓글 ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
?>
<li>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>"><?=$list[$idx][$i][subject]?></a>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a>
<p><?=$list[$idx][$i][content]?></p>
<div class="sch_sideview"><?=$list[$idx][$i][name]?></div>
<span class="sch_datetime"><?=$list[$idx][$i][wr_datetime]?></span>
</li>
<? } ?>
</ul>
</dd>
<? } ?>
<? if ($stx && $board_count) { ?></dl><? } ?>
<div class="pg">
<?=$write_pages?>
</div>
<form name="fsearch" method="get" onsubmit="return fsearch_submit(this);">
<input type="hidden" name="srows" value="<?=$srows?>">
<fieldset>
<legend>상세검색</legend>
<?=$group_select?>
<script>document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
<select name="sfl">
<select name="sfl" title="검색조건">
<option value="wr_subject||wr_content">제목+내용</option>
<option value="wr_subject">제목</option>
<option value="wr_content">내용</option>
@ -16,9 +89,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<option value="wr_name">이름</option>
</select>
<input type="text" name="stx" value="<?=$text_stx?>" maxlength="20" required>
<input type="text" name="stx" class="fieldset_input" class="required" value="<?=$text_stx?>" maxlength="20" required title="검색어">
<input type="submit" value="검색">
<input type="submit" class="fieldset_submit" value="검색">
<script>
document.fsearch.sfl.value = "<?=$sfl?>";
@ -53,54 +126,3 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<input type="radio" id="sop_and" name="sop" value="and" <?=($sop == "and") ? "checked" : "";?>> <label for="sop_and">AND</label>
</fieldset>
</form>
<?
if ($stx) {
echo "검색된 게시판 리스트 (".$board_count."개의 게시판, ".number_format($total_count)."개의 게시글, ".number_format($page)."/".number_format($total_page)." 페이지)";
if ($board_count) {
echo "<ul>";
if ($onetable)
echo "<li><a href=\"?".$search_query."&amp;gr_id=".$gr_id."\">전체게시판 검색</a>";
echo $str_board_list;
echo "</ul>";
}
else
{
echo "<p>검색된 자료가 하나도 없습니다.</p>";
}
}
?>
<?
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
$comment_href = "";
?>
<ul>
<li>
<a href="./board.php?bo_table=<?=$search_table[$idx]?>&amp;<?=$search_query?>"><?=$bo_subject[$idx]?></a>에서의 검색결과
<?
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
if ($list[$idx][$i][wr_is_comment])
{
echo "댓글 ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
?>
<ul>
<li>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>"><?=$list[$idx][$i][subject]?></a>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a>
<p><?=$list[$idx][$i][content]?></p>
<?=$list[$idx][$i][wr_datetime]?>
<?=$list[$idx][$i][name]?>
</li>
</ul>
<? } ?>
</li>
</ul>
<? } ?>
<div id="pg">
<?=$write_pages?>
</div>

View File

@ -4,6 +4,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</div>
<hr>
<footer id="footer">
<h1><?=$config['cf_title']?> 정보</h1>
<?=visit('neo'); // 방문자수 ?>