Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -11,26 +11,26 @@ if ($is_nogood) $colspan++;
|
||||
|
||||
<? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?>
|
||||
|
||||
<? if ($admin_href) { ?><div id="bo_admin_btn"><a href="<?=$admin_href?>">관리자 바로가기</a></div><?}?>
|
||||
<? if ($admin_href) { ?><div id="btn_board_adm"><a href="<?=$admin_href?>">게시판 관리자 바로가기</a></div><?}?>
|
||||
|
||||
<div>
|
||||
<? if ($is_category) { ?>
|
||||
<form name="fcategory" method="get">
|
||||
<div class="btn_board">
|
||||
<fieldset id="board_search">
|
||||
<legend>게시물 분류 및 검색</legend>
|
||||
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
<select name="sca" onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
</form>
|
||||
<? } ?>
|
||||
</form>
|
||||
<? } ?>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<fieldset>
|
||||
<legend>게시물 검색</legend>
|
||||
<span>Total <?=number_format($total_count)?>건 중</span>
|
||||
<label for="sfl">검색대상</label>
|
||||
<select id="sfl" name="sfl">
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<span>Total <?=number_format($total_count)?>건</span>
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
@ -39,23 +39,23 @@ if ($is_nogood) $colspan++;
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input id="stx" name="stx" maxlength="15" required value="<?=stripslashes($stx)?>">
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="radio" id="sop_and" name="sop" value="and">
|
||||
<label for="sop_and">and</label>
|
||||
<input type="radio" id="sop_or" name="sop" value="or">
|
||||
<label for="sop_or">or</label>
|
||||
<input type="submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
|
||||
<? if ($rss_href || $write_href) {?>
|
||||
<ul>
|
||||
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>">RSS</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
</fieldset>
|
||||
|
||||
<? if ($rss_href || $write_href) {?>
|
||||
<ul class="btn_board_user">
|
||||
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn02">RSS</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<form id="fboardlist" name="fboardlist" method="post">
|
||||
@ -65,7 +65,7 @@ if ($is_nogood) $colspan++;
|
||||
<input type="hidden" name="spt" value="<?=$spt?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
<table>
|
||||
<table id="board_list">
|
||||
<caption><?=$board['bo_subject']?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -83,8 +83,8 @@ if ($is_nogood) $colspan++;
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<tr<? if ($list[$i]['is_notice']) echo " class=\"board_notice\"";?>>
|
||||
<td class="td_bignum">
|
||||
<?
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo '공지';
|
||||
@ -95,22 +95,22 @@ for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
</td>
|
||||
<? if ($is_checkbox) { ?><td><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="이 게시물 선택"></td><? } ?>
|
||||
<td>
|
||||
<td class="td_subject">
|
||||
<?
|
||||
echo $list[$i]['reply'];
|
||||
echo $list[$i]['icon_reply'];
|
||||
if ($is_category && $list[$i]['ca_name']) {
|
||||
echo '<a href="'.$list[$i]['ca_name_href'].'">'.$list[$i]['ca_name'].'</a>';
|
||||
}
|
||||
?>
|
||||
<a href="'.$list[$i]['ca_name_href'].'" class="board_cate_link"><?=$list[$i]['ca_name']?></a>
|
||||
<? } ?>
|
||||
|
||||
if ($list[$i]['is_notice'])
|
||||
echo '<a href="'.$list[$i]['href'].'">'.$list[$i]['subject'].'</a>';
|
||||
else
|
||||
echo '<a href="'.$list[$i]['href'].'">'.$list[$i]['subject'].'</a>';
|
||||
<a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?>
|
||||
|
||||
if ($list[$i]['comment_cnt'])
|
||||
echo '<a href="'.$list[$i]['comment_href'].'">'.$list[$i]['comment_cnt'].'</a>';
|
||||
<? if ($list[$i]['comment_cnt']) { ?><?=$list[$i]['comment_cnt'];?><? } ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
|
||||
@ -121,11 +121,11 @@ for ($i=0; $i<count($list); $i++) {
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
?>
|
||||
</td>
|
||||
<td><div style="position:relative"><?=$list[$i]['name']?></div></td>
|
||||
<td><?=$list[$i]['datetime2']?></td>
|
||||
<td><?=$list[$i]['wr_hit']?></td>
|
||||
<? if ($is_good) { ?><td><?=$list[$i]['wr_good']?></td><? } ?>
|
||||
<? if ($is_nogood) { ?><td><?=$list[$i]['wr_nogood']?></td><? } ?>
|
||||
<td class="td_name"><div><?=$list[$i]['name']?></div></td>
|
||||
<td class="td_date"><?=$list[$i]['datetime2']?></td>
|
||||
<td class="td_num"><?=$list[$i]['wr_hit']?></td>
|
||||
<? if ($is_good) { ?><td class="td_num"><?=$list[$i]['wr_good']?></td><? } ?>
|
||||
<? if ($is_nogood) { ?><td class="td_num"><?=$list[$i]['wr_nogood']?></td><? } ?>
|
||||
</tr>
|
||||
<?}?>
|
||||
<? if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
|
||||
@ -133,25 +133,25 @@ for ($i=0; $i<count($list); $i++) {
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<div class="btn_board">
|
||||
<ul class="btn_board_adm">
|
||||
<? if ($list_href) { ?>
|
||||
<li><a href="<?=$list_href?>">목록</a></li>
|
||||
<? } ?>
|
||||
<? if ($is_checkbox) { ?>
|
||||
<li><a href="javascript:select_delete();">선택삭제</a></li>
|
||||
<li><a href="javascript:select_copy('copy');">선택복사</a></li>
|
||||
<li><a href="javascript:select_copy('move');">선택이동</a></li>
|
||||
<li><a href="javascript:select_delete();" class="btn03">선택삭제</a></li>
|
||||
<li><a href="javascript:select_copy('copy');" class="btn03">선택복사</a></li>
|
||||
<li><a href="javascript:select_copy('move');" class="btn03">선택이동</a></li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li><? if ($write_href) { ?><a href="<?=$write_href?>">글쓰기</a><? } ?></li>
|
||||
<ul class="btn_board_user">
|
||||
<li><? if ($write_href) { ?><a href="<?=$write_href?>" class="btn01">글쓰기</a><? } ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<div id="pg">
|
||||
<div class="pg">
|
||||
<? if ($prev_part_href) { echo '<a href="'.$prev_part_href.'">이전검색</a>'; } ?>
|
||||
<?=$write_pages?>
|
||||
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
||||
|
||||
@ -8,6 +8,8 @@ var char_min = parseInt(<?=$write_min?>); // 최소
|
||||
var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
</script>
|
||||
|
||||
<h1><?=$g4['title']?></h1>
|
||||
|
||||
<form id="fwrite" name="fwrite" method="post" action="<?=$action_url?>" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?=$w?>">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
@ -20,34 +22,34 @@ var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
|
||||
<table>
|
||||
<table id="board_write" class="frm_tbl">
|
||||
<caption><?=$board['bo_subject']?> <?=$title_msg?></caption>
|
||||
<tbody>
|
||||
<? if ($is_name) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_name">이름</label></th>
|
||||
<td><input type="text" id="wr_name" name="wr_name" maxlength="20" class="required" required="required" value="<?=$name?>" title="이름"></td>
|
||||
<td><input type="text" id="wr_name" name="wr_name" class="frm_input required" size="10" maxlength="20" required value="<?=$name?>"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_password) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_password">패스워드</label></th>
|
||||
<td><input type="password" id="wr_password" name="wr_password" maxlength="20" <?=$password_required?> title="패스워드"></td>
|
||||
<td><input type="password" id="wr_password" name="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" id="wr_email" name="wr_email" class="email" value="<?=$email?>" title="이메일" maxlength="100"></td>
|
||||
<td><input type="text" id="wr_email" name="wr_email" class="frm_input email" size="60" value="<?=$email?>" maxlength="100"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||
<td><input type="text" id="wr_homepage" name="wr_homepage" value="<?=$homepage?>"></td>
|
||||
<td><input type="text" id="wr_homepage" name="wr_homepage" class="frm_input" size="60" value="<?=$homepage?>"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -57,27 +59,27 @@ $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.'><label for="notice">공지</label>';
|
||||
$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.'><label for="html">html</label>';
|
||||
$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.'><label for="secret">비밀글</label>';
|
||||
$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" name="mail" value="mail" '.$recv_email_checked.'><label for="mail">답변메일받기</label>';
|
||||
$option .= PHP_EOL.'<input type="checkbox" name="mail" value="mail" '.$recv_email_checked.'>'.PHP_EOL.'<label for="mail">답변메일받기</label>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -94,7 +96,7 @@ if ($option) {
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_name">분류</label></th>
|
||||
<td>
|
||||
<select id="ca_name" name="ca_name" required="required">
|
||||
<select id="ca_name" name="ca_name" class="required" required>
|
||||
<option value="">선택하세요</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
@ -104,7 +106,7 @@ if ($option) {
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_subject">제목</label></th>
|
||||
<td><input id="wr_subject" name="wr_subject" required="required" value="<?=$subject?>" title="제목"></td>
|
||||
<td><input id="wr_subject" name="wr_subject" class="frm_input required" size="60" required value="<?=$subject?>" title="제목"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -120,72 +122,45 @@ if ($option) {
|
||||
<? for ($i=1; $i<=$g4['link_count']; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_link<?=$i?>">링크 #<?=$i?></label></th>
|
||||
<td><input type="text" id="wr_link<?=$i?>" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>"></td>
|
||||
<td><input type="text" id="wr_link<?=$i?>" name="wr_link<?=$i?>" class="frm_input" size="60" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_file) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="">파일첨부</label></th>
|
||||
<th scope="row">파일 #1</th>
|
||||
<td>
|
||||
<table id="variableFiles"></table><?// print_r2($file); ?>
|
||||
<script>
|
||||
var flen = 0;
|
||||
function add_file(delete_code)
|
||||
{
|
||||
var upload_count = <?=(int)$board['bo_upload_count']?>;
|
||||
if (upload_count && flen >= upload_count)
|
||||
{
|
||||
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
var objTbl;
|
||||
var objRow;
|
||||
var objCell;
|
||||
if (document.getElementById)
|
||||
objTbl = document.getElementById("variableFiles");
|
||||
else
|
||||
objTbl = document.all["variableFiles"];
|
||||
|
||||
objRow = objTbl.insertRow(objTbl.rows.length);
|
||||
objCell = objRow.insertCell(0);
|
||||
|
||||
objCell.innerHTML = "<input type='file' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
|
||||
if (delete_code)
|
||||
objCell.innerHTML += delete_code;
|
||||
else
|
||||
{
|
||||
<? if ($is_file_content) { ?>
|
||||
objCell.innerHTML += "<br><input type='text' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
|
||||
<? } ?>
|
||||
;
|
||||
}
|
||||
|
||||
flen++;
|
||||
}
|
||||
|
||||
<?=$file_script; //수정시에 필요한 스크립트?>
|
||||
|
||||
function del_file()
|
||||
{
|
||||
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
|
||||
var file_length = <?=(int)$file_length?>;
|
||||
var objTbl = document.getElementById("variableFiles");
|
||||
if (objTbl.rows.length - 1 > file_length) {
|
||||
objTbl.deleteRow(objTbl.rows.length - 1);
|
||||
flen--;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" size="50" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span onclick="add_file();" style="cursor:pointer;">파일증가</span>
|
||||
<span onclick="del_file();" style="cursor:pointer;">파일감소</span>
|
||||
<th scope="row">파일 #2</th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" size="50" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">파일 #3</th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" size="50" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">파일 #4</th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" size="50" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">파일 #5</th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" size="50" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
</td>
|
||||
</tr>
|
||||
<?}?>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div>
|
||||
<div class="latest">
|
||||
<strong><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$board['bo_subject']?></a></strong>
|
||||
<ul>
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
@ -30,9 +30,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||
<li>게시물이 없습니다.</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>">더보기</a>
|
||||
</div>
|
||||
<? if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||
<p>게시물이 없습니다.</p>
|
||||
<? } ?>
|
||||
<div class="latest_more"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>">더보기</a></div>
|
||||
</div>
|
||||
|
||||
@ -1,72 +1,73 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
<section>
|
||||
<h1><?=$name?>님께 메일보내기</h1>
|
||||
|
||||
<form name="fformmail" method="post" onsubmit="return fformmail_submit(this);" 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?>">
|
||||
<? if ($is_member) { // 회원이면 ?>
|
||||
<input type="hidden" name="fnick" value="<?=$member[mb_nick]?>">
|
||||
<input type="hidden" name="fmail" value="<?=$member[mb_email]?>">
|
||||
<? } ?>
|
||||
<table>
|
||||
<caption>메일쓰기</caption>
|
||||
<tbody>
|
||||
<? if (!$is_member) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="fnick">이름</label></th>
|
||||
<td><input type="text" id="fnick" name="fnick" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="fmail">E-mail</label></th>
|
||||
<td><input type="text" id="fmail" name="fmail" required></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="subject">제목</label></th>
|
||||
<td><input type=text id="subject" name="subject" 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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="content">내용</label></th>
|
||||
<td><textarea id="content" name="content" required></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="file1">첨부 1</label></th>
|
||||
<td><input type="file" id="file1" name="file1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="file2">첨부 2</label></th>
|
||||
<td><input type="file" id="file2" name="file2"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="formmail" class="new_win">
|
||||
<h1><?=$name?>님께 메일보내기</h1>
|
||||
|
||||
<fieldset>
|
||||
<legend>자동등록방지</legend>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="text" name="wr_key" title="자동등록방지" size="10" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
<form name="fformmail" method="post" onsubmit="return fformmail_submit(this);" 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?>">
|
||||
<? if ($is_member) { // 회원이면 ?>
|
||||
<input type="hidden" name="fnick" value="<?=$member[mb_nick]?>">
|
||||
<input type="hidden" name="fmail" value="<?=$member[mb_email]?>">
|
||||
<? } ?>
|
||||
<table class="frm_tbl">
|
||||
<caption>메일쓰기</caption>
|
||||
<tbody>
|
||||
<? if (!$is_member) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="fnick">이름</label></th>
|
||||
<td><input type="text" id="fnick" name="fnick" class="frm_input required" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="fmail">E-mail</label></th>
|
||||
<td><input type="text" id="fmail" name="fmail" class="frm_input required" required></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="subject">제목</label></th>
|
||||
<td><input type=text id="subject" name="subject" class="frm_input required" 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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="content">내용</label></th>
|
||||
<td><textarea id="content" name="content" class="required" 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="file2">첨부 2</label></th>
|
||||
<td><input type="file" id="file2" name="file2" class="frm_input"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="메일발송">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
<fieldset>
|
||||
<legend>자동등록방지</legend>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="text" name="wr_key" class="fieldset_input required" title="자동등록방지" size="10" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="메일발송">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<script src="<?="$g4[path]/js/md5.js"?>"></script>
|
||||
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script>
|
||||
|
||||
@ -7,13 +7,17 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<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">
|
||||
<fieldset>
|
||||
<fieldset id="member_confirm">
|
||||
<legend>패스워드 확인</legend>
|
||||
|
||||
<p>회원님의 정보를 안전하게 보호하기 위해 패스워드를 한번 더 확인합니다.</p>
|
||||
|
||||
회원아이디
|
||||
<?=$member[mb_id]?>
|
||||
<span id="member_confirm_id"><?=$member[mb_id]?></span>
|
||||
|
||||
<label for="confirm_mb_password">패스워드</label>
|
||||
<input type="password" id="confirm_mb_password" name="mb_password" maxLength="20" size="15" required onkeypress="check_capslock('confirm_mb_password');">
|
||||
<input type="submit" id="btn_submit" value="확인">
|
||||
<input type="password" id="confirm_mb_password" name="mb_password" class="fieldset_input" maxLength="20" size="15" required onkeypress="check_capslock('confirm_mb_password');">
|
||||
<input type="submit" id="btn_submit" class="fieldset_submit" value="확인">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
@ -2,44 +2,47 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<h1>쪽지보내기</h1>
|
||||
|
||||
<ul>
|
||||
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
|
||||
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
|
||||
<li><a href="./memo_form.php">쪽지보내기</a></li>
|
||||
</ul>
|
||||
<div id="memo_write" class="new_win">
|
||||
<h1>쪽지보내기</h1>
|
||||
|
||||
<form name="fmemoform" method="post" onsubmit="return fmemoform_submit(this);" autocomplete="off">
|
||||
<table>
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디</label></th>
|
||||
<td>
|
||||
<input type="text" id="me_recv_mb_id" name="me_recv_mb_id" required value="<?=$me_recv_mb_id?>">
|
||||
여러 회원에게 보낼때는 컴마(,)로 구분하세요.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_memo">내용</label></th>
|
||||
<td><textarea id="me_memo" name="me_memo" required><?=$content?></textarea></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<ul class="new_win_ul">
|
||||
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
|
||||
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
|
||||
<li><a href="./memo_form.php">쪽지보내기</a></li>
|
||||
</ul>
|
||||
|
||||
<fieldset>
|
||||
<legend>자동등록방지</legend>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="text" name="wr_key" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
<form name="fmemoform" method="post" onsubmit="return fmemoform_submit(this);" autocomplete="off">
|
||||
<table class="frm_tbl">
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디</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?>">
|
||||
<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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="보내기">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
<fieldset>
|
||||
<legend>자동등록방지</legend>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="text" name="wr_key" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="보내기">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src="<?=$g4[path]?>/js/md5.js"></script>
|
||||
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
|
||||
@ -2,22 +2,28 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<article>
|
||||
<header>
|
||||
<h1>
|
||||
<?
|
||||
//$nick = cut_str($mb[mb_nick], $config[cf_cut_name]);
|
||||
$nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
|
||||
if ($kind == "recv")
|
||||
echo "{$nick}님께서 {$memo[me_send_datetime]}에 보내온 쪽지의 내용입니다.";
|
||||
if ($kind == "send")
|
||||
echo "{$nick}님께 {$memo[me_send_datetime]}에 보낸 쪽지의 내용입니다.";
|
||||
?>
|
||||
</h1>
|
||||
</header>
|
||||
<p>
|
||||
<?=conv_content($memo[me_memo], 0)?>
|
||||
</p>
|
||||
<div id="memo_view" class="new_win">
|
||||
<h1>
|
||||
<?
|
||||
//$nick = cut_str($mb[mb_nick], $config[cf_cut_name]);
|
||||
$nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
|
||||
if ($kind == "recv")
|
||||
echo "{$nick}님께서 {$memo[me_send_datetime]}에 보내온 쪽지의 내용입니다.";
|
||||
if ($kind == "send")
|
||||
echo "{$nick}님께 {$memo[me_send_datetime]}에 보낸 쪽지의 내용입니다.";
|
||||
?>
|
||||
</h1>
|
||||
<ul class="new_win_ul">
|
||||
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
|
||||
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
|
||||
<li><a href="./memo_form.php">쪽지보내기</a></li>
|
||||
</ul>
|
||||
<section>
|
||||
<h2>쪽지내용</h2>
|
||||
<p>
|
||||
<?=conv_content($memo[me_memo], 0)?>
|
||||
</p>
|
||||
</section>
|
||||
<div>
|
||||
<a href="<?=$prev_link?>">이전쪽지</a>
|
||||
<a href="<?=$next_link?>">다음쪽지</a>
|
||||
|
||||
@ -11,12 +11,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
|
||||
<fieldset>
|
||||
<fieldset id="password_confirm">
|
||||
<legend>패스워드 확인</legend>
|
||||
<p>비밀글 기능으로 보호된 글입니다. 작성자와 관리자만 열람하실 수 있습니다. 작성자 본인이시라면 패스워드를 입력하세요.</p>
|
||||
<p>비밀글 기능으로 보호된 글입니다. 작성자와 관리자만 열람하실 수 있습니다.<br>작성자 본인이시라면 패스워드를 입력하세요.</p>
|
||||
<label for="password_wr_password">패스워드</label>
|
||||
<input type="password" id="password_wr_password" name="wr_password" maxLength="20" size="15" required="required" title="패스워드">
|
||||
<input type="submit" value="확인">
|
||||
<input type="password" id="password_wr_password" name="wr_password" class="fieldset_input required" maxLength="20" size="15" required>
|
||||
<input type="submit" class="fieldset_submit" value="확인">
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
@ -2,40 +2,42 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<h1><?=$mb_nick?>님의 프로필</h1>
|
||||
<div id="profile" class="new_win">
|
||||
<h1><?=$mb_nick?>님의 프로필</h1>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">회원권한</th>
|
||||
<td><?=$mb[mb_level]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">포인트</th>
|
||||
<td><?=number_format($mb[mb_point])?></td>
|
||||
</tr>
|
||||
<? if ($mb_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row">홈페이지</th>
|
||||
<td><a href="<?=$mb_homepage?>" target="_blank"><?=$mb_homepage?></a></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<th scope="row">회원가입일</th>
|
||||
<td><?=($member[mb_level] >= $mb[mb_level]) ? substr($mb[mb_datetime],0,10) ." (".$mb_reg_after." 일)" : "알 수 없음"; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">최종접속일</th>
|
||||
<td><?=($member[mb_level] >= $mb[mb_level]) ? $mb[mb_today_login] : "알 수 없음";?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">회원권한</th>
|
||||
<td><?=$mb[mb_level]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">포인트</th>
|
||||
<td><?=number_format($mb[mb_point])?></td>
|
||||
</tr>
|
||||
<? if ($mb_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row">홈페이지</th>
|
||||
<td><a href="<?=$mb_homepage?>" target="_blank"><?=$mb_homepage?></a></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<th scope="row">회원가입일</th>
|
||||
<td><?=($member[mb_level] >= $mb[mb_level]) ? substr($mb[mb_datetime],0,10) ." (".$mb_reg_after." 일)" : "알 수 없음"; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">최종접속일</th>
|
||||
<td><?=($member[mb_level] >= $mb[mb_level]) ? $mb[mb_today_login] : "알 수 없음";?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<section>
|
||||
<h2><?=$mb_nick?>님의 자기소개</h2>
|
||||
<p><?=$mb_profile?></p>
|
||||
</section>
|
||||
<section>
|
||||
<h2><?=$mb_nick?>님의 자기소개</h2>
|
||||
<p><?=$mb_profile?></p>
|
||||
</section>
|
||||
|
||||
<div class="btn_window">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
<div class="btn_window">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user