<table width="100%" border="1" cellspacing="0" cellpadding="0">
   <tr class="row1">
   <td width="6%" class="tabledata"><strong>Sr.No.</strong></td>
   <td width="59%" class="tabledata"><strong>Opening Type</strong></td> 
    <td width="13%" class="tabledata"><strong>Edit</strong></td>
   <td width="22%" class="tabledata"><strong>Delete</strong></td>
   </tr>
   <?php 
      // LIMIT $startpoint,$perpage
  $GetRecord = "Select * from $table where CompanyId='".$_SESSION['ACGCompanyId']."' order by id";
   $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 class="row1"> 
	<td ><div align="center"><?php echo $i; ?></div></td>
	
	<td >&nbsp;&nbsp;<?php echo $RowData['group_name']; ?> </td>	
	
	
	<td ><div align="center"><a href="<?php echo $targetpage?>&amp;action=Edit&amp;id=<?php echo $RowData['id']; ?>"
	><img src="images/icon-edit.png"  width="10" height="10"/></a></div></td>
	<td><div align="center">

	<a href="<?php echo $targetpage?>&amp;action=Delete&amp;id=<?php echo $RowData['id']; ?>" 
	onclick="return confirm('This  Sub Area will be deleted. Are you sure?')">
	<img src="images/delete.Gif"  width="10" height="10"/></a>
	
	
	
	</div>  </td>
</tr>
<?php $i++;} ?> 
</table>

  