2012-04-26 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/styles/pandora.css
	 include/javascript/jquery.pandora.js
	 index.php
	 general/login_help_dialog.php: Added input for license in blocking
	 license modal windows.

	Merged from branches.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6201 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-04-26 20:46:38 +00:00
parent c440b53603
commit 8d2c8167c5
5 changed files with 24 additions and 14 deletions

View File

@ -1,3 +1,13 @@
2012-04-26 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/styles/pandora.css
include/javascript/jquery.pandora.js
index.php
general/login_help_dialog.php: Added input for license in blocking
license modal windows.
Merged from branches.
2012-04-26 Miguel de Dios <miguel.dedios@artica.es> 2012-04-26 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/exportdata.php, * operation/agentes/exportdata.php,

View File

@ -36,6 +36,9 @@ if (is_ajax()) {
// Prints help dialog information // Prints help dialog information
if ($license_fail == 1)
return;
echo '<div id="login_help_dialog" title="' . __('Welcome to Pandora FMS') . '" style="">'; echo '<div id="login_help_dialog" title="' . __('Welcome to Pandora FMS') . '" style="">';
echo '<div style="position:absolute; top:30px; left: 10px; text-align: left; right:0%; height:70px; width:560px; margin: 0 auto; border: 1px solid #FFF; line-height: 19px;">'; echo '<div style="position:absolute; top:30px; left: 10px; text-align: left; right:0%; height:70px; width:560px; margin: 0 auto; border: 1px solid #FFF; line-height: 19px;">';
@ -122,11 +125,11 @@ $(document).ready (function () {
$("#submit-hide-login-help").click (function () { $("#submit-hide-login-help").click (function () {
$("#login_help_dialog" ).dialog('close'); $("#login_help_dialog" ).dialog('close');
var skip_login_help = $("#checkbox-skip_login_help").attr('checked'); var skip_login_help = $("#checkbox-skip_login_help").attr('checked');
// Update config['skip_login_help_dialog'] to don't display more this message // Update config['skip_login_help_dialog'] to don't display more this message
if (skip_login_help == 'checked') { if (skip_login_help == 'checked') {
jQuery.get ("ajax.php", jQuery.get ("ajax.php",

View File

@ -86,24 +86,23 @@ $(document).ready (function () {
return false; return false;
}); });
$(function() {
$( "#license_error_msg_dialog" ).dialog({ $( "#license_error_msg_dialog" ).dialog({
resizable: true, resizable: true,
draggable: true, draggable: true,
modal: true, modal: true,
height: 250, height: 280,
width: 600, width: 600,
overlay: { overlay: {
opacity: 0.5, opacity: 0.5,
background: "black" background: "black"
}, },
bgiframe: jQuery.browser.msie bgiframe: jQuery.browser.msie
});
}); });
$("#submit-hide-license-error-msg").click (function () { $("#submit-hide-license-error-msg").click (function () {
$("#license_error_msg_dialog" ).dialog('close') $("#license_error_msg_dialog" ).dialog('close')
}); });
$("a#dialog_license_info").click (function () { $("a#dialog_license_info").click (function () {
@ -134,6 +133,4 @@ $(document).ready (function () {
return false; return false;
}); });
} });
);

View File

@ -156,7 +156,6 @@ h1#log_f {
} }
div#login { div#login {
margin: 0 auto; margin: 0 auto;
#margin-top: 200px;
padding-top: 63px; padding-top: 63px;
width: 657px; width: 657px;
border-left: solid 1px #000; border-left: solid 1px #000;
@ -173,9 +172,9 @@ div#error_login {
#margin: 0 auto; #margin: 0 auto;
#margin-top: -10px; #margin-top: -10px;
text-align: center; text-align: center;
margin-top: 10px; margin-top: 5px;
margin-left: 5px; margin-left: 5px;
width: 70%; width: 75%;
float: right; float: right;
text-align: left; text-align: left;
top: 100px; top: 100px;

View File

@ -267,6 +267,7 @@ if (isset ($_GET["bye"])) {
* Load the basic configurations of extension and add extensions into menu. * Load the basic configurations of extension and add extensions into menu.
* Load here, because if not, some extensions not load well, I don't why. * Load here, because if not, some extensions not load well, I don't why.
*/ */
extensions_load_extensions ($config['extensions']); extensions_load_extensions ($config['extensions']);
if ($process_login) { if ($process_login) {
/* Call all extensions login function */ /* Call all extensions login function */
@ -277,7 +278,7 @@ if ($process_login) {
//Set the initial global counter for chat. //Set the initial global counter for chat.
users_get_last_global_counter('session'); users_get_last_global_counter('session');
} }
//Get old parameters before navigation. //Get old parameters before navigation.
$old_sec = ''; $old_sec = '';
$old_sec2 = ''; $old_sec2 = '';