mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@817 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
409f684e20
commit
8a4280e93a
15 changed files with 333 additions and 321 deletions
|
|
@ -5,9 +5,9 @@
|
||||||
<action name="dispPageIndex" type="view" index="true" />
|
<action name="dispPageIndex" type="view" index="true" />
|
||||||
<action name="dispPageAdminContent" type="view" admin_index="true" standalone="true" />
|
<action name="dispPageAdminContent" type="view" admin_index="true" standalone="true" />
|
||||||
<action name="dispPageAdminModuleConfig" type="view" standalone="true" />
|
<action name="dispPageAdminModuleConfig" type="view" standalone="true" />
|
||||||
<action name="dispPageAdminPageInfo" type="view" standalone="true" />
|
<action name="dispPageAdminInfo" type="view" standalone="true" />
|
||||||
<action name="dispPageAdminInsertPage" type="view" standalone="true" />
|
<action name="dispPageAdminInsert" type="view" standalone="true" />
|
||||||
<action name="dispPageAdminDeletePage" type="view" standalone="true" />
|
<action name="dispPageAdminDelete" type="view" standalone="true" />
|
||||||
<action name="procPageAdminInsert" type="controller" standalone="true" />
|
<action name="procPageAdminInsert" type="controller" standalone="true" />
|
||||||
<action name="procPageAdminDelete" type="controller" standalone="true" />
|
<action name="procPageAdminDelete" type="controller" standalone="true" />
|
||||||
<action name="procPageAdminInsertConfig" type="controller" standalone="true" />
|
<action name="procPageAdminInsertConfig" type="controller" standalone="true" />
|
||||||
|
|
|
||||||
47
modules/page/page.class.php
Normal file
47
modules/page/page.class.php
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @class page
|
||||||
|
* @author zero (zero@nzeo.com)
|
||||||
|
* @brief page 모듈의 high class
|
||||||
|
**/
|
||||||
|
|
||||||
|
class page extends ModuleObject {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 설치시 추가 작업이 필요할시 구현
|
||||||
|
**/
|
||||||
|
function moduleInstall() {
|
||||||
|
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||||
|
$oModuleController = &getController('module');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageIndex');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageAdminContent');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageAdminModuleConfig');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageAdminInfo');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageAdminInsert');
|
||||||
|
$oModuleController->insertActionFoward('page', 'view', 'dispPageAdminDelete');
|
||||||
|
$oModuleController->insertActionFoward('page', 'controller', 'procPageAdminInsert');
|
||||||
|
$oModuleController->insertActionFoward('page', 'controller', 'procPageAdminDelete');
|
||||||
|
$oModuleController->insertActionFoward('page', 'controller', 'procPageAdminInsertConfig');
|
||||||
|
|
||||||
|
// page 에서 사용할 cache디렉토리 생성
|
||||||
|
FileHandler::makeDir('./files/cache/page');
|
||||||
|
|
||||||
|
return new Object();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 설치가 이상이 없는지 체크하는 method
|
||||||
|
**/
|
||||||
|
function moduleIsInstalled() {
|
||||||
|
return new Object();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 업데이트 실행
|
||||||
|
**/
|
||||||
|
function moduleUpdate() {
|
||||||
|
return new Object();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class pagemakerController
|
* @class pageController
|
||||||
* @author zero (zero@nzeo.com)
|
* @author zero (zero@nzeo.com)
|
||||||
* @brief pagemaker 모듈의 controller class
|
* @brief page 모듈의 controller class
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class pagemakerController extends pagemaker {
|
class pageController extends page {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 초기화
|
* @brief 초기화
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 추가
|
* @brief 페이지 추가
|
||||||
**/
|
**/
|
||||||
function procInsertPage() {
|
function procPageAdminInsert() {
|
||||||
// 일단 입력된 값들을 모두 받아서 db 입력항목과 그외 것으로 분리
|
// 일단 입력된 값들을 모두 받아서 db 입력항목과 그외 것으로 분리
|
||||||
$args = Context::gets('module_srl','layout_srl','module_category_srl','page_name','browser_title','content','is_default');
|
$args = Context::gets('module_srl','layout_srl','module_category_srl','page_name','browser_title','content','is_default');
|
||||||
$args->module = 'pagemaker';
|
$args->module = 'page';
|
||||||
$args->mid = $args->page_name;
|
$args->mid = $args->page_name;
|
||||||
unset($args->page_name);
|
unset($args->page_name);
|
||||||
if($args->is_default!='Y') $args->is_default = 'N';
|
if($args->is_default!='Y') $args->is_default = 'N';
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 삭제
|
* @brief 페이지 삭제
|
||||||
**/
|
**/
|
||||||
function procDeletePage() {
|
function procPageAdminDelete() {
|
||||||
$module_srl = Context::get('module_srl');
|
$module_srl = Context::get('module_srl');
|
||||||
|
|
||||||
// 원본을 구해온다
|
// 원본을 구해온다
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
$output = $oModuleController->deleteModule($module_srl);
|
$output = $oModuleController->deleteModule($module_srl);
|
||||||
if(!$output->toBool()) return $output;
|
if(!$output->toBool()) return $output;
|
||||||
|
|
||||||
$this->add('module','pagemaker');
|
$this->add('module','page');
|
||||||
$this->add('page',Context::get('page'));
|
$this->add('page',Context::get('page'));
|
||||||
$this->setMessage('success_deleted');
|
$this->setMessage('success_deleted');
|
||||||
}
|
}
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 기본 정보의 추가
|
* @brief 페이지 기본 정보의 추가
|
||||||
**/
|
**/
|
||||||
function procInsertConfig() {
|
function procPageAdminInsertConfig() {
|
||||||
// 기본 정보를 받음
|
// 기본 정보를 받음
|
||||||
$args = Context::gets('test');
|
$args = Context::gets('test');
|
||||||
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class pagemakerView
|
* @class pageView
|
||||||
* @author zero (zero@nzeo.com)
|
* @author zero (zero@nzeo.com)
|
||||||
* @brief pagemaker 모듈의 view 클래스
|
* @brief page 모듈의 view 클래스
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class pagemakerView extends pagemaker {
|
class pageView extends page {
|
||||||
|
|
||||||
var $module_srl = 0;
|
var $module_srl = 0;
|
||||||
var $list_count = 20;
|
var $list_count = 20;
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 일반 요청시 출력
|
* @brief 일반 요청시 출력
|
||||||
**/
|
**/
|
||||||
function dispIndex() {
|
function dispPageIndex() {
|
||||||
// 템플릿에서 사용할 변수를 Context::set()
|
// 템플릿에서 사용할 변수를 Context::set()
|
||||||
if($this->module_srl) Context::set('module_srl',$this->module_srl);
|
if($this->module_srl) Context::set('module_srl',$this->module_srl);
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 관리 목록 보여줌
|
* @brief 페이지 관리 목록 보여줌
|
||||||
**/
|
**/
|
||||||
function dispAdminContent() {
|
function dispPageAdminContent() {
|
||||||
// 모듈 관련 정보 세팅
|
// 모듈 관련 정보 세팅
|
||||||
$this->initAdmin();
|
$this->initAdmin();
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
$args->list_count = 40;
|
$args->list_count = 40;
|
||||||
$args->page_count = 10;
|
$args->page_count = 10;
|
||||||
$args->s_module_category_srl = Context::get('module_category_srl');
|
$args->s_module_category_srl = Context::get('module_category_srl');
|
||||||
$output = $oDB->executeQuery('pagemaker.getPageList', $args);
|
$output = $oDB->executeQuery('page.getPageList', $args);
|
||||||
|
|
||||||
// 템플릿에 쓰기 위해서 context::set
|
// 템플릿에 쓰기 위해서 context::set
|
||||||
Context::set('total_count', $output->total_count);
|
Context::set('total_count', $output->total_count);
|
||||||
|
|
@ -81,13 +81,13 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지에 필요한 기본 설정들
|
* @brief 페이지에 필요한 기본 설정들
|
||||||
**/
|
**/
|
||||||
function dispAdminModuleConfig() {
|
function dispPageAdminModuleConfig() {
|
||||||
// 관리자 관련 정보 세팅
|
// 관리자 관련 정보 세팅
|
||||||
$this->initAdmin();
|
$this->initAdmin();
|
||||||
|
|
||||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$config = $oModuleModel->getModuleConfig('pagemaker');
|
$config = $oModuleModel->getModuleConfig('page');
|
||||||
Context::set('config',$config);
|
Context::set('config',$config);
|
||||||
|
|
||||||
// 템플릿 파일 지정
|
// 템플릿 파일 지정
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 선택된 페이지의 정보 출력
|
* @brief 선택된 페이지의 정보 출력
|
||||||
**/
|
**/
|
||||||
function dispAdminPageInfo() {
|
function dispPageAdminInfo() {
|
||||||
// 관리자 관련 정보 세팅
|
// 관리자 관련 정보 세팅
|
||||||
$this->initAdmin();
|
$this->initAdmin();
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 추가 폼 출력
|
* @brief 페이지 추가 폼 출력
|
||||||
**/
|
**/
|
||||||
function dispAdminInsertPage() {
|
function dispPageAdminInsert() {
|
||||||
// 관리자 관련 정보 세팅
|
// 관리자 관련 정보 세팅
|
||||||
$this->initAdmin();
|
$this->initAdmin();
|
||||||
|
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 페이지 삭제 화면 출력
|
* @brief 페이지 삭제 화면 출력
|
||||||
**/
|
**/
|
||||||
function dispAdminDeletePage() {
|
function dispPageAdminDelete() {
|
||||||
// 관리자 관련 정보 세팅
|
// 관리자 관련 정보 세팅
|
||||||
$this->initAdmin();
|
$this->initAdmin();
|
||||||
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* @class pagemaker
|
|
||||||
* @author zero (zero@nzeo.com)
|
|
||||||
* @brief pagemaker 모듈의 high class
|
|
||||||
**/
|
|
||||||
|
|
||||||
class pagemaker extends ModuleObject {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 설치시 추가 작업이 필요할시 구현
|
|
||||||
**/
|
|
||||||
function moduleInstall() {
|
|
||||||
// plugin 에서 사용할 cache디렉토리 생성
|
|
||||||
FileHandler::makeDir('./files/cache/page');
|
|
||||||
|
|
||||||
return new Object();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 설치가 이상이 없는지 체크하는 method
|
|
||||||
**/
|
|
||||||
function moduleIsInstalled() {
|
|
||||||
return new Object();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 업데이트 실행
|
|
||||||
**/
|
|
||||||
function moduleUpdate() {
|
|
||||||
return new Object();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<filter name="delete_page" module="pagemaker" act="procDeletePage">
|
<filter name="delete_page" module="pagemaker" act="procPageAdminDelete">
|
||||||
<form>
|
<form>
|
||||||
<node target="module_srl" required="true" />
|
<node target="module_srl" required="true" />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<filter name="insert_config" module="pagemaker" act="procInsertConfig" confirm_msg_code="confirm_submit">
|
<filter name="insert_config" module="pagemaker" act="procPageAdminInsertConfig" confirm_msg_code="confirm_submit">
|
||||||
<form />
|
<form />
|
||||||
<response>
|
<response>
|
||||||
<tag name="error" />
|
<tag name="error" />
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<filter name="insert_page" module="pagemaker" act="procInsertPage" confirm_msg_code="confirm_submit">
|
<filter name="insert_page" module="pagemaker" act="procPageAdminInsert" confirm_msg_code="confirm_submit">
|
||||||
<form>
|
<form>
|
||||||
<node target="mid" required="true" filter="alpha_number" />
|
<node target="mid" required="true" filter="alpha_number" />
|
||||||
<node target="browser_title" required="true" maxlength="250" />
|
<node target="browser_title" required="true" maxlength="250" />
|
||||||
|
|
|
||||||
|
|
@ -39,12 +39,12 @@
|
||||||
{$module_category[$val->module_category_srl]->title}
|
{$module_category[$val->module_category_srl]->title}
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{getUrl('act','dispAdminPageInfo','module_srl',$val->module_srl)}">{$val->mid}</a></td>
|
<td><a href="{getUrl('act','dispPageAdminInfo','module_srl',$val->module_srl)}">{$val->mid}</a></td>
|
||||||
<td>{$val->browser_title}</td>
|
<td>{$val->browser_title}</td>
|
||||||
<td>{$val->is_default}</td>
|
<td>{$val->is_default}</td>
|
||||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||||
<td><a href="./?mid={$val->mid}" target="_blank">{$lang->cmd_move}</a></td>
|
<td><a href="./?mid={$val->mid}" target="_blank">{$lang->cmd_move}</a></td>
|
||||||
<td><!--@if($val->is_default!='Y')--><a href="{getUrl('act','dispAdminDeletePage','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a><!--@end--></td>
|
<td><!--@if($val->is_default!='Y')--><a href="{getUrl('act','dispPageAdminDelete','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a><!--@end--></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<!-- 버튼 -->
|
<!-- 버튼 -->
|
||||||
<div>
|
<div>
|
||||||
[<a href="{getUrl('act','dispAdminInsertPage','module_srl','')}">{$lang->cmd_make}</a>]
|
[<a href="{getUrl('act','dispPageAdminInsert','module_srl','')}">{$lang->cmd_make}</a>]
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 페이지 네비게이션 -->
|
<!-- 페이지 네비게이션 -->
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input type="submit" value="{$lang->cmd_delete}" />
|
<input type="submit" value="{$lang->cmd_delete}" />
|
||||||
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispAdminContent')}'" />
|
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispPageAdminContent')}'" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input type="button" value="{$lang->cmd_list}" onclick="location.href='{getUrl('act','dispAdminContent')}'" />
|
<input type="button" value="{$lang->cmd_list}" onclick="location.href='{getUrl('act','dispPageAdminContent')}'" />
|
||||||
<input type="button" value="{$lang->cmd_modify}" onclick="location.href='{getUrl('act','dispAdminInsertPage')}'" />
|
<input type="button" value="{$lang->cmd_modify}" onclick="location.href='{getUrl('act','dispPageAdminInsert')}'" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
<th>{$lang->plugin}</th>
|
<th>{$lang->plugin}</th>
|
||||||
<td>
|
<td>
|
||||||
<!--@foreach($plugin_list as $plugin)-->
|
<!--@foreach($plugin_list as $plugin)-->
|
||||||
<a href="#" onclick="winopen('./?module=plugin&act=dispGenerateCodeInPage&selected_plugin={$plugin->plugin}&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="winopen('./?module=plugin&act=dispPluginGenerateCodeInPage&selected_plugin={$plugin->plugin}&module_srl={$module_srl}','GenerateCodeInPage','left=10,top10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;">{$plugin->title}</a>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','dispAdminPageInfo','module_srl',$module_srl)}'" />
|
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','dispPageAdminInfo','module_srl',$module_srl)}'" />
|
||||||
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
|
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue