hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
u313348419
/
domains
/
paramedicalcouncilup.org
/
public_html
/
institute
/
Upload FileeE
HOME
<?php include "includes/header.php"; ?> <!-- partial --> <div class="container-fluid page-body-wrapper"> <?php include "includes/navigation.php"; ?> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <div class="page-header"> <h3 class="page-title"> <span class="page-title-icon bg-gradient-primary text-white mr-2"> <i class="mdi mdi-book-multiple-variant"></i> </span> Registration </h3> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href='new_admission.php'><button type='button' class='btn btn-gradient-info btn-rounded btn-icon'> <i class='mdi mdi-plus'></i> </button></a></li> </ol> </nav> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <div class="pb-2 w-50"> <input type="search" placeholder="Search..." class="form-control search-input" data-table="customers-list"/> </div> <h4 class="card-title">All Registration</h4> <table class="table table-striped customers-list"> <thead> <tr> <th>S No.</th> <th>Name</th> <th>Course Name</th> <th>Enrollment No.</th> <th width="50px">View</th> <th width="50px">Edit</th> <th width="50px">delete</th> </tr> </thead> <tbody> <?php $loginid = $_SESSION['token']; $no = 1; $query = "SELECT * FROM addmission where institute_id = '$loginid'"; $select_details = mysqli_query($connection,$query); while($row = mysqli_fetch_assoc($select_details)) { $regi_id = $row['id']; $name = $row['name']; $coursename = $row['course_name']; $regno = $row['enrollment_no']; ?> <tr> <td><?= $no++;?></td> <td> <h6> <?= $name ;?></h6> </td> <td> <h6> <?= $coursename;?> </h6> </td> <td> <h6> <?= $regno ;?></h6> </td> <?php echo " <td> <a href='reg-details.php?view={$regi_id}'> <button type='button' class='btn btn-gradient-danger btn-rounded btn-icon'> <i class='mdi mdi-eye'></i> </button> </a> </td> <td> <a href='new_admission.php?id={$regi_id}'> <button type='button' class='btn btn-gradient-danger btn-rounded btn-icon'> <i class='mdi mdi-pencil'></i> </button> </a> </td> <td> <a onClick=\"javascript: return confirm('Are you Sure to Delete This Registration?'); \" href='addmission_table.php?delete={$regi_id}'> <button type='button' class='btn btn-gradient-danger btn-rounded btn-icon'> <i class='mdi mdi-delete-forever'></i> </button> </a> </td> "; } ?> </tr> </tbody> </table> </div> </div> </div> <?php if(isset($_GET['delete'])){ $the_registration = $_GET['delete']; $query = "DELETE FROM addmission WHERE id = {$the_registration} "; $delete_query = mysqli_query($connection, $query); if($delete_query){ echo "<script>alert('One Admission has been deleted!')</script>"; echo "<script>window.open('addmission_table.php','_self')</script>"; } } ?> </div> </div> <!-- content-wrapper ends --> <?php include "includes/footer.php"; ?>