<?php  

  session_start();
   error_reporting(0);
		include("../db.php");
		include("../all_query.php");
		

 if(isset($_SESSION['loan_crm_username']) && isset($_SESSION['loan_crm_password']))
{
	
	
		$disposition = $_REQUEST['disposition'];
		
		$dispositionQ = mysqli_query($conn,"select *from `disposition` where name='$disposition' ");
		$dispositionData  = mysqli_fetch_assoc($dispositionQ);
		
		
	
	?>
	
	
	
			<?php if($dispositionData['is_showdate'] == 'on') {  ?>
			
			<div class="col-md-4"  id="update_date_section" ><input class="form-control" min="<?php echo date('Y-m-d'); ?>" type="date" name="next_update_date" id="next_update_date" required > </div>
			
			<div class="col-md-4"  id="update_time_section" ><input class="form-control" type="time" name="next_update_time" id="next_update_time" required > </div>
			
			
			<?php } ?>
		
		    <?php if($dispositionData['is_amount'] == 'on') {  ?>

			<div class="col-md-4"   id="amount_section" ><input class="form-control" type="number" name="amount" placeholder="Enter Amount" id="amount" required > </div>
			<?php } ?>
			
			 
			 <?php if($dispositionData['is_mode_of_payment'] == 'on') {  ?>
			<div class="col-md-4" >
		    <select   name="payment_mode" id="payment_mode"    class="select2 form-select" data-allow-clear="true"  required    >
			  <option value="">Select Payment Mode</option>
			 <?php $catQ= mysqli_query($conn,"select *from `payment_modes`   ");
			  while($catData=mysqli_fetch_assoc($catQ))
		       {  ?>
				 <option  value="<?php echo $catData['name']; ?>"><?php echo $catData['name']; ?></option>
				 <?php
			   }
            	 ?>
			  </select>
			</div>	
			 <?php } ?>
			 
			 
			 
			
			 
			 
			 
			 
			 
			 
			 
			 
	 
	
	
	<?php

}


?>