mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 04:42:14 +09:00
develop simple setup index
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12345 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
df60ac70b5
commit
e8cca236cc
2 changed files with 18 additions and 3 deletions
|
|
@ -527,9 +527,17 @@ class menuAdminModel extends menu
|
|||
$moduleConfInfo = $oModuleModel->getModuleInfoXml($moduleInfo->module);
|
||||
|
||||
$setupUrl = sprintf('index.php?module=admin&act=%s&module_srl=%s&isLayoutDrop=1', $moduleConfInfo->setup_index_act, $moduleInfo->module_srl);
|
||||
$this->add('setupUrl', $setupUrl);
|
||||
if($moduleConfInfo->simple_setup_index_act)
|
||||
{
|
||||
$oTargetmoduleAdminModel = &getAdminModel($moduleInfo->module);
|
||||
$simpleSetupHtml = $oTargetmoduleAdminModel->{$moduleConfInfo->simple_setup_index_act}($moduleInfo->module_srl);
|
||||
|
||||
$this->setRedirectUrl($setupUrl);
|
||||
if($simpleSetupHtml)
|
||||
{
|
||||
$this->add('simpleSetupHtml', $simpleSetupHtml);
|
||||
}
|
||||
}
|
||||
$this->add('setupUrl', $setupUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -687,6 +687,7 @@ class moduleModel extends module
|
|||
$module_info->admin_index_act = $action_info->admin_index_act;
|
||||
$module_info->default_index_act = $action_info->default_index_act;
|
||||
$module_info->setup_index_act = $action_info->setup_index_act;
|
||||
$module_info->simple_setup_index_act = $action_info->simple_setup_index_act;
|
||||
|
||||
return $module_info;
|
||||
}
|
||||
|
|
@ -796,6 +797,7 @@ class moduleModel extends module
|
|||
$index = $action->attrs->index;
|
||||
$admin_index = $action->attrs->admin_index;
|
||||
$setup_index = $action->attrs->setup_index;
|
||||
$simple_setup_index = $action->attrs->simple_setup_index;
|
||||
$menu_index = $action->attrs->menu_index;
|
||||
|
||||
$output->action->{$name}->type = $type;
|
||||
|
|
@ -843,9 +845,14 @@ class moduleModel extends module
|
|||
$setup_index_act = $name;
|
||||
$info->setup_index_act = $name;
|
||||
}
|
||||
if($simple_setup_index=='true')
|
||||
{
|
||||
$simple_setup_index_act = $name;
|
||||
$info->simple_setup_index_act = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
$buff = sprintf('<?php if(!defined("__ZBXE__")) exit();$info->default_index_act = \'%s\';$info->setup_index_act=\'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $setup_index_act, $admin_index_act, $buff);
|
||||
$buff = sprintf('<?php if(!defined("__ZBXE__")) exit();$info->default_index_act = \'%s\';$info->setup_index_act=\'%s\';$info->simple_setup_index_act=\'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $setup_index_act, $simple_setup_index_act, $admin_index_act, $buff);
|
||||
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue