ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/y1jobportal.in/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/y1jobportal.in/admin/slider-add.php

<?php include('header.php'); ?>

<div class="page-wrapper">
	<div class="page-content">
	    <div class="row">
	        <div class="col-xl-12 mx-auto">
	            <div class="card">
			        <div class="card-body">
        			    <form id="add_client_details"> 
            			    <h6 class="mb-1">Add Slider Image</h6>
            			 
            			    <div class="row g-3">
            			        <div class="col-12 col-lg-12">
            			        	<!--<b class="mr-top-20">To whom is the order suppliers?</b> <span class="color-liht-gray">(Client's Info)</span>-->
            					</div>
                					<div class="col-12 col-lg-4">
                						<div class="col-md-12">
                								<label for="input13" class="form-label required">Slider Image</label>
                								<div class="position-relative input-icon">
                								<input type="file" name="slider_image" class="form-control" id="slider_image" required>
                								<span class="position-absolute top-50 translate-middle-y"><i class="bx bx-user"></i></span>
                							</div>
                						</div>
                    				</div>
                					<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
                						<center><button type="submit" name="save" class="btn btn-primary px-5">Save</button></center>
                					</div>
            			    </div>
            			</form>
            			<br>
    			           <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
        						<center><a href="slider-add.php" name="save" class="btn btn-warning px-5">Reset Form</a>
        						&nbsp;&nbsp;&nbsp;	<a href="slider.php" name="save" class="btn btn-success px-5">Slider List</a>
        						</center>
        				
        						
        					</div>
            			
            			
		        	</div>
	        	</div>
	        </div>
	   </div>
	</div>
</div>
<style>
.card {
    border: 0 solid transparent;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 2px 6px 0 rgb(206 206 238 / 54%);
}
    .card {
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: ;
    --bs-card-subtitle-color: ;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: var(--bs-border-color-translucent);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
    --bs-card-cap-color: ;
    --bs-card-height: ;
    --bs-card-color: ;
    --bs-card-bg: var(--bs-body-bg);
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
}
</style>

<script>
		    $(document).ready(function(){
		        $(".select2").select2({
                     containerCssClass: "error",
                     dropdownCssClass: "test"
                 });
		        //Pickup Address Form Start
		        $( "#add_client_details" ).validate( {
    				rules: {
    				
    					slider_image: "required",
    				
    				},
    				messages: {
    					client_first_name: {
    						required: "please Select a Slider Image"
    					},
    				
    					
    				},
                        submitHandler: function(form) {
                            add_client_details(form);
                        }
    			} );
    			
   
    			
        		function add_client_details(form){
        		    console.log("Form Working");
        		    $('#loader').show();
        		    var formData = new FormData(form);
                        $.ajax({
                                url: 'api/add_slider.php',
                                type: 'post',
                                dataType: 'json',
                                data: formData,
                                cache: false,
                                contentType: false,
                                processData: false,
                                enctype: 'multipart/form-data',
                                success: function (response) {
                                    console.log(response);
                                    if(response['error']==false){
                                        $('#exampleExtraLargeModal').modal('hide');
                                        $('#add_client_details').trigger("reset");
                                        $('#loader').hide();
                                        success(response['message']);
                                    }else{
                                        $('#loader').hide();
                                        warning(response['message']);
                                    }
                                }
                            });
        		}
    
    			
		        //Pickup Address Form End
		        
		        
		        
		        
		        
		    });  
		   
		</script>


<?php include('footer.php'); ?>


Zerion Mini Shell 1.0