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

This commit is contained in:
chicpro
2013-01-07 09:25:53 +09:00
15 changed files with 410 additions and 279 deletions

View File

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

View File

@ -37,73 +37,76 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
}
?>
<h1>포인트내역</h1>
<section id="point" class="new_win">
<h1>포인트내역</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>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</section>
<?
include_once($g4['path'].'/tail.sub.php');

View File

@ -3,7 +3,7 @@ include_once('./_common.php');
//if (!$stx) alert("검색어가 없습니다.");
$g4['title'] = '검색 : '.$stx;
$g4['title'] = "검색어 &quot;".$stx."&quot; 검색결과";
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,25 +2,43 @@
/* 초기화 */
html {overflow-y:scroll}
body {background:#f5f4ed;font-size:1em}
html, body, h1, h2, h3, h4, h5, h6 {margin:0;padding:0}
h1, h2, h3, h4, h5, h6 {font-family:"dotum"}
body {background:#f5f4ed;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}
input {margin:0;padding:0;font-family:"dotum"}
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:#f0f0ed;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 #a9a9a9;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:#494946;color:#fff}
fieldset .fieldset_input {padding:3px;border:1px solid #ddd;background:#f0f0ed;vertical-align:middle}
fieldset .fieldset_input:focus {padding:4px;border:0;background:#494946;color:#fff}
fieldset select {padding:2px;border:1px solid #ddd;background:#f0f0ed;vertical-align:middle}
fieldset p {margin:0}
fieldset .span_highlight {color:#ff3061}
fieldset button,
.fieldset_submit {padding:0 15px;height:23px;border:0;background:#494946;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}
/* 내용 건너뛰기 */
#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 {padding:10px 0;width:100%;height:auto;background:#333;color:#fff;text-align:center;overflow:auto}
/* 그누보드4s 설치 완료 메세지 */
#install_done {position:absolute;margin-top:-30px;width:100%;height:580px;background:#e7ebee}
#install_done h1,
@ -28,16 +46,29 @@ p {margin:5px 0;padding:10px 0;line-height:1.5em}
#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;height:0;text-decoration:none;overflow:hidden}
#to_content a:focus,
#to_content a:active {padding:10px 0;width:100%;height:auto;background:#333;color:#fff;text-align:center;overflow:auto}
/* 헤딩 */
h1 {margin:0 0 30px;font-size:1.6em}
h2 {margin:0 0 20px}
h3 {margin:0 0 20px}
h4 {margin:0 0 20px}
h5 {margin:0 0 20px}
h6 {margin:0 0 20px}
/* 레이아웃 - 상단 */
#header {z-index:3;position:relative;margin-bottom:30px}
#header h1 {height:0;overflow:hidden}
#header h1 {margin:0;height:0;overflow:hidden}
/* 로고 */
#logo {background:#494946;text-align:center}
#logo a {display:inline-block;padding:20px 30px}
/* 상단메뉴 */
#tnb {padding-left:50px;border-top:1px solid #eee;border-bottom:1px solid #ddd;background:#fff;zoom:1}
#tnb {padding-left:50px;border-bottom:1px solid #ddd;background:#fff;zoom:1}
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
#tnb li {float:left;margin-left:-1px}
#tnb a {display:block;padding:20px;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}
@ -45,52 +76,54 @@ p {margin:5px 0;padding:10px 0;line-height:1.5em}
#tnb a:focus {background:#faf9f5}
/* 전체검색 */
#hdsch {position:absolute;top:90px;right:50px;margin:0;padding:0;border:1px solid #ddd;background:#f1f6f7}
#hdsch legend {position:absolute;top:-1000px;width:0;height:0;overflow:hidden}
#hdsch {position:absolute;top:90px;right:50px;margin:0;padding:0;border:1px solid #ddd;background:#f0f0ed}
#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:#434f54;color:#fff}
#hdsch_stx:focus {background:#464649;color:#fff}
#hdsch_submit {position:relative;margin-left:-5px}
/* 사이드 네비게이션: 아웃로그인, 설문조사 등 */
#snb {position:absolute;top:150px;right:50px;font-family:"dotum"}
#snb {position:absolute;top:150px;right:50px;font-family:"verdana","dotum"}
#snb ul {margin:0;padding:0;list-style:none}
/* 아웃로그인 */
.outlogin {margin-bottom:5px;padding:10px 10px 0;width:178px;border:1px solid #b3b2ad;background:#f0f0ed}
.outlogin h2 {height:0;overflow:hidden}
.outlogin {margin-bottom:5px;border:1px solid #dedace}
.outlogin h2 {margin:0;height:0;overflow:hidden}
/* 로그인 전 */
#ol_before {font-size:0.7em}
#ol_before fieldset {padding:0;border:0}
#ol_before legend {height:0;overflow:hidden}
#ol_before input:focus {background:#434f54;color:#fff}
#ol_before {padding:10px 10px 0;width:178px;background:#f0f0ed;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:#494946;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:163px;height:22px;border:1px solid #d7d7d7;background:#fff;line-height:1.6em}
#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}
#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 {padding-bottom:10px;font-size:0.75em}
#ol_after {width:198px;background:#f0f0ed;color:#000;font-size:0.75em}
#ol_after a {color:#000;text-decoration:none}
#ol_after header {padding:5px 0 7px;border-bottom:1px solid #ddd;text-align:center}
#ol_after li a {display:block;position:relative;padding:7px 0 5px}
#ol_after li span {position:absolute;top:7px;right:0}
#ol_after footer {padding-top:7px;border-top:1px solid #ddd;text-align:center}
#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}
#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}
/* 설문조사 */
#poll {width:198px;border:1px solid #b3b2ad;background:#fff;font-size:0.75em}
#poll header {padding:10px 10px 1px;background:#f0f0ed}
#poll h2 {display:inline-block;font-size:1em}
#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:#f0f0ed}
#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 10px 15px;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 {padding:10px;border-top:1px solid #efeada;text-align:center}
#poll footer input {padding:0 15px;height:24px;border:0;background:#494946;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}
/* 레이아웃 중간 */
@ -98,9 +131,9 @@ p {margin:5px 0;padding:10px 0;line-height:1.5em}
/* 레이아웃 하단 */
#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}
/* 방문자집계 */
@ -130,8 +163,71 @@ p {margin:5px 0;padding:10px 0;line-height:1.5em}
#footer p {position:absolute;top:25px;right:50px}
/* ##################################################################### 스킨 및 컨텐츠 */
/* 폼 테이블 */
.frm_tbl {}
.frm_tbl textarea,
.frm_tbl input,
.frm_tbl select {border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle}
.frm_tbl textarea,
.frm_tbl input {padding:3px}
.frm_tbl textarea:focus,
.frm_tbl input:focus {padding:4px;border:0;background:#434f54;color:#fff}
.frm_tbl textarea {width:90%}
.frm_tbl select {padding:2px}
/* 테이블 항목별 정의 */
.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}
/* 전체검색 */
.search_result {}
.search_result dt {font-weight:bold}
.search_result dd {margin-bottom:30px}
.search_result ul {padding:0}
.search_result li {padding:10px 0;border-bottom:1px solid #ddd}
.search_result li span {font-size:0.75em}
.search_result li span span {font-size:1em}
.search_result a span {font-size:1em}
.search_result p {margin:5px 0;padding:0;font-size:0.75em}
/* 새창 공통 */
.new_win h1 {padding:10px 30px;background:#494946;color:#fff;font-size:1.2em}
.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%}
/* pagination */
.pg {margin-bottom:30px;font-size:0.875em;text-align:center}

View File

@ -36,16 +36,17 @@ 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" title="검색">
<input type="image" id="hdsch_submit" src="<?=$g4['path']?>/img/btn_search.jpg" alt="검색">
</fieldset>
</form>
<div id="snb">
<?=outlogin('neo'); // 외부 로그인 ?>
<?=poll('neo'); // 설문조사 ?>
</div>
</header>
<div id="snb">
<?=outlogin('neo'); // 외부 로그인 ?>
<?=poll('neo'); // 설문조사 ?>
</div>
<? /* if ($index || 게시판이 하나도 없을때) {?>
<!-- 설치 완료 메세지 -->
<article id="install_done">
@ -73,5 +74,7 @@ include_once($g4['path'].'/lib/popular.lib.php');
<!-- 설치 완료 메세지 끝 -->
<? }*/ ?>
<hr>
<div id="wrapper">
<? if (!$bo_table) {?><h1><?=$g4['title']?></h1><?}?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 730 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,12 +2,12 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<table>
<table id="current_connect_tbl">
<caption>현재접속자 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">닉네임 혹은 아이피</th>
<th scope="col">이름</th>
<th scope="col">링크</th>
</tr>
</thead>
@ -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>
<section id="memo_list" class="new_win">
<h1><?= ($kind == 'recv') ? "받은" : "보낸";?> 쪽지함</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>
</section>

View File

@ -2,38 +2,40 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>스크랩</h1>
<section id="scrap" class="new_win">
<h1>스크랩</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>
</section>

View File

@ -2,53 +2,62 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>우편번호검색</h1>
<section id="post_num" class="new_win">
<h1>우편번호검색</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>
<? } ?>
</section>

View File

@ -2,6 +2,31 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 검색 -->
<form name="fnew" method="get">
<fieldset>
<legend>사이트 상세검색</legend>
<label for="gr_id">검색대상</label>
<?=$group_select?>
<select id="view" name="view" onchange="select_change()" title="검색종류">
<option value="">전체게시물
<option value="w">원글만
<option value="c">코멘트만
</select>
<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()
{
document.fnew.submit();
}
document.getElementById("gr_id").value = "<?=$gr_id?>";
document.getElementById("view").value = "<?=$view?>";
</script>
</fieldset>
</form>
<!-- 검색 끝 -->
<!-- 제목 시작 -->
<table>
<caption>최근게시물 목록</caption>
@ -18,17 +43,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,33 +62,6 @@ 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>
<?=$group_select?>
<label for="view">검색종류</label>
<select id="view" name="view" onchange="select_change()">
<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="검색">
<script>
function select_change()
{
document.fnew.submit();
}
document.getElementById("gr_id").value = "<?=$gr_id?>";
document.getElementById("view").value = "<?=$view?>";
</script>
</fieldset>
</form>
<!-- 분류 끝 -->

View File

@ -32,7 +32,7 @@ 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>

View File

@ -5,10 +5,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<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 +17,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?>";
@ -51,34 +52,49 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</script>
<input type="radio" id="sop_or" name="sop" value="or" <?=($sop == "or") ? "checked" : "";?>> <label for="sop_or">OR</label>
<input type="radio" id="sop_and" name="sop" value="and" <?=($sop == "and") ? "checked" : "";?>> <label for="sop_and">AND</label>
<? if ($stx) { ?>
<p>
<? if ($board_count) { ?>
검색결과 <span class="span_highlight"><?=$board_count?></span>개의 게시판, <span class="span_highlight"><?=number_format($total_count)?></span>개의 게시글, <?=number_format($page)?>/<?=number_format($total_page)?> 페이지
<? } else { ?>
<? } ?>
</p>
<? } ?>
</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>";
}
}
?>
<dl class="search_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="search_result"><? } ?>
<?
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
$comment_href = "";
$comment_href = "";
?>
<ul>
<li>
<a href="./board.php?bo_table=<?=$search_table[$idx]?>&amp;<?=$search_query?>"><?=$bo_subject[$idx]?></a>에서의 검색결과
<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])
@ -87,20 +103,19 @@ for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
$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]?>
<span><?=$list[$idx][$i][name]?></span>
<span><?=$list[$idx][$i][wr_datetime]?></span>
</li>
</ul>
<? } ?>
</li>
</ul>
</ul>
</dd>
<? } ?>
<? if ($stx && $board_count) { ?></dl><? } ?>
<div id="pg">
<div class="pg">
<?=$write_pages?>
</div>
</div>

View File

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