X7ROOT File Manager
Current Path:
/home/u126090504/domains/nist.org.in/public_html/admin
home
/
u126090504
/
domains
/
nist.org.in
/
public_html
/
admin
/
📁
..
📄
add-achievers.php
(8.02 KB)
📄
add-bulletin.php
(5.62 KB)
📄
add-data.php
(38.42 KB)
📄
add-faculty.php
(7.4 KB)
📄
add-gallery.php
(10.99 KB)
📄
add-information-bulletin.php
(9.13 KB)
📄
add-marquee.php
(5.8 KB)
📄
add-result.php
(6.57 KB)
📄
add-slider.php
(5.77 KB)
📄
addform.php
(6.83 KB)
📁
assets
📄
authentication.php
(823 B)
📄
change-password.php
(5.86 KB)
📁
config
📄
home.php
(13.34 KB)
📁
image
📄
index.php
(6.77 KB)
📄
logout.php
(114 B)
📄
view-academic-achivers.php
(8.53 KB)
📄
view-apply-online.php
(8.86 KB)
📄
view-bulletin.php
(9.76 KB)
📄
view-contact.php
(6.68 KB)
📄
view-data.php
(64.25 KB)
📄
view-faculty.php
(8.09 KB)
📄
view-gallery.php
(7.24 KB)
📄
view-information-bulletin.php
(9.33 KB)
📄
view-marquee.php
(7.42 KB)
📄
view-non-academic-achivers.php
(8.54 KB)
📄
view-result.php
(7.55 KB)
📄
view-slider.php
(6.94 KB)
Editing: view-bulletin.php
<?php session_start(); if(empty($_SESSION['user'])){ echo "<script>window.location.assign('index.php')</script>"; } include("config/dbcon.php"); if(isset($_POST['noticesubmit'])){ extract($_POST); $insertnotice=$con->query("UPDATE `news_bulletin` SET `title`='$addnotice' WHERE `id`='".$_POST['nid']."'"); if($insertnotice){ echo "<script>alert('Record update successfully.')</script>"; echo "<script>window.location.assign('view-bulletin.php')</script>"; } } $selectnotice=$con->query("SELECT * FROM `news_bulletin` order by id desc"); if(isset($_GET['did'])){ $delete=$con->query("DELETE FROM `news_bulletin` WHERE `id`='".$_GET['did']."'"); if($delete){ echo "<script>alert('Record deleted successfully.')</script>"; echo "<script>window.location.assign('view-bulletin.php')</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content="" /> <meta name="author" content="" /> <title>Janatadarpana | View Bulletin</title> <link rel="icon" href="../images/favicon.png" type="image/x-icon"> <link href="assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" /> <link href="assets/css/bootstrap.min.css" rel="stylesheet" /> <link href="assets/plugins/bootstrap-datatable/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css"> <link href="assets/plugins/bootstrap-datatable/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css"> <link href="assets/css/animate.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <link href="assets/css/sidebar-menu.css" rel="stylesheet" /> <link href="assets/css/app-style.css" rel="stylesheet" /> </head> <body> <div id="wrapper"> <?php include("config/menu.php"); include("config/header.php"); ?> <div class="clearfix"></div> <div class="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumb--> <div class="row pt-2 pb-2"> <div class="col-sm-9"> <h4 class="page-title">View Bulletin</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="javaScript:void();">Janatadarpana</a></li> <li class="breadcrumb-item"><a href="javaScript:void();">NEWS Bulletin</a></li> <li class="breadcrumb-item active" aria-current="page">View Bulletin</li> </ol> </div> <div class="col-sm-3"> <div class="btn-group float-sm-right"> <a href="add-bulletin.php" class="btn btn-success">Add Bulletin</a> </div> </div> </div> <!-- End Breadcrumb--> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"><i class="fa fa-table"></i> Bulletin Data</div> <div class="card-body"> <div class="table-responsive"> <table id="example" class="table table-bordered"> <thead> <tr> <th>Sr No</th> <th>Title</th> <th>Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; while($notice=$selectnotice->fetch_assoc()){ ?> <tr> <td><?php echo $i;?></td> <td> <?php $txtfile=$notice['title']; $myfile = fopen("../bulletin/$txtfile", "r") or die("Unable to open file!"); echo fgets($myfile); fclose($myfile); ?></td> <td><?php echo $notice['date']?></td> <td><a href="view-bulletin.php?did=<?php echo $notice['id']?>" onclick="return confirm('Are you want to delete this bulletin permanetly ? Then click ok.')"><i class="fa fa-trash"></i></td> </tr> <?php $i++; } ?> </tbody> <tfoot> <tr> <th>Sr No</th> <th>Title</th> <th>Date</th> <th>Action</th> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> <!-- End container-fluid--> </div> <a href="javaScript:void();" class="back-to-top"><i class="fa fa-angle-double-up"></i> </a> <!--End Back To Top Button--> </div> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/plugins/simplebar/js/simplebar.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/sidebar-menu.js"></script> <script src="assets/js/app-script.js"></script> <script src="assets/plugins/bootstrap-datatable/js/jquery.dataTables.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/dataTables.bootstrap4.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/dataTables.buttons.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/buttons.bootstrap4.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/jszip.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/pdfmake.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/vfs_fonts.js"></script> <script src="assets/plugins/bootstrap-datatable/js/buttons.html5.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/buttons.print.min.js"></script> <script src="assets/plugins/bootstrap-datatable/js/buttons.colVis.min.js"></script> <script> $(document).ready(function() { //Default data table $('#default-datatable').DataTable(); var table = $('#example').DataTable({ lengthChange: true, buttons: ['copy', 'excel', 'pdf', 'print'] }); table.buttons().container() .appendTo('#example_wrapper .col-md-6:eq(0)'); }); </script> <?php $i=1; $selectnotice2=$con->query("SELECT * FROM `news_bulletin` order by id desc"); while($notice2=$selectnotice2->fetch_assoc()){ ?> <div class="modal fade" id="modal-animation-<?php echo $notice2['id']?>"> <div class="modal-dialog"> <div class="modal-content animated tada"> <div class="modal-header"> <h5 class="modal-title"><i class="fa fa-star"></i> Bulletin Edit</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form class="form-bordered" method="post" action=""> <div class="form-group row"> <label for="input-1" class="col-sm-2 col-form-label">Bulletin Detail</label> <div class="col-sm-10"> <input type="text" name="addnotice" class="form-control" value="<?php echo $notice2['title']?>" id="input-1"> <input type="hidden" name="nid" value="<?php echo $notice2['id']?>"> </div> </div> <div class="form-footer"> <button type="submit" name="noticesubmit" class="btn btn-success shadow-success m-1"><i class="fa fa-check-square-o"></i> Update</button> </div> </form> </div> </div> </div> </div> <?php $i++; } ?> </body> </html>
Upload File
Create Folder