3
* This file implements the Admin UI class.
5
* DO NOT EDIT THIS FILE!!!
6
* In order to provide multiple admin styles, this file must be kept intact.
7
* If you change it you run the risk of breaking some admin features. To
8
* make a customized admin interface, copy any admin template folder to a
9
* new name then edit ONLY the style.css file.
11
* This file is part of the Quam Plures project - {@link http://quamplures.net/}.
12
* See also {@link https://launchpad.net/quam-plures}.
14
* @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
15
* @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}.
16
* Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
18
* @license http://quamplures.net/license.html GNU General Public License (GPL)
20
* {@internal Open Source relicensing agreement:
21
* Daniel HAHLER grants Francois PLANQUE the right to license
22
* Daniel HAHLER's contributions to this file and the b2evolution project
23
* under any OSI approved OSS license (http://www.opensource.org/licenses/).
26
* {@internal Below is a list of authors who have contributed to design/coding of this file: }}
27
* @author blueyed: Daniel HAHLER
3
* This file implements the Admin UI class
5
* DO NOT EDIT THIS FILE!!! In order to provide multiple admin styles, this file
6
* must be kept intact. If you change it you run the risk of breaking some admin
7
* features. To make a customized admin interface, copy any admin template folder
8
* to a new name then edit ONLY the style.css file.
10
* @todo (1111) style sheets before javascripts (not the way init_templates() says)
11
* @author {@link http://wonderwinds.com/ Ed Bennett}
12
* @author {@link http://daniel.hahler.de/ Daniel HAHLER}
13
* @author {@link http://fplanque.net/ Francois PLANQUE}
14
* @copyright (c) 2009 by {@link http://quamplures.net/ the Quam Plures project}
15
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3
31
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
19
if(!defined('QP_MAIN_INIT')) die('fail');
22
* Require adminUI general class
36
24
require_once dirname(__FILE__).'/../_adminUI_general.class.php';
40
* We define a special template for the main menu.
44
31
class AdminUI extends AdminUI_general
47
* This function should init the templates - like adding Javascript through the {@link add_headline()} method.
34
* This is included before controller specifc require_css() calls
36
* This should init the templates, like adding Javascript through the {@link add_headline()} method.
49
38
function init_templates()
51
// This is included before controller specifc require_css() calls:
52
40
global $admin_template;
53
42
require_css( 'qp_view_admin/'.$admin_template.'/style.css', true );
58
* GLOBAL HEADER - APP TITLE, LOGOUT, ETC.
62
function get_page_head()
63
{ // Display MAIN menu:
64
$r = '<div id="header">'.$this->get_html_menu().'</div>';
74
function get_body_top()
76
global $Messages, $mode;
78
$r = '<div class="wrapper">';
81
$r .= $this->get_page_head();
83
$r .= $this->get_bloglist_buttons();
84
$r .= '<div class="panelbody">'."\n\n";
85
// Display info & error messages
86
$r .= $Messages->display( NULL, NULL, false, 'all', NULL, NULL, 'action_messages' );
92
* Get the end of the HTML <body>. Close open divs, etc...
96
function get_body_bottom()
98
return "\n</div>\n</div>\n";
103
* Get the footer text
105
function get_footer_contents()
107
global $app_footer_text, $copyright_text, $app_name, $app_homepage;
111
$r = '<div class="footer">';
112
if( $Hit->is_winIE() )
114
$r .= '<!--[if lt IE 7]>
115
<div style="text-align:center; color:#f00; font-weight:bold;">'
116
.T_('WARNING: Internet Explorer 6 may not able to display this admin template properly. We strongly recommend you upgrade to IE 7 or Firefox.')
117
.'</div><![endif]-->';
119
$r .= '<a href="'.$app_homepage.'" class="footer_logo">';
120
$r .= '<img src="'.$rsc_url.'img/adminfooter-logo.png" alt="Powered by '.$app_name.'" width="142" height="43" longdesc="'.$app_homepage.'" /></a>';
121
$r .= '<div class="copyright">';
122
$r .= $app_footer_text.'<br />'.$copyright_text."</div></div>\n\n";