
PK 
<?php
include "templatic/head.php";
include "templatic/header.php";
?>
<div class="dataGrid">
<div class="dataGridControl">
<div class="dataGridControlButtons">
<!-- <img src="./img/add.png" alt="New" /> <a href="addaclnt.php">Add Client</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" /> 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>Party Name</th>
<th>Party Address</th>
<th>Contact</th>
<th>Phone</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php
$sql="SELECT * FROM parties WHERE headid>2";
$result=mysql_query($sql) or die('error');
if (mysql_num_rows($result) == 0)
{
echo "
<tr>
<td colspan='8' align=center><font color=red><strong><br>No Client/records Found</strong>, please add an account first.</font><br><br></td>
</tr>
";
}
while($row=mysql_fetch_array($result))
{
echo"
<tr>
<td>{$row['headname']}</td>
<td class='minitext'>{$row['headaddress']}</td>
<td>{$row['headperson']}</td>
<td>{$row['headphone']}</td>
<td><a href=accedit.php?id={$row['headid']}><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" /> 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