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

This commit is contained in:
zero 2007-04-02 02:22:11 +00:00
parent 9c582a571e
commit 6bb189a34b
48 changed files with 705 additions and 720 deletions

View file

@ -15,7 +15,9 @@
* @brief 초기화
**/
function init() {
// template path 지정
if(substr_count($this->act, 'Admin')) $this->initAdmin();
// 템플릿 경로 구함 (page의 경우 tpl에 관리자용 템플릿 모아놓음)
$this->setTemplatePath($this->module_path.'tpl');
}
@ -32,9 +34,6 @@
// 모듈 카테고리 목록을 구함
$module_category = $oModuleModel->getModuleCategories();
Context::set('module_category', $module_category);
// 템플릿 경로 구함 (page의 경우 tpl에 관리자용 템플릿 모아놓음)
$this->setTemplatePath($this->module_path.'tpl');
}
/**
@ -47,7 +46,6 @@
Context::set('module_info', $this->module_info);
Context::set('page_content', $this->module_info->content);
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('content');
}
@ -55,9 +53,6 @@
* @brief 페이지 관리 목록 보여줌
**/
function dispPageAdminContent() {
// 모듈 관련 정보 세팅
$this->initAdmin();
// 등록된 page 모듈을 불러와 세팅
$oDB = &DB::getInstance();
$args->sort_index = "module_srl";
@ -82,9 +77,6 @@
* @brief 페이지에 필요한 기본 설정들
**/
function dispPageAdminModuleConfig() {
// 관리자 관련 정보 세팅
$this->initAdmin();
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('page');
@ -98,9 +90,6 @@
* @brief 선택된 페이지의 정보 출력
**/
function dispPageAdminInfo() {
// 관리자 관련 정보 세팅
$this->initAdmin();
// GET parameter에서 module_srl을 가져옴
$module_srl = Context::get('module_srl');
@ -134,9 +123,6 @@
* @brief 페이지 추가 출력
**/
function dispPageAdminInsert() {
// 관리자 관련 정보 세팅
$this->initAdmin();
// 레이아웃 목록을 구해옴
$oLayoutMode = &getModel('layout');
$layout_list = $oLayoutMode->getLayoutList();
@ -181,9 +167,6 @@
* @brief 페이지 삭제 화면 출력
**/
function dispPageAdminDelete() {
// 관리자 관련 정보 세팅
$this->initAdmin();
$module_srl = Context::get('module_srl');
if(!$module_srl) return $this->dispContent();

View file

@ -1,4 +1,4 @@
<!--%import("js/admin.js")-->
<!--%import("js/page_admin.js")-->
<!-- 페이지 정보 -->
<div>

View file

@ -1,7 +1,7 @@
/**
* @file modules/page/js/admin.js
* @file modules/page/js/page_admin.js
* @author zero (zero@nzeo.com)
* @desc page모듈의 관리자용 javascript
* @brief page모듈의 관리자용 javascript
**/
/* 모듈 생성 후 */
@ -14,8 +14,8 @@ function completeInsertPage(ret_obj) {
alert(message);
var url = "./?module=admin&module_srl="+module_srl+"&act=dispPageAdminInfo";
if(page) url += "&page="+page;
var url = location.href.setQuery('module_srl',module_srl).setQuery('act','dispPageAdminInfo');
if(page) url = url.setQuery('page',page);
location.href = url;
}
@ -28,8 +28,8 @@ function completeDeletePage(ret_obj) {
var page = ret_obj['page'];
alert(message);
var url = "./?module=admin&act=dispPageAdminContent";
if(page) url += "&page="+page;
var url = location.href.setQuery('act','dispPageAdminContent');
if(page) url = url.setQuery('page',page);
location.href = url;
}
@ -38,5 +38,5 @@ function completeDeletePage(ret_obj) {
function doChangeCategory(sel_obj, url) {
var module_category_srl = sel_obj.options[sel_obj.selectedIndex].value;
if(!module_category_srl) location.href=url;
else location.href=url+'&module_category_srl='+module_category_srl;
else location.href = location.href.setQuery('module_category_srl',module_category_srl);
}

View file

@ -1,5 +1,5 @@
<!--%import("filter/delete_page.xml")-->
<!--%import("js/admin.js")-->
<!--%import("js/page_admin.js")-->
<form action="./" method="get" onsubmit="return procFilter(this, delete_page)">
<input type="hidden" name="page" value="{$page}" />

View file

@ -1,5 +1,5 @@
<!--%import("filter/insert_page.xml")-->
<!--%import("js/admin.js")-->
<!--%import("js/page_admin.js")-->
<div>
<!--@if(!$module_srl)-->
@ -73,7 +73,7 @@
<th>{$lang->plugin}</th>
<td>
<!--@foreach($plugin_list as $plugin)-->
<a href="#" onclick="winopen('./?module=plugin&amp;act=dispPluginGenerateCodeInPage&amp;selected_plugin={$plugin->plugin}&amp;module_srl={$module_srl}','GenerateCodeInPage','left=10,top10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;">{$plugin->title}</a>
<a href="#" onclick="popopen('./?module=plugin&amp;act=dispPluginGenerateCodeInPage&amp;selected_plugin={$plugin->plugin}&amp;module_srl={$module_srl}','GenerateCodeInPage');return false;">{$plugin->title}</a>
<!--@end-->
</td>
</tr>