2007-08-23 Sancho Lerena <slerena@gmail.com>
* datos_agente.php: Fix delete button for String data. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6d7334eb10
commit
49ad568061
|
@ -1,5 +1,7 @@
|
||||||
2007-08-23 Sancho Lerena <slerena@gmail.com>
|
2007-08-23 Sancho Lerena <slerena@gmail.com>
|
||||||
|
|
||||||
|
* datos_agente.php: Fix delete button for String data.
|
||||||
|
|
||||||
* pandoradbdata_12_to_13.sql, pandoradb_data.sql: Fixed some problems with
|
* pandoradbdata_12_to_13.sql, pandoradb_data.sql: Fixed some problems with
|
||||||
network components, and network templates.
|
network components, and network templates.
|
||||||
|
|
||||||
|
|
|
@ -50,11 +50,13 @@ function datos_raw($id_agente_modulo, $periodo){
|
||||||
$sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ".
|
$sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ".
|
||||||
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
||||||
ORDER BY timestamp DESC";
|
ORDER BY timestamp DESC";
|
||||||
|
$string_type = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$sql1="SELECT * FROM tagente_datos WHERE id_agente_modulo = ".
|
$sql1="SELECT * FROM tagente_datos WHERE id_agente_modulo = ".
|
||||||
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
||||||
ORDER BY timestamp DESC";
|
ORDER BY timestamp DESC";
|
||||||
|
$string_type = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result=mysql_query($sql1);
|
$result=mysql_query($sql1);
|
||||||
|
@ -81,7 +83,7 @@ function datos_raw($id_agente_modulo, $periodo){
|
||||||
$color = 1;
|
$color = 1;
|
||||||
}
|
}
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
if (give_acl($id_user, $id_group, "AW") ==1) {
|
if ((give_acl($id_user, $id_group, "AW") ==1) AND ($string_type == 0)){
|
||||||
echo "<td class='".$tdcolor."' width=20>";
|
echo "<td class='".$tdcolor."' width=20>";
|
||||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/datos_agente&tipo=$periodo_label&id=$id_agente_modulo&delete=".$row["id_agente_datos"]."'><img src='images/cross.png' border=0>";
|
echo "<a href='index.php?sec=estado&sec2=operation/agentes/datos_agente&tipo=$periodo_label&id=$id_agente_modulo&delete=".$row["id_agente_datos"]."'><img src='images/cross.png' border=0>";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue