PK

ADDRLIN : /home/anibklip/vpgldh.com/VPG-2022-23/
FLL :
Current File : /home/anibklip/vpgldh.com/VPG-2022-23/agents.php

<?php 
	include "conn.php"; 
	include "templatic/header.php";
?>

<div class="dataGrid">

	<div class="dataGridControl">
		<div class="dataGridControlButtons">
			<!--<img src="./img/add.png" alt="New" /> <a href="#">New record</a> <img src="./img/page_excel.png" alt="CSV export" /> <a href="#">CSV export</a> <img src="./img/printer.png" alt="Print" /> <a href="#">Print</a> <img src="./img/delete.png" alt="Remove" /> <a href="#">Remove selected</a>-->
		</div>

		<div class="dataGridPages">
			Page: <img src="./img/resultset_first.png" alt="First" /> <img src="./img/resultset_previous.png" alt="Previous" /> <select name="pageTop"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select> <img src="./img/resultset_next.png" alt="Next" /> <img src="./img/resultset_last.png" alt="Last" />&nbsp; Items per page: <select name="perPageTop"><option value="25">25</option><option value="50">50</option><option value="100">100</option></select>
		</div>

		<div class="clear"></div>
	</div>

<table>
	<thead>
		<tr>
			<th>Name</th>
			<th>Address</th>
			<th>GST Details</th>
			<th>Phone</th>
			<th>&nbsp;</th> 
			
		</tr>
	</thead>
		
	<tbody>

<?php
$sql="SELECT * FROM agents order by ajcomp ";
$result=mysqli_query($conn,$sql) or die('error');
if (mysqli_num_rows($result) == 0)
{
echo "<tr><td colspan='5' align=center><font color=red><strong><br>No Client/records Found</strong>, please add an account first.</font><br><br></td></tr>";
}
while($row=mysqli_fetch_array($result))
{
	echo"			
	<tr>
	  <td>{$row['ajcomp']}</td>       
	  <td>{$row['ajaddress']}</td>     
	  <td>{$row['ajdec']}</td>    
	  <td>{$row['ajphone']}</td>      
          <td><a href=ajentedit.php?id={$row['ajid']}><img src='./img/pencil.png' alt='Edit' /></a></td>
	  <td></td>
	</tr>";

}
?>

	</tbody>

</table>

	<div class="dataGridControl">
		<div class="dataGridControlButtons">
			<!--<img src="./img/add.png" alt="New" /> <a href="#">New record</a> <img src="./img/page_excel.png" alt="CSV export" /> <a href="#">CSV export</a> <img src="./img/printer.png" alt="Print" /> <a href="#">Print</a> <img src="./img/delete.png" alt="Remove" /> <a href="#">Remove selected</a>-->
		</div>

		<div class="dataGridPages">
			Page: <img src="./img/resultset_first.png" alt="First" /> <img src="./img/resultset_previous.png" alt="Previous" /> <select name="pageBottom"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select> <img src="./img/resultset_next.png" alt="Next" /> <img src="./img/resultset_last.png" alt="Last" />&nbsp; Items per page: <select name="perPageBottom"><option value="25">25</option><option value="50">50</option><option value="100">100</option></select>
		</div>

		<div class="clear"></div>
	</div>

</div>

<?php include "templatic/footer.php"; ?>


PK 99