<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-midnightblue">
<div class="panel-heading">
<h4>Add Customer Order</h4>
</div>
<div class="panel-body">
<?php
$this->load->view("admin/messages");
?>
<div class="row">
<div class="col-md-12">
<?php
$this->common_lib->render_modal_window("Add Item","add_order_item_form");
?>
<script type="text/javascript">
$(function(){
$(document).on("click","#add_new_order_item",function(e){
e.preventDefault();
var uid = $(this).data('id');
$.getJSON('<?php echo site_url("admin/ajax/add_order_item_form") ?>',{token:uid}, function(response){
$('#add_order_item_form').modal('show', {backdrop: 'static'});
$('#add_order_item_form .modal-body').html(response.html);
});
});
});
</script>
<div class="col-md-3">
<?php echo $this->common_lib->render_dropdown($customer_list,"user_id","username","user_id"); ?>
</div>
<div class="clearfix"></div>
<br />
<div class="table-wrapper-responsive">
<table summary="Order Detail" class="table table-condensed">
<tr>
<th colspan="2" class="goods-page-description goods-page-image">Item Detail</th>
<th class="goods-page-quantity text-right">Quantity</th>
<th class="goods-page-price text-right">Unit price</th>
<th class="goods-page-total text-right">Total</th>
</tr>
<tr>
<td colspan="9">
<button class="btn btn-success" type="button" id="add_new_order_item">Add New Item</button>
</td>
</tr>
</table>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@KyuuKazami