forked from CiviWare/org.agbu.annualgrantbudgets
added fiscal year select box
This commit is contained in:
@ -39,6 +39,15 @@ class CRM_Grant_Page_AnnualBudgets extends CRM_Core_Page_Basic {
|
||||
if (empty($fiscalYear)) {
|
||||
$fiscalYear = date('Y');
|
||||
}
|
||||
$fiscalYearOptions = '';
|
||||
foreach (CRM_Grant_BAO_GrantBudget::getFiscalyear() as $key => $value) {
|
||||
$extra = '';
|
||||
if ($key == $fiscalYear) {
|
||||
$extra = 'selected="selected"';
|
||||
}
|
||||
$fiscalYearOptions .= "<option value='{$key}' {$extra}>{$value}</option>";
|
||||
}
|
||||
$this->assign('fiscal_year_options', $fiscalYearOptions);
|
||||
$this->assign('fiscalYear', $fiscalYear);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user