     <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">Routes</li>
          </ol>
        </section>
        
        <section class="content">
        	<div class="col-lg-12">
            <?php echo validation_errors('<div class="error">', '</div>'); ?>
            <?php echo form_open_multipart('admin/routes/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">
					   <label for="name">Route Code</label>
					   <input id="routecode" name="routecode" class="form-control" type="text" placeholder="Enter Route Code">
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="from">Service For</label>
                       <select class="form-control" id="service" name="service" >
                        <?php 
			  			$sql = $this->db->query('SELECT `id`, `typename`, `status` 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="from">Location From</label>
                       <select class="form-control" id="from" name="from" >
                        <?php 
			  			$sql = $this->db->query('SELECT `id`,`locationcode`, `locationname`, `status` FROM `tbllocation` WHERE `status`= 1');
			  			foreach ($sql->result() as $from)
			  			{  
			  			?>
             			 <option value="<?php echo $from->id ?>"><?php echo $from->locationname ?></option> 
              			<?php }?>
						</select>
					</div>
                    
                    <div class="form-group col-lg-8" id="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');
			  			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-5">
                    	<label for="time">Time</label>
                        <select id="time" name="time" class="form-control">
                        	<option value="00:30">00:30</option>
                            <option value="01:00">01:00</option>
                            <option value="01:30">01:30</option>
                            <option value="02:00">02:00</option>
                            <option value="02:30">02:30</option>
                            <option value="03:00">03:00</option>
                            <option value="03:30">03:30</option>
                            <option value="04:00">04:00</option>
                            <option value="04:30">04:30</option>
                            <option value="05:00">05:00</option>
                            <option value="05:30">05:30</option>
                            <option value="06:00">06:00</option>
                            <option value="06:30">06:30</option>
                            <option value="07:00">07:00</option>
                            <option value="07:30">07:30</option>
                            <option value="08:00">08:00</option>
                            <option value="08:30">08:30</option>
                            <option value="09:00">09:00</option>
                            <option value="09:30">09:30</option>
                            <option value="10:00">10:00</option>
                            <option value="10:30">10:30</option>
                            <option value="11:00">11:00</option>
                            <option value="11:30">11:30</option>
                            <option value="12:00">12:00</option>
                            <option value="12:30">12:30</option>
                            <option value="13:00">01:00</option>
                            <option value="13:30">01:30</option>
                            <option value="14:00">14:00</option>
                            <option value="14:30">14:30</option>
                            <option value="15:00">15:00</option>
                            <option value="15:30">15:30</option>
                            <option value="16:00">16:00</option>
                            <option value="16:30">16:30</option>
                            <option value="17:00">17:00</option>
                            <option value="17:30">17:30</option>
                            <option value="18:00">18:00</option>
                            <option value="18:30">18:30</option>
                            <option value="19:00">19:00</option>
                            <option value="19:30">19:30</option>
                            <option value="20:00">20:00</option>
                            <option value="20:30">20:30</option>
                            <option value="21:00">21:00</option>
                            <option value="21:30">21:30</option>
                            <option value="22:00">22:00</option>
                            <option value="22:30">22:30</option>
                            <option value="23:00">23:00</option>
                            <option value="23:30">23:30</option>
                            <option value="24:00">24:00</option>
                       </select>
                    </div>
                    
                    <div class="form-group col-lg-8">
                    	<label for="status">Status</label>
						<div class="col-lg-12">
                        <input type="radio" name="status" class="flat-red" value="1" checked>
                         Active 
                        <input type="radio" name="status" class="flat-red" value="0">
                        DisActive
                        </div> 
                    </div>
                    
                    <div class="form-group col-lg-8">
                     <input type="submit" value="Submit" class="btn btn-primary">
                   
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div>
                    
                    
                </div>
             </form>
            </div>
        </section>
     </div>
  	    
       <?php if($msg = $this->session->flashdata("message")): ?>
        <script>
     		alert("<?php echo $msg?>");
     	</script>
      <?php endif; ?>
	  
