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
|
|
@ -99,7 +99,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Admin logo, title setup
|
// Admin logo, title setup
|
||||||
$configObject = $oModuleModel->getModuleConfig('admin');
|
$configObject = $oModuleModel->getModuleConfig('admin');
|
||||||
$gnbTitleInfo->adminTitle = $configObject->adminTitle?$configObject->adminTitle:'XE Admin';
|
$gnbTitleInfo->adminTitle = $configObject->adminTitle?$configObject->adminTitle:'XE Admin';
|
||||||
|
|
@ -192,12 +192,12 @@
|
||||||
$status->comment->todayCount = $oCommentModel->getCommentCountByDate($today);
|
$status->comment->todayCount = $oCommentModel->getCommentCountByDate($today);
|
||||||
$status->comment->totalCount = $oCommentModel->getCommentCountByDate();
|
$status->comment->totalCount = $oCommentModel->getCommentCountByDate();
|
||||||
|
|
||||||
// Trackback Status
|
// Trackback Status
|
||||||
$oTrackbackAdminModel = &getAdminModel('trackback');
|
$oTrackbackAdminModel = &getAdminModel('trackback');
|
||||||
$status->trackback->todayCount = $oTrackbackAdminModel->getTrackbackCountByDate($today);
|
$status->trackback->todayCount = $oTrackbackAdminModel->getTrackbackCountByDate($today);
|
||||||
$status->trackback->totalCount = $oTrackbackAdminModel->getTrackbackCountByDate();
|
$status->trackback->totalCount = $oTrackbackAdminModel->getTrackbackCountByDate();
|
||||||
|
|
||||||
// Attached files Status
|
// Attached files Status
|
||||||
$oFileAdminModel = &getAdminModel('file');
|
$oFileAdminModel = &getAdminModel('file');
|
||||||
$status->file->todayCount = $oFileAdminModel->getFilesCountByDate($today);
|
$status->file->todayCount = $oFileAdminModel->getFilesCountByDate($today);
|
||||||
$status->file->totalCount = $oFileAdminModel->getFilesCountByDate();
|
$status->file->totalCount = $oFileAdminModel->getFilesCountByDate();
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -294,29 +309,29 @@
|
||||||
* @return none
|
* @return none
|
||||||
**/
|
**/
|
||||||
function dispAdminConfig() {
|
function dispAdminConfig() {
|
||||||
$db_info = Context::getDBInfo();
|
$db_info = Context::getDBInfo();
|
||||||
|
|
||||||
Context::set('sftp_support', function_exists(ssh2_sftp));
|
Context::set('sftp_support', function_exists(ssh2_sftp));
|
||||||
|
|
||||||
Context::set('selected_lang', $db_info->lang_type);
|
Context::set('selected_lang', $db_info->lang_type);
|
||||||
|
|
||||||
Context::set('default_url', $db_info->default_url);
|
Context::set('default_url', $db_info->default_url);
|
||||||
|
|
||||||
Context::set('langs', Context::loadLangSupported());
|
Context::set('langs', Context::loadLangSupported());
|
||||||
|
|
||||||
Context::set('lang_selected', Context::loadLangSelected());
|
Context::set('lang_selected', Context::loadLangSelected());
|
||||||
|
|
||||||
Context::set('admin_ip', $db_info->admin_ip);
|
Context::set('admin_ip', $db_info->admin_ip);
|
||||||
|
|
||||||
|
|
||||||
$favicon_url = $this->iconUrlCheck('favicon.ico','faviconSample.png');
|
$favicon_url = $this->iconUrlCheck('favicon.ico','faviconSample.png');
|
||||||
$mobicon_url = $this->iconUrlCheck('mobicon.png','mobiconSample.png');
|
$mobicon_url = $this->iconUrlCheck('mobicon.png','mobiconSample.png');
|
||||||
Context::set('favicon_url', $favicon_url);
|
Context::set('favicon_url', $favicon_url);
|
||||||
Context::set('mobicon_url', $mobicon_url);
|
Context::set('mobicon_url', $mobicon_url);
|
||||||
|
|
||||||
$ftp_info = Context::getFTPInfo();
|
$ftp_info = Context::getFTPInfo();
|
||||||
Context::set('ftp_info', $ftp_info);
|
Context::set('ftp_info', $ftp_info);
|
||||||
|
|
||||||
$oDocumentModel = &getModel('document');
|
$oDocumentModel = &getModel('document');
|
||||||
$config = $oDocumentModel->getDocumentConfig();
|
$config = $oDocumentModel->getDocumentConfig();
|
||||||
Context::set('thumbnail_type',$config->thumbnail_type);
|
Context::set('thumbnail_type',$config->thumbnail_type);
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
<!--@foreach($latestDocumentList AS $key=>$value)-->
|
<!--@foreach($latestDocumentList AS $key=>$value)-->
|
||||||
{@$document = $value->variables}
|
{@$document = $value->variables}
|
||||||
<li>
|
<li>
|
||||||
<a href="{getUrl('', 'document_srl', $document['document_srl'])}" target="_blank">{$document['title']}</a> <span class="side">{$document['nick_name']}</span>
|
<a href="{getUrl('', 'document_srl', $document['document_srl'])}" target="_blank">{$document['title']}</a> <span class="side">{$document['nick_name']}</span>
|
||||||
<span class="action">
|
<span class="action">
|
||||||
<form>
|
<form>
|
||||||
<input type="hidden" name="module" value="admin" />
|
<input type="hidden" name="module" value="admin" />
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<ul class="lined">
|
<ul class="lined">
|
||||||
<!--@foreach($latestCommentList AS $key=>$value)-->
|
<!--@foreach($latestCommentList AS $key=>$value)-->
|
||||||
<li>
|
<li>
|
||||||
<a href="#" target="_blank">{$value->content}</a> <span class="side">{$value->nick_name}</span>
|
<a href="#" target="_blank">{$value->content}</a> <span class="side">{$value->nick_name}</span>
|
||||||
<span class="action">
|
<span class="action">
|
||||||
<form>
|
<form>
|
||||||
<input type="hidden" name="module" value="admin" />
|
<input type="hidden" name="module" value="admin" />
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
<ul class="lined">
|
<ul class="lined">
|
||||||
<!--@foreach($latestTrackbackList AS $key=>$value)-->
|
<!--@foreach($latestTrackbackList AS $key=>$value)-->
|
||||||
<li>
|
<li>
|
||||||
<a href="{$value->url}" target="_blank">{$value->title}</a> <span class="side">{$value->blog_name}</span>
|
<a href="{$value->url}" target="_blank">{$value->title}</a> <span class="side">{$value->blog_name}</span>
|
||||||
<span class="action">
|
<span class="action">
|
||||||
<form>
|
<form>
|
||||||
<input type="hidden" name="module" value="admin" />
|
<input type="hidden" name="module" value="admin" />
|
||||||
|
|
@ -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