(Pandora Console)

* datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help.

* user.php. Add new text about authors. Clean code.

* menu.php. Add highlight when datos_agente selected.

* pandora.css. Add new text about authors.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@132 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-07-12 13:43:41 +00:00
parent 8bd863ad58
commit 86de96df72
5 changed files with 81 additions and 34 deletions

View File

@ -1,5 +1,13 @@
2006-07-12 Raul Mateos <raulofpandora@gmail.com> 2006-07-12 Raul Mateos <raulofpandora@gmail.com>
* datos_agente.php. Add new text about authors. Add a line between table and button. Add different colors between rows (cosmetic changes). Add Help.
* user.php. Add new text about authors. Clean code.
* menu.php. Add highlight when datos_agente selected.
* pandora.css. Add new text about authors.
* changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html * changed name from pandora_info_es.html to pandora_info_es_es.html and pandora_info_bb.html to pandora_info_ast_es.html
* pandora_info_it.html. New file, GPL license in italian * pandora_info_it.html. New file, GPL license in italian

View File

@ -1,9 +1,20 @@
/* /*
Pandora - The Free Source Monitoring System // Pandora - the Free monitoring system
This code is protected by GPL license. // ====================================
Este c<EFBFBD>igo esta protegido por la licencia GPL. // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
Ral Mateos <raulofpandora@gmail.com>, 2004-2006 // 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.
*/ */
@import url(op.css); @import url(op.css);

View File

@ -1,21 +1,30 @@
<?php <?php
// Pandora - The Free Monitoring System
// This code is protected by GPL license.
// Este c<>igo 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");
function datos_raw($id_agente_modulo, $periodo){ function datos_raw($id_agente_modulo, $periodo){
// Conecto con la BBDD
require("include/config.php"); require("include/config.php");
require("include/languages/language_".$language_code.".php"); require("include/languages/language_".$language_code.".php");
// Fecha 24 horas // 24 hours date
$yesterday_year = date("Y", time()-86400); $yesterday_year = date("Y", time()-86400);
$yesterday_month = date("m", time()-86400); $yesterday_month = date("m", time()-86400);
$yesterday_day = date ("d", time()-86400); $yesterday_day = date ("d", time()-86400);
@ -23,14 +32,14 @@ function datos_raw($id_agente_modulo, $periodo){
$dia = $yesterday_year."-".$yesterday_month."-".$yesterday_day." ".$yesterday_hour.":00:00"; $dia = $yesterday_year."-".$yesterday_month."-".$yesterday_day." ".$yesterday_hour.":00:00";
// Fecha 24x7 Horas (una semana) // 24x7 hours (one week)
$week_year = date("Y", time()-604800); $week_year = date("Y", time()-604800);
$week_month = date("m", time()-604800); $week_month = date("m", time()-604800);
$week_day = date ("d", time()-604800); $week_day = date ("d", time()-604800);
$week_hour = date ("H", time()-604800); $week_hour = date ("H", time()-604800);
$week = $week_year."-".$week_month."-".$week_day." ".$week_hour.":00:00"; $week = $week_year."-".$week_month."-".$week_day." ".$week_hour.":00:00";
// Fecha de hace 24x7x30 Horas (un mes) // 24x7x30 Hours (one month)
$month_year = date("Y", time()-2592000); $month_year = date("Y", time()-2592000);
$month_month = date("m", time()-2592000); $month_month = date("m", time()-2592000);
$month_day = date ("d", time()-2592000); $month_day = date ("d", time()-2592000);
@ -68,19 +77,27 @@ function datos_raw($id_agente_modulo, $periodo){
$nombre_modulo = dame_nombre_modulo_agentemodulo($id_agente_modulo); $nombre_modulo = dame_nombre_modulo_agentemodulo($id_agente_modulo);
echo "<h2>".$lang_label["data_received"]." '$nombre_agente' / '$nombre_modulo' </h2>"; echo "<h2>".$lang_label["data_received"]." '$nombre_agente' / '$nombre_modulo' </h2>";
echo "<div><b> $et </b></div>"; echo "<h3> $et <a href='help/".$help_code."/chap3.php#3322' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<br>";
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "<table cellpadding='3' cellspacing='3' width=750 border=0>"; echo "<table cellpadding='3' cellspacing='3' width='600' border='0'>";
$color=1;
echo "<th>".$lang_label["timestamp"]."</th>"; echo "<th>".$lang_label["timestamp"]."</th>";
echo "<th>".$lang_label["data"]."</th>"; echo "<th>".$lang_label["data"]."</th>";
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ($color == 1){
$tdcolor = "datos";
$color = 0;
}
else {
$tdcolor = "datos2";
$color = 1;
}
echo "<tr>"; echo "<tr>";
echo "<td class='f9'>".$row["timestamp"]; echo "<td class='".$tdcolor."f9 w130'>".$row["timestamp"];
echo "<td class='datos'>".salida_limpia($row["datos"]); echo "<td class='".$tdcolor."'>".salida_limpia($row["datos"]);
} }
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
echo "</table>"; echo "</table>";
echo "</table>"; // I dont know why but there is an unclosed table in somewhere :-?
} }
else { else {
echo "no_data"; echo "no_data";
@ -101,4 +118,4 @@ if (comprueba_login() == 0) {
datos_raw($id,$tipo); datos_raw($id,$tipo);
} }
?> ?>

View File

@ -1,4 +1,5 @@
<?PHP <?php
// Pandora - the Free monitoring system // Pandora - the Free monitoring system
// ==================================== // ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
@ -37,7 +38,7 @@ if (isset($_SESSION["id_usuario"])) {
echo '<ul class="mn"><li><a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_grupo&amp;refr=60" class="mn">'.$lang_label["view_agents"].'</a></li></ul></div>'; echo '<ul class="mn"><li><a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_grupo&amp;refr=60" class="mn">'.$lang_label["view_agents"].'</a></li></ul></div>';
if (isset($_GET["sec"]) && $_GET["sec"] == "estado"){ if (isset($_GET["sec"]) && $_GET["sec"] == "estado"){
if(isset($_GET["sec2"]) && ($_GET["sec2"] == "operation/agentes/estado_agente" || $_GET["sec2"] == "operation/agentes/ver_agente")) { if(isset($_GET["sec2"]) && ($_GET["sec2"] == "operation/agentes/estado_agente" || $_GET["sec2"] == "operation/agentes/ver_agente" || $_GET["sec2"] == "operation/agentes/datos_agente")) {
echo "<div id='arrows1'>"; echo "<div id='arrows1'>";
} }
else echo "<div id='arrow1'>"; else echo "<div id='arrow1'>";

View File

@ -1,20 +1,30 @@
<?php <?php
// Pandora - The Free Monitoring System // Pandora - the Free monitoring system
// This code is protected by GPL license. // ====================================
// Este codigo esta protegido por la licencia GPL. // Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Sancho Lerena <slerena@gmail.com>, 2003-2006 // Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es
// Raul Mateos <raulofpandora@gmail.com>, 2005-2006 // 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) {
?> ?>
<h2><?php echo $lang_label["users_"] ?></h3> <h2><?php echo $lang_label["users_"] ?></h2>
<h3><?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3> <h3><?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<table cellpadding="3" cellspacing="3" width="700"> <table cellpadding="3" cellspacing="3" width="700">