]]jkjjgdjffksdkdfdkfjgsldkfhgjkgjkhjkgjkdascxvxcvxcvjdklfgjslkdfgjlskdfgjdskfgj
במ12[aspddfsdfsdfdrxcvxcvcxvxcvxcvxcvxcvxcvxcvxcvxcvxxvxcvxcvxcv;'
/
home
/
themaxvo
/
public_html
/
tour_admin
/
Upload FileeE
HOME
<?php include_once('include/dhconnect.php')?> <?php if($_SESSION['username']== null) { header('Location:index'); } ?> <!DOCTYPE HTML> <html> <head> <title>PNS Arihant Public Academy</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="" /> <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.min.css" rel='stylesheet' type='text/css' /> <!-- Custom CSS --> <link href="css/style.css" rel='stylesheet' type='text/css' /> <!-- Graph CSS --> <link href="css/font-awesome.css" rel="stylesheet"> <!-- jQuery --> <link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet' type='text/css'> <!-- lined-icons --> <link rel="stylesheet" href="css/icon-font.min.css" type='text/css' /> <!-- //lined-icons --> <script src="js/jquery-1.10.2.min.js"></script> <script src="js/amcharts.js"></script> <script src="js/serial.js"></script> <script src="js/light.js"></script> <script src="js/radar.js"></script> <link href="css/barChart.css" rel='stylesheet' type='text/css' /> <link href="css/fabochart.css" rel='stylesheet' type='text/css' /> <!--clock init--> <script src="js/css3clock.js"></script> <!--Easy Pie Chart--> <!--skycons-icons--> <script src="js/skycons.js"></script> <script src="js/jquery.easydropdown.js"></script> <!--//skycons-icons--> </head> <body> <div class="page-container"> <!--/content-inner--> <div class="left-content"> <div class="inner-content"> <!-- header-starts --> <?php include_once('header.php');?> <!-- //header-ends --> <!-- //header-ends --> <!--outter-wp--> <div class="outter-wp"> <!--sub-heard-part--> <div class="sub-heard-part"> <ol class="breadcrumb m-b-0"> <li><a href="index">Home</a></li> <li class="active">Add Latest News</li> </ol> </div><br/><br/> <!--//sub-heard-part--> <div class="graph-visual tables-main"> <div class="graph"> <?php $ide=$_GET['ide']; if(isset($_POST['submit'])!=null) { $cat=$_POST['category']; $mes=$_POST['message']; $det=$_POST['detail']; $target="img/"; $pic=$_FILES['img1']['name']; move_uploaded_file($_FILES['img1']['tmp_name'],"img/".$pic); $ne=mysqli_query($con, "update mes set categ='$cat',message='$mes',detail='$det',img='$pic'") or die("error".mysqli_error()); echo "<center><span style='color:blue;'>Detail Successfully Added..!;window.location='view-message';</span></center>"; } $query=mysqli_query($con,"select * from mes where id='$ide'")or die("ERROR".mysqli_error($con)); $new=mysqli_fetch_array($query); $catg=$new['category']; $msg=$new['message']; $dtt=$new['detail']; ?> <form action="" method="post"> <table style="width:50%;height:100px;"> <tr style="margin-top:50px; "> <td style="width:10%;"><b>Category </b></td> <td style="width:10%;"><b>:</b></td> <td style="width:70%;" > <select name="category"> <option>Select Category</option> <option>President's Message</option> <option>Manager's Message</option> <option>Principal's Message</option> </select><?=$catg?></td> </tr> <tr style="margin-top:50px; "> <td style="width:10%;"><b>Message</b></td> <td style="width:10%;"><b>:</b></td> <td style="width:70%;"><textarea style="width:100%;" name="message"><?=$msg?></textarea></td> </tr> <tr style="margin-top:50px; "> <td style="width:10%;"><b>Detail</b></td> <td style="width:10%;"><b>:</b></td> <td style="width:70%;"><textarea style="width:100%;" name="detail"><?=$dtt?></textarea></td> </tr> <tr style="margin-top:50px; "> <td style="width:10%;"><b>Image</b></td> <td style="width:10%;"><b>:</b></td> <td style="width:70%;"><input type="file" name="img1"></td> </tr> </table> <table> <tr> <td style="width:100%;"><input type="submit" name="submit" value="update" style="margin-left:113px;"></td> </tr> </table> </form> </div> </div> <!--//graph-visual--> </div> <!--footer section start--> <?php include_once('footer.php');?> <!--footer section end--> </div> </div> <!--//content-inner--> <!--/sidebar-menu--> <?php include_once('sidebar.php');?> <!--/sidebar-menu--> <div class="clearfix"></div> </div> <script> var toggle = true; $(".sidebar-icon").click(function() { if (toggle) { $(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back"); $("#menu span").css({"position":"absolute"}); } else { $(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back"); setTimeout(function() { $("#menu span").css({"position":"relative"}); }, 400); } toggle = !toggle; }); </script> <!--js --> <link rel="stylesheet" href="css/vroom.css"> <script type="text/javascript" src="js/vroom.js"></script> <script type="text/javascript" src="js/TweenLite.min.js"></script> <script type="text/javascript" src="js/CSSPlugin.min.js"></script> <script src="js/jquery.nicescroll.js"></script> <script src="js/scripts.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> </body> </html>