mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
모듈선택기의 모듈 목록을 가져오는 php코드를 module.admin.model.php로 이동하고 widget.admin.model.php파일은 파기
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5328 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
30970b69c8
commit
f0b3e14344
5 changed files with 11 additions and 11 deletions
|
|
@ -8,8 +8,6 @@
|
|||
<action name="dispWidgetAdminDownloadedList" type="view" standalone="true" admin_index="true" />
|
||||
<action name="dispWidgetAdminAddContent" type="view" standalone="true" />
|
||||
|
||||
<action name="getWidgetAdminModuleList" type="model" standalone="true" />
|
||||
|
||||
<action name="procWidgetGenerateCode" type="controller" standalone="true" />
|
||||
<action name="procWidgetAddContent" type="controller" standalone="true" />
|
||||
<action name="procWidgetInsertDocument" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ function getModuleSrlList(id) {
|
|||
params["id"] = id;
|
||||
|
||||
var response_tags = new Array("error","message","module_list","id");
|
||||
exec_xml("widget", "getWidgetAdminModuleList", params, completeGetModuleSrlList, response_tags, params);
|
||||
exec_xml("module", "getModuleAdminModuleList", params, completeGetModuleSrlList, response_tags, params);
|
||||
}
|
||||
|
||||
function completeGetModuleSrlList(ret_obj, response_tags) {
|
||||
|
|
@ -291,7 +291,7 @@ function getModuleSrl(id) {
|
|||
params["id"] = id;
|
||||
|
||||
var response_tags = new Array("error","message","module_list","id");
|
||||
exec_xml("widget", "getWidgetAdminModuleList", params, completeGetModuleSrl, response_tags, params);
|
||||
exec_xml("module", "getModuleAdminModuleList", params, completeGetModuleSrl, response_tags, params);
|
||||
}
|
||||
|
||||
function completeGetModuleSrl(ret_obj, response_tags) {
|
||||
|
|
@ -324,4 +324,4 @@ xAddEventListener(window,'load',excuteWindowLoadEvent);
|
|||
function selectWidget(val){
|
||||
var url =current_url.setQuery('selected_widget', val);
|
||||
document.location.href = url;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class widgetAdminModel
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @version 0.1
|
||||
* @brief widget 모듈의 AdminModel class
|
||||
**/
|
||||
|
||||
class widgetAdminModel extends widget {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 위젯의 경로를 구함
|
||||
**/
|
||||
function getWidgetAdminModuleList() {
|
||||
$args->module_srls = Context::get('module_srls');
|
||||
$output = executeQueryArray('module.getModulesInfo', $args);
|
||||
if(!$output->toBool() || !$output->data) return new Object();
|
||||
|
||||
foreach($output->data as $key => $val) {
|
||||
$list[$val->module_srl] = array('module_srl'=>$val->module_srl,'mid'=>$val->mid,'browser_title'=>$val->browser_title);
|
||||
}
|
||||
$modules = explode(',',$args->module_srls);
|
||||
for($i=0;$i<count($modules);$i++) {
|
||||
$module_list[$modules[$i]] = $list[$modules[$i]];
|
||||
}
|
||||
|
||||
$this->add('id', Context::get('id'));
|
||||
$this->add('module_list', $module_list);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue