mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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,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" />
|
||||
|
|
|
|||
37
modules/module/module.admin.model.php
Normal file
37
modules/module/module.admin.model.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* @class moduleAdminModel
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @version 0.1
|
||||
* @brief module 모듈의 AdminModel class
|
||||
**/
|
||||
|
||||
class moduleAdminModel extends module {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 위젯의 경로를 구함
|
||||
**/
|
||||
function getModuleAdminModuleList() {
|
||||
$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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -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-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue