ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/tnpsctestbatch.com/admin/test-series-add.php

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



<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 Test Series: </b></h3>
                </div>
                <div class="box-body">
                    <div class="col-lg-12">
                        
                        
                        
    <div id="content-div">
        <form action="" id="add_subject_form" 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">Test Name</label>  
                
                <select name="exam_type" id="exam_type" class="form-control tip select2" required="required">
                    <option value="1" >TNPSC Group 1</option>  
                    <option value="2" >TNPSC Group 2/2A</option>  
                    <option value="3" >TNPSC Group 4</option>
                </select>
                </div>
                </div>
                
                <div class="col-md-4">
                    <div class="form-group">
                        <label class="required" for="file">Test Name</label>                                    
                        <input type="Text" name="test_series"  id="test_series" value="" placeholder="Enter Test Series" class="form-control tip" autocomplete="off" required="required" />
                    </div>
                </div> 
                
                 <div class="col-md-4">
                    <div class="form-group">
                        <label class="required" for="description"> Description</label>                                    
                        <input type="Text" name="description"  id="description" value="" placeholder="Enter Description" class="form-control tip" autocomplete="off" required="required" />
                    </div>
                </div> 
                
                 <div class="col-md-4">
                    <div class="form-group">
                        <label class="required" for="Title"> Title</label>                                    
                        <input type="Text" name="title"  id="title" value="" placeholder="Enter Title" class="form-control tip" autocomplete="off" required="required" />
                    </div>
                </div> 
                
                
                 <div class="col-md-4">
                    <div class="form-group">
                        <label class="required" for="file"> Keyword </label>                                    
                        <input type="Text" name="keyword"  id="keyword" value="" placeholder="Enter Keyword" class="form-control tip" autocomplete="off" required="required" />
                    </div>
                </div> 
                
                                
            </div>
            <div class="col-md-12" style="display: flex;justify-content: center;margin-top: 3%;">
                <div class="form-group">
                    <input type="submit" id="add_subject" name="add_subject" value="Add Test Series"  class="btn btn-success" />
                </div>
            </div>
        </form>
    </div>

<div id="loading-div"  style="display: none;">
    <img src="images/gif/successfull.gif" style="margin-left: 37%;width: 25%;padding-bottom: 5%;">
</div>

<div class="form-group" style="text-align:center;">
    <a href="test-series-add.php"><button class="btn btn-primary" ><i class="fa fa-refresh"></i> Reset Form</button></a>
    <a href="test-series-details.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>

<style>
    table,td,th{
        padding:5px;
    }
    th{
        border: 1px solid black;
    }
    td{
        border: 1px solid black;
        border-style: dashed;
    }
</style>


<script>

    $('#add_subject_form').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_test_series_form');
                $.ajax({
                url: 'add-api/add-mock_test-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