<table width="70%" border="0" cellspacing="2" cellpadding="2">
   <tr>
     <th>VOUCHER ID </th>
   <!--  <th>GROUP CODE </th>-->
     <th>GROUP NAME </th>
     <th>VPREFIX</th>
	 <th>VOUCHER NUMBERING</th>
     <th>EDIT</th>
     <th>DELETE</th>
   </tr>
   <?php 
      // LIMIT $startpoint,$perpage
   $GetRecord = "Select * from $table order by GroupName  ";
   $ResultData = DB_query($GetRecord,$db);
   $i=1;
   if(DB_num_rows($ResultData)==0)
   echo "<td>--No Record--</td>";
   
   while($RowData = DB_fetch_array($ResultData))
   {?>
 <tr align="center" bgcolor="#FFFFFF"> 
   <td width="20%"><div align="center"><?php echo $i;//.$RowData['VoucherType']; ?></div>	  </td>
<!-- <td width="20%"><div align="center"><?php echo $RowData['GroupCode']; ?></div></td>
-->    <td width="20%"><?php echo $RowData['GroupName']; ?>	  </td>
	  <td width="20%"><?php echo $RowData['VPrefix'];  ?></td>
	  	  <td width="20%"><?php echo ($RowData['voucher_num']==1?'Auto':'Manual');  ?></td>
   
   <td width="20%"><div align="center"><a href="index.php?route=Voucher_Master&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid']?>&action=Edit&VoucherType=<?php echo $RowData['VoucherType']; ?>"><img src="images/icon-edit.png"  width="10" height="10"/></a></div></td>
	<td width="20%"><div align="center"><a href="index.php?route=Voucher_Master&modid=<?php echo $_REQUEST['modid'];?>&frmid=<?php echo $_REQUEST['frmid']?>&action=del&VoucherType=<?php echo $RowData['VoucherType']; ?>" onclick="return confirm('Do You Want To Delete This Record')"><img src="images/Icon_Delete.png" width="10" height="10" /></a></div></td>	
  </tr>
 
	<?php $i++;}   
   ?> 
   <tr>
    
    <td colspan="4">
	<?php  
	$cond="1=1";
	Pages($table,20,'index.php?route=Voucher_Master&action=Edit',$cond,'VoucherType');
	 //  echo Pages("jos_users",$perpage,"index.php?option=com_empdictory&dept=$dept&",$condition);?>	</td>
  </tr></table>
 