File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/livable-cities/Conf2017admin/refer_list.php
<?php
include("conn/db_conn.php");
session_start();
if($_SESSION['email']==""){
header("location:login.php");
}
$refer_code = $_REQUEST['id'];
if($_REQUEST['status']){
$status=$_REQUEST['status'];
if($_REQUEST['set']=='1'){
$row = mysql_query("update tbl_detail SET fld_status='0' where fld_regcode='".$status."'");
$query = mysql_query("select fld_email from tbl_regist where fld_code='".$status."'");
$row = mysql_fetch_array($query);
$email = $row['fld_email'];
$subject = "Registration Successful On INSCR CONFERENCE 2017";
$to=$email;
$message = " <div class='container'>
<div class='row'>
<div class=' col-xs-10 col-sm-10 col-md-7 col-xs-offset-1 col-sm-offset-2 col-md-offset-3' style='border: 8px double #8c8b8b; border-style:ridge; border-radius:20px;'>
<div class='row'>
<div class='class='col-xs-6 col-sm-6 col-md-12'>
<h2 class='title' style='text-align:center; font-family:'Times New Roman', Times, serif;'>INSCR CONFERENCE 2017, INDIA</h2>
<hr style='height: 10px; width:84%; margin-top:1px;
border: 0;
box-shadow: 0 10px 10px -10px #900 inset; color:#900'>
<h4 class='title' style='text-align:center; font-family:'Times New Roman', Times, serif; margin-top:-13px;'>Department of Zoology, University of Delhi
</h4>
<hr style='border:1px solid #F60; width:20%; margin-top:-7px;'>
</div>
</div>
<div class='row' style='margin-top:10px;'>
<div class='col-xs-6 col-sm-6 col-md-12'>
<p>
<strong>Dear Participant</strong><strong style='color:#039; margin-left:2px;'><?php echo $code?></strong>
</p>
<div class='row'>
<div class='col-xs-12 col-sm-12 col-md-12 '>
<p>Congratulations!! Your registration process has been completed for INSCR Conference 2017. Kindly retain the E-Receipt and SBI receipt for your convenience during your visit to the conference.</p>
<p>Visit our website for further updates. </p>
<p><strong style='color:#039;'>NOTE:</strong> If you have not submitted your abstract, please do so before 31st May 2017.</p>
<p>In case of any query you can write to us on conference.inscr@gmail.com</p>
<strong style='color:#039;'> Thanks and Regards,</strong> </br>
<strong style='color:#D20000;'> Organizing Secretary</strong> </br>
<strong style='color:#D20000;'>INSCR Conference 2017</strong> </br></br></br>
</div>
</div>
</div>
</div>
</div>
</div> ";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From:conference.inscr@gmail.com" . "\r\n";
$query = mail($to,$subject,$message,$headers);
if($query){
echo "<script>alert('Status Changed Successfully & Mail Also Get Send')</script>";
echo "<script>window.location.href='refer_list.php'</script>";
}
}
else if($_REQUEST['set']=='0'){
$row = mysql_query("update tbl_detail SET fld_status='1' where fld_regcode='".$status."'");
if($row){
echo "<script>alert('Status Changed Successfully & Mail Also Get Send')</script>";
echo "<script>window.location.href='refer_list.php'</script>";
}
}
else{
echo "<script>alert('This User Not Filled Their Profile')</script>";
echo "<script>window.location.href='refer_list.php'</script>";
}
if($row){
}
}
if(isset($_REQUEST['delid'])){
$id = $_REQUEST['delid'];
$sql1 = mysql_query("delete from tbl_detail where fld_regcode='".$id."'") or die(mysql_error());
$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=refer_list.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>
<script>
$(document).ready(function(){
$('.view_author').click(function(){
var id = $(this).attr("id");
$.ajax({
url:"ajax_regist_user.php",
method:"post",
data:{client_id:id},
success:function(data){
$('#employee_detail').html(data);
$('#basic_modal').modal("show");
}
});
});
$('.view_abstract').click(function(){
var id = $(this).attr("id");
$.ajax({
url:"ajax_abstract.php",
method:"post",
data:{reg_id:id},
success:function(data){
$('#employee_details').html(data);
$('#basic_modals').modal("show");
}
});
});
});
</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">
<h1>Manage Registered User </h1>
<p></p>
</div>
</div>
<div class="col-lg-12 blog" style="display:none;">
<div class='alert alert-danger alert-dismissible'><a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
<strong>Success!</strong>Enquiry Deleted successfully</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>Registered 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>Designation</th>
<th>Affiliation</th>
<th>Address</th>
<th>Deligate category</th>
<th>Registration Type</th>
<th>Theme of Research Paper</th>
<th>Paper Title</th>
<th>Author</th>
<th>Abstract</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
$x=1;
$query = mysql_query("select * from tbl_regist Order by fld_id desc");
while($sql = mysql_fetch_array($query)){
?>
<tr>
<td><?php echo $x;?></td>
<td><?php echo $sql['fld_regcode'];?></td>
<td><?php echo $sql['fld_name'];?></td>
<td><?php echo $sql['fld_email'];?></td>
<td><?php echo $sql['fld_mobile'];?></td>
<td><?php echo $sql['fld_desig'];?></td>
<td><?php echo $sql['fld_affili'];?></td>
<td><?php echo $sql['fld_address'];?></td>
<td><?php echo $sql['fld_category'];?></td>
<td><?php echo $sql['fld_type'];?></td>
<td><?php echo $sql['fld_theme'];?></td>
<td><?php echo $sql['fld_title'];?></td>
<td><a href="#" class="view_author" style="margin-left:4%;" data-toggle="modal" data-target="#basic_modal" data-animate-modal="slideInRight" value="Update" name="update" id="<?php echo $sql['fld_id']; ?>"><i class="icon fa fa-fw fa-edit" aria-hidden="true" title='View Detail'></i></a></td>
<td><a href="#" class="view_abstract" style="margin-left:4%;" data-toggle="modal" data-target="#basic_modals" data-animate-modal="slideInRight" value="Update" name="update" id="<?php echo $sql['fld_id']; ?>"><i class="icon fa fa-fw fa-edit" aria-hidden="true" title='View Detail'></i></a></td>
<td><?php echo $sql['fld_date'];?></td>
<!--<td>
<a href="refer_list.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>
<div id="basic_modals" 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_details">
</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>