<?php

require_once("db.php");
				
//				$cell=$_GET['mobile'];	
//				
//			$link =  mysqli_connect('localhost','ivtr_sudam','cidb@2018#','ivtr_cid') or exit('error');

					$res = mysqli_query($link,"SELECT * FROM `cardio` WHERE status=0 ORDER BY name");
					

					

?>
<!-- header -->
<?php include 'header.html';?>
<!-- header end -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
			<!-- side bar -->
<?php include 'sidebar.html';?>
<!-- side bar end -->
			</div>
 
        </nav>
        <!-- /. NAV SIDE  -->
 

				
        <div id="page-wrapper" >
            <div id="page-inner">
                 <!-- ROW  -->
               
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
   
                        <div class="panel-heading">
                              <ol class="breadcrumb">
						<li><a href="admin.php">Home</a></li>
						<li class="active">Unconfirmed Delegates</li>
						<li><a href="members.php">Confirmed Delegates</a></li>
					</ol>
                        </div>
					    <div class="panel panel-default">
							<div class="panel-heading">
							Delegates List "Unconfirmed"
<!--							<ol class="breadcrumb">
								<li><a href="members.php">Members List</a></li>
							</ol> -->
							</div> 
                        
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>Sr.</th>
                                            <th>ID</th>
                                            <th>Name</th>
                                            <th>Place</th>
                                            <th>Mobile</th>
                                            <th>Degree</th>
											<th>MMC Regn.</th>
											<th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
				<?php
					 $i=1;
					while($row=mysqli_fetch_array($res))
					{ ?>
        
                    <tr class="odd gradeX" <?php if($row['status']==0) { ?> style="color:red;" <?php } ?> >
                                    
                                            <td align="right"><?php echo $i++.' '; ?></td>
                                            <td><?php echo $row['pid']; ?></td>
                                            <td><?php echo $row['hd']; ?> <?php echo $row['name']; ?></td>
                                            <td><?php echo $row['city']; ?></td>
											<td><?php echo $row['cell']; ?></td>
											<td><?php echo $row['degree']; ?></td>
											<td><?php echo $row['mmc']; ?></td> 
											<td><div class="btn-group">
											                                                                            
    					<button class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="true" type="button">
                        <span class="caret"></span></button>
    					<ul role="menu" class="dropdown-menu">
        					<li role="presentation"><a class="bg-info" role="button" href="confirm.php?cell=<?php echo $row['cell']; ?>">confirm </a></li>
							<li role="presentation"><a class="bg-info" role="button" href="edit_mem.php?cell=<?php echo $row['cell']; ?>">Edit </a></li>
							<li role="presentation"><a class="bg-info" role="button" href="reject.php?cell=<?php echo $row['cell']; ?>">Reject </a></li>
							<li role="presentation"><a class="bg-info" role="button" href="delete.php?cell=<?php echo $row['cell']; ?>">Delete </a></li>
       					</ul>
					    </div>
										</td>
									</tr>
									<?php  }  ?>
								</tbody>	
                                </table>
                            </div>
                            
                        </div>
						</div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
                <!-- /. ROW  -->
<!-- footer -->
<?php include 'footer.html';?>
<!-- footer end -->