ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/subamangala/admin/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/subamangala/admin/profiles-list.php

<?php  include "header.php";?>
<div class="content-wrapper" style="background:#ecf0f5;">
        <div class="col-lg-12 alerts">
            <div id="custom-alerts" style="display:none;">
                <div class="alert alert-dismissable">
                    <div class="custom-msg"></div>
                </div>
            </div>
            <?php if ($error)  { ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-ban"></i> Error</h4>
                <?= $error; ?>
            </div>
            <?php } if ($warning) { ?>
            <div class="alert alert-warning alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-warning"></i> Warning</h4>
                <?= $warning; ?>
            </div>
            <?php } if ($message) { ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4>    <i class="icon fa fa-check"></i> Success</h4>
                <?= $site_name; ?>
            </div>
            <?php } ?>
        </div> 
        <div class="clearfix"></div>
<?php 

$data =" var search_table =$('#search_table').val();
         var profiles_id =$('#profiles_id').val();
          var table = $('#StData').DataTable({

                    'ajax' : { 
                        url: 'data-tables/profiles-data-table.php', 
                        data:{search:search_table,table:table,profiles_id:profiles_id}, 
                        type: 'POST'},
                        bFilter: true,
                        bDestroy: true,
                        searching: true,pageLength: 10,
                    'buttons': [
                    { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25] } },
                    { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25] } },
                    { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25] } },
                    { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false,
                    exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25] } },
                    { extend: 'colvis', text: 'Columns'},
                    ]

                });
                table.column(5).visible(false);
                table.column(9).visible(false);
                table.column(10).visible(false);
                table.column(14).visible(false);
                table.column(16).visible(false);
                table.column(17).visible(false);
                table.column(18).visible(false);
                table.column(19).visible(false);
                table.column(20).visible(false);
                table.column(21).visible(false);
                table.column(22).visible(false);
                table.column(23).visible(false);";
?>
<style>
    table.dataTable th:nth-child(23),
table.dataTable th:nth-child(25) {
  width: 70px;
  max-width: 70px;
 
}

table.dataTable td:nth-child(23),
table.dataTable td:nth-child(25){
  width: 70px;
  max-width: 70px;
  word-break: break-all;
  white-space: pre-line;
}
</style>
<script type="text/javascript">
    $(document).ready(function() {        
        emp_data();
        function emp_data(){
               <?=$data?>
                
        }
       
        $('#btngetEmployee').click(function() {
            emp_data();
        });
        
        $('#search_table').keyup(function() {  
           
            <?=$data?>
            document.getElementById("search_table").focus();
            //table.search(this.value).draw();       
        });

    });
    function delete_employee(id){
            var result = confirm("Confirm want to delete this Holiday?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'employee_delete',delete_id:id,table_name:'tbl_user'},                  
                    success: function(response) {
                        //console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
         
      function delete_profiles(id){
            var result = confirm("Confirm want to delete this Profile?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'profiles_delete',delete_id:id,table_name:'profiles'},                  
                    success: function(response) {
                        //console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
         
         function emp_datas(){
             <?=$data?>
        }
</script>


<section class="content">
    
      <center style="font-weight: bolder;font-size: 25px;color: brown;">பதிவு பட்டியல்</center>
    
    
    <!-- Header Section Starts Here -->
    
   <!-- <div class="row" style="">
        <div class="col-md-10 col-sm-10 col-xs-8">
            <div style="list-style: none; padding-inline-start: 0px; padding: 5px 0px 5px 0px;">
                <?php include "header/caste_sub_header.php"; ?>
             </div>
        </div>

    </div>
        -->
            <div style="padding-top: 10px;" id="filter_search">
                <input type="text" name="search_table" id="search_table"  placeholder="Search Here" class="form-control tamil" style="background: darkturquoise; width: 100%; padding: 0px 10px 0px 10px; font-size: 16px; height: 58px; font-weight: 700; font-size:22px;color: white; -webkit-text-fill-color: white;">
            </div>
        
    <!-- Header Section Endsss Here -->
  <?php  
    if(!empty($_GET['id'])){
    $profiles_ids = explode(',', $_GET['id']);
    
}else{
    $profiles_ids ='';
}
?>    
    
    
    
      <div class="row" hidden>
          <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">Profiles Id</label>                                   
                   
                    <select name="profiles_id[]" class="form-control select2" id="profiles_id" required="required" multiple>
                        <option value="">Profile Id/option>
                        <?php $statement = $pdo->prepare("SELECT * FROM `profiles`");
                        $statement->execute();
                        $location_result = $statement->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result as $result) { ?>
                           <option value="<?=$result['id']?>" <?php if(in_array($result['id'], $profiles_ids)){ echo "selected";} ?>><?=$result['id']?></option>
                      <?php  } ?>
                     </select>
                </div> 
         </div>
      </div>
    
    
    <!-- Data Tables Starts Here -->
    <div class="row" style="padding-top: 15px;">
        
        <div class="col-xs-12">
            <div class="box box-warning">
                <div class="box-body" style="box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;">
                    
                    <div class="clearfix"></div>
                    
                    <div class="table-responsive">
                        <table id="StData" class="table table-striped table-bordered table-condensed table-hover display" style="width:100%; margin-bottom:5px;font-size: 12px;">
                            <thead>
                                <tr class="active">
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;padding-right: 45px;">Action&nbsp&nbsp&nbsp&nbsp&nbsp</span></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"  data-sortable="false" id="checkAll"><i class="fa fa-check"></i><span id="d" ></span></th>
                                    <th style="text-align:center;background-color:darkcyan;color:white;font-size:20px;"><strong>ப.மு.</strong></th>
                                    <th style="text-align:center;background-color:darkcyan;color:white;font-size:20px;"><strong>பதிவு&nbspஎண்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>பெயர்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>தம்மி&nbspபெயர் </strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>செல்போன்&nbspஎண்</strong></th>
                                   
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>பிறந்த&nbspதேதி</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>பாலினம்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>ஜாதி</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>உட்&nbspபிரிவு</strong></th>
                                    
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>ராசி</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>நட்சத்திரம்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>படிப்பு</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>அப்பா&nbspபெயர்</strong></th>
                                     <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>அப்பா&nbspடம்மி&nbspபெயர் </strong></th>
                                    
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>இருப்பிடம்</strong></th>
                                   <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>குடும்ப&nbspஅடையாளம் </strong></th>
                                   
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>பதிவு&nbspதேதி</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>புரோக்கர்&nbspபெயர்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>பதிவிட்டவர்&nbspபெயர்</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Login&nbspStatus</strong></th>
                				   <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Total&nbspMatches</strong></th>
                				   <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Limit&nbspCount</strong></th>
                				   <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Days&nbspLimit</strong></th>
                				   <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>மனமானவரா </strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Set&nbspPreferance</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Admin&nbspPreferance</strong></th>
                                    <th style="text-align:left;background-color:darkcyan;color:white;font-size:20px;"><strong>Image&nbsp;View</strong></th>
                                </tr>
                            </thead>
                            <tbody style="font-size: larger;font-weight:bold">
                                <tr>
                                    <td colspan="10" class="dataTables_empty"><center> Loading Pls Wait Data</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                        
                    <div class="col-md-12" style="text-align:center;">
				    	<a href="#" class="btn btn-warning btn-sm" id="print_lable"><i class="fa fa-tags"></i> ஆச்சு நகல் எடு  </a>
				    </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <!-- Data Tables Endsss Here -->
</section>
<script>
      $(document).ready(function() {  
    
  $('#checkAll').click(function () { 
        var d=$('#d').text();
        if(d==''){
            $('#d').text('checked');
            $('.s').prop('checked',true);
        }else{
            $('#d').text('');
            console.log('un checked');
             $('.s').prop('checked',false);
        }
 });
 
    $('.checkboxs').on('click',function(){
        console.log('clicked');
    });
    
     $('#print_lable').on('click',function(){
    var checkValues = $('input[name=assign_ids]:checked').map(function(){
                return $(this).val();
            }).get();

    if(checkValues != '' ){
       
       var result = confirm("Conform Do You Want Print This id");
if (result) {
    window.open('profile-print.php?id='+checkValues, '_blank');
   // window.location.href ="profile-print.php?id="+checkValues;
    //Logic to delete the item
     //console.log(checkValues);
           /* var ids=[];
            ids = checkValues;
            $.ajax({
                    type: 'POST',
                    url: 'story-details-soft-delete.php',
                    data: {ids:ids},                  
                    success: function(response) {
                       
                        window.location.href ="story-details.php";
                    }
                });*/
}

	   
    }else{
        alert("Please Select Minimum One Product Lable");
    }
    }); 
  
});  
</script>

<?php include "footer.php";?>
<script>
    $(document).ready(function(){
        $('#filter_section').hide();
        $('#show_filter').click(function(){
            $("#filter_section").slideToggle();
            return false;
        });
        $('#filter_search').show();
        $('#show_search').click(function(){
            $("#filter_search").slideToggle();
            return false;
        });
    });
</script>
<style>
   .s {
    /*margin: 4px 0 0;*/
    /*margin-top: 1px\9;*/
    /*line-height: normal;*/
    width: 20px !important;
    height: 20px !important;
    /*margin-left: 6px !important;*/
}
</style>

Zerion Mini Shell 1.0