コード例 #1
0
ファイル: expenses.php プロジェクト: jacquesbagui/ofuz
/**
 * View the expenses
 */
include_once "config.php";
include "includes/header.inc.php";
?>
<a href="import_expenses.php">Import expenses</a>
<?php 
if (empty($_SESSION['expense_view_year'])) {
    $_SESSION['expense_view_year'] = date("Y");
}
if (empty($_SESSION['expense_view_month'])) {
    $_SESSION['expense_view_month'] = date("m");
}
$f_expense_filter = new ReportForm($GLOBALS['conx']);
$f_expense_filter->setNoData(true);
// Flag to turn off search for database table data (update or add record)
$reg_filter = new Registry($GLOBALS['conx']);
$field_month = new strFBFieldTypeListBoxSmall("expense_view_month");
$field_month->listvalues = "01:02:03:04:05:06:07:08:09:10:11:12";
$field_month->listlabels = "January:February:March:April:May:June:July:August:September:October:November:December";
$field_month->label = "Month";
$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);