* Laden von Neuen Modulen der IPSLibrary
 *
 */
/** @}*/
?>

<table border=1>
  <tr><th>Modul</th><th>Version</th><th>Laden</th><th>Beschreibung</th></tr>
<?php 
IPSUtils_Include("IPSModuleManager.class.php", "IPSLibrary::install::IPSModuleManager");
$moduleManager = new IPSModuleManager();
$knownModules = $moduleManager->VersionHandler()->GetKnownModules();
$installedModules = $moduleManager->VersionHandler()->GetInstalledModules();
$html = '';
foreach ($knownModules as $module => $data) {
    $infos = $moduleManager->GetModuleInfos($module);
    $html .= '  <tr>';
    $html .= GetTableData($module, '', 'Module', $module);
    $html .= GetTableData($infos['Version']);
    if (array_key_exists($module, $installedModules)) {
        $html .= '<td></td>';
    } elseif ($processing) {
        $html .= '<td>processing ...</td>';
    } else {
        $html .= '<td><input type="button" name="Text" value="Modul Laden" onclick="trigger_button(\'Load\', \'' . $module . '\', \'\')"></td>';
    }
    $html .= GetTableData($infos['Description']);
    $html .= '</tr>' . PHP_EOL;
}
echo $html;
?>