' . html::escapeHTML($o->name) . '' .
'' . html::escapeHTML($o->description) . '';
unset($o);
}
return '' . $res . '
';
}
$modules = new ArrayObject(array('import' => array(), 'export' => array()));
# --BEHAVIOR-- importExportModules
$core->callBehavior('importExportModules', $modules, $core);
$type = null;
if (!empty($_REQUEST['type']) && in_array($_REQUEST['type'], array('export', 'import'))) {
$type = $_REQUEST['type'];
}
$module = null;
if ($type && !empty($_REQUEST['module'])) {
if (isset($modules[$type]) && in_array($_REQUEST['module'], $modules[$type])) {
$module = new $_REQUEST['module']($core);
$module->init();
}
}
if ($type && $module !== null && !empty($_REQUEST['do'])) {
try {
$module->process($_REQUEST['do']);
} catch (Exception $e) {
$core->error->add($e->getMessage());
}
}
$title = __('Import/Export');
echo '
' . $title . '' .
dcPage::cssLoad(dcPage::getPF('importExport/style.css')) .
dcPage::jsLoad(dcPage::getPF('importExport/js/script.js')) .
'
';
if ($type && $module !== null) {
echo dcPage::breadcrumb(
array(
__('Plugins') => '',
$title => $p_url,
html::escapeHTML($module->name) => ''
)) .
dcPage::notices();
echo
'';
$module->gui();
echo '
';
} else {
echo dcPage::breadcrumb(
array(
__('Plugins') => '',
$title => ''
)) .
dcPage::notices();
echo '' . __('Import') . '
' . listImportExportModules($core, $modules['import']);
echo
'' . __('Export') . '
' .
'' . sprintf(
__('Export functions are in the page %s.'),
'' . __('Maintenance') . ''
) . '
';
}
dcPage::helpBlock('import');
echo '';