모듈선택기의 모듈 목록을 가져오는 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:
zero 2009-01-12 07:55:28 +00:00
parent 30970b69c8
commit f0b3e14344
5 changed files with 11 additions and 11 deletions

View file

@ -8,6 +8,8 @@
<action name="dispModuleSkinInfo" type="view" standalone="true" />
<action name="getModuleAdminModuleList" type="model" standalone="true" />
<action name="dispModuleAdminSelectList" type="view" standalone="true" />
<action name="dispModuleAdminCopyModule" type="view" standalone="true" />
<action name="procModuleAdminInsertCategory" type="controller" standalone="true" />

View file

@ -1,12 +1,12 @@
<?php
/**
* @class widgetAdminModel
* @class moduleAdminModel
* @author zero (zero@nzeo.com)
* @version 0.1
* @brief widget 모듈의 AdminModel class
* @brief module 모듈의 AdminModel class
**/
class widgetAdminModel extends widget {
class moduleAdminModel extends module {
/**
* @brief 초기화
@ -17,7 +17,7 @@
/**
* @brief 위젯의 경로를 구함
**/
function getWidgetAdminModuleList() {
function getModuleAdminModuleList() {
$args->module_srls = Context::get('module_srls');
$output = executeQueryArray('module.getModulesInfo', $args);
if(!$output->toBool() || !$output->data) return new Object();

View file

@ -52,7 +52,7 @@
<!--@if($_idx >0)--><tr><!--@end-->
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{$v->browser_title}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
<!--@if($_idx <count($val))--></tr><!--@end-->
{@ $_idx ++; }
<!--@end-->
@ -64,7 +64,7 @@
<tr>
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{$v->browser_title}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
</tr>
<!--@end-->
<!--@end-->

View file

@ -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" />

View file

@ -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;
}
}