mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
67 lines
1.9 KiB
PHP
67 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* @class layoutView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief layout 모듈의 View class
|
|
**/
|
|
|
|
class layoutView extends layout {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
$this->setTemplatePath($this->module_path.'tpl.admin');
|
|
}
|
|
|
|
/**
|
|
* @brief 레이아웃 관리의 첫 페이지
|
|
**/
|
|
function dispContent() {
|
|
$oLayoutModel = &getModel('layout');
|
|
$layout_list = $oLayoutModel->getLayoutList();
|
|
Context::set('layout_list', $layout_list);
|
|
|
|
$this->setTemplateFile('index');
|
|
}
|
|
|
|
/**
|
|
* @brief 레이아웃 등록 페이지 step 1
|
|
**/
|
|
function dispInsertLayout() {
|
|
// 레이아웃 목록을 세팅
|
|
$oLayoutModel = &getModel('layout');
|
|
$layout_list = $oLayoutModel->getDownloadedLayoutList();
|
|
Context::set('layout_list', $layout_list);
|
|
|
|
$this->setTemplateFile('insert_layout');
|
|
}
|
|
|
|
/**
|
|
* @brief 레이아웃 등록 페이지 step 2
|
|
**/
|
|
function dispInsertLayout2() {
|
|
// 선택된 레이아웃의 정볼르 구해서 세팅
|
|
$layout = Context::get('layout');
|
|
$oLayoutModel = &getModel('layout');
|
|
$info = $oLayoutModel->getLayoutInfoXml($layout);
|
|
Context::set('info', $info);
|
|
|
|
$this->setTemplateFile('insert_layout2');
|
|
}
|
|
|
|
/**
|
|
* @brief 레이아웃 목록을 보여줌
|
|
**/
|
|
function dispLayoutList() {
|
|
// 레이아웃 목록을 세팅
|
|
$oLayoutModel = &getModel('layout');
|
|
$layout_list = $oLayoutModel->getDownloadedLayoutList();
|
|
Context::set('layout_list', $layout_list);
|
|
|
|
$this->setTemplateFile('layout_list');
|
|
}
|
|
|
|
|
|
}
|
|
?>
|