Mini Shell

Direktori : /home/athamevents/public_html/admin/
Upload File :
Current File : /home/athamevents/public_html/admin/gallery_add.php

<?php include 'header.php'; 
 include 'menu.php'; 
 
 if(isset($_POST['s']))
 { 
  $type=$_POST['gender'];
  $image=$_FILES["img"]["name"];
  $temp=$_FILES["img"]["tmp_name"];
  move_uploaded_file("$temp","gallery_pic/$image");
  $sql ="insert into gallery(pic,type) values('$image','$type')";
  $exe = mysql_query($sql);
 } 
 ?>




         <!-- /#Start -->
          
       <!-- /#Start -->
          
      </div><!-- /#left -->
        
      <div id="content">
        <div class="outer">
          <div class="inner bg-light lter">
            <style>
              .form-control.col-lg-6 {
                width: 50% !important;
              }
            </style>
              
              
             
             
              
              
              
              
              
              
              
            <div class="row">
              <div class="col-lg-12">
                <div class="box" style="min-height:480px;">
                  <header class="dark">
                    <div class="icons">
                      <i class="fa fa-check"></i>
                    </div>
                    <h5>New GAllery Pic Add</h5>

                    <!-- .toolbar -->
                    <div class="toolbar">
                      <nav style="padding: 8px;">
                        <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                          <i class="fa fa-minus"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-default btn-xs full-box">
                          <i class="fa fa-expand"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                          <i class="fa fa-times"></i>
                        </a> 
                      </nav>
                    </div><!-- /.toolbar -->
                  </header>
                    
                    
                    
                      <div id="collapse2" class="body">
                          
                         <h1 align="center">Add Gallery Pic</h1>
                          <br/>
             
                          <script>
function f1() {
 $("#1").show();
$("#2").hide();
$("#3").hide();
$("#4").hide();
}
                              function f2() {
 $("#1").hide();
$("#2").show();
$("#3").hide();
$("#4").hide();
}
                              function f3() {
 $("#1").hide();
$("#2").hide();
$("#3").show();
$("#4").hide();
}
                              function f4() {
 $("#1").hide();
$("#2").hide();
$("#3").hide();
$("#4").show();
} 
                          </script>
  <form action="<?php $_SERVER['PHP_SELF']?>" method="post" enctype="multipart/form-data">                      
  <input type="radio" name="gender" value="wedd"  style="width:30px; height:30px;"> <span style="font-size: 20px;">WEDDING</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="radio" name="gender" value="corp" style="width:30px; height:30px;"> <span style="font-size: 20px;"> CORPOTATE EVENTS</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
  <input type="radio" name="gender" value="poli"  style="width:30px; height:30px;"> <span style="font-size: 20px;"> POLITICAL EVENTS</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="radio" name="gender" value="othr"  style="width:30px; height:30px;"> <span style="font-size: 20px;"> OTHERS</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <!--<input type="radio" name="gender" value="othr" onclick="f4();" style="width:30px; height:30px;"> <span style="font-size: 20px;"> OTHERS</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      -->           
  
  <br/><br/><br/>
  <input type="file" name="img">   <br><br>
  <button type="submit" name="s">Upload</button>
</form>                       
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/holder/2.4.1/holder.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/Uniform.js/2.1.2/jquery.uniform.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.form/3.51/jquery.form.min.js"></script>
                          
               
    
    <style type="text/css">
      img {border-width: 0}
      * {font-family:'Lucida Grande', sans-serif;}
    </style>
                          
    <link href="upload-multiple/css/uploadfilemulti.css" rel="stylesheet">
                          
                          
                          

<script src="upload-multiple/js/jquery.fileuploadmulti.min.js"></script>

  
    <!--<div id="1">
        
<div id="mulitplefileuploader">Upload</div>

<div id="status"> </div>
<script>

$(document).ready(function()
{

var settings = {
	url: "gallery_upload1.php",
	method: "POST",
	allowedTypes:"jpg,png,gif,doc,pdf,zip",
	fileName: "myfile",
	multiple: true,
	onSuccess:function(files,data,xhr)
	{
		$("#status").html("<font color='green'>Upload is success</font>");
		
	},
    afterUploadAll:function()
    {
        alert("all images uploaded!!");
    },
	onError: function(files,status,errMsg)
	{		
		$("#status").html("<font color='red'>Upload is Failed</font>");
	}
}
$("#mulitplefileuploader").uploadFile(settings);

});
</script> 
</div>
                          
                          
<div id="2" style="display:none;">
        
<div id="mulitplefileuploader2">Upload</div>

<div id="status"></div>
<script>

$(document).ready(function()
{

var settings = {
	url: "gallery_upload2.php",
	method: "POST",
	allowedTypes:"jpg,png,gif,doc,pdf,zip",
	fileName: "myfile",
	multiple: true,
	onSuccess:function(files,data,xhr)
	{
		$("#status").html("<font color='green'>Upload is success</font>");
		
	},
    afterUploadAll:function()
    {
        alert("all images uploaded!!");
    },
	onError: function(files,status,errMsg)
	{		
		$("#status").html("<font color='red'>Upload is Failed</font>");
	}
}
$("#mulitplefileuploader2").uploadFile(settings);

});
</script>
                          </div>
                          
                          
<div id="3" style="display:none;">
        
<div id="mulitplefileuploader3">Upload</div>

<div id="status"></div>
<script>

$(document).ready(function()
{

var settings = {
	url: "gallery_upload3.php",
	method: "POST",
	allowedTypes:"jpg,png,gif,doc,pdf,zip",
	fileName: "myfile",
	multiple: true,
	onSuccess:function(files,data,xhr)
	{
		$("#status").html("<font color='green'>Upload is success</font>");
		
	},
    afterUploadAll:function()
    {
        alert("all images uploaded!!");
    },
	onError: function(files,status,errMsg)
	{		
		$("#status").html("<font color='red'>Upload is Failed</font>");
	}
}
$("#mulitplefileuploader3").uploadFile(settings);

});
</script>
                          </div>
                          
<div id="4" style="display:none;">
        
<div id="mulitplefileuploader4">Upload</div>

<div id="status"></div>
<script>

$(document).ready(function()
{

var settings = {
	url: "gallery_upload4.php",
	method: "POST",
	allowedTypes:"jpg,png,gif,doc,pdf,zip",
	fileName: "myfile",
	multiple: true,
	onSuccess:function(files,data,xhr)
	{
		$("#status").html("<font color='green'>Upload is success</font>");
		
	},
    afterUploadAll:function()
    {
        alert("all images uploaded!!");
    },
	onError: function(files,status,errMsg)
	{		
		$("#status").html("<font color='red'>Upload is Failed</font>");
	}
}
$("#mulitplefileuploader4").uploadFile(settings);

});
</script>
                          </div>  -->
                          
                          <br/><br/><br/>
                          
                          <form action="all_gallery.php">
                          
                          
                           <div class="form-actions no-margin-bottom" align="center">
                              
                        <input type="submit" value="View Pic" class="btn btn-primary">
                              
                      </div>
                    
                          
                          </form>
                          
                          
                          
                          
                          
                          
                          
                          
                  </div>
                </div>
              </div><!-- /.col-lg-12 -->
            </div><!-- /.row -->
           
              
              
            
          </div><!-- /.inner -->
        </div><!-- /.outer -->
      </div><!-- /#content -->
      
    </div><!-- /#wrap -->


        
     

      
              <footer class="Footer bg-dark dker">
              <p>Copyright © 2023 Atham Events </p>
    </footer><!-- /#footer -->

    <!-- #helpModal -->
    <div id="helpModal" class="modal fade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title">Modal title</h4>
          </div>
          <div class="modal-body">
            <p>
              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
              in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div><!-- /.modal --><!-- /#helpModal -->

    <!--jQuery -->
   <!--jQuery -->


    <!--Bootstrap -->
    <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>

    <!-- MetisMenu -->
    <script src="//cdnjs.cloudflare.com/ajax/libs/metisMenu/1.1.3/metisMenu.min.js"></script>

    <!-- Screenfull -->
    <script src="//cdnjs.cloudflare.com/ajax/libs/screenfull.js/2.0.0/screenfull.min.js"></script>
    <script src="assets/lib/plupload/js/plupload.full.min.js"></script>
    <script src="assets/lib/plupload/js/jquery.plupload.queue/jquery.plupload.queue.min.js"></script>
    <script src="assets/lib/jquery.gritter/js/jquery.gritter.min.js"></script>
    <script src="assets/lib/formwizard/js/jquery.form.wizard.js"></script>

    <!-- Metis core scripts -->
    <script src="assets/js/core.min.js"></script>

    <!-- Metis demo scripts -->
    <script src="assets/js/app.js"></script>
    <script>
      $(function() {
        Metis.formWizard();
      });
    </script>
    <script src="assets/js/style-switcher.min.js"></script>
  </body>
  

Zerion Mini Shell 1.0