Updated Pure to 0.6, added pagination, don't think I broke anything...
This commit is contained in:
@@ -37,21 +37,21 @@ else: ?>
|
||||
|
||||
|
||||
<?php if (isset($_POST['reporttype'])): ?>
|
||||
<?php if ($_POST['reporttype'] == "Hours per week per user"): ?><table class="pure-table">
|
||||
<?php if ($_POST['reporttype'] == "Hours per week per user"): ?><table class="pure-table pure-table-striped">
|
||||
<thead><tr><th>Year</th><th>Week#</th><th>Name</th><th>Hours</th></tr></thead>
|
||||
<tbody><?php foreach (reportWeeklyByUser($yaptc_db) as $row): ?>
|
||||
<tr><td><?php echo $row['g_year']; ?></td><td><?php echo $row['g_week']; ?></td><td><?php echo $row['lastname'] . ", " . $row['firstname']; ?></td><td><?php echo $row['punchhours']; ?></td></tr><?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if ($_POST['reporttype'] == "Hours per month per user"): ?><table class="pure-table">
|
||||
<?php if ($_POST['reporttype'] == "Hours per month per user"): ?><table class="pure-table pure-table-striped">
|
||||
<thead><tr><th>Year</th><th>Month</th><th>Name</th><th>Hours</th></tr></thead>
|
||||
<tbody><?php foreach (reportMonthlyByUser($yaptc_db) as $row): ?>
|
||||
<tr><td><?php echo $row['g_year']; ?></td><td><?php echo $row['g_month']; ?></td><td><?php echo $row['lastname'] . ", " . $row['firstname']; ?></td><td><?php echo $row['punchhours']; ?></td></tr><?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if ($_POST['reporttype'] == "All Punches"): ?><table class="pure-table">
|
||||
<?php if ($_POST['reporttype'] == "All Punches"): ?><table class="pure-table pure-table-striped">
|
||||
<thead><tr><th>In</th><th>Out</th><th>Name</th><th>Hours</th><th>Flagged</th><th>Notes</th></tr></thead>
|
||||
<tbody><?php foreach (listPunches($db, "%") as $row): ?>
|
||||
<tr><td><?php echo $row['intime']; ?></td><td><?php echo $row['outtime']; ?></td><td><?php echo $row['lastname'] . ", " . $row['firstname']; ?></td><td><?php echo $row['punchhours']; ?></td><td><?php echo $row['modified']; ?></td><td><?php echo $row['notes']; ?></td></tr><?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user