echo '<div class="checkbox"><input type="checkbox" id="' . $id . '" value="' . $row[0] . '" name="' . $value['name'] . '" checked="checked" onClick="javascript:applySearchFilters();"><label for="' . $id . '"></label></div>';
             echo '<div class="name">' . htmlentities($row[1]) . '</div>';
             echo '<div class="number"><span class="active">' . number_format($row[2]) . '</span></div>';
             echo '</div>';
         }
         $checked_index++;
     }
 }
 echo '</div>';
 echo '<div class="options">';
 echo '<div class="rows">';
 if ($value['unchecked']) {
     $unchecked_index = 0;
     foreach ($value['unchecked'] as $row) {
         $id = $id_title . $unchecked_index . '_unchecked';
         $yearID = _getYearIDFromValue($row[0]);
         if ($title == 'Fiscal Year') {
             if ($yearID <= _getFiscalYearID()) {
                 echo '<div class="row">';
                 echo '<div class="checkbox"><input type="checkbox" id="' . $id . '" value="' . $row[0] . '" ' . $disabled . ' name="' . $value['name'] . '" onClick="javascript:applySearchFilters();"><label for="' . $id . '"></label></div>';
                 echo '<div class="name">' . htmlentities($row[1]) . '</div>';
                 echo '<div class="number"><span>' . htmlentities(number_format($row[2])) . '</span></div>';
                 echo '</div>';
             }
         } else {
             echo '<div class="row">';
             echo '<div class="checkbox"><input type="checkbox" id="' . $id . '" value="' . $row[0] . '" ' . $disabled . ' name="' . $value['name'] . '" onClick="javascript:applySearchFilters();"><label for="' . $id . '"></label></div>';
             echo '<div class="name">' . htmlentities($row[1]) . '</div>';
             echo '<div class="number"><span>' . htmlentities(number_format($row[2])) . '</span></div>';
             echo '</div>';
         }
Example #2
0
foreach ($years as $year) {
    echo "<th>Revenue Collected <div align='center'> FY " . $year . "</div></th>";
}
?>
    <th>Total Revenue Collected <div align='center'> To Date</div></th>
    </tr>
    </thead>

    <tbody>

    <?php 
$i = 0;
foreach ($table_rows as $row) {
    echo "<tr>\n                    <td class='" . $cat_class . "' ><a href='/revenue/year/" . $req_year_id . "/fndsrc/" . $row['id'] . "'>" . $row['name'] . "</a></td>\n                    <td class='" . $cat_class . "' >" . custom_number_formatter_format($row['adopted_budget'], 2, '$') . "</td>\n                    <td class='" . $cat_class . "' >" . custom_number_formatter_format($row['current_modified_budget'], 2, '$') . "</td>";
    foreach ($years as $year) {
        $amount_link = "<a href='/revenue/transactions/fundsrc/" . $row['id'] . "/year/" . _getYearIDFromValue($year) . "'>" . custom_number_formatter_format($row['revenue_collected'][$year], 2, '$') . "</a>";
        echo "<td class='" . $amount_class . "' >" . $amount_link . "</td>";
    }
    //echo "<td class='" . $amount_class . "' >" . custom_number_formatter_format(array_sum($row['revenue_collected']),2,'$') ."</td>";
    $widgetNode = node_load(285);
    widget_set_uid($widgetNode, $i);
    $additionalParams = array();
    $additionalParams["funding.funding"] = $row['id'];
    widget_add_additional_parameters($widgetNode, $additionalParams);
    $widgetChart = node_build_content($widgetNode);
    $widgetChart = drupal_render($widgetNode->content);
    echo "<td class='" . $amount_class . "' ><table><tr><td><a href='/revenue/transactions/fundsrc/" . $row['id'] . "'>" . custom_number_formatter_format(array_sum($row['revenue_collected']), 2, '$') . "</a></td><td>" . $widgetChart . "</td></tr></table></td>";
    echo "</tr>";
    $i++;
}
?>