<script type="text/javascript">
    var eTarget;
    $(document).ready(function() {       
        $(".various").fancybox({
            //maxWidth    : 800,
            //maxHeight   : 600,
            fitToView   : true,
            width       : '85%',
            height      : '70%',
            //autoSize    : true,
            //autoScale   : true,
            closeClick  : true,
            openEffect  : 'fade',
            closeEffect : 'fade',
        });


    $( "#dialog-percotis" ).dialog({
       closeOnEscape: false,
       open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
              resizable: false,
              height: "auto",
              width: 400,
              modal: true,
              autoOpen: false,
              buttons: {
                "OK": function() {
                    var tri_cotis=$('#tri_cotis').val();
                    var per_cotis=$('#per_cotis').val();
                    var annee_cotis=$('#annee_cotis').val();
                    var employeur_id=<?php echo $employeur->id; ?>;
                    if(tri_cotis=="") {alert("Vous devez choisir un trimestre");return;}
                    if(annee_cotis=="") return;
                    var url='<?php echo url("cotisations_bordereau_cotisation"); ?>'+"/"+employeur_id; 
                    url+="/"+annee_cotis;
                    url+="/"+tri_cotis; 
                    if(per_cotis!="") url+="/"+per_cotis.replace(/\//g,"_"); 
                    window.open(url,'_blank');
                    $( this ).dialog( "close" );
                },
                Annuler: function() {
                  $( this ).dialog( "close" );
                }
              }
        });

   $.fn.dataTable.moment('D/M/YYYY');

    var table =$('.table').dataTable( {
        bAutoWidth: false,bPaginate: true,bInfo: true,
        bFilter: true,deferRender:    true,
        scrollCollapse: false,scroller:false,iDisplayLength:10,
        oLanguage: {
            "sZeroRecords": "Aucune ligne",
            "sInfo": "Affichage de _START_ &agrave; _END_ sur _TOTAL_ lignes",
            "sInfoEmpty": "Showing 0 to 0 of 0 records",
            "sInfoFiltered": "(sur un total de _MAX_ lignes)",
            "oPaginate": {"sPrevious": "Pr&eacute;c&eacute;dente","sNext": "Suivante"
                ,"sFirst": "Premi&egrave;re","sLast": "Derni&egrave;re"},
                "sSearch":"Chercher ",
            buttons: {
                colvis: 'Colonnes',
                copy: 'Copier',print: 'Imprimer',
                copyTitle: 'Ajouté au presse-papiers',
                copyKeys: 'Appuyez sur <i>ctrl</i> ou <i>\u2318</i> + <i>C</i> pour copier les données du tableau à votre presse-papiers. <br><br>Pour annuler, cliquez sur ce message ou appuyez sur Echap.',
                copySuccess: {
                    _: '%d lignes copiées',
                    1: '1 ligne copiée'
                    }
                }
            },
             dom: "<'row'<'col-sm-4 text-left'f><'col-sm-4'><'col-sm-6 text-right'>B>" +
            "<'row'<'col-sm-12'tr>>" +"<'row'<'col-sm-5'i><'col-sm-7'p>>",
            buttons: [ 
                {extend: 'copy',exportOptions: {columns: ':visible'} },
                {extend: 'excel',exportOptions: {columns: ':visible'} },
                {extend: 'print',exportOptions: {columns: ':visible'} },
                'colvis'
            ],
        } );


    });
</script><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre\resources\views/tiers/employeurs/scripts_employeur.blade.php ENDPATH**/ ?>