#152 에 따른 회원 스킨 폴더 재정리

This commit is contained in:
chicpro
2013-05-08 17:47:37 +09:00
parent 24a7e7794f
commit 4fa7b73a64
30 changed files with 1868 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<?
$g4_path = "../../.."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
header("Content-Type: text/html; charset=$g4[charset]");
?>

View File

@ -0,0 +1,20 @@
<?
include_once("_common.php");
if (trim($reg_mb_email)=='') {
echo "110"; // 입력이 없습니다.
} else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $reg_mb_email)) {
echo "120"; // E-mail 주소 형식에 맞지 않음
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id <> '$reg_mb_id' and mb_email = '$reg_mb_email' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 회원아이디
} else {
//if (preg_match("/[\,]?{$reg_mb_email}\,/i", $config[cf_prohibit_id].","))
if (preg_match("/[\,]?{$reg_mb_email}/i", $config[cf_prohibit_id]))
echo "140"; // 예약어로 금지된 회원아이디
else
echo "000"; // 정상
}
}
?>

View File

@ -0,0 +1,22 @@
<?
include_once("_common.php");
// echo "한글"로 출력하지 않는 이유는 Ajax 는 euc_kr 에서 한글을 제대로 인식하지 못하기 때문
// 여기에서 영문으로 echo 하여 Request 된 값을 Javascript 에서 한글로 메세지를 출력함
if (preg_match("/[^0-9a-z_]+/i", $reg_mb_id)) {
echo "110"; // 유효하지 않은 회원아이디
} else if (strlen($reg_mb_id) < 3) {
echo "120"; // 3보다 작은 회원아이디
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id = '$reg_mb_id' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 회원아이디
} else {
if (preg_match("/[\,]?{$reg_mb_id}/i", $config[cf_prohibit_id]))
echo "140"; // 예약어로 금지된 회원아이디
else
echo "000"; // 정상
}
}
?>

View File

@ -0,0 +1,40 @@
<?
include_once("_common.php");
if (!function_exists('convert_charset')) {
/*
-----------------------------------------------------------
Charset 을 변환하는 함수
-----------------------------------------------------------
iconv 함수가 있으면 iconv 로 변환하고
없으면 mb_convert_encoding 함수를 사용한다.
둘다 없으면 사용할 수 없다.
*/
function convert_charset($from_charset, $to_charset, $str) {
if( function_exists('iconv') )
return iconv($from_charset, $to_charset, $str);
elseif( function_exists('mb_convert_encoding') )
return mb_convert_encoding($str, $to_charset, $from_charset);
else
die("Not found 'iconv' or 'mbstring' library in server.");
}
}
if (strtolower($g4[charset]) == 'euc-kr')
$reg_mb_nick = convert_charset('UTF-8','CP949',$reg_mb_nick);
// 별명은 한글, 영문, 숫자만 가능
if (!check_string($reg_mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
echo "110"; // 별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.
} else if (strlen($reg_mb_nick) < 4) {
echo "120"; // 4글자 이상 입력
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_nick = '$reg_mb_nick' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 별명
} else {
echo "000"; // 정상
}
}
?>

View File

@ -0,0 +1,70 @@
var reg_mb_id_check = function() {
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_id_check.php',
data: {
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_id');
switch(result) {
case '110' : msg.html('영문자, 숫자, _ 만 입력하세요.').css('color', 'red'); break;
case '120' : msg.html('최소 3자이상 입력하세요.').css('color', 'red'); break;
case '130' : msg.html('이미 사용중인 아이디 입니다.').css('color', 'red'); break;
case '140' : msg.html('예약어로 사용할 수 없는 아이디 입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 아이디 입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_id_enabled').val(result);
}
});
}
var reg_mb_nick_check = function() {
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_nick_check.php',
data: {
'reg_mb_nick': ($('#reg_mb_nick').val())
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_nick');
switch(result) {
case '110' : msg.html('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').css('color', 'red'); break;
case '120' : msg.html('한글 2글자, 영문 4글자 이상 입력 가능합니다.').css('color', 'red'); break;
case '130' : msg.html('이미 존재하는 별명입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 별명 입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_nick_enabled').val(result);
}
});
}
var reg_mb_email_check = function() {
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_email_check.php',
data: {
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val()),
'reg_mb_email': $('#reg_mb_email').val()
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_email');
switch(result) {
case '110' : msg.html('E-mail 주소를 입력하십시오.').css('color', 'red'); break;
case '120' : msg.html('E-mail 주소가 형식에 맞지 않습니다.').css('color', 'red'); break;
case '130' : msg.html('이미 존재하는 E-mail 주소입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 E-mail 주소입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_email_enabled').val(result);
}
});
}

View File

@ -0,0 +1,113 @@
/*
** 2010.03.12 : jQuery 로 대체하여 앞으로 사용하지 않습니다.
*/
// 회원아이디 검사
function reg_mb_id_check() {
var url = member_skin_path + "/ajax_mb_id_check.php";
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
var myAjax = new Ajax.Request(
url,
{
method: 'post',
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
asynchronous: false,
parameters: para,
onComplete: return_reg_mb_id_check
});
}
function return_reg_mb_id_check(req) {
var msg = $('msg_mb_id');
var result = req.responseText;
switch(result) {
case '110' : msg.update('영문자, 숫자, _ 만 입력하세요.').setStyle({ color: 'red' }); break;
case '120' : msg.update('최소 3자이상 입력하세요.').setStyle({ color: 'red' }); break;
case '130' : msg.update('이미 사용중인 아이디 입니다.').setStyle({ color: 'red' }); break;
case '140' : msg.update('예약어로 사용할 수 없는 아이디 입니다.').setStyle({ color: 'red' }); break;
case '000' : msg.update('사용하셔도 좋은 아이디 입니다.').setStyle({ color: 'blue' }); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('mb_id_enabled').value = result;
}
// 별명 검사
function reg_mb_nick_check() {
var url = member_skin_path + "/ajax_mb_nick_check.php";
var para = "reg_mb_nick="+encodeURIComponent($F('reg_mb_nick'));
var myAjax = new Ajax.Request(
url,
{
method: 'post',
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
asynchronous: false,
parameters: para,
onComplete: return_reg_mb_nick_check
});
}
function return_reg_mb_nick_check(req) {
var msg = $('msg_mb_nick');
var result = req.responseText;
switch(result) {
case '110' : msg.update('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').setStyle({ color: 'red' }); break;
case '120' : msg.update('한글 2글자, 영문 4글자 이상 입력 가능합니다.').setStyle({ color: 'red' }); break;
case '130' : msg.update('이미 존재하는 별명입니다.').setStyle({ color: 'red' }); break;
case '000' : msg.update('사용하셔도 좋은 별명 입니다.').setStyle({ color: 'blue' }); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('mb_nick_enabled').value = result;
}
// E-mail 주소 검사
function reg_mb_email_check() {
var url = member_skin_path + "/ajax_mb_email_check.php";
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
para += "&reg_mb_email="+encodeURIComponent($F('reg_mb_email'));
var myAjax = new Ajax.Request(
url,
{
method: 'post',
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_email_enabled.value='000');
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_email_enabled 를 체크하기 때문)
asynchronous: false,
parameters: para,
onComplete: return_reg_mb_email_check
});
}
function return_reg_mb_email_check(req) {
var msg = $('msg_mb_email');
var result = req.responseText;
switch(result) {
case '110' : msg.update('E-mail 주소를 입력하십시오.').setStyle({ color: 'red' }); break;
case '120' : msg.update('E-mail 주소가 형식에 맞지 않습니다.').setStyle({ color: 'red' }); break;
case '130' : msg.update('이미 존재하는 E-mail 주소입니다.').setStyle({ color: 'red' }); break;
case '000' : msg.update('사용하셔도 좋은 E-mail 주소입니다.').setStyle({ color: 'blue' }); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('mb_email_enabled').value = result;
}
// 세션에 저장된 토큰을 얻는다.
function get_token() {
var url = member_skin_path + "/ajax_get_token.php";
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
para += "&reg_mb_email="+encodeURIComponent($F('reg_mb_email'));
var myAjax = new Ajax.Request(
url,
{
method: 'post',
asynchronous: false,
parameters: para,
onComplete: return_get_token
});
}
function return_get_token(req) {
var result = req.responseText;
$('mb_token').value = result;
}

View File

@ -0,0 +1,105 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table border=0 cellpadding=4 align=center width=100%>
<form name=fcalendar autocomplete=off>
<input type=hidden name=fld value='<?=$fld?>'>
<input type=hidden name=cur_date value='<?=$cur_date?>'>
<input type=hidden id=delimiter name=delimiter value='<?=$delimiter?>'>
<tr><td align=center height=30>
<a href='<?=$yyyy_before_href?>'><<</a>&nbsp;
<a href='<?=$mm_before_href?>'><</a>
<?=$yyyy_select?>
<?=$mm_select?>
<a href='<?=$mm_after_href?>'>></a>&nbsp;
<a href='<?=$yyyy_after_href?>'>>></a>
</td>
</tr>
<tr>
<td align=center>
<table border=0 cellpadding=4 cellspacing=0 width=100%>
<tr align=center>
<td width=14% style="color:<?=$sunday_color?>"><?=$yoil[0];?></td>
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[1];?></td>
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[2];?></td>
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[3];?></td>
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[4];?></td>
<td width=14% style="color:<?=$weekday_color?>"><?=$yoil[5];?></td>
<td width=14% style="color:<?=$saturday_color?>"><?=$yoil[6];?></td>
</tr>
<?
$cnt = $day = 0;
for ($i=0; $i<6; $i++)
{
echo "<tr>";
for ($k=0; $k<7; $k++)
{
$cnt++;
echo "<td align=center>";
if ($cnt > $dt[wday])
{
$day++;
if ($day <= $last_day)
{
$mm2 = substr("0".$mm,-2);
$day2 = substr("0".$day,-2);
echo "<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td id='id$i$k' onclick=\"date_send('$yyyy', '$mm2', '$day2', '$k', '$yoil[$k]');\" align=center style='cursor:pointer;'>$day</td></tr></table>";
if ($k==0)
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
else if ($k==6)
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$saturday_color';</script>";
else
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$weekday_color';</script>";
$tmp_date = $yyyy.substr("0".$mm,-2).substr("0".$day,-2);
$tmp = $mm2."-".$day2;
if ($nal[$tmp])
{
$title = trim($nal[$tmp][1]);
//echo $title;
echo "<script type='text/javascript'>document.getElementById('id$i$k').title='{$title}';</script>";
if (trim($nal[$tmp][2]) == "*")
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.color='$sunday_color';</script>";
}
// 오늘이라면
if ($today[year] == $yyyy && $today[mon] == $mm && $today[mday] == $day)
{
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$today_bgcolor';</script>";
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[오늘]';</script>";
}
// 선택일(넘어온 값) 이라면
else if ($tmp_date == $cur_date)
{
echo "<script type='text/javascript'>document.getElementById('id$i$k').style.backgroundColor='$select_bgcolor';</script>";
echo "<script type='text/javascript'>document.getElementById('id$i$k').title+='[선택일]';</script>";
}
} else
echo "&nbsp;";
} else
echo "&nbsp;";
echo "</td>";
}
echo "</tr>\n";
if ($day >= $last_day)
break;
}
?>
</table>
</td>
</tr>
<tr>
<td align=center height=30>
<span style='background-color:<?=$today_bgcolor?>;'>
<?="<a href=\"javascript:date_send('{$today[year]}', '{$mon}', '{$mday}', '{$today[wday]}', '{$yoil[$today[wday]]}');\">";?>
오늘 : <?="{$today[year]}년 {$today[mon]}월 {$today[mday]}일 ({$yoil[$today[wday]]})";?></a>
</span></td>
</tr>
</form>
</table>

View File

@ -0,0 +1,95 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="formmail" class="new_win">
<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="<?php echo $email ?>">
<input type="hidden" name="attach" value="2">
<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>
<?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>
</tr>
<tr>
<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>
</tr>
<tr>
<th scope="row">형식</th>
<td>
<input type="radio" name="type" value="0" id="type_text" checked> <label for="type_text">TEXT</label>
<input type="radio" name="type" value="1" id="type_html"> <label for="type_html">HTML</label>
<input type="radio" name="type" value="2" id="type_both"> <label for="type_both">TEXT+HTML</label>
</td>
</tr>
<tr>
<th scope="row"><label for="content">내용<strong class="sound_only">필수</strong></label></th>
<td><textarea name="content" id="content" required class="required"></textarea></td>
</tr>
<tr>
<th scope="row"><label for="file1">첨부 1</label></th>
<td><input type="file" name="file1" id="file1" class="frm_input"></td>
</tr>
<tr>
<th scope="row"><label for="file2">첨부 2</label></th>
<td><input type="file" name="file2" id="file2" class="frm_input"></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td><?php echo captcha_html(); ?></td>
</tr>
</tbody>
</table>
<div class="btn_win">
<p>
작성하신 메일을 발송하시려면 <strong>메일발송</strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>창닫기</strong> 버튼을 누르세요.
</p>
<input type="submit" value="메일발송" id="btn_submit" class="btn_submit">
<button type="button" class="btn_cancel" onclick="javascript:window.close();">창닫기</button>
</div>
</form>
</div>
<script>
with (document.fformmail) {
if (typeof fname != "undefined")
fname.focus();
else if (typeof subject != "undefined")
subject.focus();
}
function fformmail_submit(f)
{
<?php echo chk_captcha_js(); ?>
if (f.file1.value || f.file2.value) {
// 4.00.11
if (!confirm("첨부파일의 용량이 큰경우 전송시간이 오래 걸립니다.\n\n메일보내기가 완료되기 전에 창을 닫거나 새로고침 하지 마십시오."))
return false;
}
document.getElementById('btn_submit').disabled = true;
return true;
}
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,56 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<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>
<input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20">
<label for="login_pw" class="login_pw">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="login_pw" required class="frm_input required" size="20" maxLength="20">
<input type="submit" value="로그인" class="btn_submit">
<input type="checkbox" name="auto_login" id="login_auto_login">
<label for="login_auto_login">자동로그인</label>
</fieldset>
<section>
<h2>회원로그인 안내</h2>
<p>
회원아이디 및 패스워드가 기억 안나실 때는 아이디/패스워드 찾기를 이용하십시오.<br>
아직 회원이 아니시라면 회원으로 가입 후 이용해 주십시오.
</p>
<div>
<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="<?php echo G4_URL ?>/">메인으로 돌아가기</a>
</div>
</form>
</div>
<script>
$(function(){
$("#login_auto_login").click(function(){
if (this.checked) {
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
}
});
});
function flogin_submit(f)
{
return true;
}
</script>

View File

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

View File

@ -0,0 +1,47 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="mb_confirm">
<h1><?php echo $g4['title'] ?></h1>
<p>
<strong>패스워드를 한번 더 입력해주세요.</strong>
<?php if ($url == 'member_leave.php') { ?>
패스워드를 입력하시면 회원탈퇴가 완료됩니다.
<?php }else{ ?>
회원님의 정보를 안전하게 보호하기 위해 패스워드를 한번 더 확인합니다.
<?php } ?>
</p>
<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"><?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">
<input type="submit" value="확인" id="btn_submit" class="btn_submit">
</fieldset>
</form>
<div class="btn_confirm">
<a href="<?php echo G4_URL ?>">메인으로 돌아가기</a>
</div>
</div>
<script>
function fmemberconfirm_submit(f)
{
document.getElementById("btn_submit").disabled = true;
return true;
}
</script>

View File

@ -0,0 +1,46 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="memo_list" class="new_win">
<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>
<li><a href="./memo_form.php">쪽지쓰기</a></li>
</ul>
<table class="basic_tbl">
<caption>
전체 <?php echo $kind_title ?>쪽지 <?php echo $total_count ?>통<br>
</caption>
<thead>
<tr>
<th scope="col"><?php echo ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col">보낸시간</th>
<th scope="col">읽은시간</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?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>
<?php } ?>
<?php if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<p class="new_win_desc">
쪽지 보관일수는 최장 <strong><?php echo $config['cf_memo_del'] ?></strong>일 입니다.
</p>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>

View File

@ -0,0 +1,59 @@
<?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>
<ul class="new_win_ul">
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
<li><a href="./memo_form.php">쪽지쓰기</a></li>
</ul>
<form name="fmemoform" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);" method="post" autocomplete="off">
<div class="cbox">
<table class="frm_tbl">
<caption>쪽지쓰기</caption>
<tbody>
<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="<?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"><?php echo $content ?></textarea></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?php echo captcha_html(); ?>
</td>
</tr>
</tbody>
</table>
</div>
<div class="btn_win">
<p>
작성하신 쪽지를 발송하시려면 <strong>보내기</strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>창닫기</strong> 링크를 누르세요.
</p>
<input type="submit" value="보내기" id="btn_submit" class="btn_submit">
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</form>
</div>
<script>
function fmemoform_submit(f)
{
<?php echo chk_captcha_js(); ?>
return true;
}
</script>

View File

@ -0,0 +1,50 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
if($kind == "recv") {
$kind_str = "보낸";
$kind_date = "받은";
}
else {
$kind_str = "받는";
$kind_date = "보낸";
}
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="memo_view" class="new_win">
<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>
<li><a href="./memo_form.php">쪽지쓰기</a></li>
</ul>
<section>
<h2>쪽지 내용</h2>
<ul id="memo_view_ul">
<li class="memo_view_li">
<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"><?php echo $kind_date ?>시간</span>
<strong><?php echo $memo['me_send_datetime'] ?></strong>
</li>
</ul>
<p>
<?php echo conv_content($memo['me_memo'], 0) ?>
</p>
</section>
<div class="btn_win">
<?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

@ -0,0 +1,47 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$delete_str = "";
if ($w == 'x') $delete_str = "";
if ($w == 'u') $g4['title'] = $delete_str."글 수정";
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><?php echo $g4['title'] ?></h1>
<p>
<?php if ($w == 'u') { ?>
<strong>작성자만 글을 수정할 수 있습니다.</strong>
작성자 본인이라면, 글 작성시 입력한 패스워드를 입력하여 글을 수정할 수 있습니다.
<?php } else if ($w == 'd' || $w == 'x') { ?>
<strong>작성자만 글을 삭제할 수 있습니다.</strong>
작성자 본인이라면, 글 작성시 입력한 패스워드를 입력하여 글을 삭제할 수 있습니다.
<?php } else { ?>
<strong>비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 수 있습니다. 본인이라면 패스워드를 입력하세요.
<?php } ?>
</p>
<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>
<input type="password" name="wr_password" id="password_wr_password" required class="frm_input required" size="15" maxLength="20">
<input type="submit" value="확인" class="btn_submit">
</fieldset>
</form>
<div class="btn_confirm">
<a href="<?php echo $return_url ?>">돌아가기</a>
</div>
</div>

View File

@ -0,0 +1,105 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="50" align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="175" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="390" align="right" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/step_01.gif" width="110" height="16"></td>
</tr>
</table></td>
</tr>
</table>
<form name=fpasswordforget method=post onsubmit="return fpasswordforget_submit(this);" autocomplete=off>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="370" align="center" valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" colspan="2"></td>
</tr>
<tr>
<td width="540" height="115" align="center" valign="middle" background="<?=$member_skin_path?>/img/dot_bg_img.gif"><table width="315" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" height="40"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td width="300" colspan="2"><img src="<?=$member_skin_path?>/img/text_title_01.gif" width="149" height="15"></td>
</tr>
<tr>
<td width="15" height="28"></td>
<td width="100"><b>회원아이디</b></td>
<td width="200"><input type=text name='pass_mb_id' class=ed size=18 maxlength=20 itemname='회원아이디'></td>
</tr>
</table></td>
</tr>
<tr>
<td width="540" height="20" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="170" colspan="2" align="center" valign="middle" background="<?=$member_skin_path?>/img/gray_bg_img.gif" bgcolor="#FFFFFF"><table width="315" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" height="40"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td width="300" colspan="2"><img src="<?=$member_skin_path?>/img/text_title_02.gif" width="139" height="15"></td>
</tr>
<tr>
<td width="15" height="28"></td>
<td width="100" height="14"><b>이름</b></td>
<td width="200" height="14"><INPUT type=text name=mb_name class=ed itemname="이름" size=18></td>
</tr>
<? if ($config[cf_use_jumin]) { // 주민등록번호를 사용한다면(입력 받았다면) ?>
<tr>
<td width="15" height="28"></td>
<td width="100" height="14"><b>주민등록번호</b></td>
<td width="200" height="14"><INPUT type=text name=mb_jumin class=ed itemname="주민등록번호" jumin size=18 maxlength=13> - 없이 입력</td>
</tr>
<? } else { ?>
<tr>
<td width="15" height="28"></td>
<td width="100" height="14"><b>E-mail</b></td>
<td width="200" height="14"><INPUT type=text name=mb_email class=ed itemname="E-mail" email size=30></td>
</tr>
<? } ?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><input type="image" src="<?=$member_skin_path?>/img/btn_next_01.gif">&nbsp;&nbsp;<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
</form>
<script language="JavaScript">
function fpasswordforget_submit(f)
{
if (f.pass_mb_id.value == "") {
if (typeof f.mb_jumin != "undefined") {
if (f.mb_name.value == "" || f.mb_jumin.value == "") {
alert("회원아이디를\n\n아실 경우에는 회원아이디를\n\n모르실 경우에는 이름과 주민등록번호를\n\n입력하여 주십시오.");
return false;
}
} else if (typeof f.mb_email != "undefined") {
if (f.mb_name.value == "" || f.mb_email.value == "") {
alert("회원아이디를\n\n아실 경우에는 회원아이디를\n\n모르실 경우에는 이름과 E-mail 을\n\n입력하여 주십시오.");
return false;
}
}
}
f.action = "./password_forget2.php";
return true;
}
document.fpasswordforget.pass_mb_id.focus();
</script>

View File

@ -0,0 +1,86 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="50" align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="175" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>회원아이디/패스워드 찾기</b></font></td>
<td width="390" align="right" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/step_02.gif" width="110" height="16"></td>
</tr>
</table></td>
</tr>
</table>
<form name=fpasswordforget2 method=post onsubmit="return fpasswordforget2_submit(this);" autocomplete=off>
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=pass_mb_id value='<?=$mb[mb_id]?>'>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="300" align="center" valign="middle" background="<?=$member_skin_path?>/img/dot_bg_img_01.gif">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td width="20%"><b>회원아이디</b></td>
<td width="75%"><b><?=$mb[mb_id]?></b></td>
</tr>
<tr>
<td height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td colspan="2"><b>패스워드 분실시 질문</b></td>
</tr>
<tr>
<td height="30" align="center"></td>
<td colspan="2" valign="top"><?=$mb[mb_password_q]?></td>
</tr>
<tr>
<td height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td colspan="2"><b>패스워드 분실시 답변</b></td>
</tr>
<tr>
<td height="30"></td>
<td colspan="2" valign="top">
<input type=text name='mb_password_a' class=ed size=55 required itemname='패스워드 분실시 답변' value=''>
</td>
</tr>
<tr>
<td height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td colspan="2">
<img id='kcaptcha_image' />
<input type=text name='wr_key' class=ed size=10 required itemname='자동등록방지'>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><input type="image" src="<?=$member_skin_path?>/img/btn_next_01.gif">&nbsp;&nbsp;<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
</form>
<script type="text/javascript" src="<?="$g4[path]/js/md5.js"?>"></script>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
function fpasswordforget2_submit(f)
{
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 글자가 제대로 입력되지 않았습니다.");
f.wr_key.select();
return false;
}
f.action = "./password_forget3.php";
return true;
}
document.fpasswordforget2.mb_password_a.focus();
</script>

View File

@ -0,0 +1,45 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="50" align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="275" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>회원아이디/패스워드 찾기 결과</b></font></td>
<td width="290" align="right" bgcolor="#FFFFFF" >&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="200" align="center" valign="middle" background="<?=$member_skin_path?>/img/dot_bg_img_02.gif"><table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td width="28%"><b>회원아이디</b></td>
<td width="67%"><b><?=$mb[mb_id]?></b></td>
</tr>
<tr>
<td height="40" align="center"><img src="<?=$member_skin_path?>/img/icon_02.gif" width="6" height="6"></td>
<td><b>부여된 패스워드</b></td>
<td><b><?=$change_password?></b></td>
</tr>
<tr>
<td height="40" align="center"></td>
<td colspan="2">새로 부여된 패스워드는 로그인 후 변경해 주십시오.</td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>

View File

@ -0,0 +1,44 @@
<?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="<?php echo $action_url ?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
<fieldset id="find_info_fs">
<p>
회원가입 시 등록하신 이메일 주소를 입력해 주세요.<br>
해당 이메일로 아이디와 패스워드 정보를 보내드립니다.
</p>
<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>
<?php echo captcha_html(); ?>
<div class="btn_win">
<input type="submit" value="확인" class="btn_submit">
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
</div>
</form>
</div>
<script>
function fpasswordlost_submit(f)
{
<?php echo chk_captcha_js(); ?>
return true;
}
$(function() {
var sw = screen.width;
var sh = screen.height;
var cw = document.body.clientWidth;
var ch = document.body.clientHeight;
var top = sh / 2 - ch / 2 - 100;
var left = sw / 2 - cw / 2;
moveTo(left, top);
});
</script>

View File

@ -0,0 +1,73 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/mailer.lib.php');
$email = trim($_POST['mb_email']);
if (!$email)
alert_close('메일주소 오류입니다.');
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
$row = sql_fetch($sql);
if ($row['cnt'] > 1)
alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
$mb = sql_fetch($sql);
if (!$mb['mb_id'])
alert('존재하지 않는 회원입니다.');
else if (is_admin($mb['mb_id']))
alert('관리자 아이디는 접근 불가합니다.');
// 난수 발생
srand(time());
$randval = rand(4, 6);
$change_password = substr(md5(get_microtime()), 0, $randval);
$mb_lost_certify = sql_password($change_password);
$mb_datetime = sql_password($mb['mb_datetime']);
// 회원테이블에 필드를 추가
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
$sql = " update {$g4['member_table']}
set mb_lost_certify = '$mb_lost_certify'
where mb_id = '{$mb['mb_id']}' ";
sql_query($sql);
$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&amp;mb_datetime='.$mb_datetime.'&amp;mb_lost_certify='.$mb_lost_certify;
$subject = "[".$config['cf_title']."] 요청하신 회원 아이디/패스워드 정보입니다.";
$content = "";
$content .= "<div style=\"margin:30px auto;width:600px;border:10px solid #f7f7f7\">";
$content .= "<div style=\"border:1px solid #dedede\">";
$content .= "<h1 style=\"padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em\">";
$content .= "회원 패스워드가 변경되었습니다.";
$content .= "</h1>";
$content .= "<span style=\"display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right\">";
$content .= "<a href=\"".G4_URL."\" target=\"_blank\">".$config['cf_title']."</a>";
$content .= "</span>";
$content .= "<p style=\"margin:20px 0 0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
$content .= addslashes($mb['mb_name'])." (".addslashes($mb['mb_nick']).")"." 회원님은 ".G4_TIME_YMDHIS." 에 회원정보 찾기 요청을 하셨습니다.<br>";
$content .= "저희 사이트는 관리자라도 회원님의 비밀번호를 알 수 없기 때문에, 비밀번호를 알려드리는 대신 새로운 비밀번호를 생성하여 안내 해드리고 있습니다.<br>";
$content .= "다음에서 변경될 패스워드를 확인하신 후, <span style=\"color:#ff3061\"><strong>패스워드 변경</strong> 링크를 클릭 하십시오.</span><br>";
$content .= "패스워드가 변경되었다는 인증 메세지가 출력되면, 홈페이지에서 회원아이디와 변경된 패스워드를 입력하시고 로그인 하십시오.<br>";
$content .= "로그인 후에는 정보수정 메뉴에서 새 패스워드로 변경하십시오.";
$content .= "</p>";
$content .= "<p style=\"margin:0;padding:30px 30px 30px;border-bottom:1px solid #eee;line-height:1.7em\">";
$content .= "<span style=\"display:inline-block;width:100px\">회원아이디</span> ".$mb['mb_id']."<br>";
$content .= "<span style=\"display:inline-block;width:100px\">변경될 패스워드</span> <strong style=\"color:#ff3061\">".$change_password."</strong>";
$content .= "</p>";
$content .= "<a href=\"".$href."\" target=\"_blank\" style=\"display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center\">패스워드 변경</a>";
$content .= "</div>";
$content .= "</div>";
$admin = get_admin('super');
mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1);
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.');
?>

View File

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

View File

@ -0,0 +1,51 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<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><?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">
</fieldset>
</section>
<section id="fregister_private">
<h2>개인정보수집이용안내</h2>
<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">
</fieldset>
</section>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="회원가입">
</div>
</form>
<script>
function fregister_submit(f)
{
if (!f.agree.checked) {
alert("회원가입약관의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
f.agree.focus();
return false;
}
if (!f.agree2.checked) {
alert("개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
f.agree2.focus();
return false;
}
return true;
}
</script>

View File

@ -0,0 +1,351 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<script src="<?php echo G4_JS_URL ?>/jquery.register_form.js"></script>
<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 ?>">
<?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>
<tr>
<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="<?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" <?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" <?php echo $required ?> class="frm_input minlength_3 <?php echo $required ?>" maxlength="20"></td>
</tr>
</table>
<table class="frm_tbl">
<caption>개인정보 입력</caption>
<tr>
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
<td>
<?php if ($w=="u" && $config['cf_kcpcert_use']) { ?>
<span class="frm_info">휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되며 수동으로 입력할수 없게 됩니다.</span>
<?php } ?>
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
<?php if ($w=="u" && $config['cf_kcpcert_use']) { ?>
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
<noscript>휴대폰 본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
<?php } ?>
<?php if ($member['mb_hp_certify']) { ?>
<div id="msg_hp_certify">
휴대폰 <strong>본인확인</strong><?php if ($member['mb_hp_certify']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
</div>
<?php } ?>
</td>
</tr>
<?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>
별명을 바꾸시면 앞으로 <?php echo (int)$config['cf_nick_modify'] ?>일 이내에는 변경 할 수 없습니다.
</span>
<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>
<?php if ($config['cf_use_email_certify']) { ?>
<span class="frm_info">
<?php if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<?php if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
</span>
<?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>
<?php if ($config['cf_use_homepage']) { ?>
<tr>
<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 } ?>
<?php if ($config['cf_use_tel']) { ?>
<tr>
<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 } ?>
<?php if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">휴대폰번호<?php if ($config['cf_req_hp']) { ?><strong class="sound_only">필수</strong><?php } ?></label></th>
<td><input type="text" name="mb_hp" value="<?php echo $member['mb_hp'] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" maxlength="20"></td>
</tr>
<?php } ?>
<?php if ($config['cf_use_addr']) { ?>
<tr>
<th scope="row">
주소
<?php if ($config['cf_req_addr']) { ?><strong class="sound_only">필수</strong><?php } ?>
</th>
<td>
<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">
-
<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>
<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="<?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>
<?php if ($config['cf_use_signature']) { ?>
<tr>
<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 } ?>
<?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" <?php echo $config['cf_req_profile']?"required":""; ?> class="<?php echo $config['cf_req_profile']?"required":""; ?>"><?php echo $member['mb_profile'] ?></textarea></td>
</tr>
<?php } ?>
<?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">
이미지 크기는 가로 <?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">
<?php if ($w == 'u' && file_exists($mb_icon_path)) { ?>
<img src="<?php echo $mb_icon_url; ?>" alt="회원아이콘">
<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" <?php echo ($w=='' || $member['mb_mailling'])?'checked':''; ?>>
정보 메일을 받겠습니다.
</td>
</tr>
<?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" <?php echo ($w=='' || $member['mb_sms'])?'checked':''; ?>>
휴대폰 문자메세지를 받겠습니다.
</td>
</tr>
<?php } ?>
<?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">
정보공개를 바꾸시면 앞으로 <?php echo (int)$config['cf_open_modify'] ?>일 이내에는 변경이 안됩니다.
</span>
<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>
<?php } else { ?>
<tr>
<th scope="row">정보공개</th>
<td>
<span class="frm_info">
정보공개는 수정후 <?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="<?php echo $member['mb_open'] ?>">
</td>
</tr>
<?php } ?>
<?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><?php echo $captcha_html ?></td>
</tr>
</table>
<div class="btn_confirm">
<p>
작성하신 내용를 발송하시려면 <strong><?php echo $w==''?'회원가입':'정보수정'; ?></strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>취소</strong> 링크를 누르세요.
</p>
<input type="submit" value="<?php echo $w==''?'회원가입':'정보수정'; ?>" id="btn_submit" 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() {
// 휴대폰인증
$('#win_kcpcert').click(function() {
auth_type_check();
return false;
});
});
</script>
<?php } ?>
<script>
$(function() {
$("#reg_zip_find").css("display", "inline-block");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
});
// submit 최종 폼체크
function fregisterform_submit(f)
{
// 회원아이디 검사
if (f.w.value == "") {
var msg = reg_mb_id_check();
if (msg) {
alert(msg);
f.mb_id.select();
return false;
}
}
if (f.w.value == '') {
if (f.mb_password.value.length < 3) {
alert('패스워드를 3글자 이상 입력하십시오.');
f.mb_password.focus();
return false;
}
}
if (f.mb_password.value != f.mb_password_re.value) {
alert('패스워드가 같지 않습니다.');
f.mb_password_re.focus();
return false;
}
if (f.mb_password.value.length > 0) {
if (f.mb_password_re.value.length < 3) {
alert('패스워드를 3글자 이상 입력하십시오.');
f.mb_password_re.focus();
return false;
}
}
// 이름 검사
if (f.w.value=='') {
if (f.mb_name.value.length < 1) {
alert('이름을 입력하십시오.');
f.mb_name.focus();
return false;
}
}
// 별명 검사
if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
var msg = reg_mb_nick_check();
if (msg) {
alert(msg);
f.reg_mb_nick.select();
return false;
}
}
// E-mail 검사
if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {
var msg = reg_mb_email_check();
if (msg) {
alert(msg);
f.reg_mb_email.select();
return false;
}
}
if (typeof f.mb_icon != 'undefined') {
if (f.mb_icon.value) {
if (!f.mb_icon.value.toLowerCase().match(/.(gif)$/i)) {
alert('회원아이콘이 gif 파일이 아닙니다.');
f.mb_icon.focus();
return false;
}
}
}
if (typeof(f.mb_recommend) != 'undefined' && f.mb_recommend.value) {
if (f.mb_id.value == f.mb_recommend.value) {
alert('본인을 추천할 수 없습니다.');
f.mb_recommend.focus();
return false;
}
var msg = reg_mb_recommend_check();
if (msg) {
alert(msg);
f.mb_recommend.select();
return false;
}
}
<?php echo chk_captcha_js(); ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
</script>

View File

@ -0,0 +1,45 @@
<?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="<?php echo $member_skin_url ?>/img/reg_result_logo.jpg" alt=""></div>
<p>
<strong><?php echo $mb['mb_name'] ?></strong>님의 회원가입을 진심으로 축하합니다.<br>
</p>
<?php if ($config['cf_use_email_certify']) { ?>
<p>
회원 가입 시 입력하신 이메일 주소로 인증메일이 발송되었습니다.<br>
발송된 인증메일을 확인하신 후 인증처리를 하시면 사이트를 원활하게 이용하실 수 있습니다.
</p>
<div id="reg_result_email">
<span>아이디</span>
<strong><?php echo $mb['mb_id'] ?></strong><br>
<span>이메일 주소</span>
<strong><?php echo $mb['mb_email'] ?></strong>
</div>
<p>
이메일 주소를 잘못 입력하셨다면, 사이트 관리자에게 문의해주시기 바랍니다.
</p>
<?php } ?>
<p>
회원님의 패스워드는 아무도 알 수 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.<br>
아이디, 패스워드 분실시에는 회원가입시 입력하신 이메일 주소를 이용하여 찾을 수 있습니다.
</p>
<p>
회원 탈퇴는 언제든지 가능하며 일정기간이 지난 후, 회원님의 정보는 삭제하고 있습니다.<br>
감사합니다.
</p>
<div class="btn_confirm">
<a href="<?php echo G4_URL ?>/" class="btn02">메인으로</a>
</div>
</div>

View File

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

View File

@ -0,0 +1,39 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="scrap" class="new_win">
<h1><?php echo $g4['title'] ?></h1>
<table class="basic_tbl">
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<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 } ?>
<?php if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<?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

@ -0,0 +1,36 @@
<?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="<?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><?php echo get_text(cut_str($write['wr_subject'], 255)) ?></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">댓글</label></th>
<td><textarea name="wr_content" id="wr_content"></textarea></td>
</tr>
</tbody>
</table>
<p class="new_win_desc">
스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 수 있습니다.
</p>
<div class="btn_win">
<input type="submit" value="스크랩 확인" class="btn_submit">
</div>
</form>
</div>

View File

@ -0,0 +1,99 @@
/* 회원가입 약관 */
#fregister section {margin:0 0 20px;padding:20px 0;border-bottom:3px solid #eee}
#fregister h2 {margin:0 0 20px;text-align:center}
#fregister textarea {display:block;margin-bottom:10px;padding:5px;width:98%;height:150px;border:1px solid #cfded8;background:#f7f7f7}
#fregister textarea:focus {background:#21272e;color:#fff}
.fregister_agree {padding:10px 0 0;text-align:right}
.fregister_agree label {display:inline-block;margin-right:5px}
#fregister p {color:#e8180c;text-align:center}
#fregister .btn_confirm {margin-bottom:20px}
/* 회원가입 입력 */
#fregisterform .cbg {margin-bottom:15px;padding:20px}
#fregisterform textarea {height:50px}
#msg_hp_certify {margin:5px 0 0;padding:5px;border:1px solid #dbecff;background:#eaf4ff;text-align:center}
/* 회원가입 완료 */
#reg_result {padding:50px 0 0}
#reg_result_logo {margin-bottom:50px;text-align:center}
#reg_result_email {padding:10px 50px;border-top:1px solid #eee;border-bottom:1px solid #eee;background:#fff;line-height:2em}
#reg_result_email span {display:inline-block;width:150px}
#reg_result_email strong {color:#e8180c;font-size:1.2em}
#reg_result .btn_confirm {margin:50px 0}
/* 아이디/패스워드 찾기 */
#find_info #mb_hp_label {display:inline-block;margin-left:10px}
#find_info #captcha {margin:0 auto 20px;width:87%}
#find_info #captcha input {margin-left:5px}
#find_info_fs {margin:0 auto 20px;padding:10px 20px 15px;width:87%;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
#find_info_result li {margin:0 0 5px}
#find_info_result span {display:inline-block;width:70px}
#find_info_result strong {color:#ff3061}
#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: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}
#mb_login label {letter-spacing:-0.1em}
#mb_login .login_id {position:absolute;top:26px;left:95px}
#mb_login .login_pw {position:absolute;top:52px;left:95px}
#mb_login .frm_input {display:block;margin:0 0 5px 80px}
#mb_login .btn_submit {position:absolute;top:20px;left:335px;height:49px}
#mb_login section {margin:0 0 30px;padding:20px;border:1px solid #cfded8;background:#f7f7f2}
#mb_login section div {text-align:right}
/* 쪽지 */
#memo_view section {margin:0 auto 20px;padding:20px;width:87%}
#memo_view section h2 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
#memo_view_ul {margin:0;padding:0 0 10px;border-bottom:1px solid #eee;list-style:none}
.memo_view_li {position:relative;padding:5px 0}
.memo_view_subj {display:inline-block;width:65px}
#memo_view_ul a {}
#memo_view section p {padding:10px;min-height:150px;height:auto !important;height:150px;background:#fff}
#memo_write textarea {height:100px}
/* 스크랩 */
#scrap_do .cbg {margin:0 auto 20px;padding:20px;width:87%}
#scrap_do table {margin:0 0 10px;width:100%}
#scrap_do textarea {height:100px}
/* 회원 패스워드 확인 */
#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}
#mb_confirm fieldset {margin:0 0 30px;padding:30px 0;border:1px solid #cfded8;background:#f7f7f2;text-align:center}
#mb_confirm label {letter-spacing:-0.1em}
#mb_confirm_id {display:inline-block;margin-right:20px;font-weight:bold}
/* 비밀글 패스워드 확인 */
#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}
#pw_confirm fieldset {margin:0 0 30px;padding:30px 0;border:1px solid #cfded8;background:#f7f7f2;text-align:center}
#pw_confirm label {letter-spacing:-0.1em}
#pw_confirm_id {display:inline-block;margin-right:20px;font-weight:bold}
/* 폼메일 */
#formmail textarea {height:100px}
/* 자기소개 */
#profile table {margin-bottom:0}
#profile section {margin:0 auto 20px;padding:20px;width:86%}
#profile h2 {margin:0}
/* 우편번호 검색 */
#post_code fieldset {margin:0 auto 10px;padding:15px 10px;width:87%;text-align:center}
#post_code dl {margin:0 auto 10px;padding:20px 10px;width:87%;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
#post_code dt {margin-bottom:15px;color:#000}
#post_code dd {margin:0;padding:0}
#post_code ul {margin:0;padding:0;list-style:none}
#post_code li a {display:block;padding:8px 0 6px;border-bottom:1px solid #eee}
#post_code p {margin:0 auto 30px;width:90%}
.post_code {display:inline-block;width:50px;color:#999}

View File

@ -0,0 +1,64 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="post_code" class="new_win">
<h1><?php echo $g4['title'] ?></h1>
<form name="fzip" method="get" autocomplete="off">
<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="<?php echo $addr1 ?>" id="addr1" required class="required frm_input" minlength="2">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
<!-- 검색결과 여기서부터 -->
<script>
document.fzip.addr1.focus();
</script>
<?php if ($search_count > 0) { ?>
<dl>
<dt>총 <?php echo $search_count ?>건 가나다순 정렬</dt>
<dd>
<ul>
<?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>
<p>검색결과가 끝났습니다.</p>
<div class="btn_win">
<a href="javascript:window.close();">창닫기</a>
</div>
<script>
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?php echo $frm_name ?>;
of.<?php echo $frm_zip1 ?>.value = zip1;
of.<?php echo $frm_zip2 ?>.value = zip2;
of.<?php echo $frm_addr1 ?>.value = addr1;
of.<?php echo $frm_addr2 ?>.focus();
window.close();
return false;
}
</script>
<?php } ?>
</div>