
	 <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 type="text/javascript">
        
        
            $(document).ready(function() { 

                
                $("#plotno").change(function(){
                 	var plotnoid = $("#plotno").val();
                     /*dropdown post *///
                      $.ajax({
			 		url:"<?php echo base_url();?>admin/populatehouseid",
			 		
					 data: {plotno: $(this).val()},

                    type: "POST",
                    success:function(data){
                        
                        $("#houseid").html(data);
                    }
                
                    });

               
                });

            });
               $(function () {
        $("#plotno").change(function () {
            if ($(this).val() == "") {
                $("#house").hide();
            } 
            else {
                $("#house").show();
            }
        });
    });
          
        </script>
	
        <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
        </script>
                  
			 

<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#add" data-toggle="tab"><i class="entypo-menu"></i> 
						View Payemt for Houses
                    	</a></li>
			
		</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
            <div  class="tab-pane box active" id="list">
				
    
		<div class="panel panel-primary" data-collapsed="0">


		

			
		

			
			
			

<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>
			Advance Search for specific plot
            	</div>
            </div>
			<div class="panel-body">





				<?PHP

 $transactionid = 'rand' .rand(100, 9900) . 'trc' . time();
				$date= Date('Y-m-d');
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('admin/searchinvoice' , 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="field-2" class="col-sm-2 control-label">Plot Name</label>
		                    <div class="col-sm-7">
		                        <select name="plotno" class="chzn-select"  width="100%"id="plotno"  required>
		                            <option selected value="">--Select Plot--</option>
				 <option value="all" >--All plots--</option>

									   <?php
									$plot = $this->adminusermodel->populateallplots();


if(is_array($plot)) {

   foreach($plot as $plotrow){

    ?>
	    <option  value="<?php echo set_value('plotno',$plotrow->id); ?> "><?=$plotrow->name;?></option>

   
    <?php

}} else {
    echo 'There is no plot in the system.... Please add plot first.';
}

?>
			                        
			                    </select>
								     <span class="text-danger"><?php echo form_error('plotno'); ?></span>
			                </div>
	</div>
	
<input type="hidden" name="houseno" value="<?php echo set_value('houseno','none'); ?>" id="idno" class="form-control" required placeholder="none">

	 <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">Payament Type</label>
		                    <div class="col-sm-7">
		                        <select name="status"  class="form-control" id="section_selector_holder">
		                            <option value="none" selected>--Both Invoice and Receipt--</option>
			                         <option value="invoice">Invoice</option>
									   <option value="receipt">Receipt</option>
			                    </select>
							 <span class="text-danger"><?php echo form_error('gender'); ?></span>

			                </div>
	</div>

	 <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">From Date</label>
    <div class="col-sm-7">
		<input type="date" name="fromdate" value="<?php echo set_value('fromdate',$date) ;?>" id="fromdate" class="form-control" required placeholder="From which date">
       <span class="text-danger"><?php echo form_error('fromdate'); ?></span>
   </div>
  </div>

    
	 <div class="form-group">
    <label for="inputtodate" class="col-sm-2 control-label">To Date</label>
    <div class="col-sm-7">
		<input type="date" name="todate" value="<?php echo set_value('todate',$date) ;?>" id="todate" class="form-control" required placeholder="Upto date?">
       <span class="text-danger"><?php echo form_error('todate'); ?></span>
   </div>
  </div>

  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_tenant"value="tenant" class="btn btn-primary">Search House</button>

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




			
			
			
			
			</div></div>
			
			
			
			
			
			
			
			





