File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/livable-cities/Conf2017admin/deactive.php
<?php
include("conn/db_conn.php");
session_start();
if($_SESSION['email']==""){
header("location:login.php");
}
$refer_code = $_REQUEST['id'];
if(isset($_REQUEST['delid'])){
$id = $_REQUEST['delid'];
$sql2 = mysql_query("delete from tbl_regist where fld_code='".$id."'") or die(mysql_error());
echo "<script>alert('Data Deleted Successfully')</script>";
header("Refresh:1; url=deactive.php");;
}
?>
<!-- header logo: style can be found in header-->
<?php include("web_include_files/css_links.php");?>
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<header class="header">
<?php include("web_include_files/header.php");?>
</header>
<div class="wrapper row-offcanvas row-offcanvas-left">
<!-- Left side column. contains the logo and sidebar -->
<?php include("web_include_files/navigation.php"); ?>
<aside class="right-side">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="row">
<div class="col-md-6 col-xs-6">
<div class="header-data">
<h3>Manage Deactive User List</h3>
<p></p>
</div>
</div>
<div class="col-md-6 col-xs-6">
</div>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">
<i class="fa fa-fw fa-table"></i> Deactive User List
</h3>
<span class="pull-right">
<i class="fa fa-fw fa-chevron-up clickable"></i>
<i class="fa fa-fw fa-times removepanel clickable"></i>
</span>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="sample_1">
<thead>
<tr class="filters">
<th width="5">SNO.</th>
<th>Reg Code</th>
<th>Name</th>
<th>Email</th>
<th>Mobile No</th>
<th>City</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
$query = mysql_query("select * from tbl_regist where fld_status='0 'Order by fld_id desc");
while($sql = mysql_fetch_array($query)){
?>
<tr>
<td><?php echo $x;?></td>
<td><?php echo $sql['fld_code'];?></td>
<td><?php echo $sql['fld_fname']." ".$sql['fld_lname'];?></td>
<td><?php echo $sql['fld_email'];?></td>
<td><?php echo $sql['fld_mobile'];?></td>
<td><?php echo $sql['fld_city'];?></td>
<td>
<a href="deactive.php?delid=<?php echo $sql['fld_code'];?>" class='delete_data'><i class='fa fa-fw fa-times text-danger actions_icon' title='Delete User'></i>
</a>
</td>
</tr>
<?php $x++;} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- First Basic Table Ends Here-->
<!-- Second Data Table Starts Here-->
</section>
<!-- /.content -->
<div id="basic_modal" class="modal fade animated" role="dialog">
<div class="modal-dialog">
<form role="form" method="post" action="view_clients.php" enctype="multipart/form-data">
<div class="modal-content" id="employee_detail">
</div>
</form>
</div>
</div>
</aside>
<!-- /.right-side -->
</div>
<!-- ./wrapper -->
<!-- global js -->
<script src="js/app.js" type="text/javascript"></script>
<!-- end of global js -->
<!-- begining of page level js -->
<script type="text/javascript" src="vendors/datatables/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="vendors/datatables/js/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="js/custom_js/datatables_custom.js"></script>
<!-- end of page level js -->
</body>
</html>