ok
Direktori : /home2/selectio/www/salemgovtitialumni.in/dashboard/admin/ |
Current File : /home2/selectio/www/salemgovtitialumni.in/dashboard/admin/alumini-reports-lists.php |
<?php require_once('header.php'); ?> <?php if(isset($_GET['code'])){ $get_code = $_GET['code']; $conditions = " and type=".$get_code; }else{ $get_code = ""; $conditions = ""; } if($get_code==1){ $title_name = "Achievements"; }else if($get_code==2){ $title_name = "Annual Statements"; }else if($get_code==3){ $title_name = "Trainee Corner"; }else if($get_code==4){ $title_name = "Work details"; }else if($get_code==5){ $title_name = "Auditor report"; }else{ $title_name = ""; } ?> <section class="content-header"> <div class="content-header-left"> <h1>View <?=$title_name?></h1> </div> <div class="content-header-right"> <a href="trainee-add.php?code=<?=$get_code?>" class="btn btn-primary btn-sm">Add <?=$title_name?></a> </div> </section> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-info"> <div class="box-body table-responsive"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th width="30">S.No</th> <th>Report</th> <th width="100">Name</th> <th width="80">Actions</th> </tr> </thead> <tbody> <?php $i=0; $statement = $pdo->prepare("SELECT * FROM `tbl_trainee` WHERE 1=1 $conditions"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $i++; ?> <tr> <td><?php echo $i; ?></td> <td><a class="btn btn-warning btn-xs" target="_blank" href="../<?php echo $row['acheiver_file']; ?>">View Document</a></td> <td><?php echo $row['acheiver_name']; ?></td> <td> <a href="alumini-reports-edit.php?id=<?php echo $row['id']; ?>&type=<?=$get_code?>" class="btn btn-primary btn-xs">Edit</a> <a href="#" class="btn btn-danger btn-xs" data-href="alumini-reports-delete.php?id=<?php echo $row['id']; ?>&type=<?php echo $get_code; ?>" data-toggle="modal" data-target="#confirm-delete">Delete</a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </section> <div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Delete Confirmation</h4> </div> <div class="modal-body"> <p>Are you sure want to delete this item?</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <a class="btn btn-danger btn-ok">Delete</a> </div> </div> </div> </div> <?php require_once('footer.php'); ?>