".__('Modules successfully added ').""; } // Main header echo "

".__('Agent configuration')." > ".__('Module templates'); echo "

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

".__('Available templates')."

"; echo "
"; echo ""; echo ""; echo "
".__('Template').""; echo ""; echo ""; echo "
"; echo "
"; // ========================== // MODULE VISUALIZATION TABLE // ========================== echo "

".__('Assigned modules')."

"; $sql = 'SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'" ORDER BY id_module_group, nombre '; $result = mysql_query($sql); if ($row = mysql_num_rows ($result)) { 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"]; echo ""; echo ""; echo "
".__('Module name')."".__('Type')."".__('Description')."".__('Action')."
".$nombre_modulo; echo ""; if ($id_tipo) { echo ""; } echo "".substr($descripcion,0,30).""; if ($id_tipo != -1) echo " ".__(   "; echo " ".__("; } echo "
"; } else { echo "
No modules
"; } ?>