mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +09:00
restore 기능 추가, history list 정렬 및 페이징 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6224 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ba309f290b
commit
108d5a2175
9 changed files with 47 additions and 6 deletions
|
|
@ -49,9 +49,18 @@
|
|||
if(!$oDocument->isExists()) return $this->stop('msg_invalid_request');
|
||||
$entry = $oDocument->getTitleText();
|
||||
Context::set('entry',$entry);
|
||||
$histories = $oDocumentModel->getHistories($document_srl, 10, $page);
|
||||
if(!$histories) $histories = array();
|
||||
Context::set('histories',$histories);
|
||||
$output = $oDocumentModel->getHistories($document_srl, 10, $page);
|
||||
debugPrint($output);
|
||||
if(!$output->toBool() || !$output->data)
|
||||
{
|
||||
Context::set('histories', array());
|
||||
}
|
||||
else {
|
||||
Context::set('histories',$output->data);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
}
|
||||
|
||||
Context::set('oDocument', $oDocument);
|
||||
$this->setTemplateFile('histories');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue