(Pandora Console)

* ver_agente.php: Add new text about authors. Clean Code.

* estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes).

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@122 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-07-11 11:02:20 +00:00
parent 75a907d218
commit 8765842da8
3 changed files with 47 additions and 22 deletions

View File

@ -1,6 +1,10 @@
2006-07-11 Raul Mateos <raulofpandora@gmail.com> 2006-07-11 Raul Mateos <raulofpandora@gmail.com>
* estado_agente.php: Clean code, add new text about authors * ver_agente.php: Add new text about authors. Clean Code.
* estado_generalagente.php: Add new text about authors. Solve small bug showing different colors between rows (cosmetic changes).
* estado_agente.php: Clean code, add new text about authors.
* configurar_agente.php: Solve small bug that in some cases the module association form didn't work. * configurar_agente.php: Solve small bug that in some cases the module association form didn't work.
Added the feature of disable the not required inputs for the different type of agents while editing Added the feature of disable the not required inputs for the different type of agents while editing
@ -22,9 +26,10 @@
* message.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Add a line between table and button (cosmetic change). * message.php: Add new text about authors. Add new help icon; At this moment help for this item isn't available. Add a line between table and button (cosmetic change).
* incident_detail: Add new text about authors. Add a line between table and button. Add different colors between rows. Change button position (cosmetic changes). * incident_detail.php: Add new text about authors. Add a line between table and button. Add different colors between rows. Change button position (cosmetic changes).
* incident_note.php: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes).
* incident_note: Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes).
2006-07-09 Sancho Lerena <slerena@artica.es> 2006-07-09 Sancho Lerena <slerena@artica.es>

View File

@ -1,14 +1,25 @@
<?php <?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license. // Pandora - the Free monitoring system
// Este codigo esta protegido por la licencia GPL. // ====================================
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Load global vars // Load global vars
require("include/config.php"); require("include/config.php");
//require("include/functions.php");
//require("include/functions_db.php");
if (comprueba_login() == 0) { if (comprueba_login() == 0) {
if (isset($_GET["id_agente"])){ if (isset($_GET["id_agente"])){
@ -112,7 +123,7 @@ if (comprueba_login() == 0) {
$diferencia = $ahora - $ultima; $diferencia = $ahora - $ultima;
// Get higher interval set for the set of modules from this agent // Get higher interval set for the set of modules from this agent
$sql_maxi ="select MAX(module_interval) from tagente_modulo where id_agente = ".$id_agente; $sql_maxi ="SELECT MAX(module_interval) FROM tagente_modulo WHERE id_agente = ".$id_agente;
$result_maxi=mysql_query($sql_maxi); $result_maxi=mysql_query($sql_maxi);
if ($row_maxi=mysql_fetch_array($result_maxi)) if ($row_maxi=mysql_fetch_array($result_maxi))
if ($row_maxi[0] > 0 ) if ($row_maxi[0] > 0 )
@ -123,7 +134,7 @@ if (comprueba_login() == 0) {
} else { } else {
$percentil = -1; $percentil = -1;
} }
echo '<tr><td class="datos"><b>'.$lang_label["next_contact"].'</b> <td class="datos2">'; echo '<tr><td class="datos"><b>'.$lang_label["next_contact"].'</b> <td class="datos">';
echo "<img src='reporting/fgraph.php?tipo=progress&percent=".$percentil."&height=20&width=200'>"; echo "<img src='reporting/fgraph.php?tipo=progress&percent=".$percentil."&height=20&width=200'>";
echo "</td></tr></table>"; echo "</td></tr></table>";

View File

@ -1,19 +1,28 @@
<?php <?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license.
// Este codigo esta protegido por la licencia GPL.
// Sancho Lerena <slerena@gmail.com>, 2003-2006
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006
// Cargamos variables globales // Pandora - the Free monitoring system
// ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Load global vars
require("include/config.php"); require("include/config.php");
//require("include/functions.php");
//require("include/functions_db.php");
if (comprueba_login() == 0) { if (comprueba_login() == 0) {
if (isset($_GET["id_agente"])){ if (isset($_GET["id_agente"])){
//echo "<td class='datos'><a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$id_agente."&id_agente_modulo=".$row3["id_agente_modulo"]."&flag=1'><img src='images/time.gif' border=0></a>";
$id_agente = $_GET["id_agente"]; $id_agente = $_GET["id_agente"];
// get group for this id_agente // get group for this id_agente
$query="SELECT * FROM tagente WHERE id_agente = ".$id_agente; $query="SELECT * FROM tagente WHERE id_agente = ".$id_agente;