1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
3 if (isset($this->template
->js_header
))
4 $this->template
->js_header
->js
= array_unique($this->xtra_js
);
10 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
11 <title
><?php
echo (isset($title)) ? Kohana
::config('config.product_name').' ยป '.html
::specialchars($title) : Kohana
::config('config.product_name') ?
></title
>
12 <?php
echo html
::link('application/media/js/jquery.qtip.custom/jquery.qtip.css', 'stylesheet', 'text/css', false, 'screen'); ?
>
13 <link type
="text/css" rel
="stylesheet" href
="<?php echo ninja::add_path('css/'.$current_skin.'common.css'); ?>" media
="all" />
14 <link type
="text/css" rel
="stylesheet" href
="<?php echo ninja::add_path('css/'.$current_skin.'print.css'); ?>" media
="print" />
15 <link type
="text/css" rel
="stylesheet" href
="<?php echo ninja::add_path('css/default/jquery-ui-custom.css') ?>" />
16 <?php
echo html
::link($this->add_path('icons/16x16/favicon.ico'),'icon','image/icon') ?
>
18 <link type
="text/css" rel
="stylesheet" href
="<?php echo ninja::add_path('css/default/ie7.css') ?>" />
19 <?php
echo (Router
::$controller.'/'.Router
::$method == 'histogram/generate') ? html
::script('application/media/js/excanvas.compiled.js') : ''; ?
>
22 echo (!empty($css_header)) ?
$css_header : '';
23 echo html
::script('application/media/js/jquery.js');
24 echo html
::script('application/media/js/jquery-ui.min.js');
25 echo html
::script('application/media/js/jquery.form.js');
26 echo html
::script('application/media/js/jquery.easywidgets.min.js');
27 echo html
::script('application/media/js/jquery.autocomplete.min');
28 echo html
::script('application/media/js/jquery.selectboxes.min.js');
29 echo html
::script('application/media/js/jquery.jeditable.min');
30 echo html
::script('application/media/js/jquery.query.js');
31 echo html
::script('application/media/js/jquery.jgrowl.js');
32 echo html
::script('application/media/js/jquery.qtip.custom/jquery.qtip.js');
33 echo html
::script('application/media/js/jquery.hotkeys.min.js');
34 echo html
::script('application/media/js/jquery.field.js');
35 echo html
::script('application/media/js/date.js');
36 echo html
::script('application/views/js/global_search.js');
37 echo html
::script('application/views/js/pagination.js');
38 if (!isset($disable_refresh) ||
$disable_refresh === false) {
43 <script type
="text/javascript">
46 $cgi_esc_html_tags = config
::get_cgi_cfg_key('escape_html_tags');
47 if (empty($cgi_esc_html_tags)) {
48 $cgi_esc_html_tags = 0;
50 if (Auth
::instance()->logged_in()) { ?
>
52 var _site_domain
= '<?php echo Kohana::config('config
.site_domain
') ?>';
53 var _index_page
= '<?php echo Kohana::config('config
.index_page
') ?>';
54 var _current_uri
= '<?php echo Router::$controller.'/'.Router::$method ?>';
55 var _controller_name
= '<?php echo Router::$controller ?>';
56 var _logo_path
= '<?php echo Kohana::config('config
.logos_path
').(substr(Kohana::config('config
.logos_path
'), -1) == '/' ? '' : '/'); ?>';
57 var _escape_html_tags
= <?php
echo $cgi_esc_html_tags ?
>;
58 var _widget_refresh_msg
= '<?php echo _('Refresh rate
for all widgets has been updated to %s sec
'); ?>';
59 var _widget_refresh_error
= '<?php echo _('Unable to update refresh rate
for all widgets
.'); ?>';
60 var _widget_global_refresh_error
= '<?php echo _('An error was encountered when trying to update refresh rate
for all widgets
.'); ?>';
61 var _widget_order_error
= '<?php echo _('Unable to fetch widget order from database
.'); ?>';
62 var _widget_settings_msg
= '<?php echo _('Settings
for widget %s was updated
'); ?>';
63 var _widget_settings_error
= '<?php echo _('Unable to fetch setting
for widget %s
'); ?>';
64 var _widget_notfound_error
= '<?php echo _('Unable to find widget %s
'); ?>';
65 var _page_refresh_msg
= '<?php echo _('Updated page refresh rate to %s seconds
'); ?>';
66 var _settings_msg
= '<?php echo _('The settings were updated
'); ?>';
67 var _success_header
= '<?php echo _('Success
'); ?>';
68 var _error_header
= '<?php echo _('ERROR
'); ?>';
69 var _form_error_header
= '<?php echo _("The form couldn\'t be processed since it contains one or more errors.%sPlease correct the following error(s) and try again:%s"); ?>';
70 var _command_empty_field
= '<?php echo _("Field \'%s\' is required but empty"); ?>';
71 var _loading_str
= '<?php echo _("Loading..."); ?>';
72 var _wait_str
='<?php echo _('Please wait
') ?>';
73 var _refresh_paused_msg
='<?php echo _('Page refresh has been paused
.') ?>';
74 var _refresh_unpaused_msg
='<?php echo _('Page refresh has been restored
.') ?>';
75 var _search_save_error
= '<?php echo _("Length of \'%s\' must be between %s and %s characters.") ?>';
76 var _search_string_field
= '<?php echo _('Search
string') ?>';
77 var _search_remove_confirm
= '<?php echo _('Are you sure that you wish to remove this saved search?
') ?>';
78 var _search_name_field
= '<?php echo _('Name
') ?>';
79 var _search_save_ok
= '<?php echo _('OK
') ?>';
80 var _search_save_error
= '<?php echo _('ERROR
') ?>';
81 var _search_saved_ok
= '<?php echo _('Your search was successfully saved
.') ?>';
82 var _search_saved_error
= '<?php echo _('An error occured when trying to save your search
.') ?>';
83 var _date_format
= <?php
echo json_encode(nagstat
::date_format()); ?
>;
84 var _server_utc_offset
= <?php
echo date
::utc_offset(date_default_timezone_get()); ?
>;
86 <?php
if (config
::get('keycommands.activated', '*', true)) { ?
>
88 var _keycommands_active
='<?php echo config::get('keycommands
.activated
', '*', true); ?>';
89 var _keycommand_search
='<?php echo config::get('keycommands
.search
', '*', true); ?>';
90 var _keycommand_pause
='<?php echo config::get('keycommands
.pause
', '*', true); ?>';
91 var _keycommand_forward
='<?php echo config::get('keycommands
.forward
', '*', true); ?>';
92 var _keycommand_back
='<?php echo config::get('keycommands
.back
', '*', true); ?>';
94 var _keycommands_active
='0';
97 var _popup_delay
='<?php echo config::get('config
.popup_delay
', '*', true); ?>';
99 if (!empty($js_strings)) {
103 if (!empty($inline_js)) {
104 echo "$(document).ready(function() {";
110 <?php
echo html
::script('application/views/js/common.js'); ?
>
111 <?php
echo (!empty($js_header)) ?
$js_header : ''; ?
>
118 <?php
if (isset($content)) { echo $content; } else { return url
::redirect(Kohana
::config('routes.logged_in_default')); } ?
>
119 <!--<p
>Rendered in
{execution_time
} seconds
, using
{memory_usage
} of memory
</p
> -->