Exemplo n.º 1
0
switch ($frm_name) {
    case 'frm_tableparam':
        $oParams = new colparams(req::_('_table'), req::_('_col'));
        $oParams->_set($_POST);
        $output = $oParams->_store();
        break;
    case 'frm_editor':
        $table = req::_('table_name');
        // table name
        $prikey = dbfn::_getprimary($table);
        // get primary key name of table
        $id = req::_($prikey);
        // get id of record
        $oEditor = new editor($table, $id);
        $oEditor->_getData();
        $oEditor->_setData($_POST);
        $output = $oEditor->_storeData();
        break;
    case 'frm_storetabs':
        $tabs = req::_('Tabs', '');
        $oResult = aimsys::_storeTabs($tabs);
        $output = $oResult->ret;
        break;
    case 'frm_gettabs':
        $t = aimsys::_getTabs();
        break;
}
/**  **  **  **  **  **  **  **  **  **
 *   OUTPUT THE RESULTS
 */
switch ($frm_name) {