ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/ui-api/
Upload File :
Current File : //proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/ui-api/current_affairs_title-add.php

<?php  include "header.php";?>

<style>
    .btn-success.hover, .btn-success:active, .btn-success:hover{
        background-color: darkred;
        border-color: darkred;
    }
    .btn-success {
        background-color: darkviolet;
        border-color: #9400d3;
        /*border-radius: 20px;*/
    }
    .btn-primary {
        background-color: chocolate;
        border-color: #d2691e;
    }
    .btn-warning {
        background-color: tomato;
        border-color: #ff6347;
    }
</style>

<div class="content-wrapper" style="background:white;">
        <div class="clearfix"></div>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div>
                <div class="box-header">
                    <h3 class="box-title"><b>Add New Question: </b></h3>
                </div>
                <div class="box-body">
                    <div class="col-lg-12">
                        
                        <div id="loading-div"  style="display: none;">
                            <img src="images/gif/successfull.gif" style="margin-left: 37%;width: 25%;padding-bottom: 5%;">
                        </div>
                        <div id="content-div">
                            <form action="" id="add_question" enctype="multipart/form-data" method="post" accept-charset="utf-8">
                                
                                <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="required" for="file">Current Affairs Quiz Title</label>                                    
                                        <input type="text" name="c_title" id="title" value="" placeholder="Enter Current Affairs Quiz Title" class="form-control tip" required="required">
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="required" for="file">Current Affair Date </label>                                    
                                        <input type="date" name="c_date" id="question_a" value="" placeholder="Enter Current Affairs Quiz Date" class="form-control tip" required="required">
                                    </div>
                                </div>
                                <!--<div class="col-md-4">
                                    <div class="form-group">
                                        <label class="required" for="file">On page Description Content</label>                                    
                                        <input type="text" name="on_page_description" id="on_page_description" value="" placeholder="Enter On Page description Content" class="form-control tip" required="required">
                                    </div>
                                </div>-->
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="required" for="file">Thumpnail</label>                                    
                                        <input type="file" name="thumpnail" id="thumpnail" value="" class="form-control tip" required="required">
                                    </div>
                                </div>
                                
                                 <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="required" for="file">Meta Keywords</label>                                    
                                        <input type="text" name="meta_keywords" id="meta_keywords"  placeholder="Enter Meta Keyword" class="form-control tip" required="required">
                                    </div>
                                </div>
                                 <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="required" for="file">Meta Description / On page Description Content</label>                                    
                                        <textarea type="text" name="meta_description" id="meta_description"  placeholder="Enter Meta Description" class="form-control tip" required="required"></textarea>
                                    </div>
                                </div>
                               
                                
            
                                </div>
                        
                                <div class="col-md-12" style="display: flex;justify-content: center;margin-top: 3%;">
                                        <div class="form-group">
                                            <!--<label class="required" for="file">Action</label><br>-->
                                            <input type="submit" id="add_title" name="add_title" value="Add Title"  class="btn btn-success" />
                                        </div>
                                    </div>
                                
                            </form>
                        </div>



<div class="form-group" style="text-align:center;">
    <a href="current_affairs_title-add.php"><button class="btn btn-primary" ><i class="fa fa-refresh"></i> Reset Form</button></a>
    <a href="current_affairs-add.php"><button class="btn btn-warning" ><i class="fa fa-chevron-left"></i> Back to List</button></a>
 </div>
                    
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</section>


<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<script>
 $('#add_question').on('submit', function(e){
        console.log("Click And Form Working");
      
            e.preventDefault();
            $('#loading-div').show();
            $('#content-div').hide();
            var formData = new FormData(this);
            formData.append('type', 'add_c_title');
                $.ajax({
                url: 'add-api/add-question-form.php',
                type: 'post',
                dataType: 'json',
                data: formData,
                cache: false,
                contentType: false,
                processData: false,
                enctype: 'multipart/form-data',
                success: function (response) {
                    if(response['status']==200){
                         alert(response['message']);
                         
                         
                         $("#add_shifts .close").click();
                         
                         
                         $('#shift_add_form').trigger("reset");
                         emp_datas();
                         $('#loading-div').hide();
                         $('#content-div').show();
                    }else{
                        alert(response['message']);
                        $('#loading-div').hide();
                        $('#content-div').show();
                    }
                    
                   
                }
            });
                
    });
</script>


<?php include "footer.php";?>

Zerion Mini Shell 1.0