$field_year = new strFBFieldTypeListBoxSmall("expense_view_year"); $field_year->listvalues = "2003:2006:2007:2008:2009"; $field_year->listlabels = "2003:2006:2007:2008:2009"; $field_year->label = "Year"; $field_year->default = "[expense_view_month]"; $reg_filter->addField($field_year); $f_expense_filter->setRegistry($reg_filter); $f_expense_filter->setValue("expense_view_month", $_SESSION['expense_view_month']); $f_expense_filter->setValue("expense_view_year", $_SESSION['expense_view_year']); // echo $f_expense_filter->getTable(); $f_expense_filter->setDefault(); $f_expense_filter->setEvent("accounting.expenses_filter_view_set_values"); $f_expense_filter->setNoData(true); $f_expense_filter->execute(); ?> <?php $do_expense = new Expense($GLOBALS['conx']); $do_expense->setViewTemplate("search_report"); $do_expense->setSavedQuery("expenses_search_display"); $do_expense->setRegistry("expense_view"); //$do_expense->get_expenses_search_display(); // $do_expense->prepareView(); // echo $do_expense->view->getNoData(); // $do_expense->view->setMaxRows(20); // $do_expense->view->setQuery(); $do_expense->view(); ?> <?php include "includes/footer.inc.php";