]]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>Pt. Uma Dutt Public School : Dholpur</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--> <!--editor script--> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> </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 Download Content </li> </ol> </div> <!--//sub-heard-part--> <br/><br/><br/> <div class="graph-visual tables-main"> <div class="graph" style="width:60%;margin:auto;"> <h3>Add Download Content</h3> <?php if(isset($_POST['submit'])!=null) { $dt=date("Y-m-d"); //$catg = $_POST['category']; $caption = $_POST['caption']; $pic=$_FILES['img']['name']; move_uploaded_file($_FILES['img']['tmp_name'],"down/".$pic); //$ne=mysqli_query($con, "insert into gallery set category='$catg',img_caption='$caption', gimage='$pic',gdate='$dt'") or die("error".mysqli_error()); $ne=mysqli_query($con, "insert into download set file_name='$caption',content_name='$pic'") or die("error".mysqli_error()); echo "<center><span style='color:blue;'>Content Successfully Added..!</span></center>"; } ?> <form action="" method="post" enctype="multipart/form-data"> <!--div class="form-group"> <label for="exampleInputPassword1">Select Category</label><br/> <select name="category" class="form-control"> <option value="">--Select Category--</option> <option value="festivals">Festivals</option> <option value="national-festival">National Festivals</option> <option value="cultural">Cultural</option> <option value="sports">Sports</option> <option value="activity">Activity</option> <option value="others">Others</option> </select> </div--> <div class="form-group"> <label for="exampleInputPassword1">File Name</label> <input type="text" name="caption" class="form-control" id="exampleInputPassword1"> </div> <div class="form-group"> <label for="exampleInputPassword1">Select Image</label> <input type="file" name="img" class="form-control" id="exampleInputPassword1"> </div> <input type="submit" name="submit" value="Submit"> </form> </div> <br/> <br/> <!--script editor--> <script type="text/javascript"> CKEDITOR.replace( 'heading', { filebrowserBrowseUrl : 'ckfinder/ckfinder.html', filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?type=Images', filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?type=Flash', filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' } ); </script> <script type="text/javascript"> CKEDITOR.replace( 'brief', { filebrowserBrowseUrl : 'ckfinder/ckfinder.html', filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?type=Images', filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?type=Flash', filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' } ); </script> <!--script editor end --> <!--for heading--> <script type="text/javascript"> CKEDITOR.replace( 'head', { filebrowserBrowseUrl : 'ckfinder/ckfinder.html', filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?type=Images', filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?type=Flash', filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash' } ); </script> </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>