Beispiel #1
0
        break;
    case "addcurrency":
        include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
        $controller = new SmartObjectController($smartobject_currency_handler);
        $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php');
        break;
    case "del":
        include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php";
        $controller = new SmartObjectController($smartobject_currency_handler);
        $controller->handleObjectDeletion();
        break;
    default:
        smart_xoops_cp_header();
        smart_adminMenu(5, _AM_SOBJECT_CURRENCIES);
        smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC);
        include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php";
        $objectTable = new SmartObjectTable($smartobject_currency_handler);
        $objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink'));
        $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150));
        $objectTable->addColumn(new SmartObjectColumn('iso4217', 'center', 150));
        $objectTable->addColumn(new SmartObjectColumn('default_currency', 'center', 150, 'getDefault_currencyControl'));
        $objectTable->addIntroButton('addcurrency', 'currency.php?op=mod', _AM_SOBJECT_CURRENCIES_CREATE);
        $objectTable->addActionButton('updateCurrencies', _SUBMIT, _AM_SOBJECT_CURRENCY_UPDATE_ALL);
        $objectTable->render();
        echo "<br />";
        smart_close_collapsable('createdcurrencies');
        echo "<br>";
        break;
}
smart_modFooter();
xoops_cp_footer();