2009-04-22 Esteban Sánchez <estebans@artica.es>

* pandoradb_data.sql: Use 3.0 for version number
	
	* include/javascript/jquery.pandora.controls.js: Duplicated
	pandoraSelectGroup renamed to pandoraSelectGroupAgent.
	
	* godmode/agentes/massive_config.php,
	godmode/agentes/massive_delete_agents.php,
	godmode/agentes/massive_delete_alerts.php,
	godmode/agentes/massive_delete_modules.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
	godmode/reporting/reporting_builder.php: pandoraSelectGroup renamed to
	pandoraSelectGroupAgent.
	
	* godmode/agentes/modificar_agente.php: Tiny changes in remote agent config
	link.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1644 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2009-04-22 10:46:05 +00:00
parent 8c36bfd6e8
commit c45e29ac4e
11 changed files with 77 additions and 21 deletions

View File

@ -1,3 +1,21 @@
2009-04-22 Esteban Sánchez <estebans@artica.es>
* pandoradb_data.sql: Use 3.0 for version number
* include/javascript/jquery.pandora.controls.js: Duplicated
pandoraSelectGroup renamed to pandoraSelectGroupAgent.
* godmode/agentes/massive_config.php,
godmode/agentes/massive_delete_agents.php,
godmode/agentes/massive_delete_alerts.php,
godmode/agentes/massive_delete_modules.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/reporting/reporting_builder.php: pandoraSelectGroup renamed to
pandoraSelectGroupAgent.
* godmode/agentes/modificar_agente.php: Tiny changes in remote agent config
link.
2009-04-22 Manuel Arostegui <marostegui@artica.es>
* install.php: Fixed bug #2777317
@ -76,8 +94,47 @@
godmode/agentes/module_manager.php: Some fixes to allow form
reutilization.
* include/javascript/jquery.pandora.controls.js: Fixed a typo. Added
pandoraSelectGroup control.
* include/javascript/jquery.pandora.js: Separate between auto executed code
and document ready function.
* include/javascript/pandora_modules.js: Added to repository. Functions to
use on module editors.
* include/functions_agents.php: Added get_agents().
* include/functions_db.php: Added get_user_first_group(). Changed
user_access_to_agent() parameters order.
* include/functions_reporting.php: Style corrections.
* include/functions_ui.php: Added doc to print_status_image(). Added
print_ui_agents_list() to print a list of agents with a search form and
a lot of configuration options easily.
* include/functions_ui_renders.php: Added to repository. New API for
renders on UI components.
* operation/agentes/estado_agente.php: Make table wider.
* godmode/reporting/reporting_builder.php: Replaced exit with return. Use
pandoraSelectGroup() control.
pandoraSelectGroup control.
* godmode/servers/manage_recontask_form.php: Style corrections to fit
Pandora styles.
* godmode/servers/modificar_server.php: Removed a notice from a typo.
* godmode/setup/setup.php: Fixed table data indexes. Removed javascript
code from visual setup.
* godmode/setup/setup_visuals.php: Some strings changed. Style correction.
* godmode/menu.php: Added policies enterprise menu option.
* images/policies.png: Added to repository.
* godmode/agentes/modificar_agente.php: Style correction by using pandora
functions.

View File

@ -169,12 +169,12 @@ require_jquery_file ('pandora.controls');
/* <![CDATA[ */
var module_alerts;
$(document).ready (function () {
$("#source_id_group").pandoraSelectGroup ({
$("#source_id_group").pandoraSelectGroupAgent ({
agentSelect: "select#source_id_agent",
loading: "#source_agent_loading"
});
$("#destiny_id_group").pandoraSelectGroup ({
$("#destiny_id_group").pandoraSelectGroupAgent ({
agentSelect: "select#destiny_id_agent",
loading: "#destiny_agent_loading",
callbackPost: function (id, value, option) {

View File

@ -115,7 +115,7 @@ require_jquery_file ('pandora.controls');
<script type="text/javascript">
$(document).ready (function () {
$("#id_group").pandoraSelectGroup ({
$("#id_group").pandoraSelectGroupAgent ({
agentSelect: "select#id_agents"
});
});

View File

@ -128,7 +128,7 @@ require_jquery_file ('pandora.controls');
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready (function () {
$("#id_group").pandoraSelectGroup ();
$("#id_group").pandoraSelectGroupAgent ();
$("#id_agent").pandoraSelectAgentAlert ({
alertSelect: "select#id_alerts"
});

View File

@ -120,7 +120,7 @@ require_jquery_file ('pandora.controls');
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready (function () {
$("#id_group").pandoraSelectGroup ();
$("#id_group").pandoraSelectGroupAgent ();
$("#id_agent").pandoraSelectAgentModule ({
moduleSelect: "select#id_modules"
});

View File

@ -206,10 +206,9 @@ if ($agents !== false) {
echo "<td align='center' class='$tdcolor'>";
// Has remote configuration ?
$agent_md5 = md5 ($agent["nombre"], false);
if (file_exists($config["remote_config"]."/".$agent_md5.".md5")) {
echo "<a href='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente=".$agent["id_agente"]."&disk_conf=" . $agent_md5 . "'>";
echo "<img src='images/application_edit.png' border='0' align='middle' title='".__('Edit remote config')."'>";
if (file_exists ($config["remote_config"]."/".$agent_md5.".md5")) {
echo "<a href='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente=".$agent["id_agente"]."&disk_conf=1'>";
echo "<img src='images/application_edit.png' align='middle' title='".__('Edit remote config')."'>";
echo "</a>";
}
echo "</td>";

View File

@ -198,6 +198,6 @@ require_jquery_file ('pandora.controls');
<script type="text/javascript">
$(document).ready (function () {
$("#id_group").pandoraSelectGroup ();
$("#id_group").pandoraSelectGroupAgent ();
});
</script>

View File

@ -414,7 +414,7 @@ require_jquery_file ('pandora.controls');
/* <![CDATA[ */
$(document).ready (function () {
<?php if (! $id_agente) : ?>
$("#id_group").pandoraSelectGroup ({
$("#id_group").pandoraSelectGroupAgent ({
callbackBefore: function () {
$select = $("#id_agent_module").disable ();
$select.siblings ("span#latest_value").hide ();

View File

@ -627,7 +627,7 @@ function report_type_changed () {
$(document).ready (function () {
$('#id_agent').change (agent_changed);
$('#type').change (report_type_changed);
$('#report_id_group').pandoraSelectGroup ();
$('#report_id_group').pandoraSelectGroupAgent ();
});
/* ]]> */
</script>

View File

@ -4,7 +4,7 @@
};
$.extend ({
pandoraSelectGroup: new function() {
pandoraSelectGroupAgent: new function() {
this.defaults = {
agentSelect: "select#id_agent",
loading: "#agent_loading",
@ -20,7 +20,7 @@
return this.each (function() {
this.config = {};
this.config = $.extend (this.config, $.pandoraSelectGroup.defaults, settings);
this.config = $.extend (this.config, $.pandoraSelectGroupAgent.defaults, settings);
var config = this.config;
$(this).change (function () {
@ -207,7 +207,7 @@
});
$.extend ({
pandoraSelectGroup: new function() {
pandoraSelectGroupIcon: new function() {
this.defaults = {
alertSelect: "select#id_group",
spanPreview: "#group_preview",
@ -218,7 +218,7 @@
this.construct = function (settings) {
return this.each (function() {
this.config = {};
this.config = $.extend (this.config, $.pandoraSelectGroup.defaults, settings);
this.config = $.extend (this.config, $.pandoraSelectGroupIcon.defaults, settings);
var config = this.config;
@ -249,10 +249,10 @@
});
$.fn.extend({
pandoraSelectGroup: $.pandoraSelectGroup.construct,
pandoraSelectGroupAgent: $.pandoraSelectGroupAgent.construct,
pandoraSelectAgentModule: $.pandoraSelectAgentModule.construct,
pandoraSelectAgentAlert: $.pandoraSelectAgentAlert.construct,
pandoraSelectOS: $.pandoraSelectOS.construct,
pandoraSelectGroup: $.pandoraSelectGroup.construct
pandoraSelectGroupIcon: $.pandoraSelectGroupIcon.construct
});
}) (jQuery);

View File

@ -14,7 +14,7 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-- Database Data for Pandora FMS 2.0
-- Database Data for Pandora FMS 3.0
-- PLEASE NO NOT USE MULTILINE COMMENTS
-- Because Pandora Installer don't understand them
@ -243,7 +243,7 @@ INSERT INTO `tusuario_perfil` VALUES (1,'admin',5,1,'admin');
INSERT INTO `tperfil` VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0),(2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0),(3,'Chief Operator',1,1,1,1,0,0,0,0,0,0),(4,'Group coordinator',1,1,1,1,1,1,1,0,0,0),(5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1);
INSERT INTO `tnews` VALUES (1,'admin','Welcome to Pandora FMS 2.0!','This is the new Pandora FMS Console. A lot of new features have been added since last version. Please read the documentation about it, and feel free to test any option.\r\n\r\nThe Pandora FMS Team.',NOW());
INSERT INTO `tnews` VALUES (1,'admin','Welcome to Pandora FMS 3.0!','This is the new Pandora FMS Console. A lot of new features have been added since last version. Please read the documentation about it, and feel free to test any option.\r\n\r\nThe Pandora FMS Team.',NOW());
INSERT INTO tmodule VALUES (1,'Agent module');
INSERT INTO tmodule VALUES (2,'Network module');