<?php include("links/top.php");
$action=$_GET['action'];
?>
<?php
if($action=='delete'){
$id=$_GET['id'];

$del="delete from abstract where id='$id'";
$DB->executeQuery($del);

header('Location:abstract.php?action=list');
}
?>
<?php
if(isset($_POST['update'])){
$id=$_GET['id'];
extract($_POST);

$arr=array('delivery'  => $delivery,'updated' 	=> date('Y-m-d H:i:s'));
$DB->update('abstract',$arr,"id='$id'");

header('Location: abstract.php?action=list&oid='.$oid);
}
?>
		<div id="content">
			<div class="container">
				<div class="page-header">
					<div class="page-title">
						<h3>Abstract Management</h3>
					</div>
				</div>
				<div class="row">

					<div class="col-md-12">
                     
					<div class="widget box">
                        <div class="widget-header">
                            <h4>Abstract List</h4>
							</div>
                        <div class="widget-content">
                             <?php if($action=='list'){
								 $sno=1;
								$sel=executeQuery("select * from abstract");
								?>

								<table class="table table-striped table-bordered table-hover table-checkable datatable">
									<thead>
										<tr>
											<!-- <th class="checkbox-column"><input type="checkbox" class="uniform"></th> -->
                                 <th>S.No</th>
								 <th>Name</th>
                                 <th>Email</th>
                                 <th>Phone</th>
                                 <th>Country</th>
                                 <th>Organization	</th>
                                 <th>City</th>
                                 <th>Intrested</th>
                                 <th>File</th>
                                 <th>Date</th>
										</tr>
									</thead>
									<tbody>
                                    <?php
								  $sno=1;
								 while($rec=getAssoc($sel)){
								 	
								 	?>
										<tr>
											<!--<td class="checkbox-column"><input type="checkbox" class="uniform"></td>-->
                                 <td><?php echo $sno;?></td>
                                 <td><?php echo $rec['name'];?></td>
                                 <td><?php echo $rec['email'];?></td>
                                  <td><?php echo $rec['phone'];?></td>
                                   <td><?php echo $rec['country'];?></td>
                                    <td><?php echo $rec['organization'];?></td>
                                     <td><?php echo $rec['city'];?></td>
                                      <td><?php echo $rec['intrested'];?></td>
                                       <td><a href="https://www.neurologyworldconference.com/uploads/<?php echo $rec['file'];?>" target="_blank">Download File</a></td>
                                       <td><?php echo $rec['now'];?></td>
										</tr>
                                        <?php $sno++;}?>
									</tbody>
								</table>

                            <?php }?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
	<?php include("links/bottom.php");?>