".$lang_label["dbmain_title"]." > "; echo $lang_label["db_stat_agent"].""; echo ""; echo ""; echo ""; echo ""; $color=0; $result_2=mysql_query("SELECT id_agente FROM tagente"); while ($row2=mysql_fetch_array($result_2)){ $total_agente=0; $result_3c=mysql_query("SELECT COUNT(id_agente_modulo) FROM tagente_modulo WHERE id_agente = ".$row2["id_agente"]); $row3c=mysql_fetch_array($result_3c); $result_3=mysql_query("SELECT * FROM tagente_modulo WHERE id_agente = ".$row2["id_agente"]); // for all data_modules belongs to an agent while ($row3=mysql_fetch_array($result_3)){ $result_4=mysql_query("SELECT COUNT(id_agente_modulo) FROM tagente_datos WHERE id_agente_modulo = ".$row3["id_agente_modulo"]); $row4=mysql_fetch_array($result_4); $total_agente=$total_agente + $row4[0]; } if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } echo ""; echo ""; echo ""; flush(); //ob_flush(); } echo "
".$lang_label["agent_name"]."".$lang_label["assigned_module"]."".$lang_label["total_data"]."
".dame_nombre_agente($row2[0])."".$row3c[0]."".$total_agente."
"; } else { audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Database Management Info data"); require ("general/noaccess.php"); } ?>