<?php require_once('../auth/auth.php'); ?>
<?php  $gcatid=$_GET['gcatid']; ?>
<table class="table table-sm " style="margin-bottom:0px !important;font-size:11px !important;">
	<tbody>
		<?php
		$acc= mysqli_query($conn,"SELECT acid,ac_name,balance FROM accounts WHERE gcatid='$gcatid' AND coid='$coid' AND bid ='$bid' AND brid='$brid' ") or die(mysqli_error($conn));
		$i=0;
		while($ac= mysqli_fetch_assoc($acc)){
		$acid       = $ac['acid'];
		$ac_name    = $ac['ac_name'];
		$balance    = $ac['balance'];
		?>
		<tr>
			<td  class="text-center"> <i class="fa fa-angle-double-right"></i> </td>
			<td  class="text-center"><?php echo ++$i;?></td>
			<td onclick="pagecall('../accounts/ac_profile.php?acid=<?php echo $acid;?>'+'&gcatid=<?php echo $gcatid ?>','#ac_view');"><?php echo $ac_name;?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>