]]jkjjgdjffksdkdfdkfjgsldkfhgjkgjkhjkgjkdascxvxcvxcvjdklfgjslkdfgjlskdfgjdskfgj
במ12[aspddfsdfsdfdrxcvxcvcxvxcvxcvxcvxcvxcvxcvxcvxcvxxvxcvxcvxcv;'
/
home
/
magnorco
/
public_html
/
magnor_admin
/
Upload FileeE
HOME
<?php include_once('connect.php'); if($_SESSION['email']==NULL) { header('location:index.php'); } ?> <!DOCTYPE HTML> <html> <head> <title>Edu Fabrica || View Slider Images </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.css" rel='stylesheet' type='text/css' /> <link href="img/icon.png" rel='icon' type='icon/image'> <!-- Custom CSS --> <link href="css/style.css" rel='stylesheet' type='text/css' /> <!-- font-awesome icons CSS --> <link href="css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons CSS --> <!-- side nav css file --> <link href='css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/> <!-- side nav css file --> <!-- js--> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/modernizr.custom.js"></script> <!--webfonts--> <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> <!--//webfonts--> <!-- Metis Menu --> <script src="js/metisMenu.min.js"></script> <script src="js/custom.js"></script> <link href="css/custom.css" rel="stylesheet"> <!--//Metis Menu --> </head> <body class="cbp-spmenu-push"> <div class="main-content"> <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1"> <!--left-fixed -navigation--> <aside class="sidebar-left"> <nav class="navbar navbar-inverse"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".collapse" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <!-- /.navbar-collapse --> <?php include_once('leftnavi.php'); ?> </nav> </aside> </div> <!--left-fixed -navigation--> <!-- header-starts --> <?php include_once('header.php'); ?> <!-- //header-ends --> <!-- main content start--> <div id="page-wrapper"> <div class="main-page"> <div class="forms"> <h2 class="title1">Table</h2> <div class="bs-example widget-shadow" data-example-id="contextual-table"> <div class="form-title"> <h4>View Slider Images</h4> </div> <table class="table"> <thead> <tr> <th>Sno.</th> <th>Images</th> <th>Action</th> </tr> </thead> <tbody> <?php $query=mysqli_query($conn,"select * from slider ORDER BY id DESC") or die("ERROR".mysqli_error); $i=1; while($row=mysqli_fetch_array($query)) { ?> <tr> <td><?=$i;?></td> <td><img src="slider/<?=$row['images']?>" style="height:58px;width:76px;"></td> <td><a href="view_image?delete=<?=$row['id'];?>">Delete</a></td> </tr> <?php $i++; } if(isset($_GET['delete'])) { $id=$_GET['delete']; $query=mysqli_query($conn,"select * from slider order by id desc ") or die("ERROR".mysqli_error()); $row=mysqli_fetch_array($query); $img=$row['images']; $query=mysqli_query($conn,"delete from slider where id='$id'") or die("ERROR".mysqli_error()); echo "<script>alert('Are You Sure?');window.location='view_image';</script>"; unlink('slider/'.$img); } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <!--footer--> <?php include_once('footer.php'); ?> <!--//footer--> </div> <!-- side nav js --> <script src='js/SidebarNav.min.js' type='text/javascript'></script> <script> $('.sidebar-menu').SidebarNav() </script> <!-- //side nav js --> <!-- Classie --><!-- for toggle left push menu script --> <script src="js/classie.js"></script> <script> var menuLeft = document.getElementById( 'cbp-spmenu-s1' ), showLeftPush = document.getElementById( 'showLeftPush' ), body = document.body; showLeftPush.onclick = function() { classie.toggle( this, 'active' ); classie.toggle( body, 'cbp-spmenu-push-toright' ); classie.toggle( menuLeft, 'cbp-spmenu-open' ); disableOther( 'showLeftPush' ); }; function disableOther( button ) { if( button !== 'showLeftPush' ) { classie.toggle( showLeftPush, 'disabled' ); } } </script> <!-- //Classie --><!-- //for toggle left push menu script --> <!--scrolling js--> <script src="js/jquery.nicescroll.js"></script> <script src="js/scripts.js"></script> <!--//scrolling js--> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.js"> </script> </body> </html>