mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 70 document, comment, trackback module UI change.
But not finished yet git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8639 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5385ebb524
commit
9acd474c52
37 changed files with 1125 additions and 830 deletions
|
|
@ -38,6 +38,7 @@
|
|||
<action name="procModuleAdminModuleGrantSetup" type="controller" standalone="true" ruleset="insertModulesGrant" />
|
||||
<action name="procModuleAdminInsertLang" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminDeleteLang" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminGetList" type="controller" standalone="true" />
|
||||
|
||||
<action name="dispModuleChangeLang" type="mobile" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -453,6 +453,50 @@
|
|||
$this->makeCacheDefinedLangCode($args->site_srl);
|
||||
}
|
||||
|
||||
function procModuleAdminGetList()
|
||||
{
|
||||
if(!Context::get('is_logged')) return new Object(-1, 'msg_not_permitted');
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
// Variable setting for site keyword
|
||||
$site_keyword = Context::get('site_keyword');
|
||||
// If there is no site keyword, use as information of the current virtual site
|
||||
$args = null;
|
||||
$logged_info = Context::get('logged_info');
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args->site_keyword = $site_keyword;
|
||||
|
||||
if($logged_info->is_admin == 'Y' && !$site_keyword) $args->site_srl = 0;
|
||||
else $args->site_srl = (int)$site_module_info->site_srl;
|
||||
|
||||
$args->sort_index1 = 'sites.domain';
|
||||
|
||||
// Get a list of modules at the site
|
||||
$output = executeQueryArray('module.getSiteModules', $args);
|
||||
$category_list = $mid_list = array();
|
||||
if(count($output->data)) {
|
||||
foreach($output->data as $key => $val) {
|
||||
/*$module = trim($val->module);
|
||||
if(!$module) continue;
|
||||
|
||||
$category = $val->category;
|
||||
$obj = null;
|
||||
$obj->module_srl = $val->module_srl;
|
||||
$obj->browser_title = $val->browser_title;
|
||||
$mid_list[$module]->list[$category][$val->mid] = $obj;*/
|
||||
}
|
||||
}
|
||||
|
||||
/*$selected_module = Context::get('selected_module');
|
||||
if(count($mid_list)) {
|
||||
foreach($mid_list as $module => $val) {
|
||||
if(!$selected_module) $selected_module = $module;
|
||||
$xml_info = $oModuleModel->getModuleInfoXml($module);
|
||||
$mid_list[$module]->title = $xml_info->title;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Save the file of user-defined language code
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<condition operation="equal" column="sites.site_srl" default="modules.site_srl" pipe="and" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="modules.module" order="asc" />
|
||||
<index var="sort_index" default="modules.mid" order="asc" />
|
||||
<index var="sort_index1" default="modules.module" order="asc" />
|
||||
<index var="sort_index2" default="modules.mid" order="asc" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue