<?php
require_once("db.php");
    $cell=$_GET['cell'];
//   echo $mobile; exit;
 //  $link = mysqli_connect('localhost','ivtr_sudam','cidb@2018#','ivtr_cid');
//		$res = mysqli_query($link,"select * from `bulletin_member` where mobile='$mobile';");
   		$res = mysqli_query($link,"SELECT * FROM `cardio` where cell='$cell';");
//    echo $res; exit;
		$row=mysqli_fetch_array($res);
?>


<!-- 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">
				<div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                            Edit Member<small></small>
                        </h1>
                    </div>
                </div> 
                 <!-- /. ROW  -->
              <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">Name : Dr. 
                      <?php echo $row['name']; ?>
                        </div>
                        <div class="panel-body">
                            <div class="row">
<!-- FORM START -->                             
                                    <form role="form" action="edit_mem_action.php?cell=<?php echo $cell ?>" method="post">
                                        <div class="form-group col-lg-2">
									    <label>U N I Q U E  &nbsp &nbsp I D = </label>
									    </div>
                                        
                                        <div class="form-group col-lg-10">
									    <input type="text" name="post" class="form-control" value="<?php echo $row['pid']; ?>" disabled />
									    </div>
                                        
                                        <div class="form-group col-lg-1">
                                           <label>Prefix</label>
                                           <input type="text" name="hd" class="form-control" value="<?php echo $row['hd']; ?>" />
                                        </div>
                                        
										<div class="form-group col-lg-5">
                                           <label>Name</label>
                                           <input type="text" name="name" class="form-control" value="<?php echo $row['name']; ?>" />
                                        </div>
                                        
                                        <div class="form-group col-lg-3">
                                           <label>Degree</label>
                                           <input type="text" name="degree" class="form-control" value="<?php echo $row['degree']; ?>" />
                                        </div>
                                        
                                        	<div class="form-group col-lg-3">
                                            <label>MMC Regn.</label>
                                            <input type="text" name="mmc" class="form-control" value="<?php echo $row['mmc']; ?>" />
                                        </div>
										
										<div class="form-group col-lg-3">
                                            <label>Place</label>
                                            <input type="text" name="city" class="form-control" value="<?php echo $row['city']; ?>" />
                                        </div>
										
										<div class="form-group col-lg-3">
                                            <label>Mobile</label>
                                            <input type="text" name="cell" class="form-control" value="<?php echo $row['cell']; ?>" />
                                        </div>
										
										<div class="form-group col-lg-6">
                                            <label>Email</label>
                                            <input type="text" name="email" class="form-control" value="<?php echo $row['email']; ?>" />
                                        </div>
										
									</div>

										<div class="form-group col-lg-4">
										<button type="submit" class="btn btn-default" name="save" value="save">Update</button>
                                        <button type="submit" class="btn btn-default">Reject</button>
										</div>
                                     
                                    </form>
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
<!-- footer -->
<?php include 'footer.html';?>
<!-- footer end -->