echo "</font></blockquote></form>\n</td></tr>\n"; } else { echo "<tr><td class=\"blank\"> </td></tr>\n"; } echo "<tr><td class=\"blank\">\n"; $configurations = ExternConfig::GetAllConfigurations($range_id); $module_types_ordered = ExternModule::GetOrderedModuleTypes(); $choose_module_form = ''; // remove global configuration array_shift($module_types_ordered); foreach ($module_types_ordered as $i) { if ((sizeof($configurations[$GLOBALS['EXTERN_MODULE_TYPES'][$i]['module']]) < $EXTERN_MAX_CONFIGURATIONS) && ExternModule::HaveAccessModuleType(Request::option('view'), $i)) { $choose_module_form .= "<option value=\"{$GLOBALS['EXTERN_MODULE_TYPES'][$i]['module']}\">" . $GLOBALS['EXTERN_MODULE_TYPES'][$i]['name'] . "</option>\n"; } if (isset($configurations[$GLOBALS['EXTERN_MODULE_TYPES'][$i]["module"]])) { $have_config = TRUE; } } // add global configuration on first position array_unshift($module_types_ordered, 0); // check for global configurations if (isset($configurations[$GLOBALS['EXTERN_MODULE_TYPES'][0]["module"]])) { $have_config = TRUE; } if (Request::option('com') != 'copychoose') {