mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@678 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
11d48932d7
commit
b505bb44c2
9 changed files with 17 additions and 56 deletions
|
|
@ -9,6 +9,7 @@
|
|||
<column name="skin" var="skin" minlength="1" maxlength="250" />
|
||||
<column name="browser_title" var="browser_title" notnull="notnull" minlength="1" maxlength="250" />
|
||||
<column name="description" var="description" />
|
||||
<column name="content" var="content" />
|
||||
<column name="module" var="module" notnull="notnull" maxlength="80"/>
|
||||
<column name="is_default" var="is_default" default="N" notnull="notnull" />
|
||||
<column name="menu_srl" var="menu_srl" filter="number" />
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<column name="skin" var="skin" notnull="notnull" minlength="1" maxlength="250" />
|
||||
<column name="browser_title" var="browser_title" notnull="notnull" minlength="1" maxlength="250" />
|
||||
<column name="description" var="description" />
|
||||
<column name="content" var="content" />
|
||||
<column name="module" var="module" notnull="notnull" maxlength="80"/>
|
||||
<column name="is_default" var="is_default" default="N" notnull="notnull" />
|
||||
<column name="menu_srl" var="menu_srl" filter="number" />
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
<actions>
|
||||
<action name="dispAdminContent" type="view" admin_index="true" standalone="true" />
|
||||
<action name="dispAdminModuleConfig" type="view" standalone="true" />
|
||||
<action name="dispAdminBoardInfo" type="view" standalone="true" />
|
||||
<action name="dispAdminInsertBoard" type="view" standalone="true" />
|
||||
<action name="dispAdminDeleteBoard" type="view" standalone="true" />
|
||||
<action name="procInsertBoard" type="controller" standalone="true" />
|
||||
<action name="procDeleteBoard" type="controller" standalone="true" />
|
||||
<action name="dispAdminPageInfo" type="view" standalone="true" />
|
||||
<action name="dispAdminInsertPage" type="view" standalone="true" />
|
||||
<action name="dispAdminDeletePage" type="view" standalone="true" />
|
||||
<action name="procInsertPage" type="controller" standalone="true" />
|
||||
<action name="procDeletePage" type="controller" standalone="true" />
|
||||
<action name="procInsertConfig" type="controller" standalone="true" />
|
||||
<action name="procUploadFile" type="controller" standalone="true" />
|
||||
<action name="procDeleteFile" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -18,20 +18,12 @@
|
|||
**/
|
||||
function procInsertBoard() {
|
||||
// 일단 입력된 값들을 모두 받아서 db 입력항목과 그외 것으로 분리
|
||||
$args = Context::gets('module_srl','layout_srl','module_category_srl','page_name','skin','browser_title','description','is_default','header_text','footer_text','admin_id');
|
||||
$args = Context::gets('module_srl','layout_srl','module_category_srl','page_name','browser_title','content','is_default');
|
||||
$args->module = 'page';
|
||||
$args->mid = $args->page_name;
|
||||
unset($args->page_name);
|
||||
if($args->is_default!='Y') $args->is_default = 'N';
|
||||
|
||||
// 기본 값외의 것들을 정리
|
||||
$extra_var = delObjectVars(Context::getRequestVars(), $args);
|
||||
if($extra_var->use_category!='Y') $extra_var->use_category = 'N';
|
||||
unset($extra_var->mo);
|
||||
unset($extra_var->act);
|
||||
unset($extra_var->page);
|
||||
unset($extra_var->page_name);
|
||||
|
||||
// module_srl이 넘어오면 원 모듈이 있는지 확인
|
||||
if($args->module_srl) {
|
||||
$oModuleModel = &getModel('module');
|
||||
|
|
@ -41,9 +33,6 @@
|
|||
if($module_info->module_srl != $args->module_srl) unset($args->module_srl);
|
||||
}
|
||||
|
||||
// $extra_var를 serialize
|
||||
$args->extra_vars = serialize($extra_var);
|
||||
|
||||
// module 모듈의 controller 객체 생성
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
|
|
@ -61,8 +50,6 @@
|
|||
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->add('page',Context::get('page'));
|
||||
$this->add('module_srl',$output->get('module_srl'));
|
||||
$this->setMessage($msg_code);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
/**
|
||||
* @brief 선택된 페이지의 정보 출력
|
||||
**/
|
||||
function dispAdminBoardInfo() {
|
||||
function dispAdminPageInfo() {
|
||||
// 관리자 관련 정보 세팅
|
||||
$this->initAdmin();
|
||||
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
/**
|
||||
* @brief 페이지 추가 폼 출력
|
||||
**/
|
||||
function dispAdminInsertBoard() {
|
||||
function dispAdminInsertPage() {
|
||||
// 관리자 관련 정보 세팅
|
||||
$this->initAdmin();
|
||||
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
/**
|
||||
* @brief 페이지 삭제 화면 출력
|
||||
**/
|
||||
function dispAdminDeleteBoard() {
|
||||
function dispAdminDeletePage() {
|
||||
// 관리자 관련 정보 세팅
|
||||
$this->initAdmin();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<filter name="delete_page" module="page" act="procDeletePage">
|
||||
<filter name="delete_page" module="pagemaker" act="procDeletePage">
|
||||
<form>
|
||||
<node target="module_srl" required="true" />
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<filter name="insert_config" module="page" act="procInsertConfig" confirm_msg_code="confirm_submit">
|
||||
<filter name="insert_config" module="pagemaker" act="procInsertConfig" confirm_msg_code="confirm_submit">
|
||||
<form />
|
||||
<response>
|
||||
<tag name="error" />
|
||||
|
|
|
|||
|
|
@ -1,32 +1,20 @@
|
|||
<filter name="insert_page" module="page" act="procInsertPage" confirm_msg_code="confirm_submit">
|
||||
<filter name="insert_page" module="pagemaker" act="procInsertPage" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="mid" required="true" filter="alpha_number" />
|
||||
<node target="browser_title" required="true" maxlength="250" />
|
||||
<node target="list_count" required="true" filter="number" />
|
||||
<node target="page_count" required="true" filter="number" />
|
||||
<node target="content" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="page_name" target="mid" />
|
||||
<param name="module_srl" target="module_srl" />
|
||||
<param name="module_category_srl" target="module_category_srl" />
|
||||
<param name="layout_srl" target="layout_srl" />
|
||||
<param name="skin" target="skin" />
|
||||
<param name="browser_title" target="browser_title" />
|
||||
<param name="use_category" target="use_category" />
|
||||
<param name="list_count" target="list_count" />
|
||||
<param name="page_count" target="page_count" />
|
||||
<param name="is_default" target="is_default" />
|
||||
<param name="description" target="description" />
|
||||
<param name="header_text" target="header_text" />
|
||||
<param name="footer_text" target="footer_text" />
|
||||
<param name="admin_id" target="admin_id" />
|
||||
<param name="content" target="content" />
|
||||
</parameter>
|
||||
<response callback_func="completeInsertPage">
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="module" />
|
||||
<tag name="act" />
|
||||
<tag name="page" />
|
||||
<tag name="module_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
|
|||
|
|
@ -4,22 +4,6 @@
|
|||
* @desc : pagemaker 모듈의 관리자용 javascript
|
||||
**/
|
||||
|
||||
/* 모듈 생성 후 */
|
||||
function completeInsertPage(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
|
||||
var page = ret_obj['page'];
|
||||
var module_srl = ret_obj['module_srl'];
|
||||
|
||||
alert(message);
|
||||
|
||||
var url = "./?module=admin&mo=pagemaker&module_srl="+module_srl+"&act=dispAdminPageInfo";
|
||||
if(page) url += "&page="+page;
|
||||
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
/* 모듈 삭제 후 */
|
||||
function completeDeletePage(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue