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: add-gallery.php
<?php session_start(); if(empty($_SESSION['user'])){ echo "<script>window.location.assign('index.php')</script>"; } include('config/dbcon.php'); if(isset($_GET['did'])){ $delete=$con->query("DELETE FROM `gallery_class` WHERE `id`='".$_GET['did']."'"); if($delete){ echo "<script>alert('Gallery Section deleted successfully.')</script>"; echo "<script>window.location.assign('add-gallery.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>Add Gallery</title> <!--Select Plugins--> <link href="assets/plugins/select2/css/select2.min.css" rel="stylesheet" /> <!--inputtags--> <link href="assets/plugins/inputtags/css/bootstrap-tagsinput.css" rel="stylesheet" /> <!--multi select--> <link href="assets/plugins/jquery-multi-select/multi-select.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" type="image/x-icon" href="../img/favicon.png"> <!-- notifications css --> <link rel="stylesheet" href="assets/plugins/notifications/css/lobibox.min.css" /> <!-- Vector CSS --> <link href="assets/plugins/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" /> <!-- simplebar CSS--> <link href="assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" /> <!-- Bootstrap core CSS--> <link href="assets/css/bootstrap.min.css" rel="stylesheet" /> <!-- animate CSS--> <link href="assets/css/animate.css" rel="stylesheet" type="text/css" /> <!-- Icons CSS--> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <!-- Sidebar CSS--> <link href="assets/css/sidebar-menu.css" rel="stylesheet" /> <!-- Custom Style--> <link href="assets/css/app-style.css" rel="stylesheet" /> <link href="rhodisha.css" rel="stylesheet" /> </head> <body onload="show1()"> <!-- Start wrapper--> <div id="wrapper"> <!--Start sidebar-wrapper--> <?php include("config/menu.php"); include("config/header.php"); ?> </div> <!--End topbar header--> <div class="clearfix"></div> <div class="content-wrapper"> <div class="row"> <div class="col-lg-12 pb-3"> <div class="col-lg-12"> <a href="view-gallery.php" class="btn btn-success ">View Gallery</a> <a href="" class="btn btn-success " data-toggle="modal" data-target="#myModal">View Gallery Section</a> <a href="" class="btn btn-success " data-toggle="modal" data-target="#myModal2">Add Gallery Section</a> </div> </div> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <form class="form-bordered striped-rows" action="addform.php" method="POST" enctype="multipart/form-data"> <h4 class="form-header text-uppercase"> <i class="fa fa-user-circle-o"></i> Add Gallery </h4> <div id="manualvideo"> <div class="form-group row"> <label for="input-1" class="col-sm-2 col-form-label">Add image</label> <div class="col-sm-6 col-lg-6"> <input type="file" class="form-control" name="galleryimage"> </div> </div> <div class="form-group row"> <label for="input-1" class="col-sm-2 col-form-label">Image Class</label> <div class="col-sm-6 col-lg-6"> <select id="" class="form-control" name="galleryclass2"> <?php $select=$con->query("SELECT * FROM `gallery_class` ORDER BY `id` DESC"); while($rowclass=$select->fetch_assoc()){ ?> <option value="<?php echo $rowclass['class']?>"><?php echo strtoupper($rowclass['class']);?></option> <?php }?> </select> </div> </div> <div class="form-footer"> <input type="submit" name="gallery_submit" class="btn btn-success shadow-success m-1" value="Add" id="ADDManualVideo"> </div> </form> </div> </div> </div> </div> </div> </div> <script> function show1() { document.getElementById("youtubevideo").style.display = "none"; document.getElementById("manualvideo").style.display = "block"; document.getElementById("ADDManualVideo").style.display = "block"; document.getElementById("ADDYoutubeVideo").style.display = "none"; } function show2() { document.getElementById("manualvideo").style.display = "none"; document.getElementById("youtubevideo").style.display = "block"; document.getElementById("ADDManualVideo").style.display = "none"; document.getElementById("ADDYoutubeVideo").style.display = "block"; } </script> <!--End wrapper--> <!-- Bootstrap core JavaScript--> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <!-- simplebar js --> <script src="assets/plugins/simplebar/js/simplebar.js"></script> <!-- waves effect js --> <script src="assets/js/waves.js"></script> <!-- sidebar-menu js --> <script src="assets/js/sidebar-menu.js"></script> <!-- Custom scripts --> <script src="assets/js/app-script.js"></script> <!-- Vector map JavaScript --> <script src="assets/plugins/vectormap/jquery-jvectormap-2.0.2.min.js"></script> <script src="assets/plugins/vectormap/jquery-jvectormap-world-mill-en.js"></script> <!-- Sparkline JS --> <script src="assets/plugins/sparkline-charts/jquery.sparkline.min.js"></script> <!-- Chart js --> <script src="assets/plugins/Chart.js/Chart.min.js"></script> <!--notification js --> <script src="assets/plugins/notifications/js/lobibox.min.js"></script> <script src="assets/plugins/notifications/js/notifications.min.js"></script> <!-- Index js --> <script src="assets/js/index.js"></script> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <center> <h3> VIEW GALLERY SECTION </h3> </center> </div> <div class="modal-body"> <table id="example" class="table table-bordered"> <thead> <tr> <th>Sr No</th> <th>Gallery Section</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; $selectgallery=$con->query("SELECT * FROM `gallery_class` ORDER BY `id` DESC"); while($gallery=$selectgallery->fetch_assoc()){ ?> <tr> <td><?php echo $i;?></td> <td><?php echo $gallery['class']?></td> <td><a href="add-gallery.php?did=<?php echo $gallery['id']?>" onclick="return confirm('Are you want to delete this image permanetly ? Then click ok.')"><i class="fa fa-trash"></i></a></td> </tr> <?php $i++; } ?> </tbody> <tfoot> <tr> <th>Sr No</th> <th>Gallery Section</th> <th>Action</th> </tr> </tfoot> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="myModal2" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <center> <h3> Add GALLERY SECTION </h3> </center> </div> <div class="modal-body"> <form class="form-bordered striped-rows" action="addform.php" method="POST" enctype="multipart/form-data"> <div id="manualvideo"> <div class="form-group row"> <label for="input-1" class="col-sm-6 col-form-label">Add Gallery Section</label> <div class="col-sm-6 col-lg-6"> <input type="text" class="form-control" name="galleryclass"> </div> </div> </div> <div class="modal-footer"> <input type="submit" name="galleryclass_submit" class="btn btn-success shadow-success m-1" value="Add" id="ADDManualVideo"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> </body> </html>
Upload File
Create Folder