git-svn-id: http://xe-core.googlecode.com/svn/trunk@481 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-16 03:49:40 +00:00
parent 267fbb3ddc
commit ea86e795ff
5 changed files with 34 additions and 11 deletions

View file

@ -2,6 +2,6 @@
<module>
<grants />
<actions>
<action name="dispEditor" type="view" standalone="true" />
<action name="dispPopup" type="view" standalone="true" />
</actions>
</module>

View file

@ -11,15 +11,28 @@
* @brief 초기화
**/
function init() {
// template path 지정
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief 에디터 출력
* @brief 에디터return
**/
function dispEditor() {
$this->setTemplateFile('editor.html');
function getEditor($upload_target_srl) {
Context::set('upload_target_srl', $upload_target_srl);
$tpl_path = $this->module_path.'tpl';
$tpl_file = 'editor.html';
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
return $oTemplate->compile($tpl_path, $tpl_file);
}
/**
* @brief 팝업 출력 출력
**/
function dispPopup() {
$this->setTemplatePath($this->module_path.'tpl/popup');
$this->setTemplateFile('emoticon.html');
}
}