94 lines
3.0 KiB
PHP
94 lines
3.0 KiB
PHP
<script>
|
|
$(document).ready(function() {
|
|
$('#testing').dataTable();
|
|
$('#testing2').dataTable();
|
|
});
|
|
</script>
|
|
<div class="well-white">
|
|
<div class="navbar">
|
|
<div class="navbar-inner">
|
|
<a class="brand"><i class="icon-list-alt"></i> List Form</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul id="tt" class="nav nav-tabs">
|
|
<li class="active"><a href="#a" data-toggle="tab"><i class="icon-time"></i> Pending</a></li>
|
|
<li><a href="#b" data-toggle="tab"><i class="icon-ok"></i> Saved</a></li>
|
|
</ul>
|
|
<div id="ttContent" class="tab-content well">
|
|
<div class="tab-pane fade in active" id="a">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="table display" id="testing">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="icon-calendar"></i> Date/Time</th>
|
|
<th><i class="icon-envelope"></i> Sender</th>
|
|
<th><i class="icon-map-marker"></i> Area</th>
|
|
<th><i class="icon-briefcase"></i> Customer/Client</th>
|
|
<th><i class="icon-wrench"></i> Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>2013-05-27 16:25:39</td>
|
|
<td>Mark</td>
|
|
<td>Jawa Tengah</td>
|
|
<td>Suprapto</td>
|
|
<td align="center">
|
|
<button class="btn btn-small btn-info disabled">View</button></td>
|
|
</tr>
|
|
<?php
|
|
foreach($form_pending as $pform){
|
|
?>
|
|
<tr>
|
|
<td><?php echo $pform->date_visit; ?></td>
|
|
<td><?php echo $pform->sender; ?></td>
|
|
<td><?php echo $pform->province; ?></td>
|
|
<td><?php echo $pform->customer; ?></td>
|
|
<td align="center">
|
|
<button class="btn btn-small btn-info" onclick="parent.location='<?php echo base_url(); ?>form/view_form/view/<?php echo $pform->id; ?>'">View</button>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="tab-pane fade" id="b">
|
|
<a class="btn pull-right" href="<?php echo base_url(); ?>form"><i class="icon-plus-sign"></i>Tambah</a>
|
|
<br /><br />
|
|
<table cellpadding="0" cellspacing="0" border="0" class="table display" id="testing2">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="icon-calendar"></i> Date/Time</th>
|
|
<th><i class="icon-envelope"></i> Sender</th>
|
|
<th><i class="icon-map-marker"></i> Area</th>
|
|
<th><i class="icon-briefcase"></i> Customer/Client</th>
|
|
<th><i class="icon-wrench"></i> Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>2013-07-25 15:28:56</td>
|
|
<td>Mark</td>
|
|
<td>Jawa Tengah</td>
|
|
<td>Sumartoyo</td>
|
|
<td align="center">
|
|
<button class="btn btn-small btn-info disabled">View</button>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
foreach($form_saved as $pform){
|
|
?>
|
|
<tr>
|
|
<td><?php echo $pform->date_visit; ?></td>
|
|
<td><?php echo $pform->sender; ?></td>
|
|
<td><?php echo $pform->province; ?></td>
|
|
<td><?php echo $pform->customer; ?></td>
|
|
<td align="center">
|
|
<button class="btn btn-small btn-info" onclick="parent.location='<?php echo base_url(); ?>form/view_form/edit/<?php echo $pform->id; ?>'">View</button>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|