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

This commit is contained in:
chicpro
2013-03-07 16:14:38 +09:00
57 changed files with 1383 additions and 384 deletions

View File

@ -29,6 +29,9 @@ if (!isset($board['bo_mobile_skin'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_skin` ", false);
}
if (!isset($board['bo_mobile_gallery_cols'])) {
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_gallery_cols` INT NOT NULL AFTER `bo_gallery_cols` ", false);
}
if ($w == '') {
@ -340,16 +343,6 @@ $pg_anchor = "<ul class=\"anchor\">
<label for="chk_use_sideview">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_use_file_content">파일 설명 사용</label></th>
<td>
<input type="checkbox" id="bo_use_file_content" name="bo_use_file_content" value="1" <?=$board['bo_use_file_content']?'checked':'';?>>사용
</td>
<td class="group_setting">
<input type="checkbox" id="chk_use_file_content" name="chk_use_file_content" value="1">
<label for="chk_use_file_content">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_use_secret">비밀글 사용</label></th>
<td>
@ -505,6 +498,16 @@ $pg_anchor = "<ul class=\"anchor\">
<label for="chk_upload_size">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_use_file_content">파일 설명 사용</label></th>
<td>
<input type="checkbox" id="bo_use_file_content" name="bo_use_file_content" value="1" <?=$board['bo_use_file_content']?'checked':'';?>>사용
</td>
<td class="group_setting">
<input type="checkbox" id="chk_use_file_content" name="chk_use_file_content" value="1">
<label for="chk_use_file_content">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_write_min">최소 글수 제한</label></th>
<td>
@ -701,6 +704,17 @@ $pg_anchor = "<ul class=\"anchor\">
<label for="chk_gallery_cols">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_mobile_gallery_cols">모바일<br>가로 이미지수<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('모바일 접속시 갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여줄것인지를 설정하는 값')?>
<input type="text" id="bo_mobile_gallery_cols" name="bo_mobile_gallery_cols" class="required numeric frm_input" required value="<?=$board['bo_mobile_gallery_cols']?>" size="4">
</td>
<td class="group_setting">
<input type="checkbox" id="chk_mobile_gallery_cols" name="chk_mobile_gallery_cols" value="1">
<label for="chk_mobile_gallery_cols">동일그룹 모두 적용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="bo_table_width">게시판 테이블 폭<strong class="sound_only">필수</strong></label></th>
<td>

View File

@ -99,6 +99,7 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_content_tail = '{$_POST['bo_content_tail']}',
bo_insert_content = '{$_POST['bo_insert_content']}',
bo_gallery_cols = '{$_POST['bo_gallery_cols']}',
bo_mobile_gallery_cols='{$_POST['bo_mobile_gallery_cols']}',
bo_upload_count = '{$_POST['bo_upload_count']}',
bo_upload_size = '{$_POST['bo_upload_size']}',
bo_reply_order = '{$_POST['bo_reply_order']}',
@ -247,6 +248,7 @@ if (is_checked('chk_use_email')) $fields .= " , bo_use_email = '{$bo_use_
if (is_checked('chk_skin')) $fields .= " , bo_skin = '{$bo_skin}' ";
if (is_checked('chk_mobile_skin')) $fields .= " , bo_mobile_skin = '{$bo_mobile_skin}' ";
if (is_checked('chk_gallery_cols')) $fields .= " , bo_gallery_cols = '{$bo_gallery_cols}' ";
if (is_checked('chk_mobile_gallery_cols'))$fields.=" , bo_mobile_gallery_cols = '{$bo_mobile_gallery_cols}' ";
if (is_checked('chk_table_width')) $fields .= " , bo_table_width = '{$bo_table_width}' ";
if (is_checked('chk_page_rows')) $fields .= " , bo_page_rows = '{$bo_page_rows}' ";
if (is_checked('chk_subject_len')) $fields .= " , bo_subject_len = '{$bo_subject_len}' ";

View File

@ -132,5 +132,7 @@ if ($count_write > 0 || $count_comment > 0)
@include_once($board_skin_path.'/delete.tail.skin.php');
delete_cache_latest($bo_table);
goto_url('./board.php?bo_table='.$bo_table.'&amp;page='.$page.$qstr);
?>

View File

@ -11,18 +11,28 @@ if (G4_IS_MOBILE) {
include_once('./_head.php');
?>
<!-- 메인화면 최신글 시작 -->
<?
// 최신글
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$lt_style = "";
if ($i%2==1) $lt_style = "margin-left:20px";
else $lt_style = "";
?>
<div style="float:left;<?=$lt_style?>">
<?
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest('basic', $row['bo_table'], 5, 70);
?>
</div>
<?
}
?>
<!-- 메인화면 최신글 끝 -->

View File

@ -55,7 +55,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="act" value="<?=$act?>">
<input type="hidden" name="url" value="<?=$_SERVER['HTTP_REFERER']?>">
<table>
<table class="basic_tbl">
<caption><?=$act?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
<thead>
<tr>

View File

@ -9,7 +9,7 @@ if ($sw != 'move' && $sw != 'copy')
alert('sw 값이 제대로 넘어오지 않았습니다.');
if(!count($_POST['chk_bo_table']))
alert("게시물을 ".$act."할 게시판을 한개 이상 선택해 주십시오.", $url);
alert('게시물을 '.$act.'할 게시판을 한개 이상 선택해 주십시오.', $url);
// 원본 파일 디렉토리
$src_dir = G4_DATA_PATH.'/file/'.$bo_table;
@ -43,7 +43,7 @@ while ($row = sql_fetch_array($result))
{
$nick = cut_str($member['mb_nick'], $config['cf_cut_name']);
if (!$row2['wr_is_comment'] && $config['cf_use_copy_log'])
$row2['wr_content'] .= PHP_EOL.'[이 게시물은 '.$nick.'님에 의해 '.G4_TIME_YMDHIS.' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]';
$row2['wr_content'] .= PHP_EOL.'<div class="content_'.$sw.'">[이 게시물은 '.$nick.'님에 의해 '.G4_TIME_YMDHIS.' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]</div>';
$sql = " insert into $move_write_table
set wr_num = '$next_wr_num',
@ -161,7 +161,7 @@ while ($row = sql_fetch_array($result))
delete_cache_latest($bo_table);
if ($sw == "move")
if ($sw == 'move')
{
for ($i=0; $i<count($save); $i++)
{

View File

@ -2,9 +2,9 @@
include_once('./_common.php');
include_once(G4_LIB_PATH.'/mailer.lib.php');
if ($w == "")
if ($w == '')
{
$po = sql_fetch(" select * from {$g4[poll_table]} where po_id = '{$po_id}' ");
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$po_id}' ");
if (!$po[po_id])
alert('po_id 값이 제대로 넘어오지 않았습니다.');
@ -18,15 +18,15 @@ if ($w == "")
$pc_idea = stripslashes($pc_idea);
$name = cut_str($pc_name, $config[cf_cut_name]);
$name = cut_str($pc_name, $config['cf_cut_name']);
$mb_id = '';
if ($member[mb_id])
$mb_id = '($member[mb_id])';
// 환경설정의 투표 기타의견 작성시 최고관리자에게 메일발송 사용에 체크되어 있을 경우
if ($config[cf_email_po_super_admin])
if ($config['cf_email_po_super_admin'])
{
$subject = $po[po_subject];
$subject = $po['po_subject'];
$content = $pc_idea;
ob_start();
@ -36,7 +36,8 @@ if ($w == "")
// 관리자에게 보내는 메일
$admin = get_admin('super');
mailer($name, '', $admin[mb_email], '설문조사 기타의견 메일', $content, 1);
$from_email = $member['mb_email'] ? $member['mb_email'] : $admin['mb_email'];
mailer($name, $from_email, $admin['mb_email'], '설문조사 기타의견 메일', $content, 1);
}
}
else if ($w == 'd')
@ -45,7 +46,7 @@ else if ($w == 'd')
{
$sql = " delete from {$g4[poll_etc_table]} where pc_id = '{$pc_id}' ";
if (!$is_admin)
$sql .= " and mb_id = '{$member[mb_id]}' ";
$sql .= " and mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}
}

View File

@ -2,54 +2,29 @@
// 설문조사 기타의견 입력시 관리자께 보내는 메일을 수정하고 싶으시다면 이 파일을 수정하십시오.
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<!doctype html>
<html lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<meta charset="utf-8">
<title>설문조사 기타의견 메일</title>
</head>
<style>
body, th, td, form, input, select, text, textarea, caption { font-size: 12px; font-family:굴림;}
.line {border: 1px solid #868F98;}
</style>
<body>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" height="25"></td>
<td height="25"></td>
<td width="25" height="25"></td>
</tr>
<tr>
<td width="25" valign="top"></td>
<td align="center" class="line" >
<br>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<td height="25" bgcolor=#F7F1D8>제목 : <?=$subject?></td>
</tr>
<tr>
<td height="25" bgcolor=#F7F1D8>게시자 : <?=$name?> <?=$mb_id?></td>
</tr>
</table>
<p>
<table width="500" border="0" align="center" cellpadding="4" cellspacing="0">
<tr><td height="150"><?=$content?></td></tr>
</table>
<p>
</td>
</tr>
</table>
<br>
</td>
<td width="25" valign="top"></td>
</tr>
</table>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">
<?=$subject?>
</h1>
<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">
작성자 <?=$name?> (<?=$mb_id?>)
</span>
<p style="margin:20px 0 0;padding:30px 30px 50px;min-height:200px;height:auto !important;height:200px;border-bottom:1px solid #eee">
<?=$content?>
</p>
</div>
</div>
</body>
</html>

View File

@ -2,70 +2,35 @@
// 회원가입축하 메일 (회원님께 발송)
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<!doctype html>
<html lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<meta charset="utf-8">
<title>회원가입 축하 메일</title>
</head>
<style>
body, th, td, form, input, select, text, textarea, caption { font-size: 12px; font-family:굴림;}
.line {border: 1px solid #868F98;}
</style>
<body>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" height="25"></td>
<td height="25"></td>
<td width="25" height="25"></td>
</tr>
<tr>
<td width="25" valign="top"></td>
<td align="center" class="line" >
<br>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height="25" bgcolor=#F7F1D8>회원가입을 축하합니다.</td>
</tr>
</table>
<p>
<table width="500" border="0" align="center" cellpadding="4" cellspacing="0">
<tr><td height="150">
<b><?=$mb_name?></b> 님의 회원가입을 진심으로 축하합니다.
<? if ($config['cf_use_email_certify']) { ?>
<p>아래의 주소를 클릭하시면 회원가입이 완료됩니다.
<p><a href="<?=$certify_href?>"><b><?=$certify_href?></b></a>
<? } ?>
<p>회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.
<p>감사합니다.
</td></tr>
</table>
<p>
<table width="500" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed">
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">로그인 후 모든 정보를 이용하실 수 있습니다.[<a href="<?=G4_BBS_URL?>/login.php">바로가기</a>]</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
<td width="25" valign="top"></td>
</tr>
</table>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">
회원가입을 축하합니다.
</h1>
<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">
<a href="<?=G4_URL?>" target="_blank"><?=$config['cf_title']?></a>
</span>
<p style="margin:20px 0 0;padding:30px 30px 50px;min-height:200px;height:auto !important;height:200px;border-bottom:1px solid #eee">
<b><?=$mb_name?></b> 님의 회원가입을 진심으로 축하합니다.<br>
회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.<br>
감사합니다.
</p>
<? if ($config['cf_use_email_certify']) { ?>
<p>아래의 주소를 클릭하시면 회원가입이 완료됩니다.<br><a href="<?=$certify_href?>"><?=$certify_href?></a></p>
<? } ?>
<a href="<?=$link_url?>" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">사이트에서 게시물 확인하기</a>
</div>
</div>
</body>
</html>

View File

@ -2,64 +2,34 @@
// 회원가입 메일 (관리자 메일로 발송)
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<!doctype html>
<html lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title>회원가입 메일</title>
<meta charset="utf-8">
<title>회원가입 알림 메일</title>
</head>
<style>
body, th, td, form, input, select, text, textarea, caption { font-size: 12px; font-family:굴림;}
.line {border: 1px solid #868F98;}
</style>
<body>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" height="25"></td>
<td height="25"></td>
<td width="25" height="25"></td>
</tr>
<tr>
<td width="25" valign="top"></td>
<td align="center" class="line" >
<br>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height="25" bgcolor=#F7F1D8>회원가입 메일</td>
</tr>
</table>
<p>
<table width="500" border="0" align="center" cellpadding="4" cellspacing="0">
<tr><td height="150"><b><?=$mb_name?></b> 님께서 회원가입 하셨습니다.
<p>회원 아이디 : <b><?=$mb_id?></b>
<p>회원 이름 : <?=$mb_name?>
<p>회원 별명 : <?=$mb_nick?>
<p>추천인아이디 : <?=$mb_recommend?></td></tr>
</table>
<p>
<table width="500" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed">
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">관리자화면에서 자세한 내용을 확인하실 수 있습니다.[<a href="<?=G4_BBS_URL?>/member_form.php?w=u&amp;mb_id=<?=$mb_id?>">바로가기</a>]</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
<td width="25" valign="top"></td>
</tr>
</table>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">
회원가입 알림 메일
</h1>
<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">
<a href="<?=G4_URL?>" target="_blank"><?=$config['cf_title']?></a>
</span>
<p style="margin:20px 0 0;padding:30px 30px 50px;min-height:200px;height:auto !important;height:200px;border-bottom:1px solid #eee">
<b><?=$mb_name?></b> 님께서 회원가입 하셨습니다.<br>
회원 아이디 : <b><?=$mb_id?></b><br>
회원 이름 : <?=$mb_name?><br>
회원 별명 : <?=$mb_nick?><br>
추천인아이디 : <?=$mb_recommend?>
</p>
<a href="<?=G4_BBS_URL?>/member_form.php?w=u&amp;mb_id=<?=$mb_id?>" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">관리자에서 회원정보 확인하기</a>
</div>
</div>
</body>
</html>

View File

@ -2,6 +2,42 @@
// E-mail 수정시 인증 메일 (회원님께 발송)
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>회원 인증 메일</title>
</head>
<body>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">
회원 인증 메일입니다.
</h1>
<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">
<a href="<?=G4_URL?>" target="_blank"><?=$config['cf_title']?></a>
</span>
<p style="margin:20px 0 0;padding:30px 30px 50px;min-height:200px;height:auto !important;height:200px;border-bottom:1px solid #eee">
<b><?=$mb_name?></b> 님의 E-mail 주소가 변경되었습니다.<br><br>
아래의 주소를 클릭하시면 인증이 완료됩니다.<br>
<a href="<?=$certify_href?>"><b><?=$certify_href?></b></a><br><br>
회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.<br>
감사합니다.
</p>
<a href="<?=G4_BBS_URL?>/login.php" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center"><?=$config['cf_title']?> 로그인</a>
</div>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">

View File

@ -361,6 +361,7 @@ include_once('./board_head.php');
$action_url = G4_HTTPS_BBS_URL."/write_update.php";
echo '<!-- skin : '.$board_skin_path.' -->';
include_once ($board_skin_path.'/write.skin.php');
include_once('./board_tail.php');

View File

@ -27,13 +27,13 @@ if ($is_guest) {
if ($w == "c" || $w == "cu") {
if ($member['mb_level'] < $board['bo_comment_level'])
alert('코멘트를 쓸 권한이 없습니다.');
alert('댓글를 쓸 권한이 없습니다.');
}
else
alert('w 값이 제대로 넘어오지 않았습니다.');
// 세션의 시간 검사
// 4.00.15 - 코멘트 수정시 연속 게시물 등록 메시지로 인한 오류 수정
// 4.00.15 - 댓글 수정시 연속 게시물 등록 메시지로 인한 오류 수정
if ($w == 'c' && $_SESSION['ss_datetime'] >= (G4_SERVER_TIME - $config['cf_delay_sec']) && !$is_admin)
alert('너무 빠른 시간내에 게시물을 연속해서 올릴 수 없습니다.');
@ -51,7 +51,7 @@ if (empty($wr['wr_id']))
if ($member[mb_id])
{
$mb_id = $member['mb_id'];
// 4.00.13 - 실명 사용일때 코멘트에 별명으로 입력되던 오류를 수정
// 4.00.13 - 실명 사용일때 댓글에 별명으로 입력되던 오류를 수정
$wr_name = $board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick'];
$wr_password = $member['mb_password'];
$wr_email = $member['mb_email'];
@ -63,25 +63,25 @@ else
$wr_password = sql_password($wr_password);
}
if ($w == 'c') // 코멘트 입력
if ($w == 'c') // 댓글 입력
{
/*
if ($member[mb_point] + $board[bo_comment_point] < 0 && !$is_admin)
alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 코멘트쓰기('.number_format($board[bo_comment_point]).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 적립하신 후 다시 코멘트를 써 주십시오.');
alert('보유하신 포인트('.number_format($member[mb_point]).')가 없거나 모자라서 댓글쓰기('.number_format($board[bo_comment_point]).')가 불가합니다.'.PHP_EOL.PHP_EOL.'포인트를 적립하신 후 다시 댓글를 써 주십시오.');
*/
// 코멘트쓰기 포인트설정시 회원의 포인트가 음수인 경우 코멘트를 쓰지 못하던 버그를 수정 (곱슬최씨님)
// 댓글쓰기 포인트설정시 회원의 포인트가 음수인 경우 댓글를 쓰지 못하던 버그를 수정 (곱슬최씨님)
$tmp_point = ($member['mb_point'] > 0) ? $member['mb_point'] : 0;
if ($tmp_point + $board['bo_comment_point'] < 0 && !$is_admin)
alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 코멘트쓰기('.number_format($board['bo_comment_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 코멘트를 써 주십시오.');
alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 댓글쓰기('.number_format($board['bo_comment_point']).')가 불가합니다.\\n\\n포인트를 적립하신 후 다시 댓글를 써 주십시오.');
// 코멘트 답변
// 댓글 답변
if ($comment_id)
{
$sql = " select wr_id, wr_comment, wr_comment_reply from $write_table
where wr_id = '$comment_id' ";
$reply_array = sql_fetch($sql);
if (!$reply_array['wr_id'])
alert('답변할 코멘트가 없습니다.\\n\\n답변하는 동안 코멘트가 삭제되었을 수 있습니다.');
alert('답변할 댓글가 없습니다.\\n\\n답변하는 동안 댓글가 삭제되었을 수 있습니다.');
$tmp_comment = $reply_array['wr_comment'];
@ -167,17 +167,17 @@ if ($w == 'c') // 코멘트 입력
$comment_id = mysql_insert_id();
// 원글에 코멘트수 증가 & 마지막 시간 반영
// 원글에 댓글수 증가 & 마지막 시간 반영
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '".G4_TIME_YMDHIS."' where wr_id = '$wr_id' ");
// 새글 INSERT
sql_query(" insert into {$g4['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '".G4_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
// 코멘트 1 증가
// 댓글 1 증가
sql_query(" update {$g4['board_table']} set bo_count_comment = bo_count_comment + 1 where bo_table = '$bo_table' ");
// 포인트 부여
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} 댓글쓰기", $bo_table, $comment_id, '댓글');
// 메일발송 사용
if ($config['cf_email_use'] && $board['bo_use_email'])
@ -188,13 +188,13 @@ if ($w == 'c') // 코멘트 입력
$board_admin = get_admin('board');
$wr_subject = get_text(stripslashes($wr['wr_subject']));
$wr_content = nl2br(get_text(stripslashes("----- 원글 -----\n\n{$wr['wr_subject']}\n\n\n----- 코멘트 -----\n\n$wr_content")));
$wr_content = nl2br(get_text(stripslashes("원글\n{$wr['wr_subject']}\n\n\n댓글\n$wr_content")));
$warr = array( ''=>'입력', 'u'=>'수정', 'r'=>'답변', 'c'=>'코멘트', 'cu'=>'코멘트 수정' );
$warr = array( ''=>'입력', 'u'=>'수정', 'r'=>'답변', 'c'=>'댓글 ', 'cu'=>'댓글 수정' );
$str = $warr[$w];
$subject = $board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
// 4.00.15 - 메일로 보내는 코멘트의 바로가기 링크 수정
// 4.00.15 - 메일로 보내는 댓글의 바로가기 링크 수정
$link_url = G4_BBS_URL."/board.php?bo_table=".$bo_table."&amp;wr_id=".$wr_id."&amp;".$qstr."#c_".$comment_id;
include_once(G4_LIB_PATH.'/mailer.lib.php');
@ -217,7 +217,7 @@ if ($w == 'c') // 코멘트 입력
// 원글 메일발송에 체크가 되어 있다면
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
// 코멘트 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
// 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
if ($config['cf_email_wr_comment_all']) {
$sql = " select distinct wr_email from {$write_table}
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
@ -236,7 +236,7 @@ if ($w == 'c') // 코멘트 입력
}
}
}
else if ($w == 'cu') // 코멘트 수정
else if ($w == 'cu') // 댓글 수정
{
$sql = " select mb_id, wr_comment, wr_comment_reply from $write_table
where wr_id = '$comment_id' ";
@ -256,18 +256,18 @@ else if ($w == 'cu') // 코멘트 수정
if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
;
else
alert('그룹관리자의 권한보다 높은 회원의 코멘트이므로 수정할 수 없습니다.');
alert('그룹관리자의 권한보다 높은 회원의 댓글이므로 수정할 수 없습니다.');
} else
alert('자신이 관리하는 그룹의 게시판이 아니므로 코멘트를 수정할 수 없습니다.');
alert('자신이 관리하는 그룹의 게시판이 아니므로 댓글를 수정할 수 없습니다.');
} else if ($is_admin == 'board') { // 게시판관리자이면
$mb = get_member($comment['mb_id']);
if ($member['mb_id'] == $board['bo_admin']) { // 자신이 관리하는 게시판인가?
if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
;
else
alert('게시판관리자의 권한보다 높은 회원의 코멘트이므로 수정할 수 없습니다.');
alert('게시판관리자의 권한보다 높은 회원의 댓글이므로 수정할 수 없습니다.');
} else
alert('자신이 관리하는 게시판이 아니므로 코멘트를 수정할 수 없습니다.');
alert('자신이 관리하는 게시판이 아니므로 댓글를 수정할 수 없습니다.');
} else if ($member['mb_id']) {
if ($member['mb_id'] != $comment['mb_id'])
alert('자신의 글이 아니므로 수정할 수 없습니다.');
@ -281,7 +281,7 @@ else if ($w == 'cu') // 코멘트 수정
and wr_is_comment = 1 ";
$row = sql_fetch($sql);
if ($row['cnt'] && !$is_admin)
alert('이 코멘트와 관련된 답변코멘트가 존재하므로 수정 할 수 없습니다.');
alert('이 댓글와 관련된 답변댓글가 존재하므로 수정 할 수 없습니다.');
$sql_ip = "";
if (!$is_admin)

View File

@ -2,68 +2,29 @@
// 게시물 입력시 게시자, 관리자에게 드리는 메일을 수정하고 싶으시다면 이 파일을 수정하십시오.
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<html>
<!doctype html>
<html lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<meta charset="utf-8">
<title><?=$wr_subject?> 메일</title>
</head>
<style>
body, th, td, form, input, select, text, textarea, caption { font-size: 12px; font-family:굴림;}
.line {border: 1px solid #868F98;}
</style>
<body>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" height="25"></td>
<td height="25"></td>
<td width="25" height="25"></td>
</tr>
<tr>
<td width="25" valign="top"></td>
<td align="center" class="line" >
<br>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="10%" height="25" bgcolor=#F7F1D8>제목</td>
<td width="90%" bgcolor=#FBF7E7><?=$wr_subject?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="2" colspan="2"></td>
</tr>
<tr>
<td height="25" bgcolor=#F7F1D8>게시자</td>
<td bgcolor=#FBF7E7><?=$wr_name?></td>
</tr>
</table>
<p>
<table width="500" border="0" align="center" cellpadding="4" cellspacing="0">
<tr><td height="150" style="word-break:break-all;"><?=$wr_content?></td></tr>
</table>
<p>
<table width="500" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed">
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">홈페이지에서도 게시물을 확인하실 수 있습니다.[<a href='<?=$link_url?>'>바로가기</a>]</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
<td width="25" valign="top"></td>
</tr>
</table>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="padding:30px 30px 0;background:#f7f7f7;color:#555;font-size:1.4em">
<?=$wr_subject?>
</h1>
<span style="display:block;padding:10px 30px 30px;background:#f7f7f7;text-align:right">
작성자 <?=$wr_name?>
</span>
<p style="margin:20px 0 0;padding:30px 30px 50px;min-height:200px;height:auto !important;height:200px;border-bottom:1px solid #eee">
<?=$wr_content?>
</p>
<a href="<?=$link_url?>" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center">사이트에서 게시물 확인하기</a>
</div>
</div>
</body>
</html>

View File

@ -171,6 +171,8 @@ a:active {color:#000;text-decoration:underline}
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
td.empty_table {padding:85px 0;text-align:center}
.empty_list {padding:85px 0;text-align:center}
/* 필수입력 */
.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}
@ -306,8 +308,8 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
#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:55px;left:95px}
#mb_login .fs_input {display:block;margin:0 0 5px 80px}
#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:53px}
#mb_login section {margin:0 0 30px;padding:20px;border:1px solid #cfded8;background:#f7f7f2}
#mb_login section div {text-align:right}
@ -479,13 +481,27 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
/* 갤러리 목록 */
#bo_img h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
#bo_img_list {margin:0;padding:0;list-style:none;zoom:1}
#bo_img_list {margin:10px 0 0;padding:0;list-style:none;zoom:1}
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
.bo_img_list_li {float:left;margin-bottom:20px}
.bo_img_con {margin:0;padding:0;list-style:none}
.bo_img_con li {}
.bo_img_list_li {float:left;margin:0 10px 30px 0}
/* 목록 공통 */
.bo_img_con {margin:0;padding:0;list-style:none}
.bo_img_con li {margin:0 0 4px}
.bo_img_con .bo_img_subject {display:inline-block;width:50px}
.bo_img_now .bo_img_text_href a {color:#ff3061}
.bo_img_href a:link,
.bo_img_href a:focus,
.bo_img_href a:hover {text-decoration:none}
.bo_img_href strong {display:block;width:174px;height:124px;background:#f7f7f7;text-align:center;line-height:10em}
.bo_img_text_href {margin:10px 0 !important}
.bo_img_text_href a {font-weight:bold}
.bo_img_text_href span {display:inline !important}
.bo_img_text_href img {margin:0 0 0 4px}
/* 게시판 목록 공통 */
.bo_fx {margin-bottom:5px;zoom:1}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx ul {margin:0;padding:0;list-style:none}
@ -514,8 +530,11 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
#bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd}
#bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden}
#bo_v_info {}
#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;font-weight:normal}
#bo_v_info .sv_member,
#bo_v_info .sv_guest,
#bo_v_info .member,
#bo_v_info .guest {font-weight:bold}
#bo_v_file {}
#bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden}

View File

@ -23,7 +23,7 @@ pre {overflow-x:scroll;font-size:1.1em}
/* 화면낭독기 사용자용 */
#hd_login_msg {position:absolute;top:0;left:0;width:0;height:0;overflow:hidden}
.sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
.sound_only {display:inline-block;margin:0 !important;padding:0 !important;width:0 !important;height:0 !important;font-size:0 !important;line-height:0 !important;overflow:hidden}
/* 본문 바로가기 */
#to_content a {z-index:100000;position:absolute;top:0;left:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
@ -420,6 +420,28 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei
#bo_list td:nth-of-type(2) {text-align:center}
/* 갤러리 목록 */
#bo_img h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
#bo_img_list {margin:1em 0 0;padding:0 1em;list-style:none;zoom:1}
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
.bo_img_list_li {float:left;margin:0 0 2em;width:25%}
.bo_img_con {margin:0;padding:0;list-style:none}
.bo_img_con li {margin:0 0 0.3em}
.bo_img_con .bo_img_subject {display:inline-block;width:50px}
.bo_img_now .bo_img_text_href a {color:#ff3061}
.bo_img_href a:link,
.bo_img_href a:focus,
.bo_img_href a:hover {text-decoration:none}
.bo_img_href strong {display:block;width:174px;height:124px;background:#f7f7f7;text-align:center;line-height:10em}
.bo_img_text_href {margin:1em 0 !important}
.bo_img_text_href a {color:#000;font-weight:bold;text-decoration:none}
.bo_img_text_href img {margin:0 0 0 0.3em}
/* 게시판 목록 공통 */
.bo_fx {margin-bottom:0.3em;padding:0.5em 1em;zoom:1}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
.bo_fx ul {margin:0;padding:0;list-style:none}

View File

@ -4,7 +4,21 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_MOBILE_PATH.'/_head.php');
?>
모바일용 게시판 그룹
<!-- 메인화면 최신글 시작 -->
<?
// 최신글
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest('basic', $row['bo_table'], 5, 70);
}
?>
<!-- 메인화면 최신글 끝 -->
<?
include_once(G4_MOBILE_PATH.'/_tail.php');

View File

@ -140,8 +140,8 @@ if ($is_nogood) $colspan++;
<option value="wr_name,1"<?=get_selected($sfl, 'wr_name,1');?>>글쓴이</option>
<option value="wr_name,0"<?=get_selected($sfl, 'wr_name,0');?>>글쓴이(코)</option>
</select>
<input name="stx" class="fs_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어(필수)">
<input type="submit" class="fs_submit" value="검색">
<input name="stx" class="required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어(필수)">
<input type="submit" value="검색">
</form>
</fieldset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

View File

@ -0,0 +1,247 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$g4['title']?></h1><?}?>
<div class="ad72890">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9955166939194057";
/* 써글728-1 */
google_ad_slot = "9632665464";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- 게시판 목록 시작 -->
<div id="bo_img" style="width:<?=$width;?>">
<? if ($is_category) { ?>
<form name="fcategory" id="fcategory" method="get">
<nav id="bo_cate">
<h2><?=$board['bo_subject']?> 카테고리</h2>
<ul id="bo_cate_ul">
<?=$category_option?>
</ul>
</nav>
</form>
<? } ?>
<div class="bo_fx">
<div id="bo_list_total">
<span>Total <?=number_format($total_count)?>건</span>
<?=$page?> 페이지
</div>
<? 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><? } ?>
</ul>
<? } ?>
</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="sw" value="">
<h2>이미지 목록</h2>
<ul id="bo_img_list">
<? for ($i=0; $i<count($list); $i++) {
if($i>0 && ($i % $board['bo_mobile_gallery_cols'] == 0))
$style = 'clear:both;';
else
$style = '';
if ($i == 0) $k = 0;
$k += 1;
if ($k % $board['bo_mobile_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]['subject']?> 선택"><? } ?>
<span class="sound_only">
<?
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>공지</strong>
<? } else { ?>
<?
$file = get_list_file($bo_table, $list[$i]['wr_id']);
$filepath = G4_DATA_PATH.'/file/'.$bo_table;
if(preg_match("/\.({$config['cf_image_extension']})$/i", $file['bf_file']) && is_file($filepath.'/'.$file['bf_file'])) {
$thumb = get_list_thumbnail($file['bf_file'], $filepath, $board['bo_9'], $board['bo_10']);
$imgsrc = G4_DATA_URL.'/file/'.$bo_table.'/'.$thumb;
} else {
$imgsrc = $board_skin_url.'/img/noimg.jpg';
}
?>
<img src="<?=$imgsrc?>" alt="<?=get_text($file['bf_content'])?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
<? } ?>
</a>
</li>
<li class="bo_img_text_href">
<?
// 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>
<?
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
//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><? } ?>
</ul>
</li>
<? } ?>
<? if (count($list) == 0) { echo "<li class=\"empty_list\">게시물이 없습니다.</li>"; } ?>
</ul>
<? 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) { ?>
<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>
<? } ?>
</ul>
<ul class="btn_bo_user">
<li><? if ($write_href) { ?><a href="<?=$write_href?>" class="btn_b02">글쓰기</a><? } ?></li>
</ul>
</div>
<? } ?>
</form>
</div>
<? if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<? } ?>
<!-- 페이지 -->
<? 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="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>
</select>
<input name="stx" value="<?=stripslashes($stx)?>" title="검색어(필수)" required class="required" size="15" maxlength="15">
<input type="submit" value="검색">
</form>
</fieldset>
<? if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function fboardlist_submit(f) {
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
return false;
}
if(document.pressed == "선택복사") {
select_copy("copy");
return;
}
if(document.pressed == "선택이동") {
select_copy("move");
return;
}
if(document.pressed == "선택삭제") {
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
return false;
}
return true;
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;
if (sw == 'copy')
str = "복사";
else
str = "이동";
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->

View File

@ -0,0 +1,221 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
<div id="bo_v" style="width:<?=$width;?>">
<p id="bo_v_cate">
<?=$board['bo_subject']?>
<? if ($category_name) { // 분류가 지정되었다면 ?><?=($category_name ? "{$view['ca_name']} " : "");?><? } // 분류 출력 끝 ?>
</p>
<h1 id="bo_v_h1"><?=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>
</section>
<?
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
$cnt++;
}
}
?>
<? if($cnt) { ?>
<section id="bo_v_file">
<h2>첨부파일</h2>
<ul>
<?
// 가변 파일
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']; ?>" onclick="javascript:file_download('<? echo $view['file'][$i]['href'].'&amp;confirm=yes'; ?>', '<?=$view['file'][$i]['source']?>'); return false;">
<img src="<?=$board_skin_url?>/img/icon_file.gif" alt="첨부파일">
<strong><?=$view['file'][$i]['source']?></strong>
<span> (<?=$view['file'][$i]['size']?>)</span>
</a>
<span class="bo_v_file_cnt"><?=$view['file'][$i]['download']?>회 다운로드</span>
<span>DATE : <?=$view['file'][$i]['datetime']?></span>
</li>
<?
}
}
?>
</ul>
</section>
<? } ?>
<?
if (implode('', $view['link'])) {
?>
<section id="bo_v_link">
<h2>관련링크</h2>
<ul>
<?
// 링크
$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>
<span class="bo_v_link_cnt"><?=$view['link_hit'][$i]?>회 연결</span>
</li>
<?
}
}
?>
</ul>
</section>
<? } ?>
<nav id="bo_v_top">
<h2>게시물 상단 버튼</h2>
<?
ob_start();
?>
<? 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><? } ?>
</ul>
<? } ?>
<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><? } ?>
</ul>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
</nav>
<article id="bo_v_atc">
<header>
<h1>본문</h1>
</header>
<?
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
//echo $view['file'][$i]['view'];
echo get_view_thumbnail($view['file'][$i]['view']);
}
}
echo "</div>\n";
}
?>
<div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
<? 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?>" target="hiddenframe" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" target="hiddenframe" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
</div>
<? } 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><? } ?>
</div>
<?
}
}
?>
</article>
<?
// 코멘트 입출력
include_once('./view_comment.php');
?>
<nav id="bo_v_bot">
<h2>게시물 하단 버튼</h2>
<!-- 링크 버튼 -->
<?=$link_buttons?>
</nav>
</div>
<script>
function file_download(link, file) {
<? if ($board['bo_download_point'] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
function board_move(href)
{
window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}
</script>
<!-- 게시글 보기 끝 -->
<script>
// 이미지 등비율 리사이징
$(window).load(function() {
view_image_resize();
});
$(function() {
$("a.view_image").click(function() {
window.open(this.href, "large_image", "top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
return false;
});
});
function view_image_resize()
{
var $img = $("#bo_v_atc img");
var img_wrap = $("#bo_v_atc").width();
$img.each(function() {
var img_width = $(this).width();
$(this).data("width", img_width); // 원래 이미지 사이즈
if (img_width > img_wrap) {
$(this).addClass("img_fix");
} else if (img_width <= img_wrap && img_width >= $(this).data("width")) {
$(this).removeClass("img_fix");
}
});
}
</script>

View File

@ -0,0 +1,292 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<script>
// 글자수 제한
var char_min = parseInt(<?=$comment_min?>); // 최소
var char_max = parseInt(<?=$comment_max?>); // 최대
</script>
<!-- 댓글 리스트 -->
<section id="bo_vc">
<h2>댓글목록</h2>
<?
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);
// FLASH XSS 공격에 의해 주석 처리 - 110406
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str);
?>
<article id="c_<?=$comment_id?>" <?if ($cmt_depth) {?>style="margin-left:<?=$cmt_depth?>px;border-top-color:#e0e0e0"<?}?>>
<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) { ?>
아이피
<span class="bo_vc_hdinfo"><?=$list[$i]['ip'];?></span>
<? } ?>
작성일
<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>
</header>
<!-- 댓글 출력 -->
<p>
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">";?>
<?=$str?>
</p>
<span id="edit_<?=$comment_id?>"></span><!-- 수정 -->
<span id="reply_<?=$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>
<? if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
$query_string = str_replace("&", "&amp;", $_SERVER['QUERY_STRING']);
if($w == 'cu') {
$sql = " select wr_id, wr_content from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
$cmt = sql_fetch($sql);
$c_wr_content = $cmt['wr_content'];
}
$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="comment_delete('<?=$list[$i]['del_link']?>'); return false;">삭제</a></li><? } ?>
</ul>
</footer>
<? } ?>
</article>
<?}?>
<? if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><? } ?>
</section>
<? 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="is_good" value="">
<table class="frm_tbl">
<tbody>
<? 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>
</tr>
<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" required class="frm_input required" size="10" maxLength="20"></td>
</tr>
<? } ?>
<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) { ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=$captcha_html;?></td>
</tr>
<? } ?>
<tr>
<th scope="row">내용</th>
<td>
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?}?>
<textarea name="wr_content" id="wr_content" 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><?}?>
</td>
</tr>
</tbody>
</table>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="댓글입력">
</div>
</form>
</aside>
<script>
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
function good_and_write()
{
var f = document.fviewcomment;
if (fviewcomment_submit(f)) {
f.is_good.value = 1;
f.submit();
} else {
f.is_good.value = 0;
}
}
function fviewcomment_submit(f)
{
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
f.is_good.value = 0;
/*
var s;
if (s = word_filter_check(document.getElementById('wr_content').value))
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
document.getElementById('wr_content').focus();
return false;
}
*/
var subject = "";
var content = "";
$.ajax({
url: g4_bbs_url+"/filter.ajax.php",
type: "POST",
data: {
"subject": "",
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
f.wr_content.focus();
return false;
}
// 양쪽 공백 없애기
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
if (char_min > 0 || char_max > 0)
{
check_byte('wr_content', 'char_count');
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("댓글는 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
} else if (char_max > 0 && char_max < cnt)
{
alert("댓글는 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
else if (!document.getElementById('wr_content').value)
{
alert("댓글를 입력하여 주십시오.");
return false;
}
if (typeof(f.wr_name) != 'undefined')
{
f.wr_name.value = f.wr_name.value.replace(pattern, "");
if (f.wr_name.value == '')
{
alert('이름이 입력되지 않았습니다.');
f.wr_name.focus();
return false;
}
}
if (typeof(f.wr_password) != 'undefined')
{
f.wr_password.value = f.wr_password.value.replace(pattern, "");
if (f.wr_password.value == '')
{
alert('패스워드가 입력되지 않았습니다.');
f.wr_password.focus();
return false;
}
}
<? if($is_guest) echo chk_captcha_js(); ?>
return true;
}
function comment_box(comment_id, work)
{
var el_id;
// 댓글 아이디가 넘어오면 답변, 수정
if (comment_id)
{
if (work == 'c')
el_id = 'reply_' + comment_id;
else
el_id = 'edit_' + comment_id;
}
else
el_id = 'bo_vc_w';
if (save_before != el_id)
{
if (save_before)
{
document.getElementById(save_before).style.display = 'none';
document.getElementById(save_before).innerHTML = '';
}
document.getElementById(el_id).style.display = '';
document.getElementById(el_id).innerHTML = save_html;
// 댓글 수정
if (work == 'cu')
{
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
if (typeof char_count != 'undefined')
check_byte('wr_content', 'char_count');
if (document.getElementById('secret_comment_'+comment_id).value)
document.getElementById('wr_secret').checked = true;
else
document.getElementById('wr_secret').checked = false;
}
document.getElementById('comment_id').value = comment_id;
document.getElementById('w').value = work;
save_before = el_id;
}
}
function comment_delete(url)
{
if (confirm("이 댓글를 삭제하시겠습니까?")) location.href = url;
}
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
</script>
<? } ?>

View File

@ -0,0 +1,234 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<h1 id="wrapper_title"><?=$g4['title']?></h1>
<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?>">
<?
$option = '';
$option_hidden = '';
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = '';
if ($is_notice) {
$option .= PHP_EOL.'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'.PHP_EOL.'<label for="notice">공지</label>';
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" value="html1" name="html">';
} else {
$option .= PHP_EOL.'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'.PHP_EOL.'<label for="html">html</label>';
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= PHP_EOL.'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'.PHP_EOL.'<label for="secret">비밀글</label>';
} else {
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
}
}
if ($is_mail) {
$option .= PHP_EOL.'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'.PHP_EOL.'<label for="mail">답변메일받기</label>';
}
}
echo $option_hidden;
?>
<table id="bo_w" class="frm_tbl">
<tbody>
<? 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>
</tr>
<? } ?>
<? 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" class="frm_input" maxlength="20" <?=$password_required?>></td>
</tr>
<? } ?>
<? 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>
</tr>
<? } ?>
<? 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>
</tr>
<? } ?>
<? if ($option) { ?>
<tr>
<th scope="row">옵션</th>
<td><?=$option?></td>
</tr>
<? } ?>
<? 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?>
</select>
</td>
</tr>
<? } ?>
<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>
</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>
</tr>
<? 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>
</tr>
<? } ?>
<? for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?=$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>
<? } ?>
</td>
</tr>
<?}?>
<? if ($is_guest) { //자동등록방지 ?>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?=$captcha_html?>
</td>
</tr>
<? } ?>
</tbody>
</table>
<div class="btn_confirm">
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
<a href="./board.php?bo_table=<?=$bo_table?>" class="btn_cancel">취소</a>
</div>
</form>
<script>
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo '
if (ca_name_select = document.getElementById("ca_name")) {
ca_name_select.options.length += 1;
ca_name_select.options[ca_name_select.options.length-1].value = "공지";
ca_name_select.options[ca_name_select.options.length-1].text = "공지";
}';
}
?>
with (document.fwrite)
{
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u") {
ca_name.value = "<?=isset($write['ca_name'])?$write['ca_name']:'';?>";
}
}
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
<? echo get_editor_js('wr_content', $is_dhtml_editor); ?>
<? echo chk_editor_js('wr_content', $is_dhtml_editor); ?>
var subject = "";
var content = "";
$.ajax({
url: g4_bbs_url+"/filter.ajax.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}
<? if ($is_guest) { echo chk_captcha_js(); } ?>
return true;
}
</script>

View File

@ -17,7 +17,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<fieldset>
회원아이디
<span id="mb_confirm_id"><?=$member[mb_id]?></span>
<input type="password" id="mb_confirm_pw" name="mb_password" class="fs_input" maxLength="20" size="15" required placeholder="패스워드(필수)" title="패스워드(필수)">
<input type="password" id="mb_confirm_pw" name="mb_password" class="frm_input" maxLength="20" size="15" required placeholder="패스워드(필수)" title="패스워드(필수)">
<input type="submit" id="btn_submit" class="btn_submit" value="확인">
</fieldset>

View File

@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</p>
<div class="btn_win">
<input type="submit" class="btn_submit" value="스크랩">
<input type="submit" class="btn_submit" value="스크랩 확인">
</div>
</form>
</div>

View File

@ -12,8 +12,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<option value="w">원글만
<option value="c">코멘트만
</select>
<input type="text" id="mb_id" name="mb_id" class="fs_input" value="<?=$mb_id?>" title="검색어(필수)">
<input type="submit" class="fs_submit" value="검색">
<input type="text" id="mb_id" name="mb_id" class="required" required value="<?=$mb_id?>" title="검색어(필수)">
<input type="submit" value="검색">
</form>
<script>
function select_change()

View File

@ -211,7 +211,7 @@ function fboardlist_submit(f) {
function select_copy(sw) {
var f = document.fboardlist;
if (sw == 'copy')
if (sw == "copy")
str = "복사";
else
str = "이동";

View File

@ -5,6 +5,20 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$g4['title']?></h1><?}?>
<div class="ad72890">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9955166939194057";
/* 써글728-1 */
google_ad_slot = "9632665464";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- 게시판 목록 시작 -->
<div id="bo_img" style="width:<?=$width;?>">
@ -47,11 +61,14 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<ul id="bo_img_list">
<? for ($i=0; $i<count($list); $i++) {
if($i>0 && ($i % $board['bo_gallery_cols'] == 0))
$style = 'style="clear:both;"';
$style = 'clear:both;';
else
$style = '';
if ($i == 0) $k = 0;
$k += 1;
if ($k % $board['bo_gallery_cols'] == 0) $style .= "margin:0 !important;";
?>
<li class="bo_img_list_li <? // 현재 읽고 있는 글이면, ?>bo_img_now" <?=$style?>>
<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]['subject']?> 선택"><? } ?>
<span class="sound_only">
<?
@ -62,12 +79,12 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
?>
</span>
<ul class="bo_img_con">
<li>
<? if ($list[$i]['is_notice']) { // 공지사항 ?><strong>공지</strong>
<li class="bo_img_href">
<a href="<?=$list[$i]['href']?>">
<? if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong>공지</strong>
<? } else { ?>
<?
// 파일 설명이 있을 경우 alt까지 출력해주세요.
// 이미지 사이즈는 어떻게 정해야 할까요?
$file = get_list_file($bo_table, $list[$i]['wr_id']);
$filepath = G4_DATA_PATH.'/file/'.$bo_table;
@ -77,14 +94,12 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
} else {
$imgsrc = $board_skin_url.'/img/noimg.jpg';
}
$imgalt = $file['bf_content'] ? get_text($file['bf_content']) : $list[$i]['subject'];
?>
<a href="<?=$list[$i]['href']?>">
<img src="<?=$imgsrc?>" alt="<?=$imgalt?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
</a>
<img src="<?=$imgsrc?>" alt="<?=get_text($file['bf_content'])?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
<? } ?>
</a>
</li>
<li>
<li class="bo_img_text_href">
<?
// echo $list[$i]['icon_reply']; 갤러리는 reply 를 사용 안 할 것 같습니다. - 지운아빠 2013-03-04
if ($is_category && $list[$i]['ca_name']) {
@ -101,18 +116,16 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
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'];
//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="sound_only">작성자 </span><?=$list[$i]['name']?></li>
<li><span class="sound_only">작성일 </span><?=$list[$i]['datetime2']?></li>
<li><span class="sound_only">조회 </span><?=$list[$i]['wr_hit']?></li>
<li>
<span>추천<strong><?=$list[$i]['wr_good']?></strong></span>
<span>비추천<strong><?=$list[$i]['wr_nogood']?></strong></span>
</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><? } ?>
</ul>
</li>
<? } ?>

View File

@ -10,9 +10,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<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="fs_input required" size="20" maxLength="20">
<input type="text" name="mb_id" id="login_id" required class="frm_input required" size="20" maxLength="20">
<label for="login_pw" class="login_pw">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" name="mb_password" id="login_pw" required class="fs_input required" size="20" maxLength="20">
<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>

View File

@ -21,7 +21,7 @@ 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']?>" class="frm_input minlength_3 <?=$required?> <?=$readonly?>" id="reg_mb_id" maxlength="20" <?=$required?> <?=$readonly?>>
<input type="text" name="mb_id" value="<?=$member['mb_id']?>" id="reg_mb_id" class="frm_input minlength_3 <?=$required?> <?=$readonly?>"maxlength="20" <?=$required?> <?=$readonly?>>
<span id="msg_mb_id"></span>
</td>
</tr>

View File

@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</p>
<div class="btn_win">
<input type="submit" value="스크랩" class="btn_submit">
<input type="submit" value="스크랩 확인" class="btn_submit">
</div>
</form>
</div>

View File

@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="formmail" class="new_win">
<h1><?=$name?>님께 메일보내기</h1>
<form name="fformmail" method="post" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
@ -19,36 +19,36 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? if (!$is_member) { ?>
<tr>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fnick" name="fnick" class="frm_input required" required></td>
<td><input type="text" id="fnick" name="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" id="fmail" name="fmail" class="frm_input required" required></td>
<td><input type="text" id="fmail" name="fmail" required class="frm_input required"></td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type=text id="subject" name="subject" class="frm_input required" required></td>
<td><input type="text" id="subject" name="subject" required class="frm_input required"></td>
</tr>
<tr>
<th scope="row">형식</th>
<td>
<input type="radio" id="type_text" name="type" value="0" checked> <label for="type_text">TEXT</label>
<input type="radio" id="type_html" name="type" value="1" > <label for="type_html">HTML</label>
<input type="radio" id="type_both" name="type" value="2" > <label for="type_both">TEXT+HTML</label>
<input type="radio" name="type" value="0" id="type_text" checked> <label for="type_text">TEXT</label>
<input type="radio" name="type" value="1" id="type_html"> <label for="type_html">HTML</label>
<input type="radio" name="type" value="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 id="content" name="content" class="required" required></textarea></td>
<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" id="file1" name="file1" class="frm_input"></td>
<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" id="file2" name="file2" class="frm_input"></td>
<td><input type="file" name="file2" id="file2" class="frm_input"></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
@ -58,7 +58,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</table>
<div class="btn_win">
<input type="submit" id="btn_submit" class="btn_submit" value="메일발송">
<input type="submit" value="메일발송" id="btn_submit" class="btn_submit">
<a href="javascript:window.close();">창닫기</a>
</div>

View File

@ -5,16 +5,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="mb_login">
<h1><?=$g4['title']?></h1>
<form name="flogin" method="post" action="<?=$login_action_url?>" onsubmit="return flogin_submit(this);">
<form name="flogin" action="<?=$login_action_url?>" onsubmit="return flogin_submit(this);" method="post">
<input type="hidden" name="url" value='<?=$login_url?>'>
<fieldset class="cbg">
<label for="login_id" class="login_id">회원아이디<strong class="sound_only">필수</strong></label>
<input type="text" id="login_id" name="mb_id" class="fs_input" maxLength="20" size="20" required>
<input type="text" name="mb_id" id="login_id" required class="fs_input" size="20" maxLength="20">
<label for="login_pw" class="login_pw">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="login_pw" class="fs_input" name="mb_password" maxLength="20" size="20" required>
<input type="submit" class="btn_submit" value="로그인">
<input type="checkbox" id="login_auto_login" name="auto_login">
<input type="password" name="mb_password" id="login_pw" required class="fs_input" 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>
@ -25,7 +25,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
아직 회원이 아니시라면 회원으로 가입 후 이용해 주십시오.
</p>
<div>
<a href="<?=G4_BBS_URL?>/password_lost.php" id="login_password_lost" class="btn02" target="win_password_lost">아이디 패스워드 찾기</a>
<a href="<?=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>

View File

@ -10,17 +10,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
회원님의 정보를 안전하게 보호하기 위해 패스워드를 한번 더 확인합니다.
</p>
<form name="fmemberconfirm" method="post" onsubmit="return fmemberconfirm_submit(this);">
<input type=hidden name="mb_id" value="<?=$member[mb_id]?>">
<input type=hidden name="w" value="u">
<form name="fmemberconfirm" onsubmit="return fmemberconfirm_submit(this);" method="post">
<input type="hidden" name="mb_id" value="<?=$member[mb_id]?>">
<input type="hidden" name="w" value="u">
<fieldset>
회원아이디
<span id="mb_confirm_id"><?=$member[mb_id]?></span>
<label for="confirm_mb_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="confirm_mb_password" name="mb_password" class="fs_input" maxLength="20" size="15" required>
<input type="submit" id="btn_submit" class="fs_submit" value="확인">
<input type="password" name="mb_password" id="confirm_mb_password" required class="fs_input" size="15" maxLength="20">
<input type="submit" value="확인" id="btn_submit" class="fs_submit">
</fieldset>
</form>

View File

@ -12,20 +12,20 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</ul>
<div class="cbox">
<form name="fmemoform" method="post" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);" autocomplete="off">
<form name="fmemoform" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);"method="post" autocomplete="off">
<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" id="me_recv_mb_id" name="me_recv_mb_id" class="frm_input required" size="47" required value="<?=$me_recv_mb_id?>">
<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">
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
</td>
</tr>
<tr>
<th scope="row"><label for="me_memo">내용</label></th>
<td><textarea id="me_memo" name="me_memo" required><?=$content?></textarea></td>
<td><textarea name="me_memo" id="me_memo" required><?=$content?></textarea></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
@ -38,7 +38,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
<div class="btn_win">
<input type="submit" id="btn_submit" class="btn_submit" value="보내기">
<input type="submit" value="보내기" id="btn_submit" class="btn_submit">
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</form>

View File

@ -22,7 +22,7 @@ else $g4['title'] = $g4['title'];
<? } ?>
</p>
<form name="fboardpassword" method="post" action="<? echo $action; ?>">
<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?>">
@ -33,7 +33,7 @@ else $g4['title'] = $g4['title'];
<fieldset>
<label for="password_wr_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="password_wr_password" name="wr_password" class="fs_input required" maxLength="20" size="15" required>
<input type="password" name="wr_password" id="password_wr_password" required class="fs_input required" size="15" maxLength="20">
<input type="submit" class="fs_submit" value="확인">
</fieldset>
</form>

View File

@ -8,7 +8,7 @@ if((int)get_cookie('ck_passwordlost_count') > 2)
<div id="find_info" class="new_win">
<h1>아이디/패스워드 찾기</h1>
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
<form name="fpasswordlost" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
<input type="hidden" name="kcpcert_no" value="">
<input type="hidden" name="kcpcert_time" value="">
<fieldset id="find_info_fs">
@ -16,9 +16,9 @@ if((int)get_cookie('ck_passwordlost_count') > 2)
회원가입 시 등록하신 이름과 핸드폰번호를 입력해 주세요.
</p>
<label for="mb_name">이름<strong class="sound_only">필수</strong></label>
<input type="text" id="mb_name" name="mb_name" class="fs_input hangul nospace required" required size="30">
<input type="text" name="mb_name" id="mb_name" required class="fs_input hangul nospace required" size="30">
<label for="mb_hp">핸드폰번호<strong class="sound_only">필수</strong></label>
<input type="text" id="mb_hp" name="mb_hp" class="fs_input required" maxlength="20" required size="30">
<input type="text" name="mb_hp" id="mb_hp" required class="fs_input required" size="30" maxlength="20">
<button type="button" id="win_kcpcert">휴대폰인증</button>
<noscript>휴대폰인증을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
</fieldset>

View File

@ -68,7 +68,7 @@ include_once(G4_PATH.'/head.sub.php');
<div id="find_info" class="new_win">
<h1>아이디/패스워드 찾기</h1>
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
<form name="fpasswordlost" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" method="post" autocomplete="off">
<fieldset id="find_info_fs">
<p>
회원님의 아이디와 변경된 패스워드입니다.<br>

View File

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

View File

@ -4,7 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script src="<?=G4_JS_URL?>/jquery.register_form.js"></script>
<form id="fregisterform" name="fregisterform" method="post" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
<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?>">
@ -20,18 +20,18 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" id="reg_mb_id" name="mb_id" class="frm_input minlength_3 <?=$required?> <?=$readonly?>" value="<?=$member['mb_id']?>" maxlength="20" <?=$required?> <?=$readonly?>>
<input type="text" name="mb_id" value="<?=$member['mb_id']?>" id="reg_mb_id" class="frm_input minlength_3 <?=$required?> <?=$readonly?>" maxlength="20" <?=$required?> <?=$readonly?>>
<span id="msg_mb_id"></span>
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
</td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
<td><input type="password" name="mb_password" id="reg_mb_password" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인<strong class="sound_only">필수</strong></label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
<td><input type="password" name="mb_password_re" id="reg_mb_password_re" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
</table>
@ -40,7 +40,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
<td>
<input id="reg_mb_name" name="mb_name" class="frm_input hangul nospace <?=$required?> <?=$readonly?>" value="<?=$member['mb_name']?>" size="10" <?=$required?> <?=$readonly?>>
<input name="mb_name" value="<?=$member['mb_name']?>" id="reg_mb_name" class="frm_input hangul nospace <?=$required?> <?=$readonly?>" size="10" <?=$required?> <?=$readonly?>>
<? if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } ?>
</td>
</tr>
@ -49,7 +49,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<th scope="row"><label for="reg_mb_nick">별명<strong class="sound_only">필수</strong></label></th>
<td>
<input type="hidden" name="mb_nick_default" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>">
<input type="text" id="reg_mb_nick" name="mb_nick" class="frm_input required nospace" maxlength="20" size="10" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" required>
<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" >
<span id="msg_mb_nick"></span>
<span class="frm_info">
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
@ -63,7 +63,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<th scope="row"><label for="reg_mb_email">E-mail<? if ($config['cf_use_email_certify']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<td>
<input type="hidden" name="old_email" value="<?=$member['mb_email']?>">
<input type="text" id="reg_mb_email" name="mb_email" class="frm_input email <?=$config['cf_use_email_certify']?"required":"";?>" maxlength="100" size="50" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' <?=$config['cf_use_email_certify']?"required":"";?>>
<input type="text" name="mb_email" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' <?=$config['cf_use_email_certify']?"required":"";?> id="reg_mb_email" class="frm_input email <?=$config['cf_use_email_certify']?"required":"";?>" size="50" maxlength="100">
<? if ($config['cf_use_email_certify']) { ?>
<span class="frm_info">
<? if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
@ -76,14 +76,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? 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" id="reg_mb_homepage" name="mb_homepage" class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" maxlength="255" size="50" <?=$config['cf_req_homepage']?"required":"";?> value="<?=$member['mb_homepage']?>"></td>
<td><input type="text" name="mb_homepage" value="<?=$member['mb_homepage']?>" id="reg_mb_homepage" class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" size="50" maxlength="255"<?=$config['cf_req_homepage']?"required":"";?>></td>
</tr>
<? } ?>
<? 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" id="reg_mb_tel" name="mb_tel" class="frm_input <?=$config['cf_req_tel']?"required":"";?>" maxlength="20" <?=$config['cf_req_tel']?"required":"";?> value="<?=$member['mb_tel']?>"></td>
<td><input type="text" name="mb_tel" value="<?=$member['mb_tel']?>" id="reg_mb_tel" class="frm_input <?=$config['cf_req_tel']?"required":"";?>" maxlength="20" <?=$config['cf_req_tel']?"required":"";?>></td>
</tr>
<? } ?>
@ -93,7 +93,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<input type="hidden" name="kcpcert_no" value="">
<input type="hidden" name="kcpcert_time" value="<?=$member['mb_hp_certify']?>">
<input type="hidden" name="old_mb_hp" value="<?=$member['mb_hp']?>">
<input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input required" maxlength="20" required value="<?=$member['mb_hp']?>">
<input type="text" name="mb_hp" value="<?=$member['mb_hp']?>" id="reg_mb_hp" required class="frm_input required" maxlength="20">
<button type="button" id="win_kcpcert">휴대폰인증</button>
<noscript>휴대폰인증을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>
</td>
@ -108,12 +108,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? if ($config['cf_req_addr']) {?><strong class="sound_only">필수</strong><? } ?>
</th>
<td>
<input type="text" id="reg_mb_zip1" name="mb_zip1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip1']?>" title="우편번호 앞자리">
<input type="text" name="mb_zip1"value="<?=$member['mb_zip1']?>" id="reg_mb_zip1" title="우편번호 앞자리" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?> >
-
<input type="text" id="reg_mb_zip2" name="mb_zip2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip2']?>" title="우편번호 뒷자리">
<a href="<? echo $zip_href; ?>" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">주소찾기</a>
<input type="text" id="reg_mb_addr1" name="mb_addr1" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr1']?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr2']?>" title="상세주소">
<input type="text" name="mb_zip2" value="<?=$member['mb_zip2']?>" id="reg_mb_zip2" title="우편번호 뒷자리" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?>>
<a href="<? echo $zip_href; ?>" target="_blank" id="reg_zip_find" class="btn_frmline win_zip_find">주소찾기</a>
<input type="text" name="mb_addr1" value="<?=$member['mb_addr1']?>" id="reg_mb_addr1" title="행정구역주소" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?>>
<input type="text" name="mb_addr2" value="<?=$member['mb_addr2']?>" id="reg_mb_addr2" title="상세주소" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?>>
</td>
</tr>
<? } ?>
@ -124,14 +124,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? 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 id="reg_mb_signature" name="mb_signature" class="<?=$config['cf_req_signature']?"required":"";?>" <?=$config['cf_req_signature']?"required":"";?>><?=$member['mb_signature']?></textarea></td>
<td><textarea name="mb_signature" id="reg_mb_signature" class="<?=$config['cf_req_signature']?"required":"";?>" <?=$config['cf_req_signature']?"required":"";?>><?=$member['mb_signature']?></textarea></td>
</tr>
<? } ?>
<? if ($config['cf_use_profile']) { ?>
<tr>
<th scope="row"><label for="reg_mb_profile">자기소개</label></th>
<td><textarea id="reg_mb_profile" name="mb_profile" class="<?=$config['cf_req_profile']?"required":"";?>" <?=$config['cf_req_profile']?"required":"";?>><?=$member['mb_profile']?></textarea></td>
<td><textarea name="mb_profile" id="reg_mb_profile" class="<?=$config['cf_req_profile']?"required":"";?>" <?=$config['cf_req_profile']?"required":"";?>><?=$member['mb_profile']?></textarea></td>
</tr>
<? } ?>
@ -139,9 +139,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_icon">회원아이콘</label></th>
<td>
<input type="file" id="reg_mb_icon" name="mb_icon" class="frm_input">
<input type="file" name="mb_icon" id="reg_mb_icon" class="frm_input">
<? if ($w == 'u' && file_exists($mb_icon)) { ?>
<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">
<input type="checkbox" name="del_mb_icon" value="1" id="del_mb_icon">
<label for="del_mb_icon">삭제</label>
<? } ?>
<span class="frm_info">
@ -155,7 +155,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_mailling">메일링서비스</label></th>
<td>
<input type="checkbox" id="reg_mb_mailling" name="mb_mailling" value="1" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>
<input type="checkbox" name="mb_mailling" value="1" id="reg_mb_mailling" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>
정보 메일을 받겠습니다.
</td>
</tr>
@ -164,7 +164,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<tr>
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
<td>
<input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
<input type="checkbox" name="mb_sms" value="1" id="reg_mb_sms" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
핸드폰 문자메세지를 받겠습니다.
</td>
</tr>
@ -175,7 +175,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<th scope="row"><label for="reg_mb_open">정보공개</label></th>
<td>
<input type="hidden" name="mb_open_default" value="<?=$member['mb_open']?>">
<input type="checkbox" id="reg_mb_open" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?>>
<input type="checkbox" name="mb_open" value="1" id="reg_mb_open" <?=($w=='' || $member['mb_open'])?'checked':'';?>>
다른분들이 나의 정보를 볼 수 있도록 합니다.
<span class="frm_info">
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
@ -198,7 +198,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<? if ($w == "" && $config['cf_use_recommend']) { ?>
<tr>
<th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th>
<td><input type="text" id="reg_mb_recommend" name="mb_recommend" class="frm_input"></td>
<td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input"></td>
</tr>
<? } ?>
@ -209,7 +209,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</table>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="<?=$w==''?'회원가입':'정보수정';?>" accesskey="s">
<input type="submit" value="<?=$w==''?'회원가입':'정보수정';?>" class="btn_submit" accesskey="s">
<a href="<?=$g4['path']?>/" class="btn_cancel">취소</a>
</div>
</form>

View File

@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<div id="scrap_do" class="new_win">
<h1>스크랩하기</h1>
<form name="f_scrap_popin" method="post" action="./scrap_popin_update.php">
<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?>">
@ -18,7 +18,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="wr_content">댓글</label></th>
<td><textarea id="wr_content" name="wr_content"></textarea></td>
<td><textarea name="wr_content" id="wr_content"></textarea></td>
</tr>
</tbody>
</table>
@ -28,7 +28,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</p>
<div class="btn_win">
<input type="submit" class="btn_submit" value="스크랩">
<input type="submit" value="스크랩" class="btn_submit">
</div>
</form>
</div>

View File

@ -6,16 +6,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<h1><?=$g4['title']?></h1>
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
<fieldset>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" class="fs_input" value="<?=$addr1?>" required minlength=2>
<input type="submit" class="fs_submit" value="검색">
<input type="text" name="addr1" value="<?=$addr1?>" id="addr1" required class="fs_input" minlength="2">
<input type="submit" value="검색" class="fs_submit">
</fieldset>
<!-- 검색결과 여기서부터 -->

View File

@ -7,13 +7,13 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<legend>상세검색</legend>
<form name="fnew" method="get">
<?=$group_select?>
<select id="view" name="view" onchange="select_change()" title="검색종류">
<select name="view" id="view" title="검색종류" onchange="select_change()">
<option value="">전체게시물
<option value="w">원글만
<option value="c">코멘트만
</select>
<input type="text" id="mb_id" name="mb_id" class="fs_input" value="<?=$mb_id?>" title="검색어(필수)">
<input type="submit" class="fs_submit" value="검색">
<input type="text" name="mb_id" value="<?=$mb_id?>" id="mb_id" title="검색어(필수)" class="fs_input">
<input type="submit" value="검색" class="fs_submit">
</form>
<script>
function select_change()

View File

@ -5,18 +5,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<section id="ol_before" class="ol">
<h2>회원로그인</h2>
<!-- 로그인 전 외부로그인 시작 -->
<form name="foutlogin" method="post" action="<?=$outlogin_action_url?>" onsubmit="return fhead_submit(this);" autocomplete="off">
<form name="foutlogin" action="<?=$outlogin_action_url?>" onsubmit="return fhead_submit(this);" method="post" autocomplete="off">
<fieldset>
<input type="hidden" name="url" value="<?=$outlogin_url?>">
<label for="ol_id" id="ol_idlabel">회원아이디<strong class="sound_only">필수</strong></label>
<input type="text" id="ol_id" name="mb_id" class="required" maxlength="20" required>
<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" id="ol_pw" name="mb_password" class="required" maxlength="20" required>
<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>
<input type="checkbox" id="auto_login" name="auto_login" value="1">
<input type="checkbox" name="auto_login" value="1" id="auto_login">
<label for="auto_login" id="auto_login_label">자동로그인</label>
</div>
</fieldset>

View File

@ -11,19 +11,19 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</header>
<ul id="ol_after_private">
<li>
<a href="<?=G4_BBS_URL?>/memo.php" id="ol_after_memo" class="win_memo" target="_blank">
<a href="<?=G4_BBS_URL?>/memo.php" target="_blank" id="ol_after_memo" class="win_memo">
<span class="sound_only">안 읽은 </span>쪽지
<strong><?=$memo_not_read?></strong>
</a>
</li>
<li>
<a href="<?=G4_BBS_URL?>/point.php" id="ol_after_pt" class="win_point" target="_blank">
<a href="<?=G4_BBS_URL?>/point.php" target="_blank" id="ol_after_pt" class="win_point">
포인트
<strong><?=$point?></strong>
</a>
</li>
<li>
<a href="<?=G4_BBS_URL?>/scrap.php" id="ol_after_scrap" class="win_scrap" target="_blank">스크랩</a>
<a href="<?=G4_BBS_URL?>/scrap.php" target="_blank" id="ol_after_scrap" class="win_scrap">스크랩</a>
</li>
</ul>
<footer id="ol_after_ft">

View File

@ -13,7 +13,7 @@ if (!$po_id) {
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' ");
?>
<form name="fpoll" method="post" action="<?=G4_BBS_URL?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="win_poll">
<form name="fpoll" action="<?=G4_BBS_URL?>/poll_update.php" onsubmit="return fpoll_submit(this);" target="win_poll" method="post">
<input type="hidden" name="po_id" value="<?=$po_id?>">
<input type="hidden" name="skin_dir" value="<?=$skin_dir?>">
<section id="poll">

View File

@ -50,7 +50,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
<? if ($member['mb_level'] >= $po['po_level']) { ?>
<form name="fpollresult" method="post" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" autocomplete="off">
<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="w" value="">
<input type=hidden name="skin_dir" value="<?=$skin_dir?>">
@ -61,12 +61,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? if ($is_guest) { ?>
<tr>
<th scope="row"><label for="pc_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="pc_name" name="pc_name" class="frm_input required" size="10" required></td>
<td><input type="text" name="pc_name" id="pc_name" required class="frm_input required" size="10"></td>
</tr>
<? } ?>
<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" class="frm_input required" size="47" required maxlength="100"></td>
<td><input type="text" id="pc_idea" name="pc_idea" required class="frm_input required" size="47" maxlength="100"></td>
</tr>
<? if ($is_guest) { ?>
<tr>

View File

@ -2,7 +2,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<form name="fsearch" method="get" onsubmit="return fsearch_submit(this);">
<form name="fsearch" onsubmit="return fsearch_submit(this);" method="get">
<input type="hidden" name="srows" value="<?=$srows?>">
<fieldset id="sch_result_detail">
<legend class="sound_only">상세검색</legend>
@ -17,7 +17,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<option value="wr_name"<?=get_selected($_GET['sfl'], "wr_name")?>>이름</option>
</select>
<input type="text" name="stx" class="fs_input" class="required" value="<?=$text_stx?>" maxlength="20" required title="검색어(필수)">
<input type="text" name="stx" value="<?=$text_stx?>" title="검색어(필수)" class="fs_input" required class="required" maxlength="20">
<input type="submit" class="fs_submit" value="검색">
<script>
@ -48,9 +48,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
return true;
}
</script>
<input type="radio" id="sop_or" name="sop" value="or" <?=($sop == "or") ? "checked" : "";?>>
<input type="radio" value="or" <?=($sop == "or") ? "checked" : "";?> id="sop_or" name="sop">
<label for="sop_or">OR</label>
<input type="radio" id="sop_and" name="sop" value="and" <?=($sop == "and") ? "checked" : "";?>>
<input type="radio" value="and" <?=($sop == "and") ? "checked" : "";?> id="sop_and" name="sop">
<label for="sop_and">AND</label>
</fieldset>
</form>