<form id="llform" method="post" enctype="multipart/form-data" action="#" >
<center>
<table cellspacing="5px" id="paybox">
<tr>Payments Operations</tr>
<tr><td align="left"> <img class="iconbtn" src="images/pays.png" style="vertical-align:middle" onclick="setpayadd();">&nbsp;&nbsp;</img> <label for="paydr"> New Payment &nbsp;&nbsp;</label>&nbsp;&nbsp;<label for="recpmod">Payment Vch. No. &nbsp;</label>&nbsp;<select id="paymod" name="paymod" style="width:220px; height:20px;"> <?php require_once 'includes/database.php'; require_once 'includes/funcs.php'; echo selpays();?> </select> </td>
</tr>

<tr><td align="left"><img class="iconbtn" src="images/payvch.png" style="vertical-align:middle" onclick="setpayvpr();">&nbsp;&nbsp;</img><label for="payvprr">Payment Voucher Reprint &nbsp;&nbsp;</label>&nbsp;&nbsp;<input type="text" id="payvpr" name="payvpr" value="" style="width:250px"/>&nbsp;</td>
</tr>

<tr><td align="left"><img class="iconbtn" src="images/paymrv.png" style="vertical-align:middle" onclick="setpayrev();">&nbsp;&nbsp;</img><label for="payrev">Payment Reversal &nbsp;&nbsp;</label>&nbsp;&nbsp;<input type="text" id="payrev" name="payrev" value="" style="width:250px"/> </td>
</tr>

<tr><td align="left"><img class="iconbtn" src="images/payml.png" style="vertical-align:middle" onclick="setpaylist();">&nbsp;&nbsp;</img><label for="payli">Payments List &nbsp;&nbsp;</label><label for="psdate"> Start Date</label>&nbsp;&nbsp;<input type="text" id="psdate" name="psdate" value="<?php echo date('d-m-Y'); ?>" size="12">&nbsp;&nbsp; <label for="pedate"> End Date</label>&nbsp;&nbsp;<input type="text" id="pedate" name="pedate" value="<?php echo date('d-m-Y'); ?>" size="12"> </td>
</tr>
</table></center>
</form>

<script type="text/javascript">
    $('#psdate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' });
    $('#pedate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' }); 
	$('#payvpr').autocomplete({ source: <?php require_once 'includes/database.php'; include 'includes/funcs.php';echo allpayms(); ?>, minLength: 1  });
	$('#payrev').autocomplete({ source: <?php echo allpayms(); ?>, minLength: 1  });
	$('#spdate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' });
    $('#epdate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' });
	$('#csdate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' });
    $('#cedate').datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy' });
 </script>
