"; echo "Modules added successfully"; echo ""; } // Main header echo "

".$lang_label["agent_conf"]." > ".$lang_label["network_templates"]; echo "

"; // ========================== // TEMPLATE ASSIGMENT FORM // ========================== echo "

".$lang_label["available_templates"]."

"; echo ""; echo "

"; echo "
"; echo ""; echo "
"; echo ""; echo "
"; echo ""; // ========================== // MODULE VISUALIZATION TABLE // ========================== echo "

".$lang_label["assigned_modules"]."

"; $sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'" ORDER BY id_module_group, nombre '; $result=mysql_query($sql1); if ($row=mysql_num_rows($result)){ echo ''; echo ''; echo ""; echo ""; echo "
".$lang_label["module_name"]; echo "".$lang_label["type"]; echo "".$lang_label["description"]; echo "".$lang_label["action"]; $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"]; echo "
".$nombre_modulo; echo ""; if ($id_tipo > 0) { echo ""; } echo "".substr($descripcion,0,30).""; if ($id_tipo != -1) echo " ".$lang_label["delete"]."   "; echo " ".$lang_label["update"].""; } echo "
"; } else echo "
No modules
"; ?>