%PDF- %GIF98; %PNG;
 
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin/  | 
Upload File :  | 
<?php
include "top.php";
?> 
<div class="content-wrapper"> 
<section class="content-header sty-one">
<h1>State</h1>
<ol class="breadcrumb">
<li><a href="dashboard.php">Home</a></li>
<li><i class="fa fa-angle-right"></i> State</li>
</ol>
</section>
<section class="content">
<div class="panel-heading"><a href="stateadd.php" class="btn btn-round btn-primary" >Add New Record</a></div>
<div class="table-responsive">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th>State</th>
<th>City</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
$query="select * from states order by state";
$result=mysqli_query($c,$query);
while($row	=	mysqli_fetch_array($result))
{	
?>
<tr>
<td><?php echo $i++;?></td>
<td><?php echo $row['state'];?></td>
<td><?php echo $row['city'];?></td>
<td>
<a href="citiesedit.php?id=<?php echo $row['id'];?>" class="btn btn-outline btn-default"  title="Active"><i class="fa fa-pencil"></i></a>
<?php
if($row['action']=='YES')
{
?>
<a href="action.php?id=<?php echo $row['id'];?>&action=YES&page=cities.php&field=action&table=cities" class="btn btn-outline btn-default"  title="Active"><i class="fa fa-eye"></i></a>
<?php
}
?>
<?php
if($row['action']=='NO')
{
?>
<a href="action.php?id=<?php echo $row['id'];?>&action=NO&page=cities.php&field=action&table=cities" class="btn btn-outline btn-default" title="In Active"><i class="fa fa-eye-slash"></i></a>
<?php
}
?>
<a onclick="return deleterecord('delete.php?id=<?php echo $row['id'];?>&table=cities&page=cities.php')" href=""  class="btn btn-outline btn-default" ><i class="fa fa-trash"></i></a>
</td>
</tr>
<?php
}
?>
</table>
</div>
</section>
<?php
include "footer.php";
?>