first commit
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<div class="panel panel-flat">
|
||||
<div class="jumbotron" style="background-color:#F3DFE5; padding:10px;">
|
||||
<h3>Points Settings</h3>
|
||||
<p>These are system level set up</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="panel panel-white">
|
||||
<form class="search-block" action="/bkoadmin/points" method="GET" autocomplete="off">
|
||||
<div class="search-block-item">
|
||||
<div class="form-group">
|
||||
<label for="key">Key</label>
|
||||
<input type="search" class="form-control" id="key" name="key" value='<?= isset($key) ? $key : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
<input type="search" class="form-control" id="name" name="name" value='<?= isset($name) ? $name : '' ?>'>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="from_value">Value</label>
|
||||
<div class="search-by-date">
|
||||
<input type="search" class="form-control" id="from_value" name="from_value" value='<?= isset($from_value) ? $from_value : '' ?>'>
|
||||
|
||||
<input type="search" class="form-control" id="to_value" name="to_value" value='<?= isset($to_value) ? $to_value : '' ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="from_date">Added</label>
|
||||
<div class="search-by-date">
|
||||
<input type="search" class="form-control" id="from_date" name="from_date" value='<?= isset($from_date) ? $from_date : '' ?>'>
|
||||
|
||||
<input type="search" class="form-control" id="to_date" name="to_date" value='<?= isset($to_date) ? $to_date : '' ?>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="search_text">Activated</label>
|
||||
<?= $card_activated ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary btn-search" type="submit">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?= $link ?>
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white" id="points-table">
|
||||
<?= $points_table ?>
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/js/plugins/pickers/datepicker.js"></script>
|
||||
<script src="/assets/js/app.js"></script>
|
||||
<script type="text/javascript">
|
||||
function UpdatePoints(button, id) {
|
||||
let points = document.getElementById('points' + id);
|
||||
if (points.value >= 0) {
|
||||
button.innerHTML = 'Processing...';
|
||||
button.disabled = true;
|
||||
//$('#transp_detail').html('Processing...');
|
||||
//$('#acc' + member_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/bkoadmin/pointsupdate?id=" + id + "&value=" + points.value
|
||||
}).done(function(data) {
|
||||
//$('#transp_detail').html(data);
|
||||
//$('#acc' + member_id).prop('disabled', false);
|
||||
button.innerHTML = 'Update';
|
||||
button.disabled = false;
|
||||
alert(data);
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
$('document').ready(function() {
|
||||
// add library datepicker
|
||||
addDatePicker('#from_date, #to_date');
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.search-block-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.search-by-date {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.search-by-date input {
|
||||
width: 95px;
|
||||
}
|
||||
|
||||
.default_date {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.btn-search {
|
||||
top: 27px;
|
||||
}
|
||||
|
||||
#points-table table tr td:last-child {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user