fixed errors css jqueryui

This commit is contained in:
daniel 2018-11-07 17:09:42 +01:00
parent 218bf81fa1
commit 1c1df4b5f7
15 changed files with 45 additions and 1309 deletions

View File

@ -484,8 +484,8 @@ if($login_screen == 'error_authconfig' || $login_screen == 'error_emptyconfig' |
} }
ui_require_css_file ('dialog'); ui_require_css_file ('dialog');
ui_require_css_file ('jquery-ui-1.10.0.custom'); ui_require_css_file ('jquery-ui.min');
ui_require_jquery_file('jquery-ui-1.10.0.custom'); ui_require_jquery_file('jquery-ui.min');
?> ?>
<?php <?php

View File

@ -74,11 +74,11 @@ if (file_exists ('languages/'.$user_language.'.mo')) {
<title>Pandora FMS Graph (<?php echo agents_get_alias($agent_id) . ' - ' . $interface_name; ?>)</title> <title>Pandora FMS Graph (<?php echo agents_get_alias($agent_id) . ' - ' . $interface_name; ?>)</title>
<link rel="stylesheet" href="styles/pandora.css" type="text/css" /> <link rel="stylesheet" href="styles/pandora.css" type="text/css" />
<link rel="stylesheet" href="styles/pandora_minimal.css" type="text/css" /> <link rel="stylesheet" href="styles/pandora_minimal.css" type="text/css" />
<link rel="stylesheet" href="styles/jquery-ui-1.10.0.custom.css" type="text/css" /> <link rel="stylesheet" href="styles/jquery-ui.min.css" type="text/css" />
<script language="javascript" type='text/javascript' src='javascript/pandora.js'></script> <script language="javascript" type='text/javascript' src='javascript/pandora.js'></script>
<script language="javascript" type='text/javascript' src='javascript/jquery-3.3.1.min.js'></script> <script language="javascript" type='text/javascript' src='javascript/jquery-3.3.1.min.js'></script>
<script language="javascript" type='text/javascript' src='javascript/jquery.pandora.js'></script> <script language="javascript" type='text/javascript' src='javascript/jquery.pandora.js'></script>
<script language="javascript" type='text/javascript' src='javascript/jquery.jquery-ui-1.10.0.custom.js'></script> <script language="javascript" type='text/javascript' src='javascript/jquery-ui.min.js'></script>
<script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.js"></script> <script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.js"></script>
<script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.min.js"></script> <script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.min.js"></script>
<script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.time.js"></script> <script language="javascript" type="text/javascript" src="graphs/flot/jquery.flot.time.js"></script>

View File

@ -1456,6 +1456,14 @@ function ui_process_page_head ($string, $bitfield) {
$exists_css = !empty($skin_styles); $exists_css = !empty($skin_styles);
} }
} }
// Add the jquery UI styles CSS
$config['css']['jquery-UI'] = "include/styles/jquery-ui.min.css";
// Add the dialog styles CSS
$config['css']['dialog'] = "include/styles/dialog.css";
// Add the dialog styles CSS
$config['css']['dialog'] = "include/javascript/introjs.css";
//If skin's css files exists then add them //If skin's css files exists then add them
if ($exists_css) { if ($exists_css) {
foreach ($skin_styles as $filename => $name) { foreach ($skin_styles as $filename => $name) {
@ -1473,17 +1481,6 @@ function ui_process_page_head ($string, $bitfield) {
$config['css']); $config['css']);
} }
// Add the jquery UI styles CSS
$config['css']['jquery-UI'] = "include/styles/jquery-ui-1.10.0.custom.css";
// Add the dialog styles CSS
$config['css']['dialog'] = "include/styles/dialog.css";
// Add the dialog styles CSS
$config['css']['dialog'] = "include/javascript/introjs.css";
//We can't load empty and we loaded (conditionally) ie //We can't load empty and we loaded (conditionally) ie
$loaded = array ('', 'ie'); $loaded = array ('', 'ie');
@ -1501,9 +1498,6 @@ function ui_process_page_head ($string, $bitfield) {
//End load CSS //End load CSS
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//Load JS //Load JS
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
@ -1511,7 +1505,6 @@ function ui_process_page_head ($string, $bitfield) {
$config['js'] = array (); //If it's empty, false or not init set array to empty just in case $config['js'] = array (); //If it's empty, false or not init set array to empty just in case
} }
//Pandora specific JavaScript should go first //Pandora specific JavaScript should go first
$config['js'] = array_merge (array ("pandora" => "include/javascript/pandora.js"), $config['js']); $config['js'] = array_merge (array ("pandora" => "include/javascript/pandora.js"), $config['js']);
//Load base64 javascript library //Load base64 javascript library
@ -1526,14 +1519,12 @@ function ui_process_page_head ($string, $bitfield) {
//Load Underscore.js library //Load Underscore.js library
$config['js']['underscore'] = "include/javascript/underscore-min.js"; $config['js']['underscore'] = "include/javascript/underscore-min.js";
//Load other javascript //Load other javascript
//We can't load empty //We can't load empty
$loaded = array (''); $loaded = array ('');
foreach ($config['js'] as $name => $filename) { foreach ($config['js'] as $name => $filename) {
if (in_array ($name, $loaded)) if (in_array ($name, $loaded))
continue; continue;
array_push ($loaded, $name); array_push ($loaded, $name);
$url_js = ui_get_full_url($filename); $url_js = ui_get_full_url($filename);
@ -1543,8 +1534,6 @@ function ui_process_page_head ($string, $bitfield) {
//End load JS //End load JS
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
//Load jQuery //Load jQuery
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
@ -1566,7 +1555,7 @@ function ui_process_page_head ($string, $bitfield) {
$config['jquery'] = array_merge( $config['jquery'] = array_merge(
array ("jquery" => "include/javascript/jquery-3.3.1.min.js", array ("jquery" => "include/javascript/jquery-3.3.1.min.js",
"pandora" => "include/javascript/jquery.pandora.js", "pandora" => "include/javascript/jquery.pandora.js",
'jquery-ui' => 'include/javascript/jquery.jquery-ui-1.10.0.custom.js'), 'jquery-ui' => 'include/javascript/jquery-ui.min.js'),
$config['jquery']); $config['jquery']);
} }

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -83,11 +83,11 @@ $interface_traffic_modules = array(
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo __('%s Interface Graph', get_product_name()) . ' (' .agents_get_alias($agent_id) . ' - ' . $interface_name; ?>)</title> <title><?php echo __('%s Interface Graph', get_product_name()) . ' (' .agents_get_alias($agent_id) . ' - ' . $interface_name; ?>)</title>
<link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" />
<link rel="stylesheet" href="../../include/styles/jquery-ui-1.10.0.custom.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/jquery-ui.min.css" type="text/css" />
<script type='text/javascript' src='../../include/javascript/pandora.js'></script> <script type='text/javascript' src='../../include/javascript/pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script> <script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.jquery-ui-1.10.0.custom.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-ui.min.js'></script>
<?php <?php
include_once($config["homedir"] . '/include/graphs/functions_flot.php'); include_once($config["homedir"] . '/include/graphs/functions_flot.php');
echo include_javascript_dependencies_flot_graph(true, "../"); echo include_javascript_dependencies_flot_graph(true, "../");

View File

@ -70,11 +70,11 @@ echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo __("%s Realtime Module Graph", get_product_name());?></title> <title><?php echo __("%s Realtime Module Graph", get_product_name());?></title>
<link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" />
<link rel="stylesheet" href="../../include/styles/jquery-ui-1.10.0.custom.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/jquery-ui.min.css" type="text/css" />
<script type='text/javascript' src='../../include/javascript/pandora.js'></script> <script type='text/javascript' src='../../include/javascript/pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script> <script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.jquery-ui-1.10.0.custom.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-ui.min.js'></script>
<?php <?php
//Include the javascript for the js charts library //Include the javascript for the js charts library
include_once($config["homedir"] . '/include/graphs/functions_flot.php'); include_once($config["homedir"] . '/include/graphs/functions_flot.php');

View File

@ -78,11 +78,11 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo __("%s Graph", get_product_name()) . ' (' . $alias . ' - ' . $label; ?>)</title> <title><?php echo __("%s Graph", get_product_name()) . ' (' . $alias . ' - ' . $label; ?>)</title>
<link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/pandora_minimal.css" type="text/css" />
<link rel="stylesheet" href="../../include/styles/jquery-ui-1.10.0.custom.css" type="text/css" /> <link rel="stylesheet" href="../../include/styles/jquery-ui.min.css" type="text/css" />
<script type='text/javascript' src='../../include/javascript/pandora.js'></script> <script type='text/javascript' src='../../include/javascript/pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-3.3.1.min.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script> <script type='text/javascript' src='../../include/javascript/jquery.pandora.js'></script>
<script type='text/javascript' src='../../include/javascript/jquery.jquery-ui-1.10.0.custom.js'></script> <script type='text/javascript' src='../../include/javascript/jquery-ui.min.js'></script>
<?php <?php
include_once($config["homedir"] . '/include/graphs/functions_flot.php'); include_once($config["homedir"] . '/include/graphs/functions_flot.php');
echo include_javascript_dependencies_flot_graph(true, "../"); echo include_javascript_dependencies_flot_graph(true, "../");