<?php
// ****************************** Transport payment modal *********************************
		echo"$line";

	  if($bal>0)
		$pa=$balo;
	else
		$pa="0.00";
	 
	?>

 <div class="col-lg-3" align="right">
			 <label class="control-label">Done&nbsp;By</label></div> 
			 
	<div class="col-lg-4">
			 <input name="usa" class="form-control" type="text" value="<?php echo $loge ?>" style='height:30px;' readonly></div>

		<div class="col-lg-1 text-right"> &nbsp;Date </div> 
			
	<div class="col-lg-4"><div class="input-group date" data-provide="datepicker" style="width:90%;"><input class="form-control form-center" name="datis" type="text" value="<?php echo $Date ?>" onkeypress='return isNumberKey(event)' style="height:30px;" required><div class="input-group-addon"><span class="lnr lnr-calendar-full"></span></div>
	</div></div><div class="row"> </div>

<div class="col-lg-3 text-right" style="margin-top:30px;"> Paid&nbsp;Amount </div> 

 <div class="col-lg-3" align="right" style="margin-top:30px;">
 <input name="amo" class="form-control text-center" type="text" onkeyup='format(this);' onkeypress='return isNumberKey(event)' style='height:28px;' placeholder="Paid Amount"></div><div class='col-lg-3' style='padding-left:0px;margin-top:30px;'>
		   <?php
		   echo"<select class='form-control' name='currency' style='padding-left:1px; padding-right:0px; font-size:14px; height:28px; padding-top:4px;' required>
		   <option value='' selected='selected'>Currency</option>";
			 
			$doi=mysqli_query($conn, "SELECT `Code`, `Rate` FROM `currency` WHERE `Code`!='' ORDER BY `Code` ASC");
			while($roi=mysqli_fetch_assoc($doi)){
				$fna=$roi['Code'];
				$rate=$roi['Rate'];
				$rte=number_format($rate, 2);
				if($curr==$fna)
					$sc="selected";
				else
					$sc="";
			echo"<option value='$fna' $sc> $fna @ $rte </option>";
			}
		
		   echo"</select>";
		   ?>
            </div>	   
		   
		   
		   
		   <div class="col-lg-2" align="right" style="margin-top:30px;">
<SELECT name='pline' class='form-control' style='width:140%; font-size:14px; height:28px; padding-top:4px;' onchange='showDiv(this.value);'>
		<?php
		echo"<OPTION VALUE='CASH-$i' SELECTED>CASH</OPTION>
				<OPTION VALUE='CHEQUE-$i'>CHEQUE</OPTION>
				<OPTION VALUE='DEPOSIT-$i'>DEPOSIT</OPTION>
				<OPTION VALUE='TRANSFER-$i'>TRANSFER</OPTION>
					</SELECT></div></div><div class='row'> </div>
		
		<div class='col-lg-12'><div align='center'>
 <div id='DEPOSIT-$i' class='hiddenDiv' style='border:1px solid powderblue; border-radius:5px; padding:20px; color:#000099; font-weight:normal; height:120px; float:center; margin-top:30px; width:80%'>

<div class='col-lg-6'> <input class='form-control form-center' name='slino' type='text' placeholder='TRANSACTION No' style='height:30px;'></div>
		<div class='col-lg-6'><div align='right'><select class='form-control' name='acco' style='height:30px; padding:0px;'>
		<option value='' selected='selected'>SELECT ACCOUNT</option>";
			
	$doi=mysqli_query($conn, "SELECT `Account` FROM `baccount` ORDER BY `Account` ASC");
			while($roi=mysqli_fetch_assoc($doi)){
				$fna=$roi['Account'];
			echo"<option value='$fna'> $fna </option>";
			}
			?>   
                            </select></div></div>

	<div class="col-lg-6"><div align='right'><br> Date of Deposit
			&nbsp;:&nbsp; </div></div><div class="col-lg-6"><br><div class="input-group date" data-provide="datepicker">
	<input class="form-control form-center" name="deda" type="text" value="<?php echo $Date ?>" onkeypress='return isNumberKey(event)' style="height:30px;" required> <div class="input-group-addon"><span class="lnr lnr-calendar-full"></span>
				</div></div></div>
			</div></div></div>
			
			    
							
							
		<?php
		echo"<div class='col-lg-12'><div align='center'>
 <div id='CHEQUE-$i' class='hiddenDiv' style='border:1px solid powderblue; border-radius:5px; padding:20px; color:#000099; font-weight:normal; height:120px; float:center; margin-top:30px; width:80%'>

<div class='col-lg-6'> <input class='form-control form-center' name='cheno' type='text' placeholder='CHEQUE No' style='height:30px;'></div>
		<div class='col-lg-6'><div align='right'><select class='form-control' name='bank' style='height:30px; padding:0px;'>
	<option value='' selected='selected'>SELECT ACCOUNT</option>";
			
	$doi=mysqli_query($conn, "SELECT `Account` FROM `baccount` ORDER BY `Account` ASC");
			while($roi=mysqli_fetch_assoc($doi)){
				$fna=$roi['Account'];
			echo"<option value='$fna'> $fna </option>";
			}
			?>   
                            </select></div></div>

	<div class="col-lg-6"><div align='right'><br> Date of Payment
			&nbsp;:&nbsp; </div></div><div class="col-lg-6"><br>
			    <div class="input-group date" data-provide="datepicker">
	<input class="form-control form-center" name="cheda" type="text" value="<?php echo $Date ?>" onkeypress='return isNumberKey(event)' style="height:30px;" required> <div class="input-group-addon"><span class="lnr lnr-calendar-full"></span>
				</div></div></div>
			</div></div></div>
		
			    
					
		<?php					
			echo"<div class='col-lg-12'><div align='center'>
 <div id='TRANSFER-$i' class='hiddenDiv' style='border:1px solid powderblue; border-radius:5px; padding:20px; color:#000099; font-weight:normal; height:120px; float:center; margin-top:30px; width:80%'>

<div class='col-lg-6'> <input class='form-control form-center' name='tno' type='text' placeholder='TRANSACTION No' style='height:30px;'></div>
		<div class='col-lg-6'><div align='right'><select class='form-control' name='tacco' style='height:30px; padding:0px;'>
		<option value='' selected='selected'>SELECT ACCOUNT</option>";
			
	$doi=mysqli_query($conn, "SELECT `Account` FROM `baccount` ORDER BY `Account` ASC");
			while($roi=mysqli_fetch_assoc($doi)){
				$fna=$roi['Account'];
			echo"<option value='$fna'> $fna </option>";
			}
			?>   
                            </select></div></div>

	<div class="col-lg-6 text-right">
	<br>&nbsp;&nbsp;&nbsp;Date of Payment&nbsp;:&nbsp;<br></div>
	<div class="col-lg-6"><br>
			<div class="input-group date" data-provide="datepicker">
	<input class="form-control form-center" name="tda" type="text" value="<?php echo $Date ?>" onkeypress='return isNumberKey(event)' style="height:30px;" required> <div class="input-group-addon"><span class="lnr lnr-calendar-full"></span></div>
				</div></div>
			</div></div></div>
		 	   
		 	   <div class="row"> </div>
		 	   
	<div class="col-lg-3 text-right" style="margin-top:40px;"> Reference </div> <div class="col-lg-4" style="margin-top:30px;">
 <textarea name="refo" class="form-control" style='height:50px;' placeholder="Payment Reference"></textarea></div><div class="col-lg-5 text-center" style="padding-top:30px; margin-bottom:20px; height:70px; text-align:center;">
     
    <div class="fileupload fileupload-new" data-provides="fileupload" style=''>
        <span class="btn btn-default btn-file"><span class="fileupload-new">Select</span><span class="fileupload-exists">Change</span><input name="file1" id="app_file" type="file" readonly='readonly'></span><span class="fileupload-preview"></span><button class="close fileupload-exists" data-dismiss="fileupload" style="float:none" type="button">&times;</button>
        <br><small>Zip, txt, jpeg, png, pdf, doc (Max : 2M)</small></div>
             </div>
                <div class="row"> </div><br>

           

<?php
	echo"<div class='modal-header' 
	style='height:50px; text-align:right; padding:10px 20px 5px 5px;'>
    	<input type='hidden' name='custo' value='$custo'>
		<input type='hidden' name='dato' value='$dato'>
		<input type='hidden' name='p' value='$p'>
		<input type='hidden' name='supplier' value='$supplier'>
	<input type='hidden' name='datos' value='$datos'>
	<input type='hidden' name='code' value='$code'>
	<input type='hidden' name='count' value='$count'>
	<input type='hidden' name='pall' value='$pall'>
	<input type='hidden' name='balo' value='$balo'>
	<input type='hidden' name='caso' value='$caso'>
	<input type='hidden' name='gara' value='$gara'>
	<input type='hidden' name='naso' value='$naso'>
	<input type='hidden' name='invo' value='$invo'>
    	<input type='hidden' name='cust' value='$cust'>
	    <input type='hidden' name='dati' value='$dati'>
	    <input type='hidden' name='name' value='$name'>
	<input type='hidden' name='vous' value='$vous'>
        <button type='button' class='btn btn-sm btn-default' style='width:80px' data-dismiss='modal'>&nbsp;CLOSE&nbsp;</button>
        <button type='submit' class='btn btn-sm btn-success' style='width:80px' name='addpa'>&nbsp;&nbsp;SAVE&nbsp;&nbsp;</button>
      </div></form></div><br><br>";

	// ***************************************************** End of modal ********************************************
	?>