mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1628 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3f649ab32a
commit
67572cebaf
39 changed files with 543 additions and 459 deletions
|
|
@ -79,27 +79,31 @@
|
|||
// document 객체를 생성. 기본 데이터 구조의 경우 document모듈만 쓰면 만사 해결.. -_-;
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
$oDocument = $oDocumentModel->getDocument(0, $this->grant->manager);
|
||||
|
||||
// document_srl이 있다면 해당 글을 구해오자
|
||||
if($this->grant->list && $document_srl) {
|
||||
|
||||
// 글을 구함
|
||||
$document = $oDocumentModel->getDocument($document_srl, $this->grant->manager, true);
|
||||
$oDocument->setDocument($document_srl);
|
||||
|
||||
// 찾아지지 않았다면 초기화
|
||||
if($document->document_srl != $document_srl) {
|
||||
unset($document);
|
||||
if(!$oDocument->isExists()) {
|
||||
unset($document_srl);
|
||||
Context::set('document_srl','',true);
|
||||
} else {
|
||||
// 브라우저 타이틀 설정
|
||||
Context::setBrowserTitle($oDocument->getTitleText());
|
||||
|
||||
// 글이 찾아졌으면 댓글 권한과 허용 여부를 체크하여 댓글 에디터 세팅
|
||||
} elseif($this->grant->write_comment && $document->allow_comment == 'Y' && $document->lock_comment != 'Y') {
|
||||
// 브라우저 타이틀
|
||||
$browser_title = $this->module_info->browser_title.' - '.$document->title;
|
||||
Context::setBrowserTitle($browser_title);
|
||||
// 댓글에디터 설정
|
||||
if($this->grant->write_comment && $oDocument->allowComment() && !$oDocument->isLocked()) $this->setCommentEditor(0, 100);
|
||||
|
||||
// 조회수 증가
|
||||
$oDocument->updateReadedCount();
|
||||
}
|
||||
|
||||
Context::set('document', $document);
|
||||
}
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
// 댓글
|
||||
$this->setCommentEditor(0, 100);
|
||||
|
|
@ -167,23 +171,21 @@
|
|||
|
||||
// document 모듈 객체 생성
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl, $this->grant->manager);
|
||||
|
||||
// 지정된 글이 없다면 (신규) 새로운 번호를 만든다
|
||||
if($document_srl) {
|
||||
$document = $oDocumentModel->getDocument($document_srl, $this->grant->manager);
|
||||
if(!$document) {
|
||||
unset($document_srl);
|
||||
Context::set('document_srl','');
|
||||
}
|
||||
if(!$oDocument->isExists()) {
|
||||
unset($document_srl);
|
||||
Context::set('document_srl','');
|
||||
}
|
||||
|
||||
if(!$document_srl) $document_srl = getNextSequence();
|
||||
|
||||
// 글을 수정하려고 할 경우 권한이 없는 경우 비밀번호 입력화면으로
|
||||
if($document&&!$document->is_granted) return $this->setTemplateFile('input_password_form');
|
||||
if($oDocument->isExists()&&!$oDocument->isGranted()) return $this->setTemplateFile('input_password_form');
|
||||
|
||||
Context::set('document_srl',$document_srl);
|
||||
Context::set('document', $document);
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
// 에디터 모듈의 getEditor를 호출하여 세팅
|
||||
$oEditorModel = &getModel('editor');
|
||||
|
|
@ -209,19 +211,16 @@
|
|||
// 삭제할 문서번호를 가져온다
|
||||
$document_srl = Context::get('document_srl');
|
||||
|
||||
// 지정된 글이 있는지 확인
|
||||
if($document_srl) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$document = $oDocumentModel->getDocument($document_srl);
|
||||
}
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl, $this->grant->manager);
|
||||
|
||||
// 삭제하려는 글이 없으면 에러
|
||||
if(!$document) return $this->dispBlogContent();
|
||||
if(!$oDocument->isExists()) return $this->dispBlogContent();
|
||||
|
||||
// 권한이 없는 경우 비밀번호 입력화면으로
|
||||
if($document&&!$document->is_granted) return $this->setTemplateFile('input_password_form');
|
||||
if($oDocument->isExists()&&!$oDocument->isGranted()) return $this->setTemplateFile('input_password_form');
|
||||
|
||||
Context::set('document',$document);
|
||||
Context::set('oDocument',$oDocument);
|
||||
|
||||
$this->setTemplateFile('delete_form');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<!--@if($document->comment_list)-->
|
||||
<!--%import("filter/insert_comment.xml")-->
|
||||
|
||||
<!--@foreach($document->comment_list as $key => $val)-->
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
|
||||
<!--@foreach($oDocument->getComments() as $key => $val)-->
|
||||
<a name="comment_{$key}"></a>
|
||||
<div style="margin-left:{$val->depth*15}px" >
|
||||
<table border="1" width="100%">
|
||||
|
|
@ -56,6 +58,6 @@
|
|||
<!--@end-->
|
||||
|
||||
<!-- 댓글 입력 폼 -->
|
||||
<!--@if($grant->write_comment && $document->lock_comment == 'N')-->
|
||||
<!--@if($grant->write_comment && !$oDocument->isLocked())-->
|
||||
<!--#include("./comment_form.html")-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->title}</th>
|
||||
<td>{$document->title}</td>
|
||||
<td>{$oDocument->getTitleText()}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
|
|
|||
|
|
@ -5,19 +5,19 @@
|
|||
|
||||
<!-- 검색된 글 목록이 있고 권한이 있을 경우 출력 -->
|
||||
<!--@if($document_list && $grant->list)-->
|
||||
<!--@foreach($document_list as $no => $document)-->
|
||||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
|
||||
<!-- 검색어가 사용되었을 경우 목록형태로 출력 -->
|
||||
<!--@if($search_target && $search_keyword)-->
|
||||
<div>
|
||||
<!-- 일자, 제목 출력-->
|
||||
[{zdate($document->regdate, "Y-m-d")}] <a href="#" onclick="winopen('{getUrl('','document_srl',$document->document_srl)}');return false;">{$document->title}</a>
|
||||
[{$oDocument->getRegdate("Y-m-d")}] <a href="#" onclick="winopen('{$oDocument->getPermanentUrl()}');return false;">{$oDocument->getTitleText()}</a>
|
||||
|
||||
<!-- 댓글이 있으면 댓글의 수 출력 -->
|
||||
<!--@if($document->comment_count)-->({number_format($document->comment_count)})<!--@end-->
|
||||
<!--@if($oDocument->getCommentCount())-->({number_format($oDocument->getCommentCount())})<!--@end-->
|
||||
|
||||
<!-- 엮인글이 있으면 엮인글의 수 출력 -->
|
||||
<!--@if($document->trackback_count)-->({number_format($document->trackback_count)})<!--@end-->
|
||||
<!--@if($oDocument->getTrackbackCount())-->({number_format($oDocument->getTrackbackCount())})<!--@end-->
|
||||
</div>
|
||||
|
||||
<!-- 검색어가 없다면 내용을 바로 출력 -->
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!--@if($document->trackback_list)-->
|
||||
<!--@foreach($document->trackback_list as $key => $val)-->
|
||||
<!--@if($oDocument->getTrackbackCount())-->
|
||||
<!--@foreach($oDocument->getTrackbacks as $key => $val)-->
|
||||
<a name="trackback_{$val->trackback_srl}"></a>
|
||||
|
||||
<div style="margin-left:{$val->depth*15}px" >
|
||||
|
|
|
|||
|
|
@ -3,60 +3,63 @@
|
|||
|
||||
<div class="title" style="clear:right;height:25px;">
|
||||
<div style="font-weight:bold;font-size:18px;float:left;">
|
||||
<!--@if($category_list && $document->category_srl)-->
|
||||
[{$category_list[$document->category_srl]->title}]
|
||||
<!--@if($oDocument->get('category_srl'))-->
|
||||
[{$category_list[$oDocument->get('category_srl')]->title}]
|
||||
<!--@end-->
|
||||
|
||||
{htmlspecialchars($document->title)}
|
||||
{$oDocument->getTitleText()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="clear:right;height:20px;">
|
||||
<div class="date" style="float:left;">
|
||||
{zdate($document->regdate,"Y-m-d H:i:s")}
|
||||
<strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')}
|
||||
<!--@if($module_info->display_writer == "on")-->
|
||||
by <span class="member_{$document->member_srl}">{htmlspecialchars($document->nick_name)}</span>
|
||||
<span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div style="float:right;">
|
||||
<!--@if($document->is_granted || $grant->manager)-->
|
||||
<a href="{getUrl('act','dispBlogWrite','document_srl',$document->document_srl)}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispBlogDelete','document_srl',$document->document_srl)}">[{$lang->cmd_delete}]</a>
|
||||
<!--@if($oDocument->isEditable())-->
|
||||
<a href="{getUrl('act','dispBlogWrite','document_srl',$oDocument->document_srl)}">[{$lang->cmd_modify}]</a>
|
||||
<a href="{getUrl('act','dispBlogDelete','document_srl',$oDocument->document_srl)}">[{$lang->cmd_delete}]</a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="overflow:hidden;width:660px;margin:10px 0px 10px 0px;padding:5px 0px 5px 0px;border-top:1px solid #EEEEEE;border-bottom:1px solid #EEEEEE;" class="content">{$document->content}</div>
|
||||
<div style="overflow:hidden;width:660px;margin:10px 0px 10px 0px;padding:5px 0px 5px 0px;border-top:1px solid #EEEEEE;border-bottom:1px solid #EEEEEE;" class="content">{$oDocument->getContent()}</div>
|
||||
|
||||
<div style="margin:10px 0px 10px 0px">
|
||||
{$lang->document_url} : {getUrl()}{$document->document_srl}
|
||||
{$lang->document_url} : {$oDocument->getPermanentUrl()}
|
||||
</div>
|
||||
|
||||
<div style="clear:both;height:20px;margin:0px 0px 10px 0px">
|
||||
<!--@if($document->tag_list)-->
|
||||
{@ $tag_list = $oDocument->get('tag_list') }
|
||||
<!--@if(count($tag_list))-->
|
||||
<div style="color:#888888;float:left;">
|
||||
{$lang->tag} :
|
||||
<!--@foreach($document->tag_list as $val)-->
|
||||
<!--@for($i=0;$i<count($tag_list);$i++)-->
|
||||
{@ $tag = $tag_list[$i]; }
|
||||
{$lang->tag} :
|
||||
<a href="{getUrl('search_target','tag','search_keyword',urlencode($val),'document_srl','')}">{htmlspecialchars($val)}</a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->allow_trackback=='Y')-->
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<div style="color:#888888;float:right;">
|
||||
{$lang->trackback_url} : {getUrl()}trackback/{$document->document_srl}
|
||||
{$lang->trackback_url} : {$oDocument->getTrackbackUrl()}
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!--@if($document->uploaded_count && $document->uploaded_list)-->
|
||||
<!--@if($oDocument->hasUploadedFiles())-->
|
||||
<div style="border:1px solid #DDDDDD;padding:10px;margin-bottom:10px;">
|
||||
<div>{$lang->uploaded_file}</div>
|
||||
<div>
|
||||
<!--@foreach($document->uploaded_list as $key => $file)-->
|
||||
{@ $uploaded_list = $oDocument->getUploadedFiles() }
|
||||
<!--@foreach($uploaded_list as $key => $file)-->
|
||||
<span><a href="{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})</a> ({number_format($file->download_count)})</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
|
@ -64,23 +67,28 @@
|
|||
|
||||
<!-- 댓글/ 엮인글 정보 출력 -->
|
||||
<div>
|
||||
<a href="#comment_top_{$document->document_srl}">{$lang->comment} : {count($document->comment_list)}</a>,
|
||||
<a href="#trackback_{$document->document_srl}">{$lang->trackback} : {count($document->trackback_list)}</a>
|
||||
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
|
||||
<a href="#comment_top_{$oDocument->document_srl}">{$lang->comment} : {$oDocument->getCommentCount()}</a>,
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<a href="#trackback_{$oDocument->document_srl}">{$lang->trackback} : {$oDocument->getTrackbackCount()}</a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!-- 엮인글 목록 -->
|
||||
<a name="trackback_{$document->document_srl}"></a>
|
||||
<a name="trackback_{$oDocument->document_srl}"></a>
|
||||
|
||||
<!-- 엮인글 파일 include -->
|
||||
<!--@if($document->allow_trackback=='Y')-->
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<!--#include("./trackback.html")-->
|
||||
<!--@end-->
|
||||
|
||||
<!-- 댓글 정보 출력 -->
|
||||
<a name="comment_top_{$document->document_srl}"></a>
|
||||
<a name="comment_top_{$oDocument->document_srl}"></a>
|
||||
|
||||
<!-- 댓글 파일 include -->
|
||||
<!--@if($grant->write_comment&&$document->allow_comment=='Y')-->
|
||||
{@ $document_srl = $document->document_srl; }
|
||||
<!--@if($grant->write_comment && $oDocument->allowComment())-->
|
||||
{@ $document_srl = $oDocument->document_srl; }
|
||||
<!--#include("./comment.html")-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert)" <!--@if($grant->fileupload)-->enctype="multipart/form-data"<!--@end-->>
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($document->content)}" />
|
||||
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
|
||||
<table border="1" width="100%">
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
<select name="category_srl" >
|
||||
<option value="">{$lang->category}</option>
|
||||
<!--@foreach($category_list as $val)-->
|
||||
<option value="{$val->category_srl}" <!--@if($category==$val->category_srl||$val->category_srl==$document->category_srl)-->selected="true"<!--@end-->>{$val->title}</option>
|
||||
<option value="{$val->category_srl}" <!--@if($category==$val->category_srl||$val->category_srl==$oDocument->get('category_srl'))-->selected="true"<!--@end-->>{$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
<!--@if(!$is_logged)-->
|
||||
<tr>
|
||||
<th>{$lang->writer}</th>
|
||||
<td><input type="text" name="nick_name" value="{$document->nick_name}" /></td>
|
||||
<td><input type="text" name="nick_name" value="{$oDocument->getNickName()}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->password}</th>
|
||||
|
|
@ -34,35 +34,35 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->email_address}</th>
|
||||
<td><input type="text" name="email_address" value="{htmlspecialchars($document->email_address)}"/></td>
|
||||
<td><input type="text" name="email_address" value="{htmlspecialchars($oDocument->get('email_address'))}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->homepage}</th>
|
||||
<td><input type="text" name="homepage" value="{htmlspecialchars($document->homepage)}" /></td>
|
||||
<td><input type="text" name="homepage" value="{htmlspecialchars($oDocument->get('homepage'))}" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
<tr>
|
||||
<th>{$lang->title}</th>
|
||||
<td><input type="text" name="title" value="{htmlspecialchars($document->title)}" /></td>
|
||||
<td><input type="text" name="title" value="{$oDocument->getTitleText()}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<!--@if($grant->manager)-->
|
||||
<input type="checkbox" name="is_notice" value="Y" <!--@if($document->is_notice== "Y")-->checked="true"<!--@end--> id="is_notice" />
|
||||
<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="true"<!--@end--> id="is_notice" />
|
||||
<label for="is_notice">{$lang->notice}</label>
|
||||
<!--@end-->
|
||||
|
||||
<input type="checkbox" name="is_secret" value="Y" <!--@if($document->is_secret== "Y")-->checked="true"<!--@end--> id="is_secret" />
|
||||
<input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret())-->checked="true"<!--@end--> id="is_secret" />
|
||||
<label for="is_secret">{$lang->secret}</label>
|
||||
|
||||
<input type="checkbox" name="allow_comment" value="Y" <!--@if($document->allow_comment != "N")-->checked="true"<!--@end--> id="allow_comment" />
|
||||
<input type="checkbox" name="allow_comment" value="Y" <!--@if($oDocument->allowComment())-->checked="true"<!--@end--> id="allow_comment" />
|
||||
<label for="allow_comment">{$lang->allow_comment}</label>
|
||||
|
||||
<input type="checkbox" name="lock_comment" value="Y" <!--@if($document->lock_comment == "Y")-->checked="true"<!--@end--> id="lock_comment" />
|
||||
<input type="checkbox" name="lock_comment" value="Y" <!--@if($oDocument->isLocked())-->checked="true"<!--@end--> id="lock_comment" />
|
||||
<label for="lock_comment">{$lang->lock_comment}</label>
|
||||
|
||||
<input type="checkbox" name="allow_trackback" value="Y" <!--@if($document->allow_trackback != "N")-->checked="true"<!--@end--> id="allow_trackback" />
|
||||
<input type="checkbox" name="allow_trackback" value="Y" <!--@if($oDocument->allowTrackback())-->checked="true"<!--@end--> id="allow_trackback" />
|
||||
<label for="allow_trackback">{$lang->allow_trackback}</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
<tr>
|
||||
<th>{$lang->tag}</th>
|
||||
<td>
|
||||
<input type="text" name="tags" value="{htmlspecialchars($document->tags)}" /> <br />
|
||||
<input type="text" name="tags" value="{htmlspecialchars($oDocument->get('tags'))}" /> <br />
|
||||
{$lang->about_tag}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<!--%import("filter/insert_comment.xml")-->
|
||||
|
||||
<!--@if($document->comment_list)-->
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
<ul id="reply">
|
||||
|
||||
<!--@foreach($document->comment_list as $key => $val)-->
|
||||
<!--@foreach($oDocument->getComments() as $key => $val)-->
|
||||
|
||||
<li <!--@if($val->depth)-->class="reply"<!--@end-->>
|
||||
<!--@if($val->depth)-->
|
||||
|
|
@ -53,6 +53,6 @@
|
|||
<!--@end-->
|
||||
|
||||
<!-- 댓글 입력 폼 -->
|
||||
<!--@if($grant->write_comment && $document->lock_comment == 'N')-->
|
||||
<!--@if($grant->write_comment && !$oDocument->isLocked())-->
|
||||
<!--#include("./comment_form.html")-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->title}</th>
|
||||
<td>{$document->title}</td>
|
||||
<td>{$oDocument->getTitleText()}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
|
|
|
|||
|
|
@ -5,19 +5,19 @@
|
|||
|
||||
<!-- 검색된 글 목록이 있고 권한이 있을 경우 출력 -->
|
||||
<!--@if($document_list && $grant->list)-->
|
||||
<!--@foreach($document_list as $no => $document)-->
|
||||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
|
||||
<!-- 검색어가 사용되었을 경우 목록형태로 출력 -->
|
||||
<!--@if($search_target && $search_keyword)-->
|
||||
<div>
|
||||
<!-- 일자, 제목 출력-->
|
||||
[{zdate($document->regdate, "Y-m-d")}] <a href="#" onclick="winopen('{getUrl('','document_srl',$document->document_srl)}');return false;">{$document->title}</a>
|
||||
[{$oDocument->getRegdate("Y-m-d")}] <a href="#" onclick="winopen('{$oDocument->getPermanentUrl()}');return false;">{$oDocument->getTitleText()}</a>
|
||||
|
||||
<!-- 댓글이 있으면 댓글의 수 출력 -->
|
||||
<!--@if($document->comment_count)-->({number_format($document->comment_count)})<!--@end-->
|
||||
<!--@if($oDocument->getCommentCount())-->({number_format($oDocument->getCommentCount())})<!--@end-->
|
||||
|
||||
<!-- 엮인글이 있으면 엮인글의 수 출력 -->
|
||||
<!--@if($document->trackback_count)-->({number_format($document->trackback_count)})<!--@end-->
|
||||
<!--@if($oDocument->getTrackbackCount())-->({number_format($oDocument->getTrackbackCount())})<!--@end-->
|
||||
</div>
|
||||
|
||||
<!-- 검색어가 없다면 내용을 바로 출력 -->
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<!-- 엮인글 목록 -->
|
||||
|
||||
<!--@if($document->trackback_list)-->
|
||||
<!--@if($oDocument->getTrackbackCount())-->
|
||||
<ul id="trackbacks">
|
||||
|
||||
<!--@foreach($document->trackback_list as $key => $val)-->
|
||||
<!--@foreach($oDocument->getTrackbacks as $key => $val)-->
|
||||
<li>
|
||||
<a name="trackback_{$val->trackback_srl}"></a>
|
||||
<address>
|
||||
|
|
|
|||
|
|
@ -1,36 +1,28 @@
|
|||
<!--%import("filter/vote.xml")-->
|
||||
|
||||
<!-- 현 글의 기본 정보를 담고 있는 form. 필수 -->
|
||||
<form id="fo_document_info" action="./" method="get">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
</form>
|
||||
|
||||
<!-- 글 내용 보여주기 -->
|
||||
<div class="boardRead">
|
||||
<div class="originalContent">
|
||||
<div class="readHeader">
|
||||
<div class="titleAndCategory">
|
||||
<h4>{htmlspecialchars($document->title)}</h4>
|
||||
<!--@if($module_info->use_category == "Y" && $document->category_srl)-->
|
||||
<span class="vr">|</span><span class="category">{$category_list[$document->category_srl]->title}</span>
|
||||
<h4>{$oDocument->getTitleText()}</h4>
|
||||
<!--@if($oDocument->get('category_srl'))-->
|
||||
<span class="vr">|</span><span class="category">{$category_list[$oDocument->get('category_srl')]->title}</span>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<div class="dateAndModify">
|
||||
<span class="num">
|
||||
<strong>{zdate($document->regdate,"Y.m.d")}</strong> {zdate($document->regdate,"H:i:s")}
|
||||
<strong>{$oDocument->getRegdate('Y.m.d')}</strong> {$oDocument->getRegdate('H:i:s')}
|
||||
</span>
|
||||
<!--@if($grant->is_admin)-->
|
||||
<span class="ipaddress">
|
||||
({$document->ipaddress})
|
||||
({$oDocument->get('ipaddress')})
|
||||
</span>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->is_granted || !$document->member_srl)-->
|
||||
<!--@if($oDocument->isEditable())-->
|
||||
<ul>
|
||||
<li><a href="{getUrl('act','dispBlogWrite','document_srl',$document->document_srl)}" class="buttonTypeB"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_modify}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="{getUrl('act','dispBlogDelete','document_srl',$document->document_srl)}" class="buttonTypeB"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_delete}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="{getUrl('act','dispBlogWrite','document_srl',$oDocument->document_srl)}" class="buttonTypeB"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_modify}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
<li><a href="{getUrl('act','dispBlogDelete','document_srl',$oDocument->document_srl)}" class="buttonTypeB"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_delete}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
@ -38,42 +30,44 @@
|
|||
|
||||
<dl class="uri">
|
||||
<dt>{$lang->document_url} :</dt>
|
||||
<dd>{getUrl('','document_srl',$document->document_srl)}</dd>
|
||||
<dd>{$oDocument->getPermanentUrl()}</dd>
|
||||
|
||||
<!--@if($document->allow_trackback=='Y')-->
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<dt>{$lang->trackback_url} :</dt>
|
||||
<dd>{getUrl('','document_srl',$document->document_srl,'act','trackback')}</dd>
|
||||
<dd>{$oDocument->getTrackbackUrl()}</dd>
|
||||
<!--@end-->
|
||||
</dl>
|
||||
|
||||
<!--@if($module_info->display_writer == "on")-->
|
||||
<div class="userInfo">
|
||||
<div class="author member_{$document->member_srl}">{htmlspecialchars($document->nick_name)}</div>
|
||||
<div class="author member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="readBody">{$document->content}</div>
|
||||
<div class="readBody">{$oDocument->getContent()}</div>
|
||||
|
||||
<div class="readFooter">
|
||||
<!--@if($document->tag_list)-->
|
||||
{@ $tag_list = $oDocument->get('tag_list') }
|
||||
<!--@if(count($tag_list))-->
|
||||
<div class="tag">
|
||||
<h5><img src="./images/{$module_info->colorset}/iconTag.gif" alt="{$lang->tag}" width="17" height="10" class="tagIcon" /></h5>
|
||||
<ul>
|
||||
<!--@for($i=0;$i<count($document->tag_list);$i++)-->
|
||||
{@ $tag = $document->tag_list[$i]; }
|
||||
<!--@for($i=0;$i<count($tag_list);$i++)-->
|
||||
{@ $tag = $tag_list[$i]; }
|
||||
<li>
|
||||
<a href="{getUrl('search_target','tag','search_keyword',urlencode($tag),'document_srl','')}">{htmlspecialchars($tag)}</a><!--@if($i<count($document->tag_list)-1)-->,<!--@end-->
|
||||
<a href="{getUrl('search_target','tag','search_keyword',urlencode($tag),'document_srl','')}">{htmlspecialchars($tag)}</a><!--@if($i<count($tag_list)-1)-->,<!--@end-->
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->uploaded_count && $document->uploaded_list)-->
|
||||
<!--@if($oDocument->hasUploadedFiles())-->
|
||||
<div class="fileAttached">
|
||||
<h5>{$lang->uploaded_file} : </h5>
|
||||
<ul>
|
||||
<!--@foreach($document->uploaded_list as $key => $file)-->
|
||||
{@ $uploaded_list = $oDocument->getUploadedFiles() }
|
||||
<!--@foreach($uploaded_list as $key => $file)-->
|
||||
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
|
|
@ -83,25 +77,25 @@
|
|||
</div>
|
||||
|
||||
<ul class="replyAndTrackback">
|
||||
<!--@if($grant->write_comment&&$document->allow_comment=='Y')-->
|
||||
<li class="reply"><a href="#trackback_{$document->document_srl}">{$lang->comment} <strong>{count($document->comment_list)}</strong></a></li>
|
||||
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
|
||||
<li class="reply"><a href="#trackback_{$oDocument->document_srl}">{$lang->comment} <strong>{$oDocument->getCommentCount()}</strong></a></li>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->allow_trackback=='Y')-->
|
||||
<li class="trackback"><a href="#comment_top_{$document->document_srl}">{$lang->trackback} <strong>{count($document->trackback_list)}</strong></a></li>
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<li class="trackback"><a href="#comment_top_{$oDocument->document_srl}">{$lang->trackback} <strong>{$oDocument->getTrackbackCount()}</strong></a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 엮인글 파일 include -->
|
||||
<a name="trackback_{$document->document_srl}"></a>
|
||||
<!--@if($document->allow_trackback=='Y')-->
|
||||
<a name="trackback_{$oDocument->document_srl}"></a>
|
||||
<!--@if($oDocument->allowTrackback())-->
|
||||
<!--#include("./trackback.html")-->
|
||||
<!--@end-->
|
||||
|
||||
<!-- 댓글 파일 include -->
|
||||
<a name="comment_top_{$document->document_srl}"></a>
|
||||
<!--@if($grant->write_comment&&$document->allow_comment=='Y')-->
|
||||
{@ $document_srl = $document->document_srl; }
|
||||
<a name="comment_top_{$oDocument->document_srl}"></a>
|
||||
<!--@if($grant->write_comment && $oDocument->allowComment())-->
|
||||
{@ $document_srl = $oDocument->document_srl; }
|
||||
<!--#include("./comment.html")-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -5,62 +5,62 @@
|
|||
<form action="./" method="post" onsubmit="return procFilter(this, insert)" <!--@if($grant->fileupload)-->enctype="multipart/form-data"<!--@end--> class="boardEditor" id="fo_write">
|
||||
<fieldset>
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($document->content)}" />
|
||||
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
|
||||
<!--@if(!$is_logged)-->
|
||||
<div class="userNameAndPw">
|
||||
<label for="userName">{$lang->writer}</label>
|
||||
<input type="text" name="nick_name" value="{$document->nick_name}" class="userName inputTypeText" id="userName"/>
|
||||
<input type="text" name="nick_name" value="{$oDocument->getNickName()}" class="userName inputTypeText" id="userName"/>
|
||||
|
||||
<label for="userPw">{$lang->password}</label>
|
||||
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
|
||||
|
||||
<label for="emailAddress">{$lang->email_address}</label>
|
||||
<input type="text" name="email_address" value="{htmlspecialchars($document->email_address)}" id="emailAddress" class="emailAddress inputTypeText"/>
|
||||
<input type="text" name="email_address" value="{htmlspecialchars($oDocument->get('email_address'))}" id="emailAddress" class="emailAddress inputTypeText"/>
|
||||
|
||||
<label for="homePage">{$lang->homepage}</label>
|
||||
<input type="text" name="homepage" value="{htmlspecialchars($document->homepage)}" id="homePage" class="homePage inputTypeText"/>
|
||||
<input type="text" name="homepage" value="{htmlspecialchars($oDocument->get('homepage'))}" id="homePage" class="homePage inputTypeText"/>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="title">
|
||||
<label for="title" class="title">{$lang->title}</label>
|
||||
|
||||
<!--@if($category_list)-->
|
||||
<!--@if($module_info->use_category=="Y")-->
|
||||
<select name="category_srl" >
|
||||
<option value="">{$lang->category}</option>
|
||||
<!--@foreach($category_list as $val)-->
|
||||
<option value="{$val->category_srl}" <!--@if($category==$val->category_srl||$val->category_srl==$document->category_srl)-->selected="true"<!--@end-->>{$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
|
||||
<option value="{$val->category_srl}" <!--@if($category==$val->category_srl||$val->category_srl==$oDocument->get('category_srl'))-->selected="true"<!--@end-->>{$val->title} <!--@if($val->document_count)-->({$val->document_count})<!--@end--></option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<!--@end-->
|
||||
|
||||
<input type="text" name="title" id="title" class="inputTypeText" value="{htmlspecialchars($document->title)}" />
|
||||
<input type="text" name="title" id="title" class="inputTypeText" value="{$oDocument->getTitleText()}" />
|
||||
</div>
|
||||
|
||||
<dl class="option">
|
||||
<dt>설정옵션</dt>
|
||||
<!--@if($grant->manager)-->
|
||||
<dd>
|
||||
<input type="checkbox" name="is_notice" value="Y" <!--@if($document->is_notice== "Y")-->checked="true"<!--@end--> id="is_notice" />
|
||||
<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="true"<!--@end--> id="is_notice" />
|
||||
<label for="is_notice">{$lang->notice}</label>
|
||||
</dd>
|
||||
<dd>
|
||||
<input type="checkbox" name="lock_comment" value="Y" <!--@if($document->lock_comment == "Y")-->checked="true"<!--@end--> id="lock_comment" />
|
||||
<input type="checkbox" name="lock_comment" value="Y" <!--@if($oDocument->isLocked())-->checked="true"<!--@end--> id="lock_comment" />
|
||||
<label for="lock_comment">{$lang->lock_comment}</label>
|
||||
</dd>
|
||||
<!--@end-->
|
||||
<dd>
|
||||
<input type="checkbox" name="is_secret" value="Y" <!--@if($document->is_secret== "Y")-->checked="true"<!--@end--> id="is_secret" />
|
||||
<input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret())-->checked="true"<!--@end--> id="is_secret" />
|
||||
<label for="is_secret">{$lang->secret}</label>
|
||||
</dd>
|
||||
<dd>
|
||||
<input type="checkbox" name="allow_comment" value="Y" <!--@if($document->allow_comment != "N")-->checked="true"<!--@end--> id="allow_comment" />
|
||||
<input type="checkbox" name="allow_comment" value="Y" <!--@if($oDocument->allowComment())-->checked="true"<!--@end--> id="allow_comment" />
|
||||
<label for="allow_comment">{$lang->allow_comment}</label>
|
||||
</dd>
|
||||
<dd>
|
||||
<input type="checkbox" name="allow_trackback" value="Y" <!--@if($document->allow_trackback != "N")-->checked="true"<!--@end--> id="allow_trackback" />
|
||||
<input type="checkbox" name="allow_trackback" value="Y" <!--@if($oDocument->allowTrackback())-->checked="true"<!--@end--> id="allow_trackback" />
|
||||
<label for="allow_trackback">{$lang->allow_trackback}</label>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
|
||||
<div class="tag">
|
||||
<label for="tag">{$lang->tag}</label>
|
||||
<input type="text" name="tags" id="tag" value="{htmlspecialchars($document->tags)}" class="inputTypeText" />
|
||||
<input type="text" name="tags" id="tag" value="{htmlspecialchars($oDocument->get('tags'))}" class="inputTypeText" />
|
||||
<p class="info">{$lang->about_tag}</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue