Issue 2385: Admin UI Refactoring - Advanced - Widgets

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11685 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-15 02:59:49 +00:00
parent 41d3059d66
commit 5a450211ba
23 changed files with 446 additions and 663 deletions

View file

@ -39,6 +39,8 @@
<action name="getModuleAdminMultilingualHtml" type="model" />
<action name="getModuleAdminLangListHtml" type="model" />
<action name="getModuleInfoByMenuItemSrl" type="model" />
<action name="getModuleAdminModuleSearcherHtml" type="model" />
<action name="getModuleAdminModuleInfo" type="model" />
<action name="procModuleAdminInsertCategory" type="controller" standalone="true" ruleset="insertCategory" />
<action name="procModuleAdminUpdateCategory" type="controller" standalone="true" ruleset="updateCategory" />

View file

@ -461,5 +461,30 @@
$this->add('html', $tpl);
}
/**
* return module searcher html
*/
function getModuleAdminModuleSearcherHtml()
{
Context::loadLang('./modules/admin/lang');
$oTemplate = TemplateHandler::getInstance();
$tpl = $oTemplate->compile('./modules/module/tpl', 'module_searcher_v17.html');
$this->add('html', $tpl);
}
/**
* return module info.
*/
function getModuleAdminModuleInfo()
{
$module_srl = Context::get('module_srl');
$model = getModel('module');
$module_info = $model->getModuleInfoByModuleSrl($module_srl);
$this->add('module_info', $module_info);
}
}
?>

View file

@ -0,0 +1,21 @@
<div id="{$id}" class="tgContent moduleWindow x_well xe-toggling-content" style="display:none;">
<div class="siteList x_control-group">
<label for="siteFinder">{$lang->select_site}</label>
<input type="search" class="siteFinder" id="siteFinder" name="site_filter" placeholder="URL">
<ul class="x_nav x_nav-tabs x_nav-stacked" style="">
</ul>
</div>
<div class="moduleList x_control-group">
<label>{$lang->select_module_type}</label>
<ul class="x_nav x_nav-tabs x_nav-stacked">
</ul>
</div>
<div class="instanceList x_control-group">
<label for="instanceList">{$lang->select_module_instance}</label>
<select size="8" id="instanceList" <!--@if($is_multiple)-->multiple<!--@endif--> style="height:auto!important">
</select>
<div class="x_pull-right">
<button type="button" class="moduleSearch_ok x_btn_ x_btn-inverse">{$lang->cmd_select}</button>
</div>
</div>
</div>

View file

@ -4,7 +4,7 @@
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<p>{sprintf($lang->about_multilingual_search_result, $total_count)}</p>
<p cond="!$name">{sprintf($lang->about_multilingual_search_result, $total_count)}</p>
<fieldset class="list">
<form loop="$lang_code_list => $no, $val" action="" class="item">
<a href="#lang-{$no}" data-toggle="#lang-{$no}" data-lang_code="{$val->name}"><span>{$val->value}<span></a>