Şuanki Dizin: /home/wwwdreamtechnolo/public_html/uesmahilamahavidyalaya.org/old/admin/row data/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/uesmahilamahavidyalaya.org/old/admin/row data/msbte-staff.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $designation=""; $success_msg = 0; $qualification=""; $name =""; $succ_flag = 0; $remark=""; $status = ""; if(!isset($_SESSION['current_login_admin'])) { header("Location:/admin/index.php"); } if(isset($_SESSION['current_login_admin'])) { $email = $_SESSION['current_login_admin']; } if(isset($_POST['add_btn'])) { $name = $_POST['name']; $designation = $_POST['designation']; $qualification = $_POST['qualification']; $remark = $_POST['remark']; $status = $_POST['status']; if($flag==0) { $db->new_msbte_staff($name,$designation,$qualification,$remark,$status); $succ_flag = 1 ; $name = ""; $qualification =""; $designation =""; $remark =""; $status = ""; } } if(isset($_GET['delete_id'])) { $del_id = $_GET['delete_id']; $db->delete_msbte_staff($del_id); $success_msg = 2; } ?> <?php require_once('header.php'); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">MSBTE Approve Staff</h1> <?php if($succ_flag == 1) { ?> <div class="alert alert-success"> Information Added Successfully. </div> <?php } ?> <?php if($success_msg == 2) { ?> <div class="alert alert-danger"> Information Deleted Successfully. </div> <?php } ?> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> MSBTE Approve Staff </div> <div class="panel-body"> <div class="row"> <div class="col-lg-6"> <form role="form" method="post" enctype="multipart/form-data"> <div class="form-group"> <label> Add Name </label> <input class="form-control" placeholder="Enter Name" name="name" type="text" value="<?php echo $name; ?>" required> </div><div class="form-group"> <label> Add Designation </label> <input class="form-control" placeholder="Enter Designation" name="designation" value="<?php echo $designation; ?>" type="text" required> </div> <div class="form-group"> <label> Add Qualification</label> <input class="form-control" placeholder="Enter Qualification" name="qualification" value="<?php echo $qualification; ?>" type="text" required> </div> <div class="form-group"> <label> Remark </label> <textarea class="form-control" placeholder="Enter Remark" name="remark" type="text"><?php echo $remark; ?></textarea> </div> <div class="form-group"> <label> Status </label> <input class="form-control" placeholder="Enter Status" name="status" value="<?php echo $status; ?>" type="text" required> </div> <button type="submit" class="btn btn-success" name="add_btn">Submit </button> <br /><br /> </form> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> MSBTE Staff Report </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th width ="20">Sr. No</th> <th> Name</th> <th> Designation</th> <th> Qualification</th> <th> Remark</th> <th> Status</th> <th>Action</th> <th>Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_msbte_staff(); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $name = $report_details[$counter][1]; $designation = $report_details[$counter][2]; $qualification = $report_details[$counter][3]; $remark = $report_details[$counter][4]; $status = $report_details[$counter][5]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $name; ?></td> <td><?php echo $designation; ?></td> <td><?php echo $qualification; ?></td> <td><?php echo $remark; ?></td> <td><?php echo $status; ?></td> <td><a href="edit-msbte-staff.php?update_id=<?php echo $id;?>">Edit</a></td> <td><a href="msbte-staff.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } }else { ?> <td colspan="4">No Data Found...</td> <?php } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-6 --> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4