Improve mobile integration, add autocorrect etc. flags to login fields
parent
4462925c50
commit
1fb4afc6aa
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../required.php';
|
||||
|
||||
redirectifnotloggedin();
|
||||
|
||||
|
||||
require_once __DIR__ . "/../lib/dates.php";
|
||||
$weekstart = sqldatetime(getstartofweek(WEEK_START));
|
||||
$punches = $database->select('punches', ['in', 'out'], ['AND' => ['uid' => $_SESSION['uid'], 'in[>]' => $weekstart]]);
|
||||
$punchtimes = [];
|
||||
foreach ($punches as $p) {
|
||||
$punchtimes[] = [$p['in'], $p['out']];
|
||||
}
|
||||
$totalseconds = sumelapsedtimearray($punchtimes);
|
||||
$totalpunches = count($punches);
|
||||
?>
|
||||
<p class="page-header h5"><i class="fa fa-calendar fa-fw"></i> <?php lang("this week") ?></p>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-md-offset-2">
|
||||
<div class="panel panel-blue">
|
||||
<div class="panel-body">
|
||||
<h4>
|
||||
<?php
|
||||
lang2("x on the clock", ["time" => seconds2string($totalseconds, false)]);
|
||||
?>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-6 col-md-4">
|
||||
<div class="panel panel-blue">
|
||||
<div class="panel-body">
|
||||
<h4>
|
||||
<?php
|
||||
lang2("x punches", ["count" => $totalpunches]);
|
||||
?>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a id="punches" style="height: 0px; width: 0px;"> </a>
|
||||
|
||||
<p class="page-header h5"><i class="fa fa-clock-o fa-fw"></i> <?php lang("punch card") ?></p>
|
||||
<table id="punchtable" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-priority="0"></th>
|
||||
<th data-priority="1"><i class="fa fa-fw fa-play"></i> <?php lang('in'); ?></th>
|
||||
<th data-priority="1"><i class="fa fa-fw fa-stop"></i> <?php lang('out'); ?></th>
|
||||
<th data-priority="2"><i class="fa fa-fw fa-sticky-note-o"></i> <?php lang('notes'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th data-priority="0"></th>
|
||||
<th data-priority="1"><i class="fa fa-fw fa-play"></i> <?php lang('in'); ?></th>
|
||||
<th data-priority="1"><i class="fa fa-fw fa-stop"></i> <?php lang('out'); ?></th>
|
||||
<th data-priority="2"><i class="fa fa-fw fa-sticky-note-o"></i> <?php lang('notes'); ?></th>
|
||||
</tfoot>
|
||||
</table>
|
Loading…
Reference in New Issue