ok

Mini Shell

Direktori : /home2/selectio/public_html/thedentalpark.com/admin/
Upload File :
Current File : /home2/selectio/public_html/thedentalpark.com/admin/category.php

<?php  include "header.php";?>
<div class="content-wrapper" style="background:white;">
       
        <div class="clearfix"></div>
        
        <?php 
        
            $data_tables = " var search_table = $('#search_table').val();
            var table = $('#ajay').DataTable({

                    'ajax' : { 
                        url: 'data-tables/category-data-table.php', 
                        data:{search:search_table}, 
                        type: 'POST'},
                        bFilter: true,
                        bDestroy: true,
                        searching: true,
                        pageLength: 10,
                    'buttons': [
                    { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } },
                    { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } },
                    { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } },
                    { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false,
                    exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ] } },
                    { extend: 'colvis', text: 'Columns'},
                    ]

                });";
        
        ?>

<script type="text/javascript">
    $(document).ready(function() {        
        emp_data();
        function emp_data(){
            <?= $data_tables ?>
        }
        
        

        
        $('#search_table').keyup(function() {  
            <?= $data_tables ?>
            document.getElementById("search_tabless").focus();
        });

    });
    
      function emp_datas(){
             <?= $data_tables ?>
        }
   
         function delete_category(id){
            var result = confirm("Confirm Want to Delete This Category?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'dynamic_in_active',delete_id:id,table:'tbl_category'},                  
                    success: function(response) {
                        console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
         
        
         function dynamic_active(id){
            var result = confirm("Confirm want to Active This Category?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'dynamic_active',delete_id:id,table:'tbl_category'},                  
                    success: function(response) {
                        console.log(response); 
                        emp_datas();
                    }
                });
            }
         } 
         
         
         
         
       
</script>


<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div >
                <div class="box-header">

            
   <?php if($_SESSION['ganesh_college']['id']==1){ ?>         
                    <a  href="category-add.php" class="btn btn-success btn-sm pull-right"><i class="fa fa-plus-circle"></i> Add Category</a> 
    <?php } ?>
                    <h3 class="box-title"><b><i class="fa fa-list"></i> Category List</b></h3>
                </div>
                <div class="box-body">

<div class="clearfix"></div>


                    <div class="table-responsive">
                        <table id="ajay" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;font-size: 14px;">
                            <thead>
                                <tr>
                                    <td colspan="4" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table"  placeholder="Search Here" style="width:100%;background-color: <?=$theme_color?>color: white;"></td>
                                </tr>
                                <tr class="active">
                                    <th style="width:100px;">Actions</th>
                                    <th>S.No</th>
                                    <th>Name</th>
                                    <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="4" class="dataTables_empty"><center> Loading Please Wait</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</section>
<?php include "footer.php";?>

Zerion Mini Shell 1.0