1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 11:20:25 +02:00

administration cleanup/minor improvements

This commit is contained in:
secretr
2008-12-21 11:47:29 +00:00
parent 4557f1012f
commit 3aab4367fb
4 changed files with 12 additions and 11 deletions

View File

@@ -9,8 +9,8 @@
* Administration Area - Front page
*
* $Source: /cvs_backup/e107_0.8/e107_admin/frontpage.php,v $
* $Revision: 1.9 $
* $Date: 2008-12-21 10:58:35 $
* $Revision: 1.10 $
* $Date: 2008-12-21 11:47:29 $
* $Author: secretr $
*
*/
@@ -25,7 +25,6 @@ $e_sub_cat = 'frontpage';
require_once ('auth.php');
require_once (e_HANDLER.'form_handler.php');
require_once (e_HANDLER."message_handler.php");
$rs = new form();
$frm = new e_form();
$emessage = &eMessage::getInstance();

View File

@@ -8,8 +8,8 @@
* e107 Admin Helper
*
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/core/admin.js,v $
* $Revision: 1.7 $
* $Date: 2008-12-19 14:01:07 $
* $Revision: 1.8 $
* $Date: 2008-12-21 11:47:29 $
* $Author: secretr $
*
*/
@@ -219,7 +219,7 @@ e107Admin.AdminMenu = {
show = $(show);
if(!show) return false;
if(this.activeTab && this.activeTab.identify() != show.identify()) {
if(container) $(container).select('a.link-active[href^=#])').invoke('removeClassName', 'link-active').invoke('addClassName', 'link');
if(container) $(container).select('a.link-active[href^=#])').each(function (element) { element.removeClassName('link-active').addClassName('link') });
this.activeTab.hide();
this.activeTab = show;
this.activeTab.removeClassName('e-hideme').show();
@@ -227,12 +227,12 @@ e107Admin.AdminMenu = {
this.activeBar.removeClassName('link').addClassName('link-active');
return true;
} else if(!this.activeTab) { //init
if(container) $(container).select('a.link-active[href^=#])').invoke('removeClassName', 'link-active').invoke('addClassName', 'link');
if(container) $(container).select('a.link-active[href^=#])').each(function (element) { element.removeClassName('link-active').addClassName('link') });
this.activeTab = show.removeClassName('e-hideme').show();
if(bar) this.activeBar = bar.removeClassName('link').addClassName('link-active');
return true;
} else if(!this.activeBar && this.activeTab) {//only bar is unknown
if(container) $(container).select('a.link-active[href^=#])').invoke('removeClassName', 'link-active').invoke('addClassName', 'link');
if(container) $(container).select('a.link-active[href^=#])').each(function (element) { element.removeClassName('link-active').addClassName('link') });
if(bar) this.activeBar = bar.removeClassName('link').addClassName('link-active');
return true;
}
@@ -242,7 +242,7 @@ e107Admin.AdminMenu = {
observer: function(event, cont) {
if(this.switchTab(event.element().hash.substr(1), event.element(), cont)) {
event.stop();
document.location.hash = this.id.camelize() + 'AdminMenu=' + event.element().hash.substr(1)
document.location.hash = this.id.camelize() + 'AdminMenu=' + event.element().hash.substr(1);
}
},

View File

@@ -88,7 +88,6 @@ ul,ol { list-style:none; }
.adminlist { width:100%; border:1px solid #ddd;}
.adminlist th { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; font-weight: bold; white-space:nowrap; }
.adminlist td { padding: 5px; border-bottom:1px solid #ddd; border-right: 1px solid #ddd; }
.adminlist th.last,
.adminlist td.last { border-right: 0px solid;}
.adminlist tr.last td{ border-bottom: 0px solid;}
@@ -329,6 +328,7 @@ input.action.edit {}
.admin-page-body { padding: 20px 15px 0; }
.admin-footer {}
legend { font-size: 14px; font-weight: bold; padding: 5px; }
.admin-help p { margin-bottom: 10px } /* help side menu */
/******** Layout */
.main-table { width: 100%; border: 0 none; }

View File

@@ -43,6 +43,8 @@ function theme_head() {
function tablestyle($caption, $text, $mod) {
global $style;
$class = '';
if(is_string($mod) && $mod == 'admin_help') $class = ' '.str_replace('_', '-', $mod);
switch($style) {
case 'admin_menu' :
@@ -56,7 +58,7 @@ function tablestyle($caption, $text, $mod) {
case 'site_info' :
echo '
<div class="block">
<div class="block'.$class.'">
<h4 class="caption">'.$caption.'</h4>
<div class="block-text">
'.$text.'