".$lang_label["agent_conf"]." > ".$lang_label["modules"].""; $sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'" ORDER BY id_module_group, nombre '; $result=mysql_query($sql1); echo "

".$lang_label["assigned_modules"]."  ".$lang_label["module_asociation_form"]."

"; if ($row=mysql_num_rows($result)){ echo ''; echo ''; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $color=1;$last_modulegroup = "0"; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor="datos"; $color =0; } else { $tdcolor="datos2"; $color =1; } $id_tipo = $row["id_tipo_modulo"]; $nombre_modulo =$row["nombre"]; $descripcion = $row["descripcion"]; $module_max = $row["max"]; $module_min = $row["min"]; $module_interval2 = $row["module_interval"]; $module_group2 = $row["id_module_group"]; if ($module_group2 != $last_modulegroup ){ // Render module group names (fixed code) $nombre_grupomodulo = dame_nombre_grupomodulo ($module_group2); $last_modulegroup = $module_group2; echo ""; } echo ""; echo ""; if ($module_interval2!=0){ echo ""; } else { echo ""; } echo ""; echo ""; echo ""; echo "
".$lang_label["module_name"]."".$lang_label["type"]."".$lang_label["interval"]."".$lang_label["description"]."".$lang_label["module_group"]."".$lang_label["max_min"]."".$lang_label["action"]."
".$nombre_grupomodulo."
".$nombre_modulo.""; if ($id_tipo > 0) { echo ""; } echo "".$module_interval2." N/A ".substr($descripcion,0,30)."". substr(dame_nombre_grupomodulo($module_group2),0,15).""; if ($module_max == $module_min) { $module_max = "N/A"; $module_min = "N/A"; } echo $module_max." / ".$module_min; echo ""; if ($id_tipo != -1){ echo "'; echo ""; echo " "; echo ""; echo ""; } // Value arithmetical media fix if (($id_tipo != 3) AND ($id_tipo != 10) AND ($id_tipo != 17)){ echo " "; echo "'; echo ""; } } echo "
"; } else echo "
No modules
"; // ========================== // Module assignment form // ========================== echo ""; echo "

".$lang_label["module_asociation_form"]."

"; if ($update_module == "1") echo '
'; else // equal than previous, but without #module_assigment echo ''; if ($update_module == "1"){ echo ''; echo ''; } else { // Create echo ''; // Default values for new modules if ($ip_target == ""){ $ip_target = $direccion_agente; $snmp_community = "public"; if ($module_interval == 0) $module_interval = $intervalo; } } // Dont Delete this !! echo ''; echo ''; echo '"; echo '"; } echo ''; echo '"; echo ''; echo '"; echo ''; echo ''; echo ""; echo ""; echo ""; echo "
'; echo $lang_label["network_component"]; if ($update_module != "1"){ echo ""; echo ''; } else { echo ""; echo ""; echo $lang_label["not_available_in_edit_mode"]; echo "
'.$lang_label["module_name"]."'.$lang_label["ip_target"]."
"; //-- Module type combobox echo "
".$lang_label["module_type"].""; if ($update_module == "1") { echo ""; echo "".$lang_label["not_available_in_edit_mode"].""; } else { echo '"; } ?>
'; } else { echo ''; } ?>