'.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);
$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::jsLoad('index.php?pf=importExport/js/script.js').'
';
if ($type && $module !== null) {
echo dcPage::breadcrumb(
array(
__('Plugins') => '',
$title => $p_url,
''.html::escapeHTML($module->name).'' => ''
));
echo
'';
$module->gui();
echo '
';
}
else {
echo dcPage::breadcrumb(
array(
__('Plugins') => '',
''.$title.'' => ''
));
echo
''.__('Import').'
'.listImportExportModules($core,$modules['import']).
''.__('Export').'
'.listImportExportModules($core,$modules['export']);
}
echo '
';
?>