<div class="content-wrapper"> 
 <!-- Content Header (Page header) -->
 <section class="content-header">
  <h1> Channellimo <small>Preview</small> </h1>
  <ol class="breadcrumb">
   <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
   <li><a href="#">Forms</a></li>
   <li class="active">Promotion</li>
  </ol>
 </section>

 <section class="content">
  <div class="box" style="border-top:none;">
   <!-- /.box-header -->
   <div class="box-body">
    <?php echo form_open('admin/discount/add');?>
   <div class="box box-primary col-lg-8">
    <div class="box-header with-border">
     <h3 class="box-title">FORM ADD</h3>
    </div>
    
    <div class="form-group col-lg-8">
    	<?php echo validation_errors('<div class="error">', '</div>'); ?>
    </div>
    
    <div class="form-group col-lg-8">
     <label for="code">Title</label>
     <input id="title" name="title" class="form-control" type="text" placeholder="Enter Title" autocomplete="off">
    </div>
	
	<div class="form-group col-lg-8">
    	<label for="to">Services For</label>
        <select class="form-control" name="services" id="service">
        <?php 
			$sql = $this->db->query('SELECT `id`, `typename` FROM `tblservices` where `status` =1');
			foreach ($sql->result() as $service)
			{  
		?>
        	<option value="<?php echo $service->id ?>"><?php echo $service->typename; ?></option> 
        <?php }?>
		</select>
   </div>
                    
   <div class="form-group col-lg-8">
   		<label for="to">Car</label>
        <select class="form-control" name="car">
        <?php 
			$sql = $this->db->query('SELECT `id`, `fullname` FROM `tblcar` order by `fullname`');
			foreach ($sql->result() as $car)
			{  
		?>
        <option value="<?php echo $car->id ?>"><?php echo $car->fullname; ?></option> 
        <?php }?>
		</select>
    </div>
    
     <div class="form-group col-lg-8">
     <label for="from">Location From</label>
     <select class="form-control" id="from" name="from" >
     <option value="0">Phnom Penh (KH-12)</option>
	 </select>
    </div>
    
    <div class="form-group col-lg-8" id="hidden" style="visibility: hidden;">
     <label for="to">Location To</label>
	 <select class="form-control" id="to" name="to">
     <?php 
		$sql = $this->db->query('SELECT `id`,`locationcode`, `locationname`, `status` FROM `tbllocation` WHERE `status`= 1 order by `locationname` ASC');
		foreach ($sql->result() as $to)
		{  
	 ?>
        <option value="<?php echo $to->id ?>"><?php echo $to->locationname ?></option> 
     <?php }?>
	 </select>
    </div>

    
    <div class="form-group col-lg-8">
     <label for="code">Price Type</label>
     <select class="form-control" id="pro_type" name="pro_type">
       <option value="numerical">Numerical</option> 
       <option value="ratio">Ratio</option> 
	 </select>
    </div>
    
    <div class="form-group col-lg-8">
     <label for="code">Price</label>
     <input id="price" name="price" class="form-control" type="text" placeholder="Enter Price" autocomplete="off">
    </div>
	
	<div class="form-group col-lg-8" style="display:none;">
      <label><input type="checkbox" id="pricerange" name="pricerange" value="1"> Allow Price Range</label><br>
	  <span style="color:#dd4b39;">($50-$250 Discount $5, $250.01-500 Discount $10, Over $500 Discount $15)</span>
    </div>
	
	<div class="form-group col-lg-8">
     <label>Start Travelling Date</label>
     <input id="st_tra_period" name="st_tra_period" class="form-control date" type="text" placeholder="Enter Start Travelling Date" autocomplete="off">
    </div>
    
    <div class="form-group col-lg-8">
     <label>End Travelling Date</label>
     <input id="en_tra_period" name="en_tra_period" class="form-control date" type="text" placeholder="Enter End Travelling Date" autocomplete="off">
    </div>
    
    <div class="form-group col-lg-8">
     <label for="name">From Date</label>
     <input id="from_date" name="from_date" class="form-control date" type="text" placeholder="Enter From Date" autocomplete="off">
    </div>
    
    <div class="form-group col-lg-8">
     <label for="name">To Date</label>
     <input id="to_date" name="to_date" class="form-control date" type="text" placeholder="Enter To Date" autocomplete="off">
    </div>
    
    <div class="form-group col-lg-8" style="display:none;">
     <label for="name">PaymentMethod</label>
      <select class="form-control" id="payment" name="payment">
       <option value="4">Pi Pay</option> 
	  </select>
    </div>
   
    
    <div class="form-group col-lg-8" style="display:none;">
     <label for="name">Class</label>
     <select id="cabinGrade" name="cabinGrade"  class="form-control">
		 <option value=""> All</option>
     	 <option value="First"> First</option>
         <option value="Business"> Business</option>
         <option value="PremiumEconomy"> PremiumEconomy</option>
         <option value="Economy" selected="selected"> Economy</option>
     </select>
    </div>
 
    
    <div class="form-group col-lg-8" style="display:none;">
     <label for="name">Airline <span style="color:#dd4b39;">(for many airline, please input as this example: LQ|QD|PG)</span></label>
     <input id="airline" name="airline" class="form-control" type="text" placeholder="Enter Promotion by Airline">
    </div>
    
   
		
	<div class="form-group col-lg-8" style="display:none;">
     <label for="name">RDB <span style="color:#dd4b39;">(for many RBD, please input as this example: P|R|T)</span></label>
     <input id="txtmixRBD" name="txtmixRBD" class="form-control" type="text" placeholder="Enter MixRBD">
    </div>
	
	
    <div class="form-group col-lg-8">
     <label for="name">Description</label>
     <textarea id="description" name="description" class="form-control" type="text" placeholder="Enter Description"></textarea>
    </div>
    
    <div class="form-group col-lg-8">
      <label for="status">Status</label>
      <div class="col-lg-12">
          <label><input type="radio" name="status" class="flat-red" value="1" checked> Active</label>&nbsp;&nbsp;
          <label><input type="radio" name="status" class="flat-red" value="0"> Not active</label> 
      </div>
    </div>
	
	<div class="form-group col-lg-8" style="display:none;">
      <label for="status">Priority</label>
		 <select name="priority" id="priority" class="form-control">
          <option value="1">1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
          <option value="5">5</option>
          <option value="6">6</option>
          <option value="7">7</option>
          <option value="8">8</option>
          <option value="9">9</option>
          <option value="10">10</option>
        </select> 
     </div>
	
	<div class="form-group col-lg-8" style="display:none;">
      <label for="status">MixRBD</label>
      <div class="col-lg-12">
          <label><input type="radio" name="mixRBD" class="flat-red" value="1" checked> Allow MixRBD</label>&nbsp;&nbsp;
          <label><input type="radio" name="mixRBD" class="flat-red" value="0"> Not Allow MixRBD</label> 
      </div>
    </div>
	
    
    <div class="form-group col-lg-8" style="margin-bottom:15px;margin-top:15px;">
     <input type="submit" value="Submit" class="btn btn-primary">
     <button type="reset" class="btn btn-danger">Reset</button>
    </div>
   </div>
   </form>
   </div>
   <!-- /.box-body --> 
  </div>
  <!-- /.box --> 
 </section>
</div>





