<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
	$rivermedia->add_shipping_rate();
?>

<form name="form_add_shipping_rate_per_kg" id="form_add_shipping_rate_per_kg" class="col-lg-12 col-md-12 col-sm-12 col-xs-12" action="javascript:void(0);" method="post">
    <div class="form-group">
      <legend>Add new rates</legend>
    	<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
      		<label class="control-label" for="first_kg">First Kg <span class="required">*</span> </label>
      		<input type="text" id="first_kg" name="first_kg" required data-thousands=" " data-decimal="." data-prefix="R " maxlength="10" placeholder="R 0.00" class="form-control price_fields" >
    	</div>
    	<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
      		<label class="control-label" for="per_additional_kg">Per Additional Kg <span class="required">*</span> </label>
      		<input type="text" id="per_additional_kg" name="per_additional_kg" required data-thousands=" " data-decimal="." data-prefix="R " maxlength="10" placeholder="R 0.00" class="form-control price_fields" >
    	</div>
    </div>
</form>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="shipping_price_history_list">
  <h5>Shipping Rate History (DESC)</h5>
<table class="table table-hover">
  <thead>
    <tr>
      <th>Created</th>
      <th><div class="pull-right">First Kg</div></th>
      <th><div class="pull-right">Per Additional Kg</div></th>
    </tr>
  </thead>
  <tbody>
  <?php $rivermedia->shippingrate_history(); ?>
  </tbody>
</table>
</div>
<div class="clearfix"></div>