merge
This commit is contained in:
@ -7,7 +7,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<aside>
|
||||
<h2>게시물 상단 링크</h2>
|
||||
<!-- 링크 버튼 -->
|
||||
<? if ($update_href || $deleter_href) {?>
|
||||
<? if ($update_href || $delete_href) {?>
|
||||
<ul>
|
||||
<? if ($update_href) { ?>
|
||||
<li><a href="<?=$update_href?>">수정</a></li>
|
||||
@ -133,10 +133,9 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
||||
|
||||
<? if ($scrap_href || $trackback_url || $good_href || $nogood_href) { ?>
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<ul>
|
||||
<? if ($scrap_href) { ?><li><a href="javascript:;" onclick="win_scrap('<?=$scrap_href?>');">스크랩</a></li><? } ?>
|
||||
<? if ($trackback_url) { ?><li><a href="javascript:trackback_send_server('<?=$trackback_url?>');">트랙백주소</a></li><?}?>
|
||||
<? if ($good_href) {?><li>추천 <?=number_format($view['wr_good'])?> <a href="<?=$good_href?>" target="hiddenframe">추천</a></li><? } ?>
|
||||
<? if ($nogood_href) {?><li>비추천 <?=number_format($view['wr_nogood'])?> <a href="<?=$nogood_href?>" target="hiddenframe">비추천</a></li><? } ?>
|
||||
</ul>
|
||||
|
||||
@ -45,9 +45,6 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
<!-- 댓글 출력 -->
|
||||
<p><?=$str?></p>
|
||||
|
||||
<? if ($list[$i]['trackback']) { ?>
|
||||
<p><?=$list[$i]['trackback']?></p>
|
||||
<? } ?>
|
||||
<span id="edit_<?=$comment_id?>"></span><!-- 수정 -->
|
||||
<span id="reply_<?=$comment_id?>"></span><!-- 답변 -->
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ var char_min = parseInt(<?=$write_min?>); // 최소
|
||||
var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
</script>
|
||||
|
||||
<form id="fwrite" name="fwrite" action="./write_update.php" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data">
|
||||
<form id="fwrite" name="fwrite" method="post" action="<?=$action_url?>" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data">
|
||||
<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?>">
|
||||
@ -26,7 +26,7 @@ var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
<? 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" value="<?=$name?>" title="이름"></td>
|
||||
<td><input type="text" id="wr_name" name="wr_name" maxlength="20" class="required" required="required" value="<?=$name?>" title="이름"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -40,7 +40,7 @@ var char_max = parseInt(<?=$write_max?>); // 최대
|
||||
<? if ($is_email) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||
<td><input type="text" id="wr_email" name="wr_email" maxlength="100" value="<?=$email?>"></td>
|
||||
<td><input type="text" id="wr_email" name="wr_email" class="email" value="<?=$email?>" title="이메일" maxlength="100"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -104,7 +104,7 @@ if ($option) {
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_subject">제목</label></th>
|
||||
<td><input id="wr_subject" name="wr_subject" required value="<?=$subject?>"></td>
|
||||
<td><input id="wr_subject" name="wr_subject" required="required" value="<?=$subject?>" title="제목"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -173,8 +173,7 @@ if ($option) {
|
||||
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
|
||||
var file_length = <?=(int)$file_length?>;
|
||||
var objTbl = document.getElementById("variableFiles");
|
||||
if (objTbl.rows.length - 1 > file_length)
|
||||
{
|
||||
if (objTbl.rows.length - 1 > file_length) {
|
||||
objTbl.deleteRow(objTbl.rows.length - 1);
|
||||
flen--;
|
||||
}
|
||||
@ -189,30 +188,14 @@ if ($option) {
|
||||
<span onclick="del_file();" style="cursor:pointer;">파일감소</span>
|
||||
</td>
|
||||
</tr>
|
||||
<?}?>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? if ($is_trackback) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_trackback">트랙백주소</label></th>
|
||||
<td>
|
||||
<input id="wr_trackback" name="wr_trackback" value="<?=$trackback?>">
|
||||
<? if ($w=='u') { ?><input type="checkbox" id="re_trackback" name="re_trackback" value="1">핑 보냄<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<? if ($is_guest) { ?>
|
||||
<fieldset id="captcha">
|
||||
<legend>자동등록방지</legend>
|
||||
<div><img id="kcaptcha_image" alt="" /></div>
|
||||
<label for="wr_key">자동등록방지</label>
|
||||
<input type="text" id="wr_key" name="wr_key" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
<? } ?>
|
||||
<?
|
||||
echo run_captcha();
|
||||
?>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="글쓰기" accesskey="s">
|
||||
@ -279,6 +262,7 @@ function fwrite_submit(f)
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
if (document.getElementById('char_count')) {
|
||||
if (char_min > 0 || char_max > 0) {
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
@ -292,6 +276,7 @@ function fwrite_submit(f)
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if (document.getElementById('tx_wr_content')) {
|
||||
if (!ed_wr_content.outputBodyText()) {
|
||||
@ -301,10 +286,6 @@ function fwrite_submit(f)
|
||||
}
|
||||
}
|
||||
|
||||
<?
|
||||
if ($is_dhtml_editor) echo cheditor3('wr_content');
|
||||
?>
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
@ -338,18 +319,8 @@ function fwrite_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//document.getElementById('btn_submit').disabled = true;
|
||||
//document.getElementById('btn_list').disabled = true;
|
||||
|
||||
<?
|
||||
if ($g4['https_url'])
|
||||
echo "f.action = '{$g4['https_url']}/{$g4['bbs']}/write_update.php';";
|
||||
else
|
||||
echo "f.action = './write_update.php';";
|
||||
echo chk_js_captcha();
|
||||
?>
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user