<script type="text/javascript" src="<?php echo base_url();?>assets/js/inventory_purchase_receive.js"></script>
<style>
.form-horizontal .nopadding {
	padding: 0px;
}
.form-horizontal .form-control {
	width: 100%;
	min-width: 100%;
	max-width: 100%;
}
.form-horizontal .input-group {
	max-width: 100%;
	min-width: 100%;
}
</style>
<aside class="right-side">
  <section class="content-header">
    <div class="title_bar">
      <h1 class="major_txt_color">Inventory – Purchase Receive</h1>
      <!-- <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div> -->
    </div>
  </section>
  <section class="content">
    <div class="row">
      <div class="col-xs-12">
        <div class="box box-danger">
          <div class="box-body">
            <div class="box-body table-responsive" style="display: none;">
              <div class="alert alert-danger alert-dismissable"> <i class="fa fa-thumbs-o-down"></i>
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <h4></h4>
              </div>
            </div>
            <ul class="error_container">
            </ul>
            <div class="col-md-12" style="margin-bottom: 15px;">
               <?php if(!empty($success)) {?>
                    <div class="alert alert-success alert-dismissable">
                        <i class="fa fa-thumbs-o-up"></i>
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                        <h4><?php echo $success;?></h4>
                    </div>
                <?php }
                else if(!empty($error)) {?>
                    <div class="alert alert-danger alert-dismissable">
                        <i class="fa fa-thumbs-o-down"></i>
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                        <h4><?php echo $error;?></h4>
                    </div>
                <?php }?>
              <div class="form-group">
                <div class="col-md-4" style="margin-left: -15px;">
                  <!--<input type="text" class="form-control" name="purchase_ref_no" id="purchase_ref_no" placeholder="Purchase Ref No" style="min-width: 320px;"/>-->
                  <select class="form-control" name="purchase_ref_no" id="purchase_ref_no" style="min-width: 320px;">
                  	<option value=""> - Select Purchase Ref No - </option>
                    <?php if($results){ ?>
                    	<?php foreach($results as $purchase_order){ ?>
                        	<option value="<?php echo $purchase_order->purchase_ref; ?>"><?php echo "PO / ".$purchase_order->purchase_ref .' / '. $purchase_order->supplier_name; ?></option>
                        <?php } ?>
                    <?php } ?>
                  </select>
                </div>
				<div class="col-md-4">
                  <button class="btn btn-primary" id="purchase_details">Get</button>
                </div>
              </div>              
            </div>            
            <div class="purchase_ref_div"> </div>           
          </div>
          <div class="box-footer">&nbsp;</div>
        </div>
        <!-- /.box -->
      </div>
      <!-- /.col-xs-12 --> 
    </div>
    <!-- /.row --> 
    
  </section>
  <!-- /.content --> 
</aside>