예제 #1
0
 /**
  * Re-populates all expenses, deleteing all the old ones
  *
  * @return mixed This is the return value description
  *
  */
 public static function populateAllExpenses()
 {
     $times = StatsData::GetMonthsSinceStart();
     foreach ($times as $timestamp) {
         self::setExpensesforMonth($timestamp);
     }
 }
예제 #2
0
<?php

if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
    die;
}
?>
<br /><div style="float: right;">
<form action="<?php 
echo url('/finances/viewreport');
?>
" method="get">
<strong>Select Report: </strong>
<?php 
$years = StatsData::GetYearsSinceStart();
$months = StatsData::GetMonthsSinceStart();
$months = array_reverse($months, true);
?>
<select name="type">
	<option value="" <?php 
echo $_GET['type'] == '' ? 'selected="selected"' : '';
?>
>View Summary</option>
<?php 
/*
 * Get the years since the VA started
 */
foreach ($years as $yearname => $timestamp) {
    # Get the one that's currently selected
    if ($_GET['type'] == 'y' . $timestamp) {
        $selected = 'selected="selected"';
    } else {