99 lines
5.9 KiB
PHP
99 lines
5.9 KiB
PHP
<body class="hold-transition skin-blue sidebar-mini">
|
|
<section class="content-header">
|
|
<h1>Home Anjungan<small></small></h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
|
<li class="active"><?php echo $title ?></li>
|
|
</ol>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class=" col-xs-12">
|
|
<div class="box">
|
|
<div class="box-body">
|
|
<br />
|
|
<div class="form-group">
|
|
<label for="barcode" class="col-sm-2 control-label">Barcode</label>
|
|
<div class="col-sm-3">
|
|
<input id="barcode" onkeypress="barcode()" class="form-control" name="barcode" type="text" placeholder="Masukan Barcode" autocomplete="off" value="" autofocus="auofocus" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-body">
|
|
<?php if($this->session->flashdata('message')){?>
|
|
<div class="alert alert-success alert-dismissable">
|
|
<button id="alertbutton" name="alertbutton" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<h4> <i class="icon fa fa-check"></i> Alert!</h4>
|
|
<?php echo $this->session->flashdata('message');?>
|
|
</div>
|
|
<?php }?>
|
|
<?php if($this->session->flashdata('messagefail')){?>
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<button id="alertbutton" name="alertbutton" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<h4> <i class="icon fa fa-times"></i> Alert!</h4>
|
|
<?php echo $this->session->flashdata('messagefail');?>
|
|
</div>
|
|
<?php }?>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var url="<?php echo base_url();?>";
|
|
function barcode(){
|
|
var cekbarcode=document.getElementById('barcode').value;
|
|
//alert (cekbarcode.length);
|
|
if(cekbarcode.length==12){
|
|
window.location = url+"index.php/ps_anjungan/barcode/"+cekbarcode;
|
|
}
|
|
}
|
|
|
|
setTimeout(function(){
|
|
$(".alert").fadeTo(500, 0).slideUp(500, function() {
|
|
$(this).remove();
|
|
});
|
|
}, 1000);
|
|
</script>
|
|
<br />
|
|
<div class="panel box box-warning">
|
|
<div class="box-body">
|
|
<br />
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label text-yellow">Data Pengunjung Terlambat</label>
|
|
<div class="col-sm-10">
|
|
<table id="example1" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Tanggal Periksa</th>
|
|
<th>No. Antrian</th>
|
|
<th>Barcode</th>
|
|
<th>Shift</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$noterlambat=0;
|
|
foreach ($tr as $dataterlambat){$noterlambat++;
|
|
?>
|
|
<tr>
|
|
<td><?php echo $noterlambat;?></td>
|
|
<td><?php echo $dataterlambat->pp_tanggal_periksa;?></td>
|
|
<td><?php echo $dataterlambat->pp_nomor_antrian;?></td>
|
|
<td><?php echo $dataterlambat->pp_barcode;?></td>
|
|
<td>Shift <?php echo $dataterlambat->pp_shift;?></td>
|
|
<td><?php echo "<a href='".base_url()."index.php/ps_anjungan/proses_datang/".$dataterlambat->prt_id."' class='btn btn-success btn-xs'>Datang</a>";?></td>
|
|
</tr>
|
|
<?php }?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div class="control-sidebar-bg"></div>
|
|
</body>
|