require_once BADGER_ROOT . "/core/widgets/DataGrid.class.php"; require_once BADGER_ROOT . '/modules/account/AccountManager.class.php'; require_once BADGER_ROOT . '/modules/account/accountCommon.php'; if (isset($_GET['accountID'])) { $accountID = getGPC($_GET, 'accountID', 'integer'); } else { throw new badgerException('accountOverview', 'noAccountID', ''); } $am = new AccountManager($badgerDb); $account = $am->getAccountById($accountID); $pageTitle = getBadgerTranslation2('accountOverview', 'pageTitle'); $pageTitle .= ": " . $account->getTitle(); $widgets = new WidgetEngine($tpl); $widgets->addToolTipJS(); $widgets->addCalendarJS(); $widgets->addTwistieSectionJS(); $dataGrid = new DataGrid($tpl, "Account{$accountID}"); $dataGrid->sourceXML = BADGER_ROOT . "/core/XML/getDataGridXML.php?q=Account&qp={$accountID}"; $dataGrid->headerName = array(getBadgerTranslation2('accountOverview', 'colValutaDate'), getBadgerTranslation2('accountOverview', 'colTitle'), getBadgerTranslation2('accountOverview', 'colType'), getBadgerTranslation2('accountOverview', 'colAmount'), getBadgerTranslation2('accountOverview', 'colBalance'), getBadgerTranslation2('accountOverview', 'colCategoryTitle')); $dataGrid->columnOrder = array("valutaDate", "title", "type", "amount", "balance", "concatCategoryTitle"); $dataGrid->height = "350px"; $dataGrid->headerSize = array(90, 350, 39, 80, 120, 200); $dataGrid->cellAlign = array("left", "left", "center", "right", "right", "left"); $dataGrid->deleteRefreshType = "refreshDataGrid"; $dataGrid->deleteAction = "Transaction.php?action=delete&accountID={$accountID}&ID="; $dataGrid->editAction = "Transaction.php?action=edit&accountID={$accountID}&ID="; $dataGrid->newAction = "Transaction.php?action=new&accountID={$accountID}"; $dataGrid->initDataGridJS(); $widgets->addNavigationHead(); echo $tpl->getHeader($pageTitle); // DataGrid Filter