123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <div class="section">
- <div class="row">
- <div class="small-6 columns">
- <h2><i class="fa fa-file"></i> Month Totals <small><?php echo $this->date ?></small></h2>
- </div>
- <div class="small-6 columns text-right">
- <ul class="button-group round">
- <li><a class="button small secondary" href="
- <?php
- switch ($this->month)
- {
- case 01:
- echo $this->link(array('reports','payroll',$this->previousYear, $this->previousMonth));
- break;
- default:
- echo $this->link(array('reports','payroll',$this->year, $this->previousMonth));
- }
- ?>
- "><i class="fa fa-caret-left"></i> Previous</a></li>
- <li><a class="button small secondary" href="
- <?php
- switch ($this->month)
- {
- case 12:
- echo $this->link(array('reports','payroll',$this->nextYear, $this->nextMonth));
- break;
- default:
- echo $this->link(array('reports','payroll',$this->year, $this->nextMonth));
- }
- ?>
- ">Next <i class="fa fa-caret-right"></i></a></li>
- <li><a class="button small" target="_blank" href="<?php echo $this->link(array('reports','payrollprint',$this->year,$this->month)) ?>"><i class='fa fa-print'></i> Print</a></li>
- </ul>
- </div>
- </div>
- <div class="row">
- <div class="small-12 columns">
- <style>
- table {
- border:1px solid #ccc;
- }
- th {
- border:1px solid #ccc;
- padding:0px;
- margin:0px;
- background-color: #eaeaea;
- }
- td {
- border:1px solid #ccc;
- padding:0px;
- margin:0px;
- }
- .scroll {
- overflow-x:scroll;
- overflow-y:visible;
- }
- </style>
- <div class="">
- <table>
- <thead>
- <tr>
- <th style="width:150px;"></th>
- <?php
- foreach($this->codes as $codeKey=>$codeName)
- {
- echo "<th>$codeName</th>";
- }
- ?>
- <th>Total</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach($this->report as $account)
- {
- echo "<tr>";
- echo "<td style='border-bottom:1px solid #ccc;'><b>".$account['userInfo']['lastName'].", ".$account['userInfo']['firstName']."</b></td>";
- foreach($account['totals'] as $totals)
- {
- echo "<td class='text-center' style='border-bottom:1px solid #ccc;'>";
- if($totals == 0)
- {
- echo " - ";
- }
- else
- {
- echo $totals;
- }
- echo "</td>";
- }
- $grandTotal = 0;
- foreach($account['totals'] as $total)
- {
- $grandTotal = $grandTotal + $total;
- }
- echo "<td class='text-center'><b>$grandTotal</b></td>";
- echo "</tr>";
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div id="yearForm" class="reveal-modal small" data-reveal aria-labelledby="Change Year" aria-hidden="true" role="dialog">
- <h2 id="modalTitle">Select a Year</h2>
- <?php echo $this->yearForm ?>
- <a class="close-reveal-modal" aria-label="Close">×</a>
- </div>
|