clearstatcache(); if (!in_array($file, $listed_mods)) { $value = 0; $style = ""; if (in_array($file, $wizard->configs['modules'])) { $value = 1; $style = " style='background-color:#E6EFC2;'"; } $file = trim($file); $module =& $module_handler->create(); if (!$module->loadInfo($file, false)) { continue; } $form = new XoopsThemeForm('', 'modules', 'index.php', 'post'); $moduleYN = new XoopsFormRadioYN('', 'modules[' . $module->getInfo('dirname') . ']', $value, _YES, _NO); $moduleYN->setExtra("onclick='selectModule(\"" . $file . "\", this)'"); $form->addElement($moduleYN); $content .= "<tr id='" . $file . "'" . $style . ">\n"; $content .= " <td class='img' ><img src='" . XOOPS_URL . "/modules/" . $module->getInfo('dirname') . "/" . $module->getInfo('image') . "' alt='" . $module->getInfo('name') . "'/></td>\n"; $content .= " <td>"; $content .= " " . $module->getInfo('name') . " " . number_format(round($module->getInfo('version'), 2), 2) . " (" . $module->getInfo('dirname') . ")"; $content .= " <br />" . $module->getInfo('description'); $content .= " </td>\n"; $content .= " <td class='yesno'>"; $content .= $moduleYN->render(); $content .= " </td></tr>\n"; $toinstal++; } } $content .= "</table>"; $content .= "</li></ul><script type='text/javascript'>" . $javascript . "</script>";