94 lines
3.7 KiB
PHP
94 lines
3.7 KiB
PHP
|
|
<!-- Dashboard content -->
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<!-- Support tickets -->
|
|
<form class="search-block" action="/Bkoreport/loginreport/" method="GET" autocomplete="off">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="search" class="form-control" id="username" name="username" value='<?= isset($username) ? $username : '' ?>'>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="member_id">Member ID</label>
|
|
<input type="search" class="form-control" id="member_id" name="member_id" value='<?= isset($member_id) ? $member_id : '' ?>'>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="from_created">Created</label>
|
|
<div class="search-by-date">
|
|
<input type="search" class="form-control" id="from_created" name="from_created" value='<?= isset($from_created) ? $from_created : '' ?>'>
|
|
|
|
<input type="search" class="form-control" id="to_created" name="to_created" value='<?= isset($to_created) ? $to_created : '' ?>'>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="from_updated">Updated</label>
|
|
<div class="search-by-date">
|
|
<input type="search" class="form-control" id="from_updated" name="from_updated" value='<?= isset($from_updated) ? $from_updated : '' ?>'>
|
|
|
|
<input type="search" class="form-control" id="to_updated" name="to_updated" value='<?= isset($to_updated) ? $to_updated : '' ?>'>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="loc">Loc</label>
|
|
<input type="search" class="form-control" id="loc" name="loc" value='<?= isset($loc) ? $loc : '' ?>'>
|
|
</div>
|
|
|
|
<div class="form-group" style="display: flex; align-self: center; margin-bottom: unset;">
|
|
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
|
</div>
|
|
</form>
|
|
<div class="panel panel-flat">
|
|
<div class="table-responsive">
|
|
<?= $login_table ?>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-flat">
|
|
<div class="table-responsive"> <?= $link ?> </div>
|
|
</div>
|
|
<!-- /support tickets -->
|
|
</div>
|
|
</div>
|
|
<!-- /dashboard content -->
|
|
|
|
<script src="/assets/js/plugins/pickers/datepicker.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
// Datepicker
|
|
$("#from_created, #from_updated").datepicker({
|
|
defaultDate: "+1w",
|
|
changeMonth: true,
|
|
numberOfMonths: 3,
|
|
format: 'yyyy-mm-dd',
|
|
onClose: function(selectedDate) {
|
|
$("#from_created, #from_updated")
|
|
.datepicker("option", "minDate", selectedDate);
|
|
}
|
|
})
|
|
|
|
$("#to_created, #to_updated").datepicker({
|
|
defaultDate: "+1w",
|
|
changeMonth: true,
|
|
numberOfMonths: 3,
|
|
format: 'yyyy-mm-dd',
|
|
onClose: function(selectedDate) {
|
|
$("#to_created, #to_updated")
|
|
.datepicker("option", "maxDate", selectedDate);
|
|
}
|
|
})
|
|
|
|
$('#btn-search').on('click', function() {
|
|
$(this).parent('form').attr('action', '/Bkoreport/loginreport/');
|
|
})
|
|
})
|
|
</script>
|
|
<style>
|
|
.search-block {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
background: #ccffff;
|
|
}
|
|
|
|
.search-by-date {
|
|
display: flex;
|
|
}
|
|
</style>
|