g4s 13-04-26일자 코드 반영

This commit is contained in:
chicpro
2013-04-26 10:54:44 +09:00
parent 091092b46a
commit 478605e149
286 changed files with 4409 additions and 3599 deletions

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
@ -9,89 +9,101 @@ if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
?>
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$board['bo_subject']?></h1><?}?>
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<?php if (!$wr_id) { ?><h1 id="bo_list_title"><?php echo $board['bo_subject'] ?></h1><?php } ?>
<!-- 게시판 목록 시작 -->
<div id="bo_list" style="width:<?=$width;?>">
<div id="bo_list" style="width:<?php echo $width; ?>">
<? if ($is_category) { ?>
<?php if ($is_category) { ?>
<form name="fcategory" id="fcategory" method="get">
<nav id="bo_cate">
<h2><?=$board['bo_subject']?> 카테고리</h2>
<h2><?php echo $board['bo_subject'] ?> 카테고리</h2>
<ul id="bo_cate_ul">
<?=$category_option?>
<?php echo $category_option ?>
</ul>
</nav>
</form>
<? } ?>
<?php } ?>
<div class="bo_fx">
<div id="bo_list_total">
<span>Total <?=number_format($total_count)?>건</span>
<?=$page?> 페이지
<span>Total <?php echo number_format($total_count) ?>건</span>
<?php echo $page ?> 페이지
</div>
<? if ($rss_href || $write_href) {?>
<?php if ($rss_href || $write_href) { ?>
<ul class="btn_bo_user">
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn_b01">RSS</a></li><? } ?>
<? if ($admin_href) { ?><li><a href="<?=$admin_href?>" class="btn_admin">관리자</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn_b02">글쓰기</a></li><? } ?>
<?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01">RSS</a></li><?php } ?>
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin">관리자</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<? } ?>
<?php } ?>
</div>
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<table class="basic_tbl">
<caption><?=$board['bo_subject']?> 목록</caption>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<? if ($is_checkbox) { ?><th scope="col"><input type="checkbox" title="현재 페이지 게시물 전체선택" onclick="if (this.checked) all_checked(true); else all_checked(false);"></th><?}?>
<?php if ($is_checkbox) { ?>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">제목</th>
<th scope="col">글쓴이</th>
<th scope="col"><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></th>
<th scope="col"><?=subject_sort_link('wr_hit', $qstr2, 1)?>조회</a></th>
<? if ($is_good) { ?><th scope="col"><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></th><?}?>
<? if ($is_nogood) { ?><th scope="col"><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></th><?}?>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천</a></th><?php } ?>
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천</a></th><?php } ?>
</tr>
</thead>
<tbody>
<?
<?php
for ($i=0; $i<count($list); $i++) {
?>
<tr class="<? if ($list[$i]['is_notice']) echo "bo_notice";?><? if ($board[1]) echo "bo_sideview";?>">
?>
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?><?php if ($board[1]) echo "bo_sideview"; ?>">
<td class="td_num">
<?
<?php
if ($list[$i]['is_notice']) // 공지사항
echo '<strong>공지</strong>';
else if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
else
echo $list[$i]['num'];
?>
?>
</td>
<? if ($is_checkbox) { ?><td class="td_chk"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['wr_subject']?> 선택"></td><? } ?>
<?php if ($is_checkbox) { ?>
<td class="td_chk">
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['wr_subject'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
</td>
<?php } ?>
<td class="td_subject">
<?
<?php
echo $list[$i]['icon_reply'];
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
<? } ?>
?>
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
<?php } ?>
<a href="<?=$list[$i]['href']?>">
<?=$list[$i]['subject']?>
<? if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?=$list[$i]['comment_cnt'];?><span class="sound_only">개</span><? } ?>
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
@ -101,71 +113,73 @@ if ($is_nogood) $colspan++;
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
?>
</td>
<td class="td_name"><?=$list[$i]['name']?></td>
<td class="td_date"><?=$list[$i]['datetime2']?></td>
<td class="td_num"><?=$list[$i]['wr_hit']?></td>
<? if ($is_good) { ?><td class="td_num"><?=$list[$i]['wr_good']?></td><? } ?>
<? if ($is_nogood) { ?><td class="td_num"><?=$list[$i]['wr_nogood']?></td><? } ?>
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
<?php if ($is_good) { ?><td class="td_num"><?php echo $list[$i]['wr_good'] ?></td><?php } ?>
<?php if ($is_nogood) { ?><td class="td_num"><?php echo $list[$i]['wr_nogood'] ?></td><?php } ?>
</tr>
<?}?>
<? if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
<?php } ?>
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
</tbody>
</table>
<? if ($list_href || $is_checkbox || $write_href) {?>
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<div class="bo_fx">
<ul class="btn_bo_adm">
<? if ($list_href) { ?>
<li><a href="<?=$list_href?>" class="btn_b01"> 목록</a></li>
<? } ?>
<? if ($is_checkbox) { ?>
<?php if ($list_href) { ?>
<li><a href="<?php echo $list_href ?>" class="btn_b01"> 목록</a></li>
<?php } ?>
<?php if ($is_checkbox) { ?>
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
<? } ?>
<?php } ?>
</ul>
<ul class="btn_bo_user">
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn_b02">글쓰기</a></li><? } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
</div>
<? } ?>
<?php } ?>
</form>
</div>
<? if($is_checkbox) { ?>
<?php if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<? } ?>
<?php } ?>
<!-- 페이지 -->
<? echo $write_pages; ?>
<?php echo $write_pages; ?>
<fieldset id="bo_sch">
<legend>게시물 검색</legend>
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sop" value="and">
<select name="sfl" title="검색대상">
<option value="wr_subject"<?=get_selected($sfl, 'wr_subject', true);?>>제목</option>
<option value="wr_content"<?=get_selected($sfl, 'wr_content');?>>내용</option>
<option value="wr_subject||wr_content"<?=get_selected($sfl, 'wr_subject||wr_content');?>>제목+내용</option>
<option value="mb_id,1"<?=get_selected($sfl, 'mb_id,1');?>>회원아이디</option>
<option value="mb_id,0"<?=get_selected($sfl, 'mb_id,0');?>>회원아이디(코)</option>
<option value="wr_name,1"<?=get_selected($sfl, 'wr_name,1');?>>글쓴이</option>
<option value="wr_name,0"<?=get_selected($sfl, 'wr_name,0');?>>글쓴이(코)</option>
<label for="sfl" class="sound_only">검색대상</label>
<select name="sfl" id="sfl">
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
<option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
<option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
</select>
<input type="text" name="stx" value="<?=stripslashes($stx)?>" title="검색어(필수)" required class="frm_input required" size="15" maxlength="15">
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
<? if ($is_checkbox) { ?>
<?php if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
var f = document.fboardlist;
@ -224,5 +238,5 @@ function select_copy(sw) {
f.submit();
}
</script>
<? } ?>
<?php } ?>
<!-- 게시판 목록 끝 -->

View File

@ -1,26 +1,28 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
<div id="bo_v" style="width:<?=$width;?>">
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<div id="bo_v" style="width:<?php echo $width; ?>">
<p id="bo_v_cate">
<?=$board['bo_subject']?>
<? if ($category_name) { // 분류가 지정되었다면 ?><?=($category_name ? "{$view['ca_name']} " : "");?><? } // 분류 출력 끝 ?>
<?php echo $board['bo_subject'] ?>
<?php if ($category_name) { // 분류가 지정되었다면 ?><?php echo ($category_name ? "{$view['ca_name']} " : ""); ?><?php } // 분류 출력 끝 ?>
</p>
<h1 id="bo_v_h1"><?=cut_str(get_text($view['wr_subject']), 70) // 글제목 출력?></h1>
<h1 id="bo_v_h1"><?php echo cut_str(get_text($view['wr_subject']), 70) // 글제목 출력 ?></h1>
<section id="bo_v_info">
<h2>게시물 정보</h2>
작성자 <strong><?=$view['name']?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
<span class="sound_only">작성일</span><strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong>
조회<strong><?=number_format($view['wr_hit'])?>회</strong>
댓글<strong><?=number_format($view['wr_comment'])?>건</strong>
작성자 <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
<span class="sound_only">작성일</span><strong><?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>
조회<strong><?php echo number_format($view['wr_hit']) ?>회</strong>
댓글<strong><?php echo number_format($view['wr_comment']) ?>건</strong>
</section>
<?
<?php
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
@ -28,89 +30,89 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
$cnt++;
}
}
?>
?>
<? if($cnt) { ?>
<?php if($cnt) { ?>
<section id="bo_v_file">
<h2>첨부파일</h2>
<ul>
<?
<?php
// 가변 파일
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
?>
?>
<li>
<a href="<? echo $view['file'][$i]['href']; ?>" class="view_file_download">
<img src="<?=$board_skin_url?>/img/icon_file.gif" alt="첨부">
<strong><?=$view['file'][$i]['source']?></strong>
<?=$view['file'][$i]['bf_content']?> (<?=$view['file'][$i]['size']?>)
<a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download">
<img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부">
<strong><?php echo $view['file'][$i]['source'] ?></strong>
<?php echo $view['file'][$i]['bf_content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
</a>
<span class="bo_v_file_cnt"><?=$view['file'][$i]['download']?>회 다운로드</span>
<span>DATE : <?=$view['file'][$i]['datetime']?></span>
<span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span>
<span>DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
</li>
<?
<?php
}
}
?>
?>
</ul>
</section>
<? } ?>
<?php } ?>
<?
<?php
if (implode('', $view['link'])) {
?>
?>
<section id="bo_v_link">
<h2>관련링크</h2>
<ul>
<?
<?php
// 링크
$cnt = 0;
for ($i=1; $i<=count($view['link']); $i++) {
if ($view['link'][$i]) {
$cnt++;
$link = cut_str($view['link'][$i], 70);
?>
?>
<li>
<a href="<?=$view['link_href'][$i]?>" target="_blank">
<img src="<?=$board_skin_url?>/img/icon_link.gif" alt="관련링크">
<strong><?=$link?></strong>
<a href="<?php echo $view['link_href'][$i] ?>" target="_blank">
<img src="<?php echo $board_skin_url ?>/img/icon_link.gif" alt="관련링크">
<strong><?php echo $link ?></strong>
</a>
<span class="bo_v_link_cnt"><?=$view['link_hit'][$i]?>회 연결</span>
<span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>
</li>
<?
<?php
}
}
?>
?>
</ul>
</section>
<? } ?>
<?php } ?>
<nav id="bo_v_top">
<h2>게시물 상단 버튼</h2>
<?
<?php
ob_start();
?>
<? if ($prev_href || $next_href) { ?>
?>
<?php if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>" class="btn_b01">이전글</a></li><? } ?>
<? if ($next_href) { ?><li><a href="<?=$next_href?>" class="btn_b01">다음글</a></li><? } ?>
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01">이전글</a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01">다음글</a></li><?php } ?>
</ul>
<? } ?>
<?php } ?>
<ul class="bo_v_com">
<? if ($update_href) { ?><li><a href="<?=$update_href?>" class="btn_b01">수정</a></li><? } ?>
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><? } ?>
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><? } ?>
<? if ($move_href) { ?><li><a href="<?=$move_href?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><? } ?>
<? if ($search_href) { ?><li><a href="<?=$search_href?>" class="btn_b01">검색</a></li><? } ?>
<li><a href="<?=$list_href?>" class="btn_b01">목록</a></li>
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>" class="btn_b01">답변</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn_b02">글쓰기</a></li><? } ?>
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01">수정</a></li><?php } ?>
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><?php } ?>
<?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><?php } ?>
<?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><?php } ?>
<?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01">검색</a></li><?php } ?>
<li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li>
<?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01">답변</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<?
<?php
$link_buttons = ob_get_contents();
ob_end_flush();
?>
?>
</nav>
<article id="bo_v_atc">
@ -118,7 +120,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<h1>본문</h1>
</header>
<?
<?php
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
@ -133,50 +135,50 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
echo "</div>\n";
}
?>
?>
<div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
<?php//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
<?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>
<? if ($scrap_href || $good_href || $nogood_href) { ?>
<?php if ($scrap_href || $good_href || $nogood_href) { ?>
<div id="bo_v_act">
<? if ($scrap_href) { ?><a href="<?=$scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><? } ?>
<?php if ($scrap_href) { ?><a href="<?php echo $scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><?php } ?>
<? if ($good_href) {?>
<a href="<?=$good_href.'&amp;'.$qstr?>" id="good_button" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a>
<?php if ($good_href) { ?>
<a href="<?php echo $good_href.'&amp;'.$qstr ?>" id="good_button" class="btn_b01">추천 <strong><?php echo number_format($view['wr_good']) ?></strong></a>
<b id="bo_v_act_good"></b>
<? } ?>
<? if ($nogood_href) {?>
<a href="<?=$nogood_href.'&amp;'.$qstr?>" id="nogood_button" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a>
<?php } ?>
<?php if ($nogood_href) { ?>
<a href="<?php echo $nogood_href.'&amp;'.$qstr ?>" id="nogood_button" class="btn_b01">비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
<b id="bo_v_act_nogood"></b>
<? } ?>
<?php } ?>
</div>
<? } else {
<?php } else {
if($board['bo_use_good'] || $board['bo_use_nogood']) {
?>
?>
<div id="bo_v_act">
<? if($board['bo_use_good']) { ?><span>추천 <strong><?=number_format($view['wr_good'])?></strong></span><? } ?>
<? if($board['bo_use_nogood']) { ?><span>비추천 <strong><?=number_format($view['wr_nogood'])?></strong></span><? } ?>
<?php if($board['bo_use_good']) { ?><span>추천 <strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
<?php if($board['bo_use_nogood']) { ?><span>비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
</div>
<?
<?php
}
}
?>
?>
</article>
<?
<?php
// 코멘트 입출력
include_once('./view_comment.php');
?>
?>
<nav id="bo_v_bot">
<h2>게시물 하단 버튼</h2>
<!-- 링크 버튼 -->
<?=$link_buttons?>
<?php echo $link_buttons ?>
</nav>
</div>
@ -184,10 +186,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<script>
<? if ($board['bo_download_point'] < 0) { ?>
<?php if ($board['bo_download_point'] < 0) { ?>
$(function() {
$("a.view_file_download").click(function() {
var msg = "파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
if(confirm(msg)) {
var href = $(this).attr("href")+"&js=on";
@ -199,7 +201,7 @@ $(function() {
}
});
});
<?}?>
<?php } ?>
function board_move(href)
{

View File

@ -1,52 +1,53 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script>
// 글자수 제한
var char_min = parseInt(<?=$comment_min?>); // 최소
var char_max = parseInt(<?=$comment_max?>); // 최대
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</script>
<!-- 댓글 리스트 -->
<section id="bo_vc">
<h2>댓글목록</h2>
<?
<?php
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i]['wr_id'];
$cmt_depth = ""; // 댓글단계
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret"))
$str = $str;
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
?>
<article id="c_<?=$comment_id?>" <?if ($cmt_depth) {?>style="margin-left:<?=$cmt_depth?>px;border-top-color:#e0e0e0"<?}?>>
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret")) {
$str = $str;
}
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
?>
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>style="margin-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0"<?php } ?>>
<header>
<h1><?=$list[$i]['wr_name']?>님의 댓글</h1>
<?=$list[$i]['name']?>
<? if ($cmt_depth) {?><img src="<?=$board_skin_url?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><? } ?>
<? if ($is_ip_view) { ?>
<h1><?php echo $list[$i]['wr_name'] ?>님의 댓글</h1>
<?php echo $list[$i]['name'] ?>
<?php if ($cmt_depth) { ?><img src="<?php echo $board_skin_url ?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><?php } ?>
<?php if ($is_ip_view) { ?>
아이피
<span class="bo_vc_hdinfo"><?=$list[$i]['ip'];?></span>
<? } ?>
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
<?php } ?>
작성일
<span class="bo_vc_hdinfo"><time datetime="<?=date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime']))?>"><?=$list[$i]['datetime']?></time></span>
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
</header>
<!-- 댓글 출력 -->
<p>
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">";?>
<?=$str?>
<?php if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">"; ?>
<?php echo $str ?>
</p>
<span id="edit_<?=$comment_id?>"></span><!-- 수정 -->
<span id="reply_<?=$comment_id?>"></span><!-- 답변 -->
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
<input type="hidden" value="<?=strstr($list[$i]['wr_option'],"secret")?>" id="secret_comment_<?=$comment_id?>">
<textarea id="save_comment_<?=$comment_id?>" style="display:none"><?=get_text($list[$i]['content1'], 0)?></textarea>
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>">
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
<?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
$query_string = str_replace("&", "&amp;", $_SERVER['QUERY_STRING']);
if($w == 'cu') {
@ -57,42 +58,42 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
$c_reply_href = './board.php?'.$query_string.'&amp;c_id='.$comment_id.'&amp;w=c#bo_vc_w';
$c_edit_href = './board.php?'.$query_string.'&amp;c_id='.$comment_id.'&amp;w=cu#bo_vc_w';
?>
?>
<footer>
<ul class="bo_vc_act">
<? if ($list[$i]['is_reply']) { ?><li><a href="<? echo $c_reply_href; ?>" onclick="comment_box('<?=$comment_id?>', 'c'); return false;">답변</a></li><? } ?>
<? if ($list[$i]['is_edit']) { ?><li><a href="<? echo $c_edit_href; ?>" onclick="comment_box('<?=$comment_id?>', 'cu'); return false;">수정</a></li><? } ?>
<? if ($list[$i]['is_del']) { ?><li><a href="<? echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><? } ?>
<?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;">답변</a></li><?php } ?>
<?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;">수정</a></li><?php } ?>
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><?php } ?>
</ul>
</footer>
<? } ?>
<?php } ?>
</article>
<?}?>
<? if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><? } ?>
<?php } ?>
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
</section>
<? if ($is_comment_write) {
<?php if ($is_comment_write) {
if($w == '')
$w = 'c';
?>
?>
<aside id="bo_vc_w">
<h2>댓글쓰기</h2>
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<input type="hidden" name="w" value="<?=$w?>" id="w">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="comment_id" value="<?=$c_id?>" id="comment_id">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="is_good" value="">
<table class="frm_tbl">
<tbody>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" id="wr_name" required class="frm_input required" size="5" maxLength="20"></td>
@ -101,24 +102,24 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="wr_secret">비밀글사용</label></th>
<td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td>
</tr>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=$captcha_html;?></td>
<td><?php echo $captcha_html; ?></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row">내용</th>
<td>
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
<textarea id="wr_content" name="wr_content" required class="required"
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> title="댓글내용입력(필수)"><? echo $c_wr_content; ?></textarea>
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
</td>
</tr>
</tbody>
@ -231,7 +232,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
}
}
<? if($is_guest) echo chk_captcha_js(); ?>
<?php if($is_guest) echo chk_captcha_js(); ?>
return true;
}
@ -286,4 +287,4 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
</script>
<? } ?>
<?php } ?>

View File

@ -1,21 +1,23 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<h1 id="wrapper_title"><?=$g4['title']?></h1>
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<form name="fwrite" id="fwrite" action="<?=$action_url?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?=$width;?>">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="page" value="<?=$page?>">
<?
<h1 id="wrapper_title"><?php echo $g4['title'] ?></h1>
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<?php
$option = '';
$option_hidden = '';
if ($is_notice || $is_html || $is_secret || $is_mail) {
@ -50,93 +52,93 @@ echo $option_hidden;
<table id="bo_w" class="frm_tbl">
<tbody>
<? if ($is_name) { ?>
<?php if ($is_name) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?=$name?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_password) { ?>
<?php if ($is_password) { ?>
<tr>
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" <?=$password_required?> class="frm_input <?=$password_required?>" maxlength="20"></td>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_email) { ?>
<?php if ($is_email) { ?>
<tr>
<th scope="row"><label for="wr_email">이메일</label></th>
<td><input type="text" name="wr_email" value="<?=$email?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_homepage) { ?>
<?php if ($is_homepage) { ?>
<tr>
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
<td><input type="text" name="wr_homepage" value="<?=$homepage?>" id="wr_homepage" class="frm_input" size="50"></td>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($option) { ?>
<?php if ($option) { ?>
<tr>
<th scope="row">옵션</th>
<td><?=$option?></td>
<td><?php echo $option ?></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_category) { ?>
<?php if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td>
<select name="ca_name" id="ca_name" required class="required" >
<option value="">선택하세요</option>
<?=$category_option?>
<?php echo $category_option ?>
</select>
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_subject" value="<?=$subject?>" id="wr_subject" required class="frm_input required" size="50"></td>
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50"></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
<td class="wr_content"><? echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
<td class="wr_content"><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
</tr>
<? for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
<?php for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
<tr>
<th scope="row"><label for="wr_link<?=$i?>">링크 #<?=$i?></label></th>
<td><input type="text" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>" id="wr_link<?=$i?>" class="frm_input" size="50"></td>
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
</tr>
<? } ?>
<?php } ?>
<? for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?=$i+1?></th>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>
<input type="file" name="bf_file[]" title="파일첨부 <?=$i+1?> : 용량 <?=$upload_max_filesize?> 이하만 업로드 가능" class="frm_file frm_input">
<? if ($is_file_content) { ?>
<input type="text" name="bf_content[]" value="<? echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
<?}?>
<? if($w == 'u' && $file[$i]['file']) { ?>
<input type="checkbox" id="bf_file_del<?=$i?>" name="bf_file_del[<? echo $i; ?>]" value="1"> <label for="bf_file_del<?=$i?>"><? echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
<? } ?>
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<?php if ($is_file_content) { ?>
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
<?php } ?>
<?php if($w == 'u' && $file[$i]['file']) { ?>
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
<?php } ?>
</td>
</tr>
<?}?>
<?php } ?>
<? if ($is_guest) { //자동등록방지 ?>
<?php if ($is_guest) { //자동등록방지 ?>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?=$captcha_html?>
<?php echo $captcha_html ?>
</td>
</tr>
<? } ?>
<?php } ?>
</tbody>
</table>
@ -146,12 +148,12 @@ echo $option_hidden;
작성하신 내용을 제출하시려면 <strong>글쓰기</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>취소</strong> 링크를 누르세요.
</p>
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
<a href="./board.php?bo_table=<?=$bo_table?>" class="btn_cancel">취소</a>
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">취소</a>
</div>
</form>
<script>
<?
<?php
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
@ -179,7 +181,7 @@ function html_auto_br(obj)
function fwrite_submit(f)
{
<? echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
var subject = "";
var content = "";
@ -214,7 +216,7 @@ function fwrite_submit(f)
return false;
}
<? echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
return true;
}

View File

@ -1,51 +1,53 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$board['bo_subject']?></h1><?}?>
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<?php if (!$wr_id) { ?><h1 id="bo_list_title"><?php echo $board['bo_subject'] ?></h1><?php } ?>
<!-- 게시판 목록 시작 -->
<div id="bo_img" style="width:<?=$width;?>">
<div id="bo_img" style="width:<?php echo $width; ?>">
<? if ($is_category) { ?>
<?php if ($is_category) { ?>
<form name="fcategory" id="fcategory" method="get">
<nav id="bo_cate">
<h2><?=$board['bo_subject']?> 카테고리</h2>
<h2><?php echo $board['bo_subject'] ?> 카테고리</h2>
<ul id="bo_cate_ul">
<?=$category_option?>
<?php echo $category_option ?>
</ul>
</nav>
</form>
<? } ?>
<?php } ?>
<div class="bo_fx">
<div id="bo_list_total">
<span>Total <?=number_format($total_count)?>건</span>
<?=$page?> 페이지
<span>Total <?php echo number_format($total_count) ?>건</span>
<?php echo $page ?> 페이지
</div>
<? if ($rss_href || $write_href) {?>
<?php if ($rss_href || $write_href) { ?>
<ul class="btn_bo_user">
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn_b01">RSS</a></li><? } ?>
<? if ($admin_href) { ?><li><a href="<?=$admin_href?>" class="btn_admin">관리자</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn_b02">글쓰기</a></li><? } ?>
<?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01">RSS</a></li><?php } ?>
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin">관리자</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<? } ?>
<?php } ?>
</div>
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<h2>이미지 목록</h2>
<ul id="bo_img_list">
<? for ($i=0; $i<count($list); $i++) {
<?php for ($i=0; $i<count($list); $i++) {
if($i>0 && ($i % $bo_gallery_cols == 0))
$style = 'clear:both;';
else
@ -53,25 +55,27 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
if ($i == 0) $k = 0;
$k += 1;
if ($k % $bo_gallery_cols == 0) $style .= "margin:0 !important;";
?>
<li class="bo_img_list_li <? if ($wr_id == $list[$i]['wr_id']) { ?>bo_img_now<? } ?>" style="<?=$style?>">
<? if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['wr_subject']?> 선택"><? } ?>
?>
<li class="bo_img_list_li <?php if ($wr_id == $list[$i]['wr_id']) { ?>bo_img_now<?php } ?>" style="<?php echo $style ?>width:<?php echo $board['bo_gallery_width'] ?>px">
<?php if ($is_checkbox) { ?>
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['wr_subject'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
<?php } ?>
<span class="sound_only">
<?
<?php
if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
else
echo $list[$i]['num'];
?>
?>
</span>
<ul class="bo_img_con">
<li class="bo_img_href">
<a href="<?=$list[$i]['href']?>">
<?
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?=$board['bo_gallery_width']?>px;height:<?=$board['bo_gallery_height']?>px">공지</strong>
<?
} else {
<a href="<?php echo $list[$i]['href'] ?>">
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
<?php } else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
if($thumb['src']) {
@ -82,21 +86,21 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
echo $img_content;
}
?>
?>
</a>
</li>
<li class="bo_img_text_href" style="width:<?=$board['bo_gallery_width']?>px">
<?
<li class="bo_img_text_href" style="width:<?php echo $board['bo_gallery_width'] ?>px">
<?php
// echo $list[$i]['icon_reply']; 갤러리는 reply 를 사용 안 할 것 같습니다. - 지운아빠 2013-03-04
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
<? } ?>
<a href="<?=$list[$i]['href']?>">
<?=$list[$i]['subject']?>
<? if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?=$list[$i]['comment_cnt'];?><span class="sound_only">개</span><? } ?>
?>
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
<?php } ?>
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
@ -105,72 +109,74 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
//if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
//if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
//if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
?>
</li>
<li><span class="bo_img_subject">작성자 </span><?=$list[$i]['name']?></li>
<li><span class="bo_img_subject">작성일 </span><?=$list[$i]['datetime2']?></li>
<li><span class="bo_img_subject">조회 </span><?=$list[$i]['wr_hit']?></li>
<? if ($is_good) {?><li><span class="bo_img_subject">추천</span><strong><?=$list[$i]['wr_good']?></strong></li><? } ?>
<? if ($is_nogood) {?><li><span class="bo_img_subject">비추천</span><strong><?=$list[$i]['wr_nogood']?></strong></li><? } ?>
<li><span class="bo_img_subject">작성자 </span><?php echo $list[$i]['name'] ?></li>
<li><span class="bo_img_subject">작성일 </span><?php echo $list[$i]['datetime2'] ?></li>
<li><span class="bo_img_subject">조회 </span><?php echo $list[$i]['wr_hit'] ?></li>
<?php if ($is_good) { ?><li><span class="bo_img_subject">추천</span><strong><?php echo $list[$i]['wr_good'] ?></strong></li><?php } ?>
<?php if ($is_nogood) { ?><li><span class="bo_img_subject">비추천</span><strong><?php echo $list[$i]['wr_nogood'] ?></strong></li><?php } ?>
</ul>
</li>
<? } ?>
<? if (count($list) == 0) { echo "<li class=\"empty_list\">게시물이 없습니다.</li>"; } ?>
<?php } ?>
<?php if (count($list) == 0) { echo "<li class=\"empty_list\">게시물이 없습니다.</li>"; } ?>
</ul>
<? if ($list_href || $is_checkbox || $write_href) {?>
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<div class="bo_fx">
<ul class="btn_bo_adm">
<? if ($list_href) { ?>
<li><a href="<?=$list_href?>" class="btn_b01"> 목록</a></li>
<? } ?>
<? if ($is_checkbox) { ?>
<?php if ($list_href) { ?>
<li><a href="<?php echo $list_href ?>" class="btn_b01"> 목록</a></li>
<?php } ?>
<?php if ($is_checkbox) { ?>
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
<? } ?>
<?php } ?>
</ul>
<ul class="btn_bo_user">
<li><? if ($write_href) { ?><a href="<?=$write_href?>" class="btn_b02">글쓰기</a><? } ?></li>
<li><?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a><?php } ?></li>
</ul>
</div>
<? } ?>
<?php } ?>
</form>
</div>
<? if($is_checkbox) { ?>
<?php if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<? } ?>
<?php } ?>
<!-- 페이지 -->
<? echo $write_pages; ?>
<?php echo $write_pages; ?>
<fieldset id="bo_sch">
<legend>게시물 검색</legend>
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sop" value="and">
<select name="sfl" title="검색대상">
<option value="wr_subject"<?=get_selected($sfl, "wr_subject", true);?>>제목</option>
<option value="wr_content"<?=get_selected($sfl, "wr_content");?>>내용</option>
<option value="wr_subject||wr_content"<?=get_selected($sfl, "wr_subject||wr_content");?>>제목+내용</option>
<option value="mb_id,1"<?=get_selected($sfl, "mb_id,1");?>>회원아이디</option>
<option value="mb_id,0"<?=get_selected($sfl, "mb_id,0");?>>회원아이디(코)</option>
<option value="wr_name,1"<?=get_selected($sfl, "wr_name,1");?>>글쓴이</option>
<option value="wr_name,0"<?=get_selected($sfl, "wr_name,0");?>>글쓴이(코)</option>
<label for="sfl" class="sound_only">검색대상</label>
<select name="sfl" id="sfl">
<option value="wr_subject"<?php echo get_selected($sfl, "wr_subject", true); ?>>제목</option>
<option value="wr_content"<?php echo get_selected($sfl, "wr_content"); ?>>내용</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, "wr_subject||wr_content"); ?>>제목+내용</option>
<option value="mb_id,1"<?php echo get_selected($sfl, "mb_id,1"); ?>>회원아이디</option>
<option value="mb_id,0"<?php echo get_selected($sfl, "mb_id,0"); ?>>회원아이디(코)</option>
<option value="wr_name,1"<?php echo get_selected($sfl, "wr_name,1"); ?>>글쓴이</option>
<option value="wr_name,0"<?php echo get_selected($sfl, "wr_name,0"); ?>>글쓴이(코)</option>
</select>
<input type="text" name="stx" value="<?=stripslashes($stx)?>" title="검색어(필수)" required class="frm_input required" size="15" maxlength="15">
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
<? if ($is_checkbox) { ?>
<?php if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
var f = document.fboardlist;
@ -229,5 +235,5 @@ function select_copy(sw) {
f.submit();
}
</script>
<? } ?>
<?php } ?>
<!-- 게시판 목록 끝 -->

View File

@ -31,7 +31,7 @@
.bo_img_href a:focus,
.bo_img_href a:hover {text-decoration:none}
.bo_img_href strong,
.bo_img_href span {display:block;background:#f7f7f7;text-align:center;line-height:10em}
.bo_img_href span {display:inline-block;background:#f7f7f7;text-align:center;line-height:10em}
.bo_img_text_href {margin:10px 0 !important}
.bo_img_text_href a {font-weight:bold}

View File

@ -1,26 +1,28 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
<div id="bo_v" style="width:<?=$width;?>">
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<div id="bo_v" style="width:<?php echo $width; ?>">
<p id="bo_v_cate">
<?=$board['bo_subject']?>
<? if ($category_name) { // 분류가 지정되었다면 ?><?=($category_name ? "{$view['ca_name']} " : "");?><? } // 분류 출력 끝 ?>
<?php echo $board['bo_subject'] ?>
<?php if ($category_name) { // 분류가 지정되었다면 ?><?php echo ($category_name ? "{$view['ca_name']} " : ""); ?><?php } // 분류 출력 끝 ?>
</p>
<h1 id="bo_v_h1"><?=cut_str(get_text($view['wr_subject']), 70) // 글제목 출력?></h1>
<h1 id="bo_v_h1"><?php echo cut_str(get_text($view['wr_subject']), 70) // 글제목 출력 ?></h1>
<section id="bo_v_info">
<h2>게시물 정보</h2>
작성자 <strong><?=$view['name']?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
<span class="sound_only">작성일</span><strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong>
조회<strong><?=number_format($view['wr_hit'])?>회</strong>
댓글<strong><?=number_format($view['wr_comment'])?>건</strong>
작성자 <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
<span class="sound_only">작성일</span><strong><?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>
조회<strong><?php echo number_format($view['wr_hit']) ?>회</strong>
댓글<strong><?php echo number_format($view['wr_comment']) ?>건</strong>
</section>
<?
<?php
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
@ -28,89 +30,89 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
$cnt++;
}
}
?>
?>
<? if($cnt) { ?>
<?php if($cnt) { ?>
<section id="bo_v_file">
<h2>첨부파일</h2>
<ul>
<?
<?php
// 가변 파일
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
?>
?>
<li>
<a href="<? echo $view['file'][$i]['href']; ?>" class="view_file_download">
<img src="<?=$board_skin_url?>/img/icon_file.gif" alt="첨부">
<strong><?=$view['file'][$i]['source']?></strong>
<?=$view['file'][$i]['bf_content']?> (<?=$view['file'][$i]['size']?>)
<a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download">
<img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부">
<strong><?php echo $view['file'][$i]['source'] ?></strong>
<?php echo $view['file'][$i]['bf_content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
</a>
<span class="bo_v_file_cnt"><?=$view['file'][$i]['download']?>회 다운로드</span>
<span>DATE : <?=$view['file'][$i]['datetime']?></span>
<span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span>
<span>DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
</li>
<?
<?php
}
}
?>
?>
</ul>
</section>
<? } ?>
<?php } ?>
<?
<?php
if (implode('', $view['link'])) {
?>
?>
<section id="bo_v_link">
<h2>관련링크</h2>
<ul>
<?
<?php
// 링크
$cnt = 0;
for ($i=1; $i<=count($view['link']); $i++) {
if ($view['link'][$i]) {
$cnt++;
$link = cut_str($view['link'][$i], 70);
?>
?>
<li>
<a href="<?=$view['link_href'][$i]?>" target="_blank">
<img src="<?=$board_skin_url?>/img/icon_link.gif" alt="관련링크">
<strong><?=$link?></strong>
<a href="<?php echo $view['link_href'][$i] ?>" target="_blank">
<img src="<?php echo $board_skin_url ?>/img/icon_link.gif" alt="관련링크">
<strong><?php echo $link ?></strong>
</a>
<span class="bo_v_link_cnt"><?=$view['link_hit'][$i]?>회 연결</span>
<span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>
</li>
<?
<?php
}
}
?>
?>
</ul>
</section>
<? } ?>
<?php } ?>
<nav id="bo_v_top">
<h2>게시물 상단 버튼</h2>
<?
<?php
ob_start();
?>
<? if ($prev_href || $next_href) { ?>
?>
<?php if ($prev_href || $next_href) { ?>
<ul class="bo_v_nb">
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>" class="btn_b01">이전글</a></li><? } ?>
<? if ($next_href) { ?><li><a href="<?=$next_href?>" class="btn_b01">다음글</a></li><? } ?>
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01">이전글</a></li><?php } ?>
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01">다음글</a></li><?php } ?>
</ul>
<? } ?>
<?php } ?>
<ul class="bo_v_com">
<? if ($update_href) { ?><li><a href="<?=$update_href?>" class="btn_b01">수정</a></li><? } ?>
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><? } ?>
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><? } ?>
<? if ($move_href) { ?><li><a href="<?=$move_href?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><? } ?>
<? if ($search_href) { ?><li><a href="<?=$search_href?>" class="btn_b01">검색</a></li><? } ?>
<li><a href="<?=$list_href?>" class="btn_b01">목록</a></li>
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>" class="btn_b01">답변</a></li><? } ?>
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn_b02">글쓰기</a></li><? } ?>
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01">수정</a></li><?php } ?>
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><?php } ?>
<?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><?php } ?>
<?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><?php } ?>
<?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01">검색</a></li><?php } ?>
<li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li>
<?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01">답변</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<?
<?php
$link_buttons = ob_get_contents();
ob_end_flush();
?>
?>
</nav>
<article id="bo_v_atc">
@ -118,7 +120,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<h1>본문</h1>
</header>
<?
<?php
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
@ -133,48 +135,48 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
echo "</div>\n";
}
?>
?>
<div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
<?php//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
<?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>
<? if ($scrap_href || $good_href || $nogood_href) { ?>
<?php if ($scrap_href || $good_href || $nogood_href) { ?>
<div id="bo_v_act">
<? if ($scrap_href) { ?><a href="<?=$scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><? } ?>
<? if ($good_href) {?>
<a href="<?=$good_href.'&amp;'.$qstr?>" id="good_button" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a>
<?php if ($scrap_href) { ?><a href="<?php echo $scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><?php } ?>
<?php if ($good_href) { ?>
<a href="<?php echo $good_href.'&amp;'.$qstr ?>" id="good_button" class="btn_b01">추천 <strong><?php echo number_format($view['wr_good']) ?></strong></a>
<b id="bo_v_act_good"></b>
<? } ?>
<? if ($nogood_href) {?>
<a href="<?=$nogood_href.'&amp;'.$qstr?>" id="nogood_button" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a>
<?php } ?>
<?php if ($nogood_href) { ?>
<a href="<?php echo $nogood_href.'&amp;'.$qstr ?>" id="nogood_button" class="btn_b01">비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
<b id="bo_v_act_nogood"></b>
<? } ?>
<?php } ?>
</div>
<? } else {
<?php } else {
if($board['bo_use_good'] || $board['bo_use_nogood']) {
?>
?>
<div id="bo_v_act">
<? if($board['bo_use_good']) { ?><span>추천 <strong><?=number_format($view['wr_good'])?></strong></span><? } ?>
<? if($board['bo_use_nogood']) { ?><span>비추천 <strong><?=number_format($view['wr_nogood'])?></strong></span><? } ?>
<?php if($board['bo_use_good']) { ?><span>추천 <strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
<?php if($board['bo_use_nogood']) { ?><span>비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
</div>
<?
<?php
}
}
?>
?>
</article>
<?
<?php
// 코멘트 입출력
include_once('./view_comment.php');
?>
?>
<nav id="bo_v_bot">
<h2>게시물 하단 버튼</h2>
<!-- 링크 버튼 -->
<?=$link_buttons?>
<?php echo $link_buttons ?>
</nav>
</div>
@ -182,10 +184,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<script>
<? if ($board['bo_download_point'] < 0) { ?>
<?php if ($board['bo_download_point'] < 0) { ?>
$(function() {
$("a.view_file_download").click(function() {
var msg = "파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
if(confirm(msg)) {
var href = $(this).attr("href")+"&js=on";
@ -197,7 +199,7 @@ $(function() {
}
});
});
<?}?>
<?php } ?>
function board_move(href)
{

View File

@ -1,52 +1,53 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script>
// 글자수 제한
var char_min = parseInt(<?=$comment_min?>); // 최소
var char_max = parseInt(<?=$comment_max?>); // 최대
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</script>
<!-- 댓글 리스트 -->
<section id="bo_vc">
<h2>댓글목록</h2>
<?
<?php
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i]['wr_id'];
$cmt_depth = ""; // 댓글단계
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret"))
$str = $str;
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret")) {
$str = $str;
}
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
?>
<article id="c_<?=$comment_id?>" <?if ($cmt_depth) {?>style="margin-left:<?=$cmt_depth?>px;border-top-color:#e0e0e0"<?}?>>
<article id="c_<?php echo $comment_id; ?>" <?php if ($cmt_depth) { ?>style="margin-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0"<?php } ?>>
<header>
<h1><?=$list[$i]['wr_name']?>님의 댓글</h1>
<?=$list[$i]['name']?>
<? if ($cmt_depth) {?><img src="<?=$board_skin_url?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><? } ?>
<? if ($is_ip_view) { ?>
<h1><?php echo $list[$i]['wr_name'] ?>님의 댓글</h1>
<?php echo $list[$i]['name'] ?>
<?php if ($cmt_depth) { ?><img src="<?php echo $board_skin_url ?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><?php } ?>
<?php if ($is_ip_view) { ?>
아이피
<span class="bo_vc_hdinfo"><?=$list[$i]['ip'];?></span>
<? } ?>
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
<?php } ?>
작성일
<span class="bo_vc_hdinfo"><time datetime="<?=date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime']))?>"><?=$list[$i]['datetime']?></time></span>
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
</header>
<!-- 댓글 출력 -->
<p>
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">";?>
<?=$str?>
<?php if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">"; ?>
<?php echo $str ?>
</p>
<span id="edit_<?=$comment_id?>"></span><!-- 수정 -->
<span id="reply_<?=$comment_id?>"></span><!-- 답변 -->
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
<input type="hidden" value="<?=strstr($list[$i]['wr_option'],"secret")?>" id="secret_comment_<?=$comment_id?>">
<textarea id="save_comment_<?=$comment_id?>" style="display:none"><?=get_text($list[$i]['content1'], 0)?></textarea>
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>">
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
<?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
$query_string = str_replace("&", "&amp;", $_SERVER['QUERY_STRING']);
if($w == 'cu') {
@ -57,42 +58,43 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
$c_reply_href = './board.php?'.$query_string.'&amp;c_id='.$comment_id.'&amp;w=c#bo_vc_w';
$c_edit_href = './board.php?'.$query_string.'&amp;c_id='.$comment_id.'&amp;w=cu#bo_vc_w';
?>
?>
<footer>
<ul class="bo_vc_act">
<? if ($list[$i]['is_reply']) { ?><li><a href="<? echo $c_reply_href; ?>" onclick="comment_box('<?=$comment_id?>', 'c'); return false;">답변</a></li><? } ?>
<? if ($list[$i]['is_edit']) { ?><li><a href="<? echo $c_edit_href; ?>" onclick="comment_box('<?=$comment_id?>', 'cu'); return false;">수정</a></li><? } ?>
<? if ($list[$i]['is_del']) { ?><li><a href="<? echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><? } ?>
<?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;">답변</a></li><?php } ?>
<?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;">수정</a></li><?php } ?>
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><?php } ?>
</ul>
</footer>
<? } ?>
<?php } ?>
</article>
<?}?>
<? if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><? } ?>
<?php } ?>
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
</section>
<? if ($is_comment_write) {
<?php
if ($is_comment_write) {
if($w == '')
$w = 'c';
?>
?>
<aside id="bo_vc_w">
<h2>댓글쓰기</h2>
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<input type="hidden" name="w" value="<?=$w?>" id="w" >
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="comment_id" value="<?=$c_id?>" id="comment_id">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="w" value="<?php echo $w ?>" id="w" >
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="is_good" value="">
<table class="frm_tbl">
<tbody>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" id="wr_name" required class="frm_input required" size="5" maxLength="20"></td>
@ -101,24 +103,24 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="wr_secret">비밀글사용</label></th>
<td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td>
</tr>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=$captcha_html;?></td>
<td><?php echo $captcha_html; ?></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row">내용</th>
<td>
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
<textarea name="wr_content" id="wr_content" required class="required"
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?> title="댓글내용입력(필수)"><? echo $c_wr_content; ?></textarea>
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
</td>
</tr>
</tbody>
@ -231,7 +233,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
}
}
<? if($is_guest) echo chk_captcha_js(); ?>
<?php if($is_guest) echo chk_captcha_js(); ?>
return true;
}
@ -286,4 +288,4 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
</script>
<? } ?>
<?php } ?>

View File

@ -1,21 +1,23 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<h1 id="wrapper_title"><?=$g4['title']?></h1>
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
<form name="fwrite" id="fwrite" action="<?=$action_url?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?=$width;?>">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="page" value="<?=$page?>">
<?
<h1 id="wrapper_title"><?php echo $g4['title'] ?></h1>
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<?php
$option = '';
$option_hidden = '';
if ($is_notice || $is_html || $is_secret || $is_mail) {
@ -50,93 +52,93 @@ echo $option_hidden;
<table id="bo_w" class="frm_tbl">
<tbody>
<? if ($is_name) { ?>
<?php if ($is_name) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?=$name?>"id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
<td><input type="text" name="wr_name" value="<?php echo $name ?>"id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_password) { ?>
<?php if ($is_password) { ?>
<tr>
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" <?=$password_required?> class="frm_input <?=$password_required?>" maxlength="20"></td>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_email) { ?>
<?php if ($is_email) { ?>
<tr>
<th scope="row"><label for="wr_email">이메일</label></th>
<td><input type="text" name="wr_email" value="<?=$email?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_homepage) { ?>
<?php if ($is_homepage) { ?>
<tr>
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
<td><input type="text" name="wr_homepage" value="<?=$homepage?>" id="wr_homepage" class="frm_input" size="50"></td>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($option) { ?>
<?php if ($option) { ?>
<tr>
<th scope="row">옵션</th>
<td><?=$option?></td>
<td><?php echo $option ?></td>
</tr>
<? } ?>
<?php } ?>
<? if ($is_category) { ?>
<?php if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td>
<select name="ca_name" id="ca_name" required class="required">
<option value="">선택하세요</option>
<?=$category_option?>
<?php echo $category_option ?>
</select>
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_subject" value="<?=$subject?>" id="wr_subject" required class="frm_input required" size="50"></td>
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50"></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
<td class="wr_content"><? echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
<td class="wr_content"><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
</tr>
<? for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
<?php for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
<tr>
<th scope="row"><label for="wr_link<?=$i?>">링크 #<?=$i?></label></th>
<td><input type="text" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>" id="wr_link<?=$i?>" class="frm_input" size="50"></td>
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
</tr>
<? } ?>
<?php } ?>
<? for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?=$i+1?></th>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>
<input type="file" name="bf_file[]" title="파일첨부 <?=$i+1?> : 용량 <?=$upload_max_filesize?> 이하만 업로드 가능" class="frm_file frm_input">
<? if ($is_file_content) { ?>
<input type="text" name="bf_content[]" value="<? echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
<?}?>
<? if($w == 'u' && $file[$i]['file']) { ?>
<input type="checkbox" name="bf_file_del[<? echo $i; ?>]" value="1" id="bf_file_del<?=$i?>"> <label for="bf_file_del<?=$i?>"><? echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
<? } ?>
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<?php if ($is_file_content) { ?>
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
<?php } ?>
<?php if($w == 'u' && $file[$i]['file']) { ?>
<input type="checkbox" name="bf_file_del[<?php echo $i; ?>]" value="1" id="bf_file_del<?php echo $i ?>"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
<?php } ?>
</td>
</tr>
<?}?>
<?php } ?>
<? if ($is_guest) { //자동등록방지 ?>
<?php if ($is_guest) { //자동등록방지 ?>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?=$captcha_html?>
<?php echo $captcha_html ?>
</td>
</tr>
<? } ?>
<?php } ?>
</tbody>
</table>
@ -146,12 +148,12 @@ echo $option_hidden;
작성하신 내용을 제출하시려면 <strong>글쓰기</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>취소</strong> 링크를 누르세요.
</p>
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
<a href="./board.php?bo_table=<?=$bo_table?>" class="btn_cancel">취소</a>
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">취소</a>
</div>
</form>
<script>
<?
<?php
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
@ -175,7 +177,7 @@ with (document.fwrite)
if (typeof(ca_name) != "undefined")
if (w.value == "u") {
ca_name.value = "<?=isset($write['ca_name'])?$write['ca_name']:'';?>";
ca_name.value = "<?php echo isset($write['ca_name'])?$write['ca_name']:''; ?>";
}
}
@ -194,8 +196,8 @@ function html_auto_br(obj)
function fwrite_submit(f)
{
<? echo get_editor_js('wr_content', $is_dhtml_editor); ?>
<? echo chk_editor_js('wr_content', $is_dhtml_editor); ?>
<?php echo get_editor_js('wr_content', $is_dhtml_editor); ?>
<?php echo chk_editor_js('wr_content', $is_dhtml_editor); ?>
var subject = "";
var content = "";
@ -230,7 +232,7 @@ function fwrite_submit(f)
return false;
}
<? if ($is_guest) { echo chk_captcha_js(); } ?>
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
return true;
}

View File

@ -1,6 +1,8 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 회원수는 $row['mb_cnt'];
?>
<?=$row['total_cnt']?>
<link rel="stylesheet" href="<?php echo $connect_skin_url ?>/style.css">
<?php echo $row['total_cnt'] ?>

View File

@ -1,7 +1,9 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $connect_skin_url ?>/style.css">
<table id="current_connect_tbl" class="basic_tbl">
<thead>
<tr>
@ -11,7 +13,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
</thead>
<tbody>
<?
<?php
for ($i=0; $i<count($list); $i++) {
$location = conv_content($list[$i]['lo_location'], 0);
// 최고관리자에게만 허용
@ -20,11 +22,11 @@ for ($i=0; $i<count($list); $i++) {
else $display_location = $location;
?>
<tr>
<td class="td_num"><?=$list[$i]['num']?></td>
<td class="td_name"><?=$list[$i]['name']?></td>
<td><?=$display_location?></td>
<td class="td_num"><?php echo $list[$i]['num'] ?></td>
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
<td><?php echo $display_location ?></td>
</tr>
<?
<?php
}
if ($i == 0)
echo "<tr><td colspan=\"3\" class=\"empty_table\">현재 접속자가 없습니다.</td></tr>";

View File

View File

@ -1,15 +1,17 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css">
<div class="lt">
<strong class="lt_title"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><?=$bo_subject?></a></strong>
<strong class="lt_title"><a href="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject ?></a></strong>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<?php for ($i=0; $i<count($list); $i++) { ?>
<li>
<?
<?php
//echo $list[$i]['icon_reply']." ";
echo "<a href=\"".$list[$i]['href']."\" title=\"".$list[$i]['wr_subject']."\">";
echo "<a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
@ -28,12 +30,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
?>
?>
</li>
<? } ?>
<? if (count($list) == 0) { //게시물이 없을 때 ?>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<li>게시물이 없습니다.</li>
<? } ?>
<?php } ?>
</ul>
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><span class="sound_only"><?=$bo_subject?></span>더보기</a></div>
<div class="lt_more"><a href="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
</div>

View File

@ -1,22 +1,24 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="formmail" class="new_win">
<h1><?=$name?>님께 메일보내기</h1>
<h1><?php echo $name ?>님께 메일보내기</h1>
<form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="to" value="<?php echo $email ?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
<? if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?=$member['mb_nick']?>">
<input type="hidden" name="fmail" value="<?=$member['mb_email']?>">
<? } ?>
<input type="hidden" name="token" value="<?php echo $token ?>">
<?php if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?php echo $member['mb_nick'] ?>">
<input type="hidden" name="fmail" value="<?php echo $member['mb_email'] ?>">
<?php } ?>
<table class="frm_tbl">
<caption>메일쓰기</caption>
<tbody>
<? if (!$is_member) { ?>
<?php if (!$is_member) { ?>
<tr>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text"name="fnick" id="fnick" required class="frm_input required"></td>
@ -25,7 +27,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="fmail" id="fmail" required class="frm_input required"></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="subject" id="subject" required class="frm_input required"></td>
@ -52,7 +54,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td><?=captcha_html();?></td>
<td><?php echo captcha_html(); ?></td>
</tr>
</tbody>
</table>
@ -78,7 +80,7 @@ with (document.fformmail) {
function fformmail_submit(f)
{
<? echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
if (f.file1.value || f.file2.value) {
// 4.00.11

View File

@ -1,12 +1,14 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<div id="mb_login">
<h1><?=$g4['title']?></h1>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<form name="flogin" action="<?=$login_action_url?>" onsubmit="return flogin_submit(this);" method="post">
<input type="hidden" name="url" value='<?=$login_url?>'>
<div id="mb_login">
<h1><?php echo $g4['title'] ?></h1>
<form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);" method="post">
<input type="hidden" name="url" value='<?php echo $login_url ?>'>
<fieldset class="cbg">
<label for="login_id" class="login_id">회원아이디<strong class="sound_only">필수</strong></label>
@ -25,13 +27,13 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
아직 회원이 아니시라면 회원으로 가입 후 이용해 주십시오.
</p>
<div>
<a href="<?=G4_BBS_URL?>/password_lost.php" target="win_password_lost" id="login_password_lost" class="btn02">아이디 패스워드 찾기</a>
<a href="<?php echo G4_BBS_URL ?>/password_lost.php" target="win_password_lost" id="login_password_lost" class="btn02">아이디 패스워드 찾기</a>
<a href="./register.php" class="btn01">회원 가입</a>
</div>
</section>
<div class="btn_confirm">
<a href="<?=G4_URL?>/">메인으로 돌아가기</a>
<a href="<?php echo G4_URL ?>/">메인으로 돌아가기</a>
</div>
</form>

View File

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

View File

@ -1,26 +1,28 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="mb_confirm">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<p>
<strong>패스워드를 한번 더 입력해주세요.</strong>
<? if ($url == 'member_leave.php') {?>
<?php if ($url == 'member_leave.php') { ?>
패스워드를 입력하시면 회원탈퇴가 완료됩니다.
<?}else{?>
<?php }else{ ?>
회원님의 정보를 안전하게 보호하기 위해 패스워드를 한번 더 확인합니다.
<? } ?>
<?php } ?>
</p>
<form name="fmemberconfirm" onsubmit="return fmemberconfirm_submit(this);" method="post">
<input type="hidden" name="mb_id" value="<?=$member[mb_id]?>">
<form name="fmemberconfirm" action="<?php echo $url ?>" onsubmit="return fmemberconfirm_submit(this);" method="post">
<input type="hidden" name="mb_id" value="<?php echo $member['mb_id'] ?>">
<input type="hidden" name="w" value="u">
<fieldset>
회원아이디
<span id="mb_confirm_id"><?=$member[mb_id]?></span>
<span id="mb_confirm_id"><?php echo $member['mb_id'] ?></span>
<label for="confirm_mb_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="confirm_mb_password" required class="required frm_input" size="15" maxLength="20">
@ -30,7 +32,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</form>
<div class="btn_confirm">
<a href="<?=G4_URL?>">메인으로 돌아가기</a>
<a href="<?php echo G4_URL ?>">메인으로 돌아가기</a>
</div>
</div>
@ -40,7 +42,6 @@ function fmemberconfirm_submit(f)
{
document.getElementById("btn_submit").disabled = true;
f.action = "<?=$url?>";
return true;
}
</script>

View File

@ -1,9 +1,11 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="memo_list" class="new_win">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<ul class="new_win_ul">
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
@ -13,31 +15,31 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<table class="basic_tbl">
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
전체 <?php echo $kind_title ?>쪽지 <?php echo $total_count ?>통<br>
</caption>
<thead>
<tr>
<th scope="col"><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col"><?php echo ($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++) { ?>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i]['name']?></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="<?=$list[$i]['del_href']?>" onclick="del(this.href); return false;">삭제</a></td>
<td><?php echo $list[$i]['name'] ?></td>
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href'] ?>"><?php echo $list[$i]['send_datetime'] ?></font></td>
<td class="td_datetime"><a href="<?php echo $list[$i]['view_href'] ?>"><?php echo $list[$i]['read_datetime'] ?></font></td>
<td class="td_mng"><a href="<?php echo $list[$i]['del_href'] ?>" onclick="del(this.href); return false;">삭제</a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
<?php } ?>
<?php if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<p class="new_win_desc">
쪽지 보관일수는 최장 <strong><?=$config['cf_memo_del']?></strong>일 입니다.
쪽지 보관일수는 최장 <strong><?php echo $config['cf_memo_del'] ?></strong>일 입니다.
</p>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>

View File

@ -1,7 +1,9 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="memo_write" class="new_win">
<h1>쪽지보내기</h1>
@ -19,18 +21,18 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" name="me_recv_mb_id" value="<?=$me_recv_mb_id?>" id="me_recv_mb_id" required class="frm_input required" size="47">
<input type="text" name="me_recv_mb_id" value="<?php echo $me_recv_mb_id ?>" id="me_recv_mb_id" required class="frm_input required" size="47">
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
</td>
</tr>
<tr>
<th scope="row"><label for="me_memo">내용</label></th>
<td><textarea name="me_memo" id="me_memo" required class="required"><?=$content?></textarea></td>
<td><textarea name="me_memo" id="me_memo" required class="required"><?php echo $content ?></textarea></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?=captcha_html();?>
<?php echo captcha_html(); ?>
</td>
</tr>
</tbody>
@ -50,7 +52,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script>
function fmemoform_submit(f)
{
<? echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
return true;
}

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
if($kind == "recv") {
@ -11,8 +11,10 @@ else {
}
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="memo_view" class="new_win">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<ul class="new_win_ul">
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
@ -22,27 +24,27 @@ else {
<h2>쪽지 내용</h2>
<ul id="memo_view_ul">
<li class="memo_view_li">
<span class="memo_view_subj"><?=$kind_str?>사람</span>
<strong><?=$nick?></strong>
<span class="memo_view_subj"><?php echo $kind_str ?>사람</span>
<strong><?php echo $nick ?></strong>
</li>
<li class="memo_view_li">
<span class="memo_view_subj"><?=$kind_date?>시간</span>
<strong><?=$memo['me_send_datetime']?></strong>
<span class="memo_view_subj"><?php echo $kind_date ?>시간</span>
<strong><?php echo $memo['me_send_datetime'] ?></strong>
</li>
</ul>
<p>
<?=conv_content($memo['me_memo'], 0)?>
<?php echo conv_content($memo['me_memo'], 0) ?>
</p>
</section>
<div class="btn_win">
<? if($prev_link) { ?>
<a href="<?=$prev_link?>">이전쪽지</a>
<? } ?>
<? if($next_link) { ?>
<a href="<?=$next_link?>">다음쪽지</a>
<? } ?>
<? if ($kind == 'recv') { ?><a href="./memo_form.php?me_recv_mb_id=<?=$mb['mb_id']?>&amp;me_id=<?=$memo['me_id']?>" class="btn01">답장</a><? } ?>
<a href="./memo.php?kind=<?=$kind?>">목록보기</a>
<?php if($prev_link) { ?>
<a href="<?php echo $prev_link ?>">이전쪽지</a>
<?php } ?>
<?php if($next_link) { ?>
<a href="<?php echo $next_link ?>">다음쪽지</a>
<?php } ?>
<?php if ($kind == 'recv') { ?><a href="./memo_form.php?me_recv_mb_id=<?php echo $mb['mb_id'] ?>&amp;me_id=<?php echo $memo['me_id'] ?>" class="btn01">답장</a><?php } ?>
<a href="./memo.php?kind=<?php echo $kind ?>">목록보기</a>
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$delete_str = "";
if ($w == 'x') $delete_str = "";
@ -7,29 +7,31 @@ else if ($w == 'd' || $w == 'x') $g4['title'] = $delete_str."글 삭제";
else $g4['title'] = $g4['title'];
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="pw_confirm">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<p>
<? if ($w == 'u') {?>
<?php if ($w == 'u') { ?>
<strong>작성자만 글을 수정할 수 있습니다.</strong>
작성자 본인이라면, 글 작성시 입력한 패스워드를 입력하여 글을 수정할 수 있습니다.
<? } else if ($w == 'd' || $w == 'x') { ?>
<?php } else if ($w == 'd' || $w == 'x') { ?>
<strong>작성자만 글을 삭제할 수 있습니다.</strong>
작성자 본인이라면, 글 작성시 입력한 패스워드를 입력하여 글을 삭제할 수 있습니다.
<? } else { ?>
<?php } else { ?>
<strong>비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 수 있습니다. 본인이라면 패스워드를 입력하세요.
<? } ?>
<?php } ?>
</p>
<form name="fboardpassword" action="<? echo $action; ?>" method="post">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="comment_id" value="<?=$comment_id?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<form name="fboardpassword" action="<?php echo $action; ?>" method="post">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="comment_id" value="<?php echo $comment_id ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<fieldset>
<label for="pw_wr_password">패스워드<strong class="sound_only">필수</strong></label>
@ -39,7 +41,7 @@ else $g4['title'] = $g4['title'];
</form>
<div class="btn_confirm">
<a href="<?=$return_url?>">돌아가기</a>
<a href="<?php echo $return_url ?>">돌아가기</a>
</div>
</div>

View File

@ -1,11 +1,13 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="find_info" class="new_win">
<h1>회원정보 찾기</h1>
<form name="fpasswordlost" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
<form name="fpasswordlost" action="<?php echo $action_url ?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
<fieldset id="find_info_fs">
<p>
회원가입 시 등록하신 이메일 주소를 입력해 주세요.<br>
@ -14,7 +16,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<label for="mb_email">E-mail 주소<strong class="sound_only">필수</strong></label>
<input type="text" name="mb_email" id="mb_email" required class="required frm_input email" size="30">
</fieldset>
<?=captcha_html(); ?>
<?php echo captcha_html(); ?>
<div class="btn_win">
<input type="submit" value="확인" class="btn_submit">
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
@ -25,7 +27,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script>
function fpasswordlost_submit(f)
{
<? echo chk_captcha_js(); ?>
<?php echo chk_captcha_js(); ?>
return true;
}

View File

@ -1,40 +1,42 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="profile" class="new_win">
<h1><?=$mb_nick?>님의 프로필</h1>
<h1><?php echo $mb_nick ?>님의 프로필</h1>
<table class="frm_tbl">
<tbody>
<tr>
<th scope="row">회원권한</th>
<td><?=$mb['mb_level']?></td>
<td><?php echo $mb['mb_level'] ?></td>
</tr>
<tr>
<th scope="row">포인트</th>
<td><?=number_format($mb['mb_point'])?></td>
<td><?php echo number_format($mb['mb_point']) ?></td>
</tr>
<? if ($mb_homepage) { ?>
<?php if ($mb_homepage) { ?>
<tr>
<th scope="row">홈페이지</th>
<td><a href="<?=$mb_homepage?>" target="_blank"><?=$mb_homepage?></a></td>
<td><a href="<?php echo $mb_homepage ?>" target="_blank"><?php echo $mb_homepage ?></a></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row">회원가입일</th>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음"; ?></td>
<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음"; ?></td>
</tr>
<tr>
<th scope="row">최종접속일</th>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음";?></td>
<td><?php echo ($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음"; ?></td>
</tr>
</tbody>
</table>
<section>
<h2>인사말</h2>
<p><?=$mb_profile?></p>
<p><?php echo $mb_profile ?></p>
</section>
<div class="btn_win">

View File

@ -1,14 +1,15 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<form name="fregister" id="fregister" action="<?=$register_action_url?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<form name="fregister" id="fregister" action="<?php echo $register_action_url ?>" onsubmit="return fregister_submit(this);" method="POST" autocomplete="off">
<p>회원가입약관 및 개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</p>
<section id="fregister_term">
<h2>회원가입약관</h2>
<textarea readonly><?=get_text($config['cf_stipulation'])?></textarea>
<textarea readonly><?php echo get_text($config['cf_stipulation']) ?></textarea>
<fieldset class="fregister_agree">
<label for="agree11">회원가입약관의 내용에 동의합니다.</label>
<input type="checkbox" name="agree" value="1" id="agree11">
@ -17,7 +18,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<section id="fregister_private">
<h2>개인정보수집이용안내</h2>
<textarea readonly><?=get_text($config['cf_privacy'])?></textarea>
<textarea readonly><?php echo get_text($config['cf_privacy']) ?></textarea>
<fieldset class="fregister_agree">
<label for="agree21">개인정보수집이용안내의 내용에 동의합니다.</label>
<input type="checkbox" name="agree2" value="1" id="agree21">

View File

@ -1,19 +1,20 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script src="<?=G4_JS_URL?>/jquery.register_form.js"></script>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<script src="<?php echo G4_JS_URL ?>/jquery.register_form.js"></script>
<form name="fregisterform" id="fregisterform" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="url" value="<?=$urlencode?>">
<input type="hidden" name="agree" value="<?=$agree?>">
<input type="hidden" name="agree2" value="<?=$agree2?>">
<? 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))) { // 별명수정일이 지나지 않았다면 ?>
<input type="hidden" name="mb_nick_default" value="<?=$member['mb_nick']?>">
<input type="hidden" name="mb_nick" value="<?=$member['mb_nick']?>">
<? } ?>
<form id="fregisterform" name="fregisterform" action="<?php echo $register_action_url ?>" onsubmit="return fregisterform_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="url" value="<?php echo $urlencode ?>">
<input type="hidden" name="agree" value="<?php echo $agree ?>">
<input type="hidden" name="agree2" value="<?php echo $agree2 ?>">
<?php if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?php echo $member['mb_sex'] ?>"><?php } ?>
<?php 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="<?php echo $member['mb_nick'] ?>">
<input type="hidden" name="mb_nick" value="<?php echo $member['mb_nick'] ?>">
<?php } ?>
<table class="frm_tbl">
<caption>사이트 이용정보 입력</caption>
@ -21,17 +22,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<th scope="row"><label for="reg_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
<td>
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
<input type="text" name="mb_id" value="<?=$member['mb_id']?>" id="reg_mb_id" <?=$required?> <?=$readonly?> class="frm_input minlength_3 <?=$required?> <?=$readonly?>"maxlength="20">
<input type="text" name="mb_id" value="<?php echo $member['mb_id'] ?>" id="reg_mb_id" <?php echo $required ?> <?php echo $readonly ?> class="frm_input minlength_3 <?php echo $required ?> <?php echo $readonly ?>"maxlength="20">
<span id="msg_mb_id"></span>
</td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="mb_password" id="reg_mb_password" <?=$required?> class="frm_input minlength_3 <?=$required?>" maxlength="20"></td>
<td><input type="password" name="mb_password" id="reg_mb_password" <?php echo $required ?> class="frm_input minlength_3 <?php echo $required ?>" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?=$required?> class="frm_input minlength_3 <?=$required?>" maxlength="20"></td>
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" <?php echo $required ?> class="frm_input minlength_3 <?php echo $required ?>" maxlength="20"></td>
</tr>
</table>
@ -40,182 +41,218 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
<td>
<? if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } ?>
<input type="text" name="mb_name" value="<?=$member['mb_name']?>" id="reg_mb_name" <?=$required?> <?=$readonly?> class="frm_input hangul nospace <?=$required?> <?=$readonly?>" size="10">
<?php/* if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } */ ?>
<?php echo $config['cf_kcpcert_use'] ? '<span class="frm_info">이름과 휴대폰번호는 아래의 휴대폰 본인확인 기능을 사용하여 입력해 주십시오.</span>' : ''; ?>
<?php echo ($config['cf_kcpcert_use']==-1) ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($config['cf_kcpcert_use']||$w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
</td>
</tr>
<? if ($req_nick) { ?>
<?php if ($req_nick) { ?>
<tr>
<th scope="row"><label for="reg_mb_nick">별명<strong class="sound_only">필수</strong></label></th>
<td>
<span class="frm_info">
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.
</span>
<input type="hidden" name="mb_nick_default" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>">
<input type="text" name="mb_nick" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" id="reg_mb_nick" required class="frm_input required nospace" size="10" maxlength="20">
<input type="hidden" name="mb_nick_default" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>">
<input type="text" name="mb_nick" value="<?php echo isset($member['mb_nick'])?$member['mb_nick']:''; ?>" id="reg_mb_nick" required class="frm_input required nospace" size="10" maxlength="20">
<span id="msg_mb_nick"></span>
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="reg_mb_email">E-mail<strong class="sound_only">필수</strong></label></th>
<td>
<? if ($config['cf_use_email_certify']) { ?>
<?php if ($config['cf_use_email_certify']) { ?>
<span class="frm_info">
<? if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
<?php if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
</span>
<? } ?>
<input type="hidden" name="old_email" value="<?=$member['mb_email']?>">
<input type="text" name="mb_email" value="<?=isset($member['mb_email'])?$member['mb_email']:'';?>" id="reg_mb_email" required class="frm_input email required" size="50" maxlength="100">
<?php } ?>
<input type="hidden" name="old_email" value="<?php echo $member['mb_email'] ?>">
<input type="text" name="mb_email" value="<?php echo isset($member['mb_email'])?$member['mb_email']:''; ?>" id="reg_mb_email" required class="frm_input email required" size="50" maxlength="100">
</td>
</tr>
<? if ($config['cf_use_homepage']) { ?>
<?php if ($config['cf_use_homepage']) { ?>
<tr>
<th scope="row"><label for="reg_mb_homepage">홈페이지<? if ($config['cf_req_homepage']){?><strong class="sound_only">필수</strong><?}?></label></th>
<td><input type="text" name="mb_homepage" value="<?=$member['mb_homepage']?>" id="reg_mb_homepage" <?=$config['cf_req_homepage']?"required":"";?> class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" size="50" maxlength="255"></td>
<th scope="row"><label for="reg_mb_homepage">홈페이지<?php if ($config['cf_req_homepage']){ ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><input type="text" name="mb_homepage" value="<?php echo $member['mb_homepage'] ?>" id="reg_mb_homepage" <?php echo $config['cf_req_homepage']?"required":""; ?> class="frm_input <?php echo $config['cf_req_homepage']?"required":""; ?>" size="50" maxlength="255"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($config['cf_use_tel']) { ?>
<?php if ($config['cf_use_tel']) { ?>
<tr>
<th scope="row"><label for="reg_mb_tel">전화번호<? if ($config['cf_req_tel']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<td><input type="text" name="mb_tel" value="<?=$member['mb_tel']?>" id="reg_mb_tel" <?=$config['cf_req_tel']?"required":"";?> class="frm_input <?=$config['cf_req_tel']?"required":"";?>" maxlength="20"></td>
<th scope="row"><label for="reg_mb_tel">전화번호<?php if ($config['cf_req_tel']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><input type="text" name="mb_tel" value="<?php echo $member['mb_tel'] ?>" id="reg_mb_tel" <?php echo $config['cf_req_tel']?"required":""; ?> class="frm_input <?php echo $config['cf_req_tel']?"required":""; ?>" maxlength="20"></td>
</tr>
<? } ?>
<?php } ?>
<? if ($config['cf_use_hp']) { ?>
<?php if ($config['cf_use_hp'] || $config['cf_kcpcert_use']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">핸드폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<td><input type="text" name="mb_hp" value="<?=$member[mb_hp]?>" id="reg_mb_hp" <?=$config['cf_req_hp']?"required":"";?> class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20"></td>
<th scope="row"><label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td>
<?php if ($config['cf_kcpcert_use']) { ?>
<span class="frm_info">휴대폰번호는 휴대폰 본인확인 기능을 이용하여 입력하세요.</span>
<?php } ?>
<input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp']||$config['cf_kcpcert_use'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp']||$config['cf_kcpcert_use'])?"required":""; ?>" <?php echo $config['cf_kcpcert_use']?"readonly":""; ?> maxlength="20">
<?php if ($config['cf_kcpcert_use']) { ?>
<input type="hidden" name="old_mb_hp" value="<?php echo $member['mb_hp'] ?>">
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
<noscript>휴대폰 본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
<?php } ?>
</td>
</tr>
<? } ?>
<?php } ?>
<? if ($config['cf_use_addr']) {?>
<?php if ($config['cf_use_addr']) { ?>
<tr>
<th scope="row">
주소
<? if ($config['cf_req_addr']) {?><strong class="sound_only">필수</strong><? } ?>
<?php if ($config['cf_req_addr']) { ?><strong class="sound_only">필수</strong><?php } ?>
</th>
<td>
<input type="text" name="mb_zip1" value="<?=$member['mb_zip1']?>" id="reg_mb_zip1" <?=$config['cf_req_addr']?"required":"";?> title="우편번호 앞자리<?=$config['cf_req_addr']?"(필수)":"";?>" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3">
<label for="reg_mb_zip1" class="sound_only">우편번호 앞자리<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
<input type="text" name="mb_zip1" value="<?php echo $member['mb_zip1'] ?>" id="reg_mb_zip1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="2" maxlength="3">
-
<input type="text" name="mb_zip2" value="<?=$member['mb_zip2']?>" id="reg_mb_zip2" <?=$config['cf_req_addr']?"required":"";?> title="우편번호 뒷자리<?=$config['cf_req_addr']?"(필수)":"";?>" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3">
<label for="reg_mb_zip2" class="sound_only">우편번호 뒷자리<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
<input type="text" name="mb_zip2" value="<?php echo $member['mb_zip2'] ?>" id="reg_mb_zip2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input <?php echo $config['cf_req_addr']?"required":""; ?>" size="2" maxlength="3">
<span id="reg_win_zip" style="display:block"></span>
<input type="text" name="mb_addr1" value="<?=$member['mb_addr1']?>" id="reg_mb_addr1" <?=$config['cf_req_addr']?"required":"";?> title="행정구역주소<?=$config['cf_req_addr']?"(필수)":"";?>" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50">
<input type="text" name="mb_addr2" value="<?=$member['mb_addr2']?>" id="reg_mb_addr2" <?=$config['cf_req_addr']?"required":"";?> title="상세주소<?=$config['cf_req_addr']?"(필수)":"";?>" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50">
<label for="reg_mb_addr1" class="sound_only">주소<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
<input type="text" name="mb_addr1" value="<?php echo $member['mb_addr1'] ?>" id="reg_mb_addr1" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
<label for="reg_mb_addr2" class="sound_only">상세주소<?php echo $config['cf_req_addr']?'<strong class="sound_only"> 필수</strong>':''; ?></label>
<input type="text" name="mb_addr2" value="<?php echo $member['mb_addr2'] ?>" id="reg_mb_addr2" <?php echo $config['cf_req_addr']?"required":""; ?> class="frm_input frm_address <?php echo $config['cf_req_addr']?"required":""; ?>" size="50">
<script>
// 우편번호 자바스크립트 비활성화 대응을 위한 코드
$('<a href="<?=G4_BBS_URL?>/zip.php?frm_name=fregisterform&amp;frm_zip1=mb_zip1&amp;frm_zip2=mb_zip2&amp;frm_addr1=mb_addr1&amp;frm_addr2=mb_addr2" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#reg_win_zip');
$('<a href="<?php echo G4_BBS_URL ?>/zip.php?frm_name=fregisterform&amp;frm_zip1=mb_zip1&amp;frm_zip2=mb_zip2&amp;frm_addr1=mb_addr1&amp;frm_addr2=mb_addr2" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">우편번호 검색</a><br>').appendTo('#reg_win_zip');
$("#reg_win_zip").css("display", "inline");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr('readonly', 'readonly');
</script>
</td>
</tr>
<? } ?>
<?php } ?>
</table>
<table class="frm_tbl">
<caption>기타 개인설정</caption>
<? if ($config['cf_use_signature']) { ?>
<?php if ($config['cf_use_signature']) { ?>
<tr>
<th scope="row"><label for="reg_mb_signature">서명<? if ($config['cf_req_signature']){?><strong class="sound_only">필수</strong><?}?></label></th>
<td><textarea name="mb_signature" id="reg_mb_signature" <?=$config['cf_req_signature']?"required":"";?> class="<?=$config['cf_req_signature']?"required":"";?>"><?=$member['mb_signature']?></textarea></td>
<th scope="row"><label for="reg_mb_signature">서명<?php if ($config['cf_req_signature']){ ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><textarea name="mb_signature" id="reg_mb_signature" <?php echo $config['cf_req_signature']?"required":""; ?> class="<?php echo $config['cf_req_signature']?"required":""; ?>"><?php echo $member['mb_signature'] ?></textarea></td>
</tr>
<? } ?>
<?php } ?>
<? if ($config['cf_use_profile']) { ?>
<?php if ($config['cf_use_profile']) { ?>
<tr>
<th scope="row"><label for="reg_mb_profile">자기소개</label></th>
<td><textarea name="mb_profile" id="reg_mb_profile" <?=$config['cf_req_profile']?"required":"";?> class="<?=$config['cf_req_profile']?"required":"";?>"><?=$member['mb_profile']?></textarea></td>
<td><textarea name="mb_profile" id="reg_mb_profile" <?php echo $config['cf_req_profile']?"required":""; ?> class="<?php echo $config['cf_req_profile']?"required":""; ?>"><?php echo $member['mb_profile'] ?></textarea></td>
</tr>
<? } ?>
<?php } ?>
<? if ($config['cf_use_member_icon'] && $member['mb_level'] >= $config['cf_icon_level']) { ?>
<?php if ($config['cf_use_member_icon'] && $member['mb_level'] >= $config['cf_icon_level']) { ?>
<tr>
<th scope="row"><label for="reg_mb_icon">회원아이콘</label></th>
<td>
<span class="frm_info">
이미지 크기는 가로 <?=$config['cf_member_icon_width']?>픽셀, 세로 <?=$config['cf_member_icon_height']?>픽셀 이하로 해주세요.<br>
gif만 가능하며 용량 <?=number_format($config['cf_member_icon_size'])?>바이트 이하만 등록됩니다.
이미지 크기는 가로 <?php echo $config['cf_member_icon_width'] ?>픽셀, 세로 <?php echo $config['cf_member_icon_height'] ?>픽셀 이하로 해주세요.<br>
gif만 가능하며 용량 <?php echo number_format($config['cf_member_icon_size']) ?>바이트 이하만 등록됩니다.
</span>
<input type="file" name="mb_icon" id="reg_mb_icon" class="frm_input">
<? if ($w == 'u' && file_exists($mb_icon)) { ?>
<?php if ($w == 'u' && file_exists($mb_icon)) { ?>
<input type="checkbox" name="del_mb_icon" value="1" id="del_mb_icon">
<label for="del_mb_icon">삭제</label>
<? } ?>
<?php } ?>
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="reg_mb_mailling">메일링서비스</label></th>
<td>
<input type="checkbox" name="mb_mailling" value="1" id="reg_mb_mailling" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>
<input type="checkbox" name="mb_mailling" value="1" id="reg_mb_mailling" <?php echo ($w=='' || $member['mb_mailling'])?'checked':''; ?>>
정보 메일을 받겠습니다.
</td>
</tr>
<? if ($config['cf_use_hp']) { ?>
<?php if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
<td>
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
핸드폰 문자메세지를 받겠습니다.
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?php echo ($w=='' || $member['mb_sms'])?'checked':''; ?>>
휴대폰 문자메세지를 받겠습니다.
</td>
</tr>
<? } ?>
<?php } ?>
<? if (isset($member['mb_open_date']) && $member['mb_open_date'] <= date("Y-m-d", G4_SERVER_TIME - ($config['cf_open_modify'] * 86400)) || empty($member['mb_open_date'])) { // 정보공개 수정일이 지났다면 수정가능 ?>
<?php if (isset($member['mb_open_date']) && $member['mb_open_date'] <= date("Y-m-d", G4_SERVER_TIME - ($config['cf_open_modify'] * 86400)) || empty($member['mb_open_date'])) { // 정보공개 수정일이 지났다면 수정가능 ?>
<tr>
<th scope="row"><label for="reg_mb_open">정보공개</label></th>
<td>
<span class="frm_info">
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
정보공개를 바꾸시면 앞으로 <?php echo (int)$config['cf_open_modify'] ?>일 이내에는 변경이 안됩니다.
</span>
<input type="hidden" name="mb_open_default" value="<?=$member['mb_open']?>">
<input type="checkbox" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?> id="reg_mb_open">
<input type="hidden" name="mb_open_default" value="<?php echo $member['mb_open'] ?>">
<input type="checkbox" name="mb_open" value="1" <?php echo ($w=='' || $member['mb_open'])?'checked':''; ?> id="reg_mb_open">
다른분들이 나의 정보를 볼 수 있도록 합니다.
</td>
</tr>
<? } else { ?>
<?php } else { ?>
<tr>
<th scope="row">정보공개</th>
<td>
<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>
정보공개는 수정후 <?php echo (int)$config['cf_open_modify'] ?>일 이내, <?php echo 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>
<input type="hidden" name="mb_open" value="<?=$member['mb_open']?>">
<input type="hidden" name="mb_open" value="<?php echo $member['mb_open'] ?>">
</td>
</tr>
<? } ?>
<?php } ?>
<? if ($w == "" && $config['cf_use_recommend']) { ?>
<?php if ($w == "" && $config['cf_use_recommend']) { ?>
<tr>
<th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th>
<td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input"></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=$captcha_html?></td>
<td><?php echo $captcha_html ?></td>
</tr>
</table>
<div class="btn_confirm">
<p>
작성하신 내용를 발송하시려면 <strong><?=$w==''?'회원가입':'정보수정';?></strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>취소</strong> 링크를 누르세요.
작성하신 내용를 발송하시려면 <strong><?php echo $w==''?'회원가입':'정보수정'; ?></strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>취소</strong> 링크를 누르세요.
</p>
<input type="submit" value="<?=$w==''?'회원가입':'정보수정';?>" class="btn_submit" accesskey="s">
<a href="<?=$g4['path']?>/" class="btn_cancel">취소</a>
<input type="submit" value="<?php echo $w==''?'회원가입':'정보수정'; ?>" class="btn_submit" accesskey="s">
<a href="<?php echo $g4['path'] ?>/" class="btn_cancel">취소</a>
</div>
</form>
<?php
if ($config['cf_kcpcert_use']) {
// 휴대폰인증 form
include_once(G4_KCP_PATH.'/kcpcert_form.php');
?>
<script>
$(function() {
$("#reg_zip_find").css("display", "inline-block");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
// 휴대폰인증
$('#win_kcpcert').click(function() {
auth_type_check($("#reg_mb_name").val());
return false;
});
});
</script>
<?php } ?>
<script>
// submit 최종 폼체크
function fregisterform_submit(f)
@ -260,12 +297,14 @@ function fregisterform_submit(f)
return false;
}
/*
var pattern = /([^가-힣\x20])/i;
if (pattern.test(f.mb_name.value)) {
alert('이름은 한글로 입력하십시오.');
f.mb_name.select();
return false;
}
*/
}
// 별명 검사
@ -306,7 +345,32 @@ function fregisterform_submit(f)
}
}
<? echo chk_captcha_js(); ?>
<?php if ($config['cf_kcpcert_use']) { ?>
var error = "";
$.ajax({
url: "<?php echo G4_KCP_URL ?>/kcpcert.ajax.php",
type: "POST",
data: {
"w": f.w.value,
"mb_name": f.mb_name.value,
"mb_hp": f.mb_hp.value,
"old_mb_hp":f.old_mb_hp.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
error = data.error;
}
});
if (error) {
alert(error);
return false;
}
<?php } ?>
<?php echo chk_captcha_js(); ?>
return true;
}

View File

@ -1,5 +1,7 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
?>
if ($config['cf_kcpcert_use']) {
include_once(G4_KCP_PATH.'/kcpcert.head.skin.php');
}
?>

View File

@ -1,5 +1,7 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
if ($config['cf_kcpcert_use']) {
include_once(G4_KCP_PATH.'/kcpcert.tail.skin.php');
}
?>

View File

@ -1,30 +1,32 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="reg_result">
<div id="reg_result_logo"><img src="<?=$member_skin_url?>/img/reg_result_logo.jpg" alt=""></div>
<div id="reg_result_logo"><img src="<?php echo $member_skin_url ?>/img/reg_result_logo.jpg" alt=""></div>
<p>
<strong><?=$mb['mb_name']?></strong>님의 회원가입을 진심으로 축하합니다.<br>
<strong><?php echo $mb['mb_name'] ?></strong>님의 회원가입을 진심으로 축하합니다.<br>
</p>
<? if ($config['cf_use_email_certify']) { ?>
<?php if ($config['cf_use_email_certify']) { ?>
<p>
회원 가입 시 입력하신 이메일 주소로 인증메일이 발송되었습니다.<br>
발송된 인증메일을 확인하신 후 인증처리를 하시면 사이트를 원활하게 이용하실 수 있습니다.
</p>
<div id="reg_result_email">
<span>아이디</span>
<strong><?=$mb['mb_id']?></strong><br>
<strong><?php echo $mb['mb_id'] ?></strong><br>
<span>이메일 주소</span>
<strong><?=$mb['mb_email']?></strong>
<strong><?php echo $mb['mb_email'] ?></strong>
</div>
<p>
이메일 주소를 잘못 입력하셨다면, 사이트 관리자에게 문의해주시기 바랍니다.
</p>
<? } ?>
<?php } ?>
<p>
회원님의 패스워드는 아무도 알 수 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.<br>
@ -37,7 +39,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</p>
<div class="btn_confirm">
<a href="<?=G4_URL?>/" class="btn02">메인으로</a>
<a href="<?php echo G4_URL ?>/" class="btn02">메인으로</a>
</div>
</div>

View File

@ -1,9 +1,11 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="scrap" class="new_win">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<table class="basic_tbl">
<caption>스크랩 목록</caption>
@ -17,21 +19,21 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="td_num"><?=$list[$i]['num']?></td>
<td class="td_board"><a href="<?=$list[$i]['opener_href']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href']?>'; return false;"><?=$list[$i]['bo_subject']?></a></td>
<td><a href="<?=$list[$i]['opener_href_wr_id']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href_wr_id']?>'; return false;"><?=$list[$i]['subject']?></a></td>
<td class="td_datetime"><?=$list[$i]['ms_datetime']?></td>
<td class="td_mng"><a href="<? echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
<td class="td_num"><?php echo $list[$i]['num'] ?></td>
<td class="td_board"><a href="<?php echo $list[$i]['opener_href'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href'] ?>'; return false;"><?php echo $list[$i]['bo_subject'] ?></a></td>
<td><a href="<?php echo $list[$i]['opener_href_wr_id'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id'] ?>'; return false;"><?php echo $list[$i]['subject'] ?></a></td>
<td class="td_datetime"><?php echo $list[$i]['ms_datetime'] ?></td>
<td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
</tr>
<? } ?>
<?php } ?>
<? if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
<?php if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page=");?>
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page="); ?>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>

View File

@ -1,20 +1,22 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="scrap_do" class="new_win">
<h1>스크랩하기</h1>
<form name="f_scrap_popin" action="./scrap_popin_update.php" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<table class="frm_tbl">
<caption>제목 확인 및 댓글 쓰기</caption>
<tbody>
<tr>
<th scope="row">제목</th>
<td><?=get_text(cut_str($write['wr_subject'], 255))?></td>
<td><?php echo get_text(cut_str($write['wr_subject'], 255)) ?></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">댓글</label></th>

View File

@ -32,7 +32,7 @@
#find_info_result_wrap {margin:0 auto 20px;padding:10px 20px 15px;width:87%;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
/* 로그인 */
#mb_login {margin:100px auto;width:500px}
#mb_login {margin:0 auto;padding:100px 0;width:500px}
#mb_login h1 {margin:0 0 20px;font-size:1.3em}
#mb_login h2 {margin:0}
#mb_login fieldset {position:relative;margin:0;padding:20px 20px 20px 95px;border:1px solid #cfded8;border-bottom:0;background:#fff}
@ -61,7 +61,7 @@
#scrap_do textarea {height:100px}
/* 회원 패스워드 확인 */
#mb_confirm {margin:100px auto;width:500px}
#mb_confirm {margin:0 auto;padding:100px 0;width:500px}
#mb_confirm h1 {margin:0 0 20px;font-size:1.3em}
#mb_confirm p {padding:20px;border:1px solid #cfded8;border-bottom:0;background:#fff}
#mb_confirm p strong {display:block}
@ -70,7 +70,7 @@
#mb_confirm_id {display:inline-block;margin-right:20px;font-weight:bold}
/* 비밀글 패스워드 확인 */
#pw_confirm {margin:100px auto;width:500px}
#pw_confirm {margin:0 auto;padding:100px 0;width:500px}
#pw_confirm h1 {margin:0 0 20px;font-size:1.3em}
#pw_confirm p {padding:20px;border:1px solid #cfded8;border-bottom:0;background:#fff}
#pw_confirm p strong {display:block}

View File

@ -1,20 +1,22 @@
<?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="post_code" class="new_win">
<h1><?=$g4['title']?></h1>
<h1><?php echo $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?>">
<input type="hidden" name="frm_name" value="<?php echo $frm_name ?>">
<input type="hidden" name="frm_zip1" value="<?php echo $frm_zip1 ?>">
<input type="hidden" name="frm_zip2" value="<?php echo $frm_zip2 ?>">
<input type="hidden" name="frm_addr1" value="<?php echo $frm_addr1 ?>">
<input type="hidden" name="frm_addr2" value="<?php echo $frm_addr2 ?>">
<fieldset>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" name="addr1" value="<?=$addr1?>" id="addr1" required class="required frm_input" minlength="2">
<input type="text" name="addr1" value="<?php echo $addr1 ?>" id="addr1" required class="required frm_input" minlength="2">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
@ -25,14 +27,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</script>
<? if ($search_count > 0) { ?>
<?php if ($search_count > 0) { ?>
<dl>
<dt>총 <?=$search_count?>건 가나다순 정렬</dt>
<dt>총 <?php echo $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]?>');"><span class="post_code"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?></span> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
<? } ?>
<?php for ($i=0; $i<count($list); $i++) { ?>
<li><a href='javascript:;' onclick="find_zip('<?php echo $list[$i][zip1] ?>', '<?php echo $list[$i][zip2] ?>', '<?php echo $list[$i][addr] ?>');"><span class="post_code"><?php echo $list[$i][zip1] ?>-<?php echo $list[$i][zip2] ?></span> <?php echo $list[$i][addr] ?> <?php echo $list[$i][bunji] ?></a></li>
<?php } ?>
</ul>
</dd>
</dl>
@ -46,17 +48,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script>
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?=$frm_name?>;
var of = opener.document.<?php echo $frm_name ?>;
of.<?=$frm_zip1?>.value = zip1;
of.<?=$frm_zip2?>.value = zip2;
of.<?php echo $frm_zip1 ?>.value = zip1;
of.<?php echo $frm_zip2 ?>.value = zip2;
of.<?=$frm_addr1?>.value = addr1;
of.<?php echo $frm_addr1 ?>.value = addr1;
of.<?=$frm_addr2?>.focus();
of.<?php echo $frm_addr2 ?>.focus();
window.close();
return false;
}
</script>
<? } ?>
<?php } ?>
</div>

View File

@ -1,18 +1,22 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $new_skin_url ?>/style.css">
<!-- 검색 -->
<fieldset id="new_sch">
<legend>상세검색</legend>
<form name="fnew" method="get">
<?=$group_select?>
<select name="view" id="view" title="검색종류">
<?php echo $group_select ?>
<label for="view" class="sound_only">검색대상</label>
<select name="view" id="view">
<option value="">전체게시물
<option value="w">원글만
<option value="c">코멘트만
</select>
<input type="text" name="mb_id" value="<?=$mb_id?>" id="mb_id" title="검색어(필수)" required class="frm_input requird">
<label for="mb_id" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="mb_id" value="<?php echo $mb_id ?>" id="mb_id" required class="frm_input required">
<input type="submit" value="검색" class="btn_submit">
</form>
<script>
@ -22,8 +26,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
document.fnew.submit();
}
*/
document.getElementById("gr_id").value = "<?=$gr_id?>";
document.getElementById("view").value = "<?=$view?>";
document.getElementById("gr_id").value = "<?php echo $gr_id ?>";
document.getElementById("view").value = "<?php echo $view ?>";
</script>
</fieldset>
<!-- 검색 끝 -->
@ -40,7 +44,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</tr>
</thead>
<tbody>
<?
<?php
for ($i=0; $i<count($list); $i++)
{
$gr_subject = cut_str($list[$i]['gr_subject'], 20);
@ -48,18 +52,18 @@ for ($i=0; $i<count($list); $i++)
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 80));
?>
<tr>
<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 class="td_name"><div><?=$list[$i]['name']?></div></td>
<td class="td_date"><?=$list[$i]['datetime2']?></td>
<td class="td_group"><a href="./new.php?gr_id=<?php echo $list[$i]['gr_id'] ?>"><?php echo $gr_subject ?></a></td>
<td class="td_board"><a href="./board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"><?php echo $bo_subject ?></a></td>
<td><a href="<?php echo $list[$i]['href'] ?>"><?php echo $list[$i]['comment'] ?><?php echo $wr_subject ?></a></td>
<td class="td_name"><div><?php echo $list[$i]['name'] ?></div></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
</tr>
<? } ?>
<?php } ?>
<? if ($i == 0)
<?php if ($i == 0)
echo "<tr><td colspan=\"5\" class=\"empty_table\">게시물이 없습니다.</td></tr>";
?>
</tbody>
</table>
<?=$write_pages?>
<?php echo $write_pages ?>

View File

@ -1,23 +1,23 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?=$outlogin_skin_url?>/style.css">
<link rel="stylesheet" href="<?php echo $outlogin_skin_url ?>/style.css">
<section id="ol_before" class="ol">
<h2>회원로그인</h2>
<!-- 로그인 전 외부로그인 시작 -->
<form name="foutlogin" action="<?=$outlogin_action_url?>" onsubmit="return fhead_submit(this);" method="post" autocomplete="off">
<form name="foutlogin" action="<?php echo $outlogin_action_url ?>" onsubmit="return fhead_submit(this);" method="post" autocomplete="off">
<fieldset>
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<input type="hidden" name="url" value="<?php echo $outlogin_url ?>">
<label for="ol_id" id="ol_idlabel">회원아이디<strong class="sound_only">필수</strong></label>
<input type="text" id="ol_id" name="mb_id" required class="required" maxlength="20">
<label for="ol_pw" id="ol_pwlabel">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="ol_pw" required class="required" maxlength="20">
<input type="submit" id="ol_submit" value="로그인">
<div id="ol_svc">
<a href="<?=G4_BBS_URL?>/register.php"><b>회원가입</b></a>
<a href="<?=G4_BBS_URL?>/password_lost.php" id="ol_password_lost">정보찾기</a>
<a href="<?php echo G4_BBS_URL ?>/register.php"><b>회원가입</b></a>
<a href="<?php echo G4_BBS_URL ?>/password_lost.php" id="ol_password_lost">정보찾기</a>
<input type="checkbox" name="auto_login" value="1" id="auto_login">
<label for="auto_login" id="auto_login_label">자동로그인</label>
</div>

View File

@ -1,36 +1,36 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?=$outlogin_skin_url?>/style.css">
<link rel="stylesheet" href="<?php echo $outlogin_skin_url ?>/style.css">
<!-- 로그인 후 외부로그인 시작 -->
<section id="ol_after" class="ol">
<header id="ol_after_hd">
<h2>나의 회원정보</h2>
<strong><?=$nick?>님</strong>
<? if ($is_admin == 'super' || $is_auth) { ?><a href="<?=G4_ADMIN_URL?>" class="btn_admin">관리자 모드</a><? } ?>
<strong><?php echo $nick ?>님</strong>
<?php if ($is_admin == 'super' || $is_auth) { ?><a href="<?php echo G4_ADMIN_URL ?>" class="btn_admin">관리자 모드</a><?php } ?>
</header>
<ul id="ol_after_private">
<li>
<a href="<?=G4_BBS_URL?>/memo.php" target="_blank" id="ol_after_memo" class="win_memo">
<a href="<?php echo G4_BBS_URL ?>/memo.php" target="_blank" id="ol_after_memo" class="win_memo">
<span class="sound_only">안 읽은 </span>쪽지
<strong><?=$memo_not_read?></strong>
<strong><?php echo $memo_not_read ?></strong>
</a>
</li>
<li>
<a href="<?=G4_BBS_URL?>/point.php" target="_blank" id="ol_after_pt" class="win_point">
<a href="<?php echo G4_BBS_URL ?>/point.php" target="_blank" id="ol_after_pt" class="win_point">
포인트
<strong><?=$point?></strong>
<strong><?php echo $point ?></strong>
</a>
</li>
<li>
<a href="<?=G4_BBS_URL?>/scrap.php" target="_blank" id="ol_after_scrap" class="win_scrap">스크랩</a>
<a href="<?php echo G4_BBS_URL ?>/scrap.php" target="_blank" id="ol_after_scrap" class="win_scrap">스크랩</a>
</li>
</ul>
<footer id="ol_after_ft">
<a href="<?=G4_BBS_URL?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
<a href="<?=G4_BBS_URL?>/logout.php" id="ol_after_logout">로그아웃</a>
<a href="<?php echo G4_BBS_URL ?>/member_confirm.php?url=register_form.php" id="ol_after_info">정보수정</a>
<a href="<?php echo G4_BBS_URL ?>/logout.php" id="ol_after_logout">로그아웃</a>
</footer>
</section>
@ -39,7 +39,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=G4_BBS_URL?>/member_confirm.php?url=member_leave.php";
location.href = "<?php echo G4_BBS_URL ?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->

View File

@ -1,24 +1,26 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<form name="fpoll" action="<?=G4_BBS_URL?>/poll_update.php" onsubmit="return fpoll_submit(this);" method="post">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<link rel="stylesheet" href="<?php echo $poll_skin_url ?>/style.css">
<form name="fpoll" action="<?php echo G4_BBS_URL ?>/poll_update.php" onsubmit="return fpoll_submit(this);" method="post">
<input type="hidden" name="po_id" value="<?php echo $po_id ?>">
<input type="hidden" name="skin_dir" value="<?php echo $skin_dir ?>">
<section id="poll">
<header>
<h2>설문조사</h2>
<? if ($is_admin == "super") { ?><a href="<?=G4_ADMIN_URL?>/poll_form.php?w=u&amp;po_id=<?=$po_id?>" class="btn_admin">설문조사 관리</a><? } ?>
<p><?=$po['po_subject']?></p>
<?php if ($is_admin == "super") { ?><a href="<?php echo G4_ADMIN_URL ?>/poll_form.php?w=u&amp;po_id=<?php echo $po_id ?>" class="btn_admin">설문조사 관리</a><?php } ?>
<p><?php echo $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>
<? } ?>
<?php for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<li><input type="radio" name="gb_poll" value="<?php echo $i ?>" id="gb_poll_<?php echo $i ?>"> <label for="gb_poll_<?php echo $i ?>"><?php echo $po['po_poll'.$i] ?></label></li>
<?php } ?>
</ul>
<footer>
<input type="submit" value="투표하기">
<a href="<?=G4_BBS_URL."/poll_result.php?po_id=$po_id&amp;skin_dir=$skin_dir"?>" target="_blank" onclick="poll_result(this.href); return false;">결과보기</a>
<a href="<?php echo G4_BBS_URL."/poll_result.php?po_id=$po_id&amp;skin_dir=$skin_dir" ?>" target="_blank" onclick="poll_result(this.href); return false;">결과보기</a>
</footer>
</section>
</form>
@ -26,10 +28,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<script>
function fpoll_submit(f)
{
<?
<?php
if ($member['mb_level'] < $po['po_level'])
echo " alert('권한 {$po['po_level']} 이상의 회원만 투표에 참여하실 수 있습니다.'); return false; ";
?>
?>
var chk = false;
for (i=0; i<f.gb_poll.length;i ++) {
@ -52,10 +54,10 @@ function fpoll_submit(f)
function poll_result(url)
{
<?
<?php
if ($member['mb_level'] < $po['po_level'])
echo " alert('권한 {$po['po_level']} 이상의 회원만 결과를 보실 수 있습니다.'); return false; ";
?>
?>
win_poll(url);
}

View File

@ -1,79 +1,81 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $poll_skin_url ?>/style.css">
<div id="poll_result" class="new_win">
<h1><?=$g4['title']?></h1>
<h1><?php echo $g4['title'] ?></h1>
<section id="poll_result_list">
<h2><?=$po_subject?> 결과</h2>
<h2><?php echo $po_subject ?> 결과</h2>
<dl>
<dt><span>전체 <?=$nf_total_po_cnt?>표</span></dt>
<dt><span>전체 <?php echo $nf_total_po_cnt ?>표</span></dt>
<dd>
<ol>
<? for ($i=1; $i<=count($list); $i++) { ?>
<?php for ($i=1; $i<=count($list); $i++) { ?>
<li>
<p>
<?=$list[$i]['content']?>
<strong><?=$list[$i]['cnt']?> 표</strong>
<span><?=number_format($list[$i]['rate'], 1)?> 퍼센트</span>
<?php echo $list[$i]['content'] ?>
<strong><?php echo $list[$i]['cnt'] ?> 표</strong>
<span><?php echo number_format($list[$i]['rate'], 1) ?> 퍼센트</span>
</p>
<div class="poll_result_graph">
<span style="width:<?=number_format($list[$i]['rate'], 1)?>%"></span>
<span style="width:<?php echo number_format($list[$i]['rate'], 1) ?>%"></span>
</div>
</li>
<? } ?>
<?php } ?>
</ol>
</dd>
</dl>
</section>
<? if ($is_etc) { ?>
<?php if ($is_etc) { ?>
<section id="poll_result_cmt">
<h2>이 설문에 대한 기타의견</h2>
<? for ($i=0; $i<count($list2); $i++) { ?>
<?php for ($i=0; $i<count($list2); $i++) { ?>
<article>
<header>
<h1><?=$list2[$i]['pc_name']?><span class="sound_only">님의 의견</span></h1>
<?=$list2[$i]['name']?>
<span class="poll_datetime"><?=$list2[$i]['datetime']?></span>
<h1><?php echo $list2[$i]['pc_name'] ?><span class="sound_only">님의 의견</span></h1>
<?php echo $list2[$i]['name'] ?>
<span class="poll_datetime"><?php echo $list2[$i]['datetime'] ?></span>
</header>
<p>
<?=$list2[$i]['idea']?>
<?php echo $list2[$i]['idea'] ?>
</p>
<footer>
<span class="poll_cmt_del"><? if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span>
<span class="poll_cmt_del"><?php if ($list2[$i]['del']) { echo $list2[$i]['del']."삭제</a>"; } ?></span>
</footer>
</article>
<? } ?>
<?php } ?>
<? if ($member['mb_level'] >= $po['po_level']) { ?>
<?php if ($member['mb_level'] >= $po['po_level']) { ?>
<form name="fpollresult" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" method="post" autocomplete="off">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="po_id" value="<?php echo $po_id ?>">
<input type="hidden" name="w" value="">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<? if ($is_member) { ?><input type="hidden" name="pc_name" value="<?=cut_str($member['mb_nick'],255)?>"><? } ?>
<h3><?=$po_etc?></h3>
<input type="hidden" name="skin_dir" value="<?php echo $skin_dir ?>">
<?php if ($is_member) { ?><input type="hidden" name="pc_name" value="<?php echo cut_str($member['mb_nick'],255) ?>"><?php } ?>
<h3><?php echo $po_etc ?></h3>
<table id="poll_result_wcmt" class="frm_tbl">
<tbody>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="pc_idea">의견<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input required" size="47" maxlength="100"></td>
</tr>
<? if ($is_guest) { ?>
<?php if ($is_guest) { ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=captcha_html();?></td>
<td><?php echo captcha_html(); ?></td>
</tr>
<? } ?>
<?php } ?>
</tbody>
</table>
@ -81,17 +83,17 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<input type="submit" class="btn_submit" value="의견남기기">
</div>
</form>
<? } ?>
<?php } ?>
</section>
<? } ?>
<?php } ?>
<section id="poll_result_oth">
<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>
<? } ?>
<?php for ($i=0; $i<count($list3); $i++) { ?>
<li><a href="./poll_result.php?po_id=<?php echo $list3[$i]['po_id'] ?>&amp;skin_dir=<?php echo $skin_dir ?>">[<?php echo $list3[$i]['date'] ?>] <?php echo $list3[$i]['subject'] ?></a></li>
<?php } ?>
</ul>
</section>
@ -110,7 +112,7 @@ $(function() {
function fpollresult_submit(f)
{
<? if ($is_guest) { echo chk_captcha_js(); } ?>
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
return true;
}

View File

@ -1,16 +1,16 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?=$popular_skin_url?>/style.css">
<link rel="stylesheet" href="<?php echo $popular_skin_url ?>/style.css">
<section id="popular">
<div>
<h2>인기검색어</h2>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
<li><a href="<?=G4_BBS_URL?>/search.php?sfl=wr_subject&amp;sop=and&amp;stx=<?=urlencode($list[$i]['pp_word'])?>"><?=$list[$i]['pp_word']?></a></li>
<? } ?>
<?php for ($i=0; $i<count($list); $i++) { ?>
<li><a href="<?php echo G4_BBS_URL ?>/search.php?sfl=wr_subject&amp;sop=and&amp;stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo $list[$i]['pp_word'] ?></a></li>
<?php } ?>
</ul>
</div>
</section>

View File

@ -1,23 +1,27 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $search_skin_url ?>/style.css">
<form name="fsearch" onsubmit="return fsearch_submit(this);" method="get">
<input type="hidden" name="srows" value="<?=$srows?>">
<input type="hidden" name="srows" value="<?php echo $srows ?>">
<fieldset id="sch_result_detail">
<legend class="sound_only">상세검색</legend>
<?=$group_select?>
<script>document.getElementById("gr_id").value = "<?=$gr_id?>";</script>
<?php echo $group_select ?>
<script>document.getElementById("gr_id").value = "<?php echo $gr_id ?>";</script>
<select name="sfl" title="검색조건">
<option value="wr_subject||wr_content"<?=get_selected($_GET['sfl'], "wr_subject||wr_content")?>>제목+내용</option>
<option value="wr_subject"<?=get_selected($_GET['sfl'], "wr_subject")?>>제목</option>
<option value="wr_content"<?=get_selected($_GET['sfl'], "wr_content")?>>내용</option>
<option value="mb_id"<?=get_selected($_GET['sfl'], "mb_id")?>>회원아이디</option>
<option value="wr_name"<?=get_selected($_GET['sfl'], "wr_name")?>>이름</option>
<label for="sfl" class="sound_only">검색조건</label>
<select name="sfl" id="sfl">
<option value="wr_subject||wr_content"<?php echo get_selected($_GET['sfl'], "wr_subject||wr_content") ?>>제목+내용</option>
<option value="wr_subject"<?php echo get_selected($_GET['sfl'], "wr_subject") ?>>제목</option>
<option value="wr_content"<?php echo get_selected($_GET['sfl'], "wr_content") ?>>내용</option>
<option value="mb_id"<?php echo get_selected($_GET['sfl'], "mb_id") ?>>회원아이디</option>
<option value="wr_name"<?php echo get_selected($_GET['sfl'], "wr_name") ?>>이름</option>
</select>
<input type="text" name="stx" value="<?=$text_stx?>" title="검색어(필수)" class="frm_input" required class="required" maxlength="20">
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $text_stx ?>" class="frm_input" required class="required" maxlength="20">
<input type="submit" class="btn_submit" value="검색">
<script>
@ -48,83 +52,83 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
return true;
}
</script>
<input type="radio" value="or" <?=($sop == "or") ? "checked" : "";?> id="sop_or" name="sop">
<input type="radio" value="or" <?php echo ($sop == "or") ? "checked" : ""; ?> id="sop_or" name="sop">
<label for="sop_or">OR</label>
<input type="radio" value="and" <?=($sop == "and") ? "checked" : "";?> id="sop_and" name="sop">
<input type="radio" value="and" <?php echo ($sop == "and") ? "checked" : ""; ?> id="sop_and" name="sop">
<label for="sop_and">AND</label>
</fieldset>
</form>
<div id="sch_result">
<? if ($stx) { ?>
<? if ($board_count) { ?>
<?php if ($stx) { ?>
<?php if ($board_count) { ?>
<dl id="sch_result_hd">
<dt><strong><?=$stx?></strong>에 대한 검색 결과입니다.</dt>
<dt><strong><?php echo $stx ?></strong>에 대한 검색 결과입니다.</dt>
<dd>
<ul>
<li><span style="color:<?=$config['cf_search_color']?>"><?=$board_count?></span>개의 게시판</li>
<li><span style="color:<?=$config['cf_search_color']?>"><?=number_format($total_count)?></span>개의 게시물</li>
<li>현재 <?=number_format($page)?>/<?=number_format($total_page)?> 페이지 열람 중</li>
<li><span style="color:<?php echo $config['cf_search_color'] ?>"><?php echo $board_count ?></span>개의 게시판</li>
<li><span style="color:<?php echo $config['cf_search_color'] ?>"><?php echo number_format($total_count) ?></span>개의 게시물</li>
<li>현재 <?php echo number_format($page) ?>/<?php echo number_format($total_page) ?> 페이지 열람 중</li>
</ul>
</dd>
</dl>
<? } ?>
<? } ?>
<?php } ?>
<?php } ?>
<?
<?php
if ($stx) {
if ($board_count) {
?>
?>
<dl id="sch_result_bo">
<dt>검색결과가 있는 게시판 목록</dt>
<dd>
<ul>
<li><a href="?<?=$search_query?>&amp;gr_id=<?=$gr_id?>" <?=$sch_all?>>전체게시판</a></li>
<?=$str_board_list;?>
<li><a href="?<?php echo $search_query ?>&amp;gr_id=<?php echo $gr_id ?>" <?php echo $sch_all ?>>전체게시판</a></li>
<?php echo $str_board_list; ?>
</ul>
</dd>
</dl>
<?
<?php
} else {
?>
?>
<p>검색된 자료가 하나도 없습니다.</p>
<? } } ?>
<?php } } ?>
<hr>
<? if ($stx && $board_count) { ?><dl id="sch_result_atc"><? } ?>
<?
<?php if ($stx && $board_count) { ?><dl id="sch_result_atc"><?php } ?>
<?php
$k=0;
for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++) {
$comment_def = "";
$comment_href = "";
?>
<dt><a href="./board.php?bo_table=<?=$search_table[$idx]?>&amp;<?=$search_query?>"><?=$bo_subject[$idx]?>에서</a></dt>
?>
<dt><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?>에서</a></dt>
<dd>
<ul>
<?
<?php
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
if ($list[$idx][$i][wr_is_comment])
{
$comment_def = "<span class=\"cmt_def\">댓글</span>";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
?>
?>
<li>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" class="sch_result_title"><?=$comment_def?><?=$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][name]?>
<span class="sch_datetime"><?=$list[$idx][$i][wr_datetime]?></span>
<a href="<?php echo $list[$idx][$i][href] ?><?php echo $comment_href ?>" class="sch_result_title"><?php echo $comment_def ?><?php echo $list[$idx][$i][subject] ?></a>
<a href="<?php echo $list[$idx][$i][href] ?><?php echo $comment_href ?>" target="_blank">새창</a>
<p><?php echo $list[$idx][$i][content] ?></p>
<?php echo $list[$idx][$i][name] ?>
<span class="sch_datetime"><?php echo $list[$idx][$i][wr_datetime] ?></span>
</li>
<? } ?>
<?php } ?>
</ul>
<div class="sch_more"><a href="./board.php?bo_table=<?=$search_table[$idx]?>&amp;<?=$search_query?>"><?=$bo_subject[$idx]?> 더보기</a></div>
<div class="sch_more"><a href="./board.php?bo_table=<?php echo $search_table[$idx] ?>&amp;<?php echo $search_query ?>"><?php echo $bo_subject[$idx] ?> 더보기</a></div>
</dd>
<? } ?>
<? if ($stx && $board_count) { ?></dl><? } ?>
<?php } ?>
<?php if ($stx && $board_count) { ?></dl><?php } ?>
<?=$write_pages?>
<?php echo $write_pages ?>
</div>

View File

@ -1,24 +1,24 @@
<?
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $is_admin;
?>
<link rel="stylesheet" href="<?=$visit_skin_url?>/style.css">
<link rel="stylesheet" href="<?php echo $visit_skin_url ?>/style.css">
<section id="visit">
<div>
<h2>접속자집계</h2>
<dl>
<dt>오늘</dt>
<dd><?=number_format($visit[1])?></dd>
<dd><?php echo number_format($visit[1]) ?></dd>
<dt>어제</dt>
<dd><?=number_format($visit[2])?></dd>
<dd><?php echo number_format($visit[2]) ?></dd>
<dt>최대</dt>
<dd><?=number_format($visit[3])?></dd>
<dd><?php echo number_format($visit[3]) ?></dd>
<dt>전체</dt>
<dd><?=number_format($visit[4])?></dd>
<dd><?php echo number_format($visit[4]) ?></dd>
</dl>
<? if ($is_admin == "super") { ?><a href="<?=G4_ADMIN_URL?>/visit_list.php">상세보기</a><?}?>
<?php if ($is_admin == "super") { ?><a href="<?php echo G4_ADMIN_URL ?>/visit_list.php">상세보기</a><?php } ?>
</div>
</section>