MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.161
Web Server : LiteSpeed
System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u490972518 ( 490972518)
PHP Version : 5.6.40
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u490972518/domains/ppschool.org.in/public_html/gsmps/css1/../sale_new/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/ppschool.org.in/public_html/gsmps/css1/../sale_new/gallery.php
<?php
include('php-includes/connect.php');
include('php-includes/check-login.php');
$userid = $_SESSION['userid'];
//echo $userid;
//$capping =150000;

	
		
?>



<?PHP include("link/header.php")?>
<!--main content start-->
<style>label{color:black;}</style>
<script>
			$(document).ready(function(){
				showdata();
				$("#regform").submit(function(e){
					
					e.preventDefault();
					$.ajax({
						url:"code/gallerycode.php?flag=9",
						type:"POST",
						data: new FormData(this),
						contentType:false,
						processData:false,
						cache:false,
						success:function(res){
							alert(res);
							$("#regform").trigger("reset");
							showdata();
						},
						error:function(){
							alert("error");
						}
						
					});
					
				});
			});
			
			function showdata()
			{
				$("#modal").load("code/gallerycode.php?flag=10");
			}
			
			function deleterow(id)
			{
				//alert(id);
				var a=confirm("Are You Sure");
				if(a==true)
				{
					$.ajax({
						url:"code/gallerycode.php?flag=11",
						type:"POST",
						data:{rowid:id},
						success:function(res){
							alert(res);
							showdata();
						},
						error:function(){
							alert("error");
						}
					});
				}
			}
			</script>

<section id="main-content" style="background:url(images/body_bg.jpg) repeat;">
	<section class="wrapper">
	<div id="page-wrapper" >
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                      <h2 style='font-weight:bold'> Gallery Image Add</h2>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <div class="row" >
				
                	<div class="col-lg-8" >
					<br/>
                    	 <form id="regform">
      <div class="panel-body">
	 <div class="form-group">
	 <label class="col-sm-5">Image</label>
	 <div class="col-sm-5"><input type="file" class="form-control" name="photo"/>
	 
	 <br/>
	 </div>

	 
	 <label class="col-sm-5">Title</label>
	 <div class="col-sm-5"><input type="text" class="form-control" name="title"/>
	 <br/><br/>
	 <center><button class="btn btn-success">Submit</button></center>
	 
	 </div>
	 </form>
                    </div>
                </div><!--/.row-->
            </div>
            <!-- /.container-fluid -->
			<div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header"> List</h1>
										<?php
	
 
	?>
	
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="jq/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="jq/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/>


<script src="jq/jquery.dataTables.min.js"></script>
<script src="jq/dataTables.buttons.min.js"></script>
<script src="jq/buttons.flash.min.js"></script>
<script src="jq/jszip.min.js"></script>
<script src="jq/pdfmake.min.js"></script>
<script src="jq/vfs_fonts.js"></script>
<script src="jq/buttons.html5.min.js"></script>
<script src="jq/buttons.print.min.js"></script>
	
<div id='modal'></div>

	
	
                    </div>
                    <!-- /.col-lg-12 -->

                </div>
        </div>
		
        <!-- /#page-wrapper -->
<br/>
<br/>

    </div>

	
</section>

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>
<script>
  $.validate({
    modules : 'html5',
	modules : 'file'
  });
</script>
 <!-- footer -->
 
		  <?php include('link/footer.php');
		  
		  

		  ?>
  <!-- / footer -->
</section>
<!--main content end-->
</section>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.dcjqaccordion.2.7.js"></script>
<script src="js/scripts.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/flot-chart/excanvas.min.js"></script><![endif]-->
<script src="js/jquery.scrollTo.js"></script>
<!-- morris JavaScript -->	


	<!-- //calendar -->
</body>
</html>

MMCT - 2023