mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
게시판/블로그/페이지 모듈의 글작성 하단에 미리보기 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2014 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5278a58c80
commit
812283e33a
22 changed files with 72 additions and 14 deletions
|
|
@ -3,8 +3,10 @@
|
|||
<grants />
|
||||
<actions>
|
||||
<action name="dispDocumentPrint" type="view" standalone="true" />
|
||||
<action name="dispDocumentPreview" type="view" standalone="true" />
|
||||
|
||||
<action name="dispDocumentAdminList" type="view" admin_index="true" standalone="true" />
|
||||
|
||||
<action name="procDocumentAdminDeleteChecked" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -40,6 +40,17 @@
|
|||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('print_page');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 미리 보기
|
||||
**/
|
||||
function dispDocumentPreview() {
|
||||
Context::set('layout','none');
|
||||
|
||||
$content = Context::get('content');
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('preview_page');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
5
modules/document/tpl/preview_page.html
Normal file
5
modules/document/tpl/preview_page.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!--%import("./js/document_admin.js")-->
|
||||
<!--%import("./css/document.css")-->
|
||||
|
||||
<div class="fr"><a href="#" onclick="window.close();return false;" class="button"><span>{$lang->cmd_close}</span></a></div>
|
||||
{$content}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<!--%import("./css/document.css")-->
|
||||
<!--%import("./js/document_admin.js")-->
|
||||
<!--%import("./css/document.css")-->
|
||||
|
||||
<div><h1>{$oDocument->getTitleText()}</h1></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue