mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Enhanced to create a modified reason.
This commit is contained in:
parent
2a824e150c
commit
d38a4fd987
7 changed files with 66 additions and 1 deletions
|
|
@ -1162,6 +1162,21 @@ class boardView extends board
|
|||
$this->setTemplateFile('update_list');
|
||||
}
|
||||
|
||||
function dispBoardUpdateLogView()
|
||||
{
|
||||
$oDocumentModel = getModel('document');
|
||||
$update_id = Context::get('update_id');
|
||||
|
||||
if($this->grant->update_view !== true)
|
||||
{
|
||||
return new Object(-1, 'msg_not_permitted');
|
||||
}
|
||||
$update_log = $oDocumentModel->getUpdateLog($update_id);
|
||||
Context::set('update_log', $update_log);
|
||||
|
||||
$this->setTemplateFile('update_view');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief the method for displaying the warning messages
|
||||
* display an error message if it has not a special design
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@
|
|||
<action name="dispBoardDeleteComment" type="view" standalone="false" />
|
||||
<action name="dispBoardDeleteTrackback" type="view" standalone="false" />
|
||||
<action name="dispBoardMessage" type="view" />
|
||||
<action name="dispBoardUpdateLogView" type="view" />
|
||||
|
||||
<action name="procBoardInsertDocument" type="controller" ruleset="insertDocument" standalone="false" />
|
||||
<action name="procBoardDeleteDocument" type="controller" standalone="false" />
|
||||
|
|
|
|||
|
|
@ -59,3 +59,4 @@ $lang->msg_protect_regdate_comment = '%s일 이전의 댓글은 수정 또는
|
|||
$lang->msg_dont_have_update_log = '업데이트 로그가 기록되어 있지 않은 게시글입니다.';
|
||||
$lang->original_letter = '원본글';
|
||||
$lang->msg_warning_update_log = '<span class="x_label x_label-important">주의!</span> 사용시 디비가 많이 늘어날 수 있습니다.';
|
||||
$lang->reason_update = '수정한 이유';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<tbody cond="$updatelog->data">
|
||||
<tr loop="$updatelog->data=>$val">
|
||||
<td class="title">
|
||||
<a href="">{$val->title}</a>
|
||||
<a href="{getUrl('', 'mid', $mid, 'act', 'dispBoardUpdateLogView', 'update_id', $val->update_id)}">{$val->title}</a>
|
||||
</td>
|
||||
<td class="author">
|
||||
{$val->update_nick_name}
|
||||
|
|
|
|||
27
modules/board/skins/xedition/update_view.html
Normal file
27
modules/board/skins/xedition/update_view.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<include target="_header.html" />
|
||||
<div class="update-log">
|
||||
<div class="board_read" >
|
||||
<!-- READ HEADER -->
|
||||
<div class="read_header">
|
||||
<h1>
|
||||
<a href="{getUrl('category',$update_log->category_srl, 'document_srl', '')}" class="category" cond="$module_info->use_category=='Y' && $update_log->category_srl">{$category_list[$update_log->category_srl]->title}</a>
|
||||
<a>{$update_log->title}</a>
|
||||
</h1>
|
||||
<p class="meta">
|
||||
<span class="time">
|
||||
<i class="xi-time"></i> {zdate($update_log->regdate,'Y.m.d H:i:s')}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- READ BODY -->
|
||||
<div class="read_body">
|
||||
{$update_log->content}
|
||||
</div>
|
||||
<div class="read_body">
|
||||
{$lang->reason_update} :
|
||||
{$update_log->reason_update}
|
||||
</div>
|
||||
<!-- /READ BODY -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1557,6 +1557,16 @@ class documentModel extends document
|
|||
|
||||
return $output;
|
||||
}
|
||||
|
||||
function getUpdateLog($update_id)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->update_id = $update_id;
|
||||
$output = exeCuteQuery('document.getUpdateLog', $args);
|
||||
$updage_log = $output->data;
|
||||
|
||||
return $updage_log;
|
||||
}
|
||||
}
|
||||
/* End of file document.model.php */
|
||||
/* Location: ./modules/document/document.model.php */
|
||||
|
|
|
|||
11
modules/document/queries/getUpdateLog.xml
Normal file
11
modules/document/queries/getUpdateLog.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getUpdateLog" action="select">
|
||||
<tables>
|
||||
<table name="document_update_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="update_id" var="update_id" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue