


	 <link href="<?php echo base_url(); ?>assets/select/chosen.min.css" rel="stylesheet" media="screen">
	
		   
		   		   <script src="<?php echo base_url(); ?>assets/select/chosen.jquery.min.js"></script>

				   
	
        <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
        </script>
                  





		
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" >
            		<i class="entypo-plus-circled"></i>
				Add new House
            	</div>
            </div>
			<div class="panel-body">





				<?PHP
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('addhouse' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
		
  <div class="form-group">

    <label for="inputhouseno" class="col-sm-2 control-label">House Number</label>
    <div class="col-sm-7">
     <span class="text-danger"><?php echo form_error('houseno'); ?></span>
   </div>
  </div>
  
  <div class="form-group">
    <label for="inputcost" class="col-sm-2 control-label">Rent cost</label>
    <div class="col-sm-7">
				<input type="text" name="cost" value="<?php echo set_value('cost'); ?>" id="cost" class="form-control" required placeholder="Enter Rent">
        <span class="text-danger"><?php echo form_error('cost'); ?></span>
	</div>
  </div>

 <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">House Type</label>
		                    <div class="col-sm-7">
		                        <select name="type" class="chzn-select" id="section_selector_holder">
		                            <option value="">--Select type--</option>
			                         <option value="Double">Double</option>
									   <option value="Single">Single</option>
									   <option value="One bedroom">One bedroom</option>
									    <option value="Two bedroom">Two bedroom</option>
			                    </select>
								     <span class="text-danger"><?php echo form_error('status'); ?></span>
			                </div>
	</div>
  <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">status</label>
		                    <div class="col-sm-7">
		                        <select name="status" class="form-control" id="section_selector_holder">
		                            <option value="">--Select status--</option>
			                         <option value="vacunt">vacunt</option>
									   <option value="occupied">occupied</option>
			                    </select>
								     <span class="text-danger"><?php echo form_error('status'); ?></span>
			                </div>
	</div>
					
  
  
   <div class="form-group">
    <label for="inputphone3" class="col-sm-2 control-label">Description </label>
    <div class="col-sm-7">
	<textarea name="description" id="ttt" rows="5" placeholder="add Description" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('description'); ?></span>
   </div>
  </div>
    
  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_house"value="house" class="btn btn-primary">Add House</button>

    </div>
  </div>
                    
                <?php echo form_close();?>
            </div>
        </div>
    </div>
</div>





