31 foreach(
$output->data as $key => $val)
35 $list[$val->module_srl] = array(
'module_srl'=>$val->module_srl,
'mid'=>$val->mid,
'browser_title'=>$val->browser_title,
'module_name' => $info_xml->title);
37 $modules = explode(
',',
$args->module_srls);
38 for($i=0;$i<count($modules);$i++)
40 $module_list[$modules[$i]] = $list[$modules[$i]];
44 $this->
add(
'module_list', $module_list);
49 $args->list_count = 20;
50 $args->page_count = 10;
54 ModuleModel::syncModuleToSite(
$output->data);
68 $mskin_list =
$oModuleModel->getSkins($modulePath,
"m.skins");
74 $layout_list = $oLayoutModel->getLayoutList();
77 $mobile_layout_list = $oLayoutModel->getLayoutList(0,
"M");
81 $security->encodeHTML(
'layout_list..layout',
'layout_list..title');
82 $security->encodeHTML(
'mlayout_list..layout',
'mlayout_list..title');
83 $security->encodeHTML(
'skin_list..title');
84 $security->encodeHTML(
'mskin_list..title');
86 $grant_list =
new stdClass();
90 $grantList =
new stdClass();
92 $grantList->access =
new stdClass();
94 $grantList->access->default =
'guest';
97 foreach($grantList as $key => $val)
99 if(!$val->default) $val->default =
'guest';
100 if($val->default ==
'root') $val->default =
'manager';
101 $grant_list->{$key} = $val;
104 $grant_list->manager =
new stdClass();
106 $grant_list->manager->default =
'manager';
111 $group_list = $oMemberModel->getGroups(0);
122 if(count($tabChoice) == 0)
124 $tabChoice = array(
'tab1'=>1,
'tab2'=>1,
'tab3'=>1);
130 return $oTemplate->compile($this->module_path.
'tpl',
'include.manage_selected.html');
146 $member_config = $oMemberModel->getMemberConfig();
150 $columnList = array(
'module_srl',
'site_srl');
153 $grant_list =
new stdClass();
154 $grant_list->access =
new stdClass();
156 $grant_list->access->default =
'guest';
157 if(count($source_grant_list))
159 foreach($source_grant_list as $key => $val)
161 if(!$val->default) $val->default =
'guest';
162 if($val->default ==
'root') $val->default =
'manager';
163 $grant_list->{$key} = $val;
166 $grant_list->manager =
new stdClass();
168 $grant_list->manager->default =
'manager';
171 $default_grant = array();
172 $args =
new stdClass();
179 if($val->group_srl == 0) $default_grant[$val->name] =
'all';
180 else if($val->group_srl == -1) $default_grant[$val->name] =
'member';
181 else if($val->group_srl == -2) $default_grant[$val->name] =
'site';
182 else if($val->group_srl == -3) $default_grant[$val->name] =
'manager';
185 $selected_group[$val->name][] = $val->group_srl;
186 $default_grant[$val->name] =
'group';
198 $group_list = $oMemberModel->getGroups(
$module_info->site_srl);
203 $security->encodeHTML(
'group_list..title');
204 $security->encodeHTML(
'group_list..description');
205 $security->encodeHTML(
'admin_member..nick_name');
209 return $oTemplate->compile($this->module_path.
'tpl',
'module_grants');
216 if(!$targetModule || !$moduleSrl)
218 return new BaseObject(-1,
'msg_invalid_request');
221 if($targetModule ==
'_SHORTCUT')
230 $grantList =
new stdClass();
231 $grantList->access =
new stdClass();
233 $grantList->access->default =
'guest';
234 if(count($xmlInfo->grant))
236 foreach($xmlInfo->grant as $key => $val)
238 if(!$val->default) $val->default =
'guest';
239 if($val->default ==
'root') $val->default =
'manager';
240 $grantList->{$key} = $val;
243 $grantList->manager =
new stdClass();
245 $grantList->manager->default =
'manager';
248 $defaultGrant =
new stdClass();
249 $args =
new stdClass();
250 $args->module_srl = $moduleSrl;
256 if($val->group_srl == 0) $defaultGrant->{$val->name} =
'all';
257 else if($val->group_srl == -1) $defaultGrant->{$val->name} =
'member';
258 else if($val->group_srl == -2) $defaultGrant->{$val->name} =
'site';
259 else if($val->group_srl == -3) $defaultGrant->{$val->name} =
'manager';
262 $selectedGroup->{$val->name}[] = $val->group_srl;
263 $defaultGrant->{$val->name} =
'group';
268 if(is_object($grantList))
270 foreach($grantList AS $key=>$value)
272 if(isset($defaultGrant->{$key}))
274 $grantList->{$key}->grant = $defaultGrant->{$key};
276 if(isset($selectedGroup->{$key}))
278 $grantList->{$key}->group_srls = $selectedGroup->{$key};
283 $this->add(
'grantList', $grantList);
291 return $this->_getModuleSkinHTML(
$module_srl,
'P');
302 return $this->_getModuleSkinHtml(
$module_srl,
'M');
314 $mode = $mode ===
'P' ?
'P' :
'M';
343 $module_path =
'./modules/'.$module_info->module;
348 $skin_info =
$oModuleModel->loadSkinInfo($module_path, $skin);
353 $skin_info =
$oModuleModel->loadSkinInfo($module_path, $skin,
'm.skins');
357 if(count($skin_info->extra_vars))
359 foreach($skin_info->extra_vars as $key => $val)
361 $group = $val->group;
364 if($skin_vars[$name])
366 $value = $skin_vars[$name]->value;
369 if($type==
"checkbox")
371 $value = $value?unserialize($value):array();
374 $value = empty($value) ? $val->default : $value;
375 $skin_info->extra_vars[$key]->value= $value;
387 $security->encodeHTML(
'mid');
388 $security->encodeHTML(
'module_info.browser_title');
389 $security->encodeHTML(
'skin_info...');
392 return $oTemplate->compile($this->module_path.
'tpl',
'skin_config');
410 if(substr($name,0,12)==
'$user_lang->')
412 $args =
new stdClass();
413 $args->site_srl = (int)$site_srl;
414 $args->name = substr($name,12);
418 foreach(
$output->data as $key => $val)
420 $selected_lang[$val->lang_code] = $val->value;
426 $tmp = unserialize($name);
429 $selected_lang = array();
431 if(!$rand_name) $rand_name = array_shift($tmp);
432 if(is_array($lang_supported))
434 foreach($lang_supported as $key => $val)
435 $selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
441 if(is_array($lang_supported))
443 foreach($lang_supported as $key => $val)
444 $output[$key] = $selected_lang[$key]?$selected_lang[$key]:$name;
455 if(!$name)
return new BaseObject(-1,
'msg_invalid_request');
457 $this->add(
'name', $name);
458 $output = $this->getLangCode($site_module_info->site_srl,
'$user_lang->'.$name);
470 $columnList = array(
'lang_code',
'name',
'value');
474 $args->langName = preg_replace(
'/^\$user_lang->/',
'',
$args->lang_name);
478 $this->add(
'lang_list', $langList);
479 $this->add(
'lang_name',
$args->langName);
498 foreach(
$output->data as $data)
500 $args->langName = $data->name;
501 $columnList = array(
'lang_code',
'name',
'value');
504 if($outputByName->toBool())
506 $langList = array_merge($langList, $outputByName->data);
511 $this->add(
'lang_list', $langList);
520 if(!
$output->toBool())
return array();
531 $tpl = $oTemplate->compile(
_XE_PATH_ .
'modules/module/tpl',
'multilingual_v17.html');
533 $this->add(
'html', $tpl);
542 $args =
new stdClass();
543 $args->site_srl = (int)$site_module_info->site_srl;
546 $args->sort_index =
'name';
547 $args->order_type =
'asc';
551 $args->page_count = 5;
567 $oSecurity->encodeHTML(
'lang_code_list..');
570 $tpl = $oTemplate->compile(
_XE_PATH_ .
'modules/module/tpl',
'multilingual_v17_list.html');
572 $this->add(
'html', $tpl);
582 $tpl = $oTemplate->compile(
_XE_PATH_ .
'modules/module/tpl',
'module_searcher_v17.html');
584 $this->add(
'html', $tpl);
getController($module_name)
getModuleAdminLangListByName()
Returns lang list by lang name.
getLangListByLangcode($args)
Return current lang list.
set($key, $val, $set_to_get_vars=0)
getModuleAdminLangListByValue()
Return lang list.
getModuleGrantHTML($module_srl, $source_grant_list)
Common:: module's permission displaying page in the module Available when using module instance in al...
getModuleAdminLangListHtml()
getModuleAdminModuleSearcherHtml()
getModuleAdminLangCode()
Return if the module language in ajax is requested.
getSelectedManageHTML($grantList, $tabChoice=array(), $modulePath=NULL)
getLangCode($site_srl, $name, $isFullLanguage=FALSE)
Get values for a particular language code Return its corresponding value if lang_code is specified...
_getModuleSkinHTML($module_srl, $mode)
getModuleMobileSkinHTML($module_srl)
getModuleAdminModuleInfo()
getModuleSkinHTML($module_srl)
Common:: skin setting page for the module.
getModuleAdminMultilingualHtml()
getModuleAdminModuleList()
Return a list of target modules by using module_srls separated by comma(,) Used in the ModuleSelector...
executeQueryArray($query_id, $args=NULL, $arg_columns=NULL)
AdminModel class of the "module" module.
triggerCall($trigger_name, $called_position, &$obj)
high class of the module module