mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
added favorite in dashboard
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9043 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0e115d5350
commit
3b39076e18
2 changed files with 45 additions and 19 deletions
|
|
@ -280,6 +280,21 @@
|
||||||
Context::set('module_list', $module_list);
|
Context::set('module_list', $module_list);
|
||||||
Context::set('isUpdated', $isUpdated);
|
Context::set('isUpdated', $isUpdated);
|
||||||
|
|
||||||
|
// favorite
|
||||||
|
$oAdminModel = &getAdminModel('admin');
|
||||||
|
$output = $oAdminModel->getFavoriteList(0);
|
||||||
|
$favorite_list = $output->get('favoriteList');
|
||||||
|
if ($favorite_list)
|
||||||
|
{
|
||||||
|
foreach($favorite_list as $no => $favorite)
|
||||||
|
{
|
||||||
|
$module_info = $oModuleModel->getModuleInfoXml($favorite->module);
|
||||||
|
$favorite_list[$no] = $module_info;
|
||||||
|
$favorite_list[$no]->module = $favorite->module;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Context::set('favorite_list', $favorite_list);
|
||||||
|
|
||||||
// gathering enviroment check
|
// gathering enviroment check
|
||||||
$path = FileHandler::getRealPath('./files/env/'.__ZBXE_VERSION__);
|
$path = FileHandler::getRealPath('./files/env/'.__ZBXE_VERSION__);
|
||||||
$isEnviromentGatheringAgreement = false;
|
$isEnviromentGatheringAgreement = false;
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,19 @@
|
||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<h2 class="h2">Your Favorite</h2>
|
<h2 class="h2">Your Favorite</h2>
|
||||||
<ul class="lined">
|
<ul class="lined">
|
||||||
<LI><A HREF="#">EXTENSIONS</A> > <A HREF="#">INSTALLED MODULE</A> > <A HREF="#">BOARD</A></LI>
|
<li loop="$favorite_list => $favorite">
|
||||||
<LI><A HREF="#">EXTENSIONS</A> > <A HREF="#">INSTALLED MODULE</A> > <A HREF="#">WIKI</A></LI>
|
<a href="{getUrl('act', $favorite->admin_index_act)}">{$favorite->title}</a>
|
||||||
|
<span class="action">
|
||||||
|
<form>
|
||||||
|
<input type="hidden" name="module" value="admin" />
|
||||||
|
<input type="hidden" name="act" value="procAdminToggleFavorite" />
|
||||||
|
<input type="hidden" name="site_srl" value="0" />
|
||||||
|
<input type="hidden" name="module_name" value="{$favorite->module}" />
|
||||||
|
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin')}" />
|
||||||
|
<button type="submit" class="text">{$lang->cmd_delete}</button>
|
||||||
|
</form>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</UL>
|
</UL>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue