}
return true;
}
-//
-// Helper for formating menu tabs/entries to be displayed in extension table
-//
-function fmt_titles($defs)
-{
- if (!$defs) return '';
- foreach($defs as $def) {
- $str[] = access_string($def['title'], true);
- }
- return implode('<br>', array_values($str));
-}
//---------------------------------------------------------------------------------------------
//
// Display list of all extensions - installed and available from repository
div_start('ext_tbl');
start_table(TABLESTYLE);
- $th = array(_("Extension"),_("Modules provided"), _("Options provided"),
- _("Installed"), _("Available"), "", "");
+ $th = array(_("Extension"), _("Installed"), _("Available"), "", "");
table_header($th);
$k = 0;
$installed = @$ext['version'];
$id = @$ext['local_id'];
- $entries = fmt_titles(@$ext['entries']);
- $tabs = fmt_titles(@$ext['tabs']);
-
alt_table_row_color($k);
label_cell($available ? get_package_view_str($pkg_name, $ext['name']) : $ext['name']);
- label_cell($tabs);
- label_cell($entries);
label_cell($id === null ? _("None") :
(($installed && ($installed != '-' || $installed != '')) ? $installed : _("Unknown")));
{
start_table(TABLESTYLE);
- $th = array(_("Extension"),_("Modules provided"), _("Options provided"), _("Active"));
+ $th = array(_("Extension"), _("Version"), _("Path"), _("Active"));
$mods = get_company_extensions();
$exts = get_company_extensions($id);
foreach($mods as $i => $mod)
{
if ($mod['type'] != 'extension') continue;
- alt_table_row_color($k);
+ alt_table_row_color($k);
label_cell($mod['name']);
- $entries = fmt_titles(@$mod['entries']);
- $tabs = fmt_titles(@$mod['tabs']);
- label_cell($tabs);
- label_cell($entries);
+ label_cell($mod['version']);
+ label_cell($mod['path']);
check_cells(null, 'Active'.$i, @$mod['active'] ? 1:0,
false, false, "align='center'");
+
end_row();
}