   <!-- Bootstrap Core Css -->
 
   <!-- Bootstrap Core Css -->
    <link href="https://gurayyarar.github.io/AdminBSBMaterialDesign/plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
    
           <!-- JQuery DataTable Css -->
    <link href="https://gurayyarar.github.io/AdminBSBMaterialDesign/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
  
    <link href="https://gurayyarar.github.io/AdminBSBMaterialDesign/css/style.css" rel="stylesheet">

<style>
    
    .dataTables_paginate .paginate_button{ margin:10px;cursor: pointer;}
    
</style>
   
<?php
 
   $jsonAdmin = json_decode($_SESSION['fideliza_logado-admin']);
   $r = $jsonAdmin->ad_id;    
 
    /* CADASTROS RECENTES */
	$select_db->ExeRead("*",  'fid_clientes', " WHERE fid_ref = :r AND  fid_data LIKE '%' :d '%'", "r={$r}&d={$data}");

	$mes_extenso = array(
        '01' => 'Janeiro',
        '02' => 'Fevereiro',
        '03' => 'Marco',
        '04' => 'Abril',
        '05' => 'Maio',
        '06' => 'Junho',
        '07' => 'Julho',
        '08' => 'Agosto',
        '09' => 'Setembro',
        '10' => 'Outubro',
        '11' => 'Novembro',
        '12' => 'Dezembro'
    );

?>	
 
   <section>



            <!-- Exportable Table -->
            <div class="row clearfix">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="card">
                        <div class="header">
                            <h2>
                             TABELA DE CLIENTES
                            </h2>
                     
                        </div>
                        <div class="body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-striped table-hover dataTable js-exportable">
                                    <thead>
                                        
                                        
                                        <tr>
                                            <th>Name</th>
                                            <th>Email</th>
                                            <th>CPF</th>
                                            <th>Telefone</th>
                                            <th>Status</th>
                                            <th>Opções</th>
                                        </tr>
                                    </thead>
                                    <tfoot>
                                        <tr>
                                         <th>Name</th>
                                            <th>Email</th>
                                            <th>CPF</th>
                                            <th>Telefone</th>
                                            <th>Status</th>
                                            <th>Opções</th>
                                        </tr>
                                    </tfoot>
                                    <tbody>
                                       
                                       
                                                                        
    <?php
	  //date('d/m/Y H:i:s', strtotime($select_db->getResult()[$i]['fid_data']))
	  for($i=0;$i<count($select_db->getResult());$i++){
		  
	   	  echo '<tr>
		   <td>' . $select_db->getResult()[$i]['fid_nome'] . '</td>
		   <td>' . $select_db->getResult()[$i]['fid_email'] . '</td>
		   <td>' . $select_db->getResult()[$i]['fid_cpf'] . '</td>
		   <td>' . $select_db->getResult()[$i]['fid_celular'] . '</td>
		   <td>' . $select_db->getResult()[$i]['fid_status'] . '</td>
		   <td>
		   <a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" style="cursor: pointer" onclick="TerminalAdmin.ClientesAusentes();window.setTimeout(function(){$(".pageloader2").fadeout();},2000)">
		   <i class="material-icons color1" style="font-size: 23px;">visibility</i></a>
		    <a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" style="cursor: pointer" onclick="TerminalAdmin.ClientesAusentes();window.setTimeout(function(){$(".pageloader2").fadeout();},2000)">
		   <i class="material-icons color1" style="font-size: 23px;color: #e3b500;">edit</i></a>
		   	<a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" style="cursor: pointer" onclick="TerminalAdmin.ClientesAusentes();window.setTimeout(function(){$(".pageloader2").fadeout();},2000)">
		   <i class="material-icons color1" style="font-size: 23px;color: #ee3131;">delete</i></a>
		   
		   </td>
		   </tr>';
		  
	  }
	  
	?> 
       
                                       
                                      
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Exportable Table -->

    </section>



    <!-- Jquery Core Js -->
    <script src="https://gurayyarar.github.io/AdminBSBMaterialDesign/plugins/jquery/jquery.min.js"></script>


   <!-- Jquery DataTable Plugin Js -->
    <script src="https://gurayyarar.github.io/AdminBSBMaterialDesign/plugins/jquery-datatable/jquery.dataTables.js"></script>


     
  <script>
  
window.setTimeout(function(){


    //Exportable table
    jQuery('.js-exportable').DataTable({
        dom: 'Bfrtip',
        responsive: true,
        buttons: [
            'copy', 'csv', 'excel', 'pdf', 'print'
        ]
    });
     
}, 2000);

  </script>

