]]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> JAV Trinity || Forms </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 --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <!--text editor code start--> <!--link rel="stylesheet" type="text/css" href="style.css" /--> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" /> <script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"> </script> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <!--text editor code end here --> </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> <?php include_once('leftnavi.php'); ?> <!-- /.navbar-collapse --> </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">Forms</h2> <div class="form-grids row widget-shadow" data-example-id="basic-forms"> <div class="form-title"> <h4> Item 3 :</h4> </div> <?php if(isset($_POST['submit3'])!=null) { $nm3=$_POST['name3']; $id3=$_POST['item3_id']; $lk=$_POST['link']; $pd=$_POST['desc']; /*--file upload--*/ /*$target='img/'; $img=$_FILES['image']['name']; move_uploaded_file($_FILES['image']['tmp_name'],"$target/".$img);*/ /*--file upload--*/ $query=mysqli_query($conn,"insert into nav_item3 set description='$pd',name='$nm3',item2_id='$id3',link='$lk'") or die("ERROR".mysqli_query); } ?> <div class="form-body"> <form class="form-horizontal" method="POST" action="" enctype="multipart/form-data"> <div class="form-group"> <label class="col-sm-2 control-label">Navigation Bar:</label> <div class="col-sm-8"> <select name="item3_id" class="form-control"> <option selected="selected">--Item2--</option> <?php $query=mysqli_query($conn,"select * from nav_item2 order by id ASC") or die("ERROR".mysqli_error()); while($row=mysqli_fetch_array($query)) { echo '<option value="'.$row['id'].'">'.$row['name'].'</option>'; } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Product Name(Item3):</label> <div class="col-sm-8"> <input type="text" name="name3" class="form-control" placeholder=""> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Link(Item3):</label> <div class="col-sm-8"> <select name="link" class="form-control" required> <option style="display:none;" value="">Select Product Page</option> <option value="product1">Product1</option> <option value="product2">Product2</option> <option value="product3">Product3</option> <option value="services">Services</option> </select> <!--input type="text" name="link" class="form-control" placeholder=""--> </div> </div> <!--div class="form-group"> <label class="col-sm-2 control-label">Product Image:</label> <div class="col-sm-8"> <input type="file" name="image" class="form-control"> </div> </div--> <div class="form-group"> <label for="txtarea1" class="col-sm-2 control-label">Product Description:</label> <div class="col-sm-8"> <textarea name="desc" class="in-textarea" id="topbtitle"> </textarea> </div> </div> <div class="form-group" style="margin-left:400px;"> <button type="submit" name="submit3" class="btn btn-default">Submit</button> </div> </form> </div> </div> </div> </div> </div> <!--editor files--> <script type="text/javascript"> CKEDITOR.replace( 'topbtitle', { 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> <!--editor files end here--> <!--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>