halohalo
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
aramiyarkai
/
public_html
/
admin
/
Upload FileeE
HOME
<?php include "dbc.php"; page_protect(); $id1=$_SESSION['raga_id']; error_reporting (0); $id=$_GET['id']; if($_GET['delete'] == 'del') { mysqli_query($link,"delete from state_tbl where id='$id'"); } ?> <?php include'header.php';?> <div class="main-bar"> <h3> <i class="fa fa-archive"></i> Geo Location</h3> </div><!-- /.main-bar --> </header><!-- /.head --> </div><!-- /#top --> <?php include'admin_admin.php';?><!-- /#left --> <div id="content"> <div class="outer"> <div class="inner bg-light lter"> <style> .form-control.col-lg-6 { width: 50% !important; } </style> <div class="row"> <div class="col-lg-12"> <div class="box"> <header> <h5>Edit State</h5> <div class="toolbar"> <div class="btn-group"> <a href="state_add.php" class="btn btn-default btn-sm"> <i class="icon-plus-sign"></i> Add State </a> </div> </div> </header> <div class="row"> <div class="col-lg-12"> <div class="box"> <div id="collapse4" class="body"> <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped"> <thead> <tr> <th >ID</th> <th>Country</th> <th>State</th> <th>State (Tamil)</th> <th>State Code</th> <th>Action</th> </tr> </thead> <tbody> <?php if (checkAdmin()) { $sql5 = "SELECT * FROM state_tbl order by id desc"; } if(checkCoadmin()) { $sql5 = "SELECT * FROM state_tbl order by id desc"; } $result5 = mysqli_query($link,$sql5); while($r = mysqli_fetch_array($result5)) { $result3 = mysqli_query($link,$sql3); $r3 = mysqli_fetch_array($result3); ?> <tr> <td><?php echo $r['id']; ?></td> <td><?php echo $r['country_id']; ?></td> <td><?php echo $r['state_name']; ?></td> <td><?php echo $r['state_name_tamil']; ?></td> <td><?php echo $r['state_code']; ?></td> <td> <a href="state_update.php?id=<?php echo $r['id']; ?>" title="Edit"><i class="fa fa-edit" style="font-size:23px; color:#096;"></i></a> <a href="state_view.php?delete=del&id=<?php echo $r['id']; ?>" onClick="return confirm('Are you sure?');"title="Delete"><i class="fa fa-remove" style="font-size:23px; color:#903;"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div><!-- /.col-lg-12 --> </div><!-- /.row --> <!-- /.row --> <!-- /.row --> </div><!-- /.inner --> </div><!-- /.outer --> </div><!-- /#content --> <?php include "right-side.php";?> <!-- /#right --> </div><!-- /#wrap --> <?php include'footer.php';?>