mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
add reason_update DB column.
This commit is contained in:
parent
de127f27f8
commit
2a824e150c
5 changed files with 13 additions and 3 deletions
|
|
@ -151,12 +151,14 @@ class boardController extends board
|
||||||
$obj->last_update = $obj->regdate = date('YmdHis');
|
$obj->last_update = $obj->regdate = date('YmdHis');
|
||||||
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
||||||
}
|
}
|
||||||
|
$obj->reason_update = escape($obj->reason_update);
|
||||||
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
||||||
$msg_code = 'success_updated';
|
$msg_code = 'success_updated';
|
||||||
|
|
||||||
// insert a new document otherwise
|
// insert a new document otherwise
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$output = $oDocumentController->insertDocument($obj, $bAnonymous);
|
$output = $oDocumentController->insertDocument($obj, $bAnonymous);
|
||||||
$msg_code = 'success_registed';
|
$msg_code = 'success_registed';
|
||||||
$obj->document_srl = $output->get('document_srl');
|
$obj->document_srl = $output->get('document_srl');
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
<input type="checkbox" name="notify_message" class="iCheck" value="Y" checked="checked"|cond="$oDocument->useNotify()" id="notify_message" />
|
<input type="checkbox" name="notify_message" class="iCheck" value="Y" checked="checked"|cond="$oDocument->useNotify()" id="notify_message" />
|
||||||
<label for="notify_message">{$lang->notify}</label>
|
<label for="notify_message">{$lang->notify}</label>
|
||||||
</block>
|
</block>
|
||||||
|
|
||||||
<!--@if(is_array($status_list))-->
|
<!--@if(is_array($status_list))-->
|
||||||
<!--@foreach($status_list AS $key=>$value)-->
|
<!--@foreach($status_list AS $key=>$value)-->
|
||||||
<input type="radio" name="status" value="{$key}" id="{$key}" <!--@if($oDocument->get('status') == $key || ($key == 'PUBLIC' && !$document_srl))-->checked="checked"<!--@end--> />
|
<input type="radio" name="status" value="{$key}" id="{$key}" <!--@if($oDocument->get('status') == $key || ($key == 'PUBLIC' && !$document_srl))-->checked="checked"<!--@end--> />
|
||||||
|
|
@ -67,6 +68,10 @@
|
||||||
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
|
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
|
||||||
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
|
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
|
||||||
</span>
|
</span>
|
||||||
|
<span class="item" cond="$oDocument->get('document_srl')">
|
||||||
|
<label for="reason_update" class="iLabel">reason update</label>
|
||||||
|
<input type="text" name="reason_update" id="reason_update" value="" class="iText" style="width:300px" title="reason update" />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnArea">
|
<div class="btnArea">
|
||||||
<block cond="!$oDocument->isExists() || $oDocument->get('status') == 'TEMP'">
|
<block cond="!$oDocument->isExists() || $oDocument->get('status') == 'TEMP'">
|
||||||
|
|
|
||||||
|
|
@ -808,6 +808,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_args->reason_update = $obj->reason_update;
|
||||||
$update_output = executeQuery('document.insertDocumentUpdateLog', $update_args);
|
$update_output = executeQuery('document.insertDocumentUpdateLog', $update_args);
|
||||||
|
|
||||||
return $update_output;
|
return $update_output;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
<column name="update_nick_name" var="update_nick_name" notnull="notnull" />
|
<column name="update_nick_name" var="update_nick_name" notnull="notnull" />
|
||||||
<column name="tags" var="tags" />
|
<column name="tags" var="tags" />
|
||||||
<column name="extra_vars" var="extra_vars" />
|
<column name="extra_vars" var="extra_vars" />
|
||||||
|
<column name="reason_update" var="reason_update" />
|
||||||
<column name="regdate" var="regdate" default="curdate()" />
|
<column name="regdate" var="regdate" default="curdate()" />
|
||||||
</columns>
|
</columns>
|
||||||
</query>
|
</query>
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,5 @@
|
||||||
<column name="update_nick_name" type="varchar" size="80" />
|
<column name="update_nick_name" type="varchar" size="80" />
|
||||||
<column name="tags" type="text" />
|
<column name="tags" type="text" />
|
||||||
<column name="extra_vars" type="text" />
|
<column name="extra_vars" type="text" />
|
||||||
|
<column name="reason_update" type="text" />
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue