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/job_recruitment.php

<?php include('header.php'); ?>
<div class="page-wrapper">
	<div class="page-content">
	   <div class="card card-body">
	       <div class="tab-content ">
<!--new order start-->
    <div class="tab-pane fade show active" id="new" role="tabpanel">
      
<a  href="recruitment-add.php" class="btn btn-success btn-sm" style="float: right;"><i class="fa fa-plus-circle"></i> Add Recruitment</a>

<?php if(!isset($_SESSION['y1_organization'])){ ?>

    <span class="btn btn-secondary btn-sm filter" style="float: right; margin-right: 5px;"><i class="bi bi-funnel"></i> Show/Hide Filter</span>

<?php } ?>

<b style="font-size:14px;">Recruitment Details</b>
                    


<div class="row" style="margin: 10px 0px 10px 0px;" id="filter">
    
    <div class="col-sm-3">
        <div class="form-group">
            <label class="control-label" for="status">Status</label>
            <select name="status" class="form-control select2" style="width:100%" id="status">
                <option value="1">Active</option>
                <option value="0">In-Active</option>
            </select>
        </div>
    </div>
    
    
     <div class="col-sm-3">
        <div class="form-group">
            <label class="control-label" for="category_id">Select Category</label>
            <select name="category_ids" onchange="get_subcategory()" class="form-control select2" style="width:100%" id="category_ids">
                <?php 
                    $statement = $pdo->prepare("SELECT * FROM `category` WHERE status=1");
                    $statement->execute();
                    $resultss = $statement->fetchAll(PDO::FETCH_ASSOC); 
                    foreach ($resultss as $result) { 
                ?>
                        <option  value="<?=$result['id']?>"><?=$result['name']?></option>
                <?php } ?>
            </select>
        </div>
    </div>
    <div class="col-sm-3">
        <div class="form-group">
            <label for="sub_category" class="form-label required">Select Subcategory</label>
		    <select class="form-control select2" id="sub_category" name="sub_category" >
		            <option value="">All Subcategory</option>
                        
		    </select>
        </div>
    </div>
   
</div>

<div class="row" style="margin:10px 0px 10px 0px;" >
    
    
    
    
    <!--payment status-->
    
<?php if((($_SESSION['y1_organization']['payment_status']) == 0)&&($_SESSION['y1_jobs']['role_json']!=2) && ($_SESSION['y1_jobs']['id']!= 1) ){ ?>
            <center style='color:red;'> Payment Pending</center>
<?php }  ?>
    
</div>
	    <table id="DataTable">
	        <thead>
	            <tr>
	                <th>Actions</th>
	                <th>S.No</th>
	                <th>Client Name</th>
	                <th>Sub Category</th>
    	            <th>job Vacancy</th>
    	            <th>Employee Count</th>
    	            <th>Minimum Experience</th>
    	            <th>Salary</th>
    	            <th>Job Description</th>
    	            <th>Status</th>
    	        </tr>
	        </thead>
	    </table>

	    
	    
	</div>
<!--new order end-->
			</div>
	    </div>
	</div>
</div>

<style>
    table{ width:100%;font-size:14px;font-family: SFProDisplay-Semibold;}
    th{padding:10px;font-weight:bold;}
    td{padding:7px;}
    tr{margin:5px;}
   thead,tr{
        border: 0 solid transparent;
        margin-bottom: 1.5rem;
        border-radius:5px;
        box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 2px 6px 0 rgb(206 206 238 / 54%);
   }.span-success{
        background: #819558;
        color: white;
        padding: 3px 6px 3px 6px;
        border-radius: 15px;
   }
   

   .breadcrumb-title {
    font-size: 20px;
    border-right: 0px solid #ffffff !important;
}
</style>

<script>
<?php
$data_table = "var status = $('#status').val();
               var category_id = $('#sub_category').val();
			   var dataTable = $('#DataTable').DataTable( {									     
					processing: true,
					order:[[0,'asc']],
					 columnDefs: [
                             {
                                 targets: [0], 
                                 visible: false 
                             }
                          ],
    				serverSide: true,
					lengthMenu: [[10, 25, 50, 100], [10, 25, 50, 100]],
                    destroy:true,
                        ajax:{
    						url : 'data-tables/job_vacancy_data-table.php',
    						data: {type:'get_hostel_details',status:status,category_id:category_id},
    						type: 'post',  
    						error: function(){ 
    							$('.example-error').html('');
    							$('#DataTable').css('display','none');
    						}
    					}
				});";

?>
$(document).ready(function() {
    getData();
    function getData(){
        <?=$data_table?>
	}
			    
	$('#status,#sub_category').change(function() {
            getData();
        });
});

function delete_vacancy(id){
            var result = confirm("Confirm Want to Delete This Details?");
           
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'hard_delete',delete_id:id,table_name:'tbl_job_vacancy'},                  
                    success: function(response) {
                        console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
function emp_datas(){
    <?=$data_table?>
}
/***********************************/        

</script>
<script>
function custom_view(file_name,id){
    $('#new_con').empty();
    $('#'+id).load("ui-pages/orders/"+file_name+".php");
}
</script>

<?php include('footer.php'); ?>
<script>
    $(document).ready(function(){
        $('#filter').hide();
        $('.filter').click(function(){
            $("#filter").slideToggle();
            return false;
        });
    });
    
    
    function get_subcategory(){
        
        
    $('#sub_category').empty(); 
    var category_id = $('#category_ids').val();
            $.ajax({
                    url: 'api/get-subcategory-api.php',
                    type: 'post',
                    dataType: 'json',
                    data: {type:'get_subcategory',category_id:category_id},
                    success: function (response) {
                        console.log(response);
                         if(response['error']==false){
                                var m='<option value="">All Subcategory</option>';
                                for(var n=0;n<response['data'].length;n++){
                                    
                                        m+='<option value='+response['data'][n]['id']+'>'+response['data'][n]['name']+'</option>';
                 
                                }
                                $('#sub_category').append(m);  
                        }else{
                            var m='<option value="">No Subcategory Found</option>';
                            $('#sub_category').append(m);  
                        }
                    }
                });
}
</script>



Zerion Mini Shell 1.0