$CompanyEdit = new Company($GLOBALS['conx']); $CompanyEdit->sessionPersistent("CompanyEditSave", "index.php", 300); $company_edit_page = "company_edit.php"; $companyAddForm = new ReportForm($conx, "ofuz_add_company"); $companyAddForm->setFormEvent("CompanyEditSave->eventAdd", 123); $companyAddForm->addEventAction("CompanyEditSave->eventValuesFromForm", 117); $companyAddForm->addEventAction("CompanyEditSave->eventCheckDuplicateCompanyInAdd", 100); $companyAddForm->addEventAction("mydb.gotoPage", 90); $companyAddForm->addParam("goto", $company_edit_page); $companyAddForm->addParam("errPage", $_SERVER['PHP_SELF']); $companyAddForm->setRegistry("ofuz_add_company"); $companyAddForm->setTable("company"); $companyAddForm->setAddRecord(); $companyAddForm->setUrlNext($company_edit_page); $companyAddForm->setForm(); $companyAddForm->execute(); ?> <div class="section20"> <!-- <input type="submit" value="Add this company" />--> </div> <?php //echo $do_contact->getFormFooter(); ?> </div> </td></tr></table> <div class="spacerblock_40"></div> <div class="layout_footer"></div> </div> </td><td class="layout_rmargin"></td></tr></table> <?php include_once 'includes/ofuz_facebook.php';
$form->setDefault($table); } elseif (!empty($savedquery)) { $form->setSavedQuery($savedquery); $form->setQuery(); $form->setDefault(); } else { $form->setQuery($table, $primary_key_value, $primary_key_var); $form->setDefault($table); } if ($addrecord == "yes") { $form->setAddRecord(); } $form->event->addEvent("mydb.addParamToDisplayNext", 500); $form->event->addParam("errorpage", $_SERVER['PHP_SELF']); $form->setForm(); $form->execute(); } else { ?> <div class="error_message">Missing parameters to display the from</div> <?php } } else { ?> <div class="error_message">Missing parameters to display the from (manageData)</div> <?php } ?> </DIV>
$field_month->default = "[expense_view_month]"; $reg_filter->addField($field_month); $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(); ?>