mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
내역을 확인할 수 있도록 추가
This commit is contained in:
parent
74fcee987e
commit
9a60af1871
7 changed files with 69 additions and 2 deletions
|
|
@ -263,6 +263,16 @@
|
||||||
right:0;
|
right:0;
|
||||||
border-radius: 0 2px 2px 0;
|
border-radius: 0 2px 2px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.update-log {
|
||||||
|
width:100%;
|
||||||
|
border-bottom:1px solid #dbdbdb;
|
||||||
|
margin: 5px auto 5px auto;
|
||||||
|
|
||||||
|
padding:5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/* Board Write */
|
/* Board Write */
|
||||||
|
|
||||||
/* write_form.html */
|
/* write_form.html */
|
||||||
|
|
@ -463,6 +473,9 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
color : #666;
|
color : #666;
|
||||||
}
|
}
|
||||||
|
.update-log .read_header .meta {
|
||||||
|
border-bottom:0;
|
||||||
|
}
|
||||||
.read_header .meta > span { margin-left: 8px ;}
|
.read_header .meta > span { margin-left: 8px ;}
|
||||||
.read_header .meta > span:first-child {margin-left:0;}
|
.read_header .meta > span:first-child {margin-left:0;}
|
||||||
.read_header .meta:after {
|
.read_header .meta:after {
|
||||||
|
|
|
||||||
23
modules/board/skins/xedition/update_list.html
Normal file
23
modules/board/skins/xedition/update_list.html
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
<include target="_header.html" />
|
||||||
|
<div class="update-log" loop="$updatelog=>$val">
|
||||||
|
<div class="board_read" >
|
||||||
|
<!-- READ HEADER -->
|
||||||
|
<div class="read_header">
|
||||||
|
<h1>
|
||||||
|
<a href="{getUrl('category',$val->category_srl, 'document_srl', '')}" class="category" cond="$module_info->use_category=='Y' && $val->category_srl">{$category_list[$val->category_srl]->title}</a>
|
||||||
|
<a>{$val->title}</a>
|
||||||
|
</h1>
|
||||||
|
<p class="meta">
|
||||||
|
<span class="time">
|
||||||
|
<i class="xi-time"></i> {zdate($val->regdate,'Y.m.d H:i:s')}
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- READ BODY -->
|
||||||
|
<div class="read_body">
|
||||||
|
{$val->content}
|
||||||
|
</div>
|
||||||
|
<!-- /READ BODY -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -689,6 +689,14 @@ class documentController extends document
|
||||||
if($obj->update_log_setting === 'Y')
|
if($obj->update_log_setting === 'Y')
|
||||||
{
|
{
|
||||||
$update_args = new stdClass();
|
$update_args = new stdClass();
|
||||||
|
if($obj->category_srl)
|
||||||
|
{
|
||||||
|
$update_args->category_srl = $obj->category_srl;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$update_args->category_srl = $source_obj->get('category_srl');
|
||||||
|
}
|
||||||
$update_args->document_srl = $obj->document_srl;
|
$update_args->document_srl = $obj->document_srl;
|
||||||
$update_args->member_srl = $source_obj->get('member_srl');
|
$update_args->member_srl = $source_obj->get('member_srl');
|
||||||
$update_args->module_srl = $source_obj->get('module_srl');
|
$update_args->module_srl = $source_obj->get('module_srl');
|
||||||
|
|
@ -701,7 +709,7 @@ class documentController extends document
|
||||||
$update_args->update_nick_name = $logged_info->nick_name;
|
$update_args->update_nick_name = $logged_info->nick_name;
|
||||||
$update_args->tags = $obj->tags;
|
$update_args->tags = $obj->tags;
|
||||||
$update_args->extra_vars = $obj->extra_vars;
|
$update_args->extra_vars = $obj->extra_vars;
|
||||||
$update_output = executeQuery('document.insertUpdateLog', $update_args);
|
$update_output = executeQuery('document.insertDocumentUpdateLog', $update_args);
|
||||||
if(!$update_output->toBool())
|
if(!$update_output->toBool())
|
||||||
{
|
{
|
||||||
$oDB->rollback();
|
$oDB->rollback();
|
||||||
|
|
|
||||||
|
|
@ -1548,6 +1548,16 @@ class documentModel extends document
|
||||||
|
|
||||||
return $document_list;
|
return $document_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getDocumentUpdateLog($document_srl)
|
||||||
|
{
|
||||||
|
$args = new stdClass();
|
||||||
|
$args->document_srl = $document_srl;
|
||||||
|
$output = executeQueryArray('document.getDocumentUpdateLog', $args);
|
||||||
|
$update_list = $output->data;
|
||||||
|
|
||||||
|
return $update_list;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* End of file document.model.php */
|
/* End of file document.model.php */
|
||||||
/* Location: ./modules/document/document.model.php */
|
/* Location: ./modules/document/document.model.php */
|
||||||
|
|
|
||||||
11
modules/document/queries/getDocumentUpdateLog.xml
Normal file
11
modules/document/queries/getDocumentUpdateLog.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="getDocumentUpdateLog" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="document_update_list" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="*" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<query id="insertUpdateLog" action="insert">
|
<query id="insertDocumentUpdateLog" action="insert">
|
||||||
<tables>
|
<tables>
|
||||||
<table name="document_update_list" />
|
<table name="document_update_list" />
|
||||||
</tables>
|
</tables>
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
<column name="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
<column name="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
||||||
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||||
<column name="update_member_srl" var="update_member_srl" filter="number" />
|
<column name="update_member_srl" var="update_member_srl" filter="number" />
|
||||||
|
<column name="category_srl" var="category_srl" filter="number" />
|
||||||
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
|
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
|
||||||
<column name="nick_name" var="nick_name" notnull="notnull" />
|
<column name="nick_name" var="nick_name" notnull="notnull" />
|
||||||
<column name="title" var="title" notnull="notnull" />
|
<column name="title" var="title" notnull="notnull" />
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" />
|
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" />
|
||||||
<column name="update_member_srl" type="number" size="11" notnull="notnull" />
|
<column name="update_member_srl" type="number" size="11" notnull="notnull" />
|
||||||
<column name="module_srl" type="number" size="11" notnull="notnull" />
|
<column name="module_srl" type="number" size="11" notnull="notnull" />
|
||||||
|
<column name="category_srl" type="number" size="11" />
|
||||||
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress" />
|
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress" />
|
||||||
<column name="nick_name" type="varchar" size="80" notnull="notnull" />
|
<column name="nick_name" type="varchar" size="80" notnull="notnull" />
|
||||||
<column name="regdate" type="date" index="idx_regdate" />
|
<column name="regdate" type="date" index="idx_regdate" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue