version
This commit is contained in:
@@ -1,69 +1,59 @@
|
||||
<!-- Vendor JS -->
|
||||
<script src="Bootstrap/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<?php
|
||||
// Réutilisation de la version définie dans le head ou redéfinition si besoin
|
||||
$v_scripts = defined('APP_VERSION') ? APP_VERSION : date('YmdHi');
|
||||
?>
|
||||
|
||||
<div id="div_ajaxgabarit" class="d-none"></div>
|
||||
|
||||
<script src="Bootstrap/js/jquery.min.js"></script>
|
||||
<script src="Bootstrap/js/jquery-ui.js"></script>
|
||||
<script src="Bootstrap/js/timer.jquery.js"></script>
|
||||
<script src="Bootstrap/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- DataTables, Select2, etc. -->
|
||||
<script src="Bootstrap_new/datatables/datatable.min.js"></script>
|
||||
<script src="Bootstrap/vendor/apexcharts/apexcharts.min.js"></script>
|
||||
<script src="Bootstrap/vendor/chart.js/chart.umd.js"></script>
|
||||
<script src="Bootstrap/vendor/quill/quill.min.js"></script>
|
||||
<script src="Bootstrap/vendor/simple-datatables/simple-datatables.js"></script>
|
||||
<script src="Bootstrap/js/timer.jquery.js"></script>
|
||||
<script src="Bootstrap_new/js/select2.min.js"></script>
|
||||
<script src="Bootstrap_new/select/js/bootstrap-select.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
<!-- Chart.js -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="Js/fonctions.js?ver=<?= $v_scripts ?>"></script>
|
||||
|
||||
<!-- SweetAlert2 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.14.1/dist/sweetalert2.all.min.js"></script>
|
||||
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js?ver='.$v_scripts ?>"></script>
|
||||
|
||||
<!-- Toastr -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
||||
<script src="Bootstrap/js/main.js?v=<?= $v_scripts ?>"></script>
|
||||
|
||||
<!-- Fonctions métier centralisées -->
|
||||
<script src="Js/fonctions.js?ver=<?= JS_VERSION ?>"></script>
|
||||
<script src="<?= $_SESSION['dossierSociete'] ?>/Js/societe.js?ver=<?= JS_VERSION ?>"></script>
|
||||
|
||||
<!-- Datepicker selon langue -->
|
||||
<?php if (est_anglophone()): ?>
|
||||
<script src="Js/datepicker-eng.js?ver=<?= JS_VERSION ?>"></script>
|
||||
<?php else: ?>
|
||||
<script src="Js/datepicker-fr.js?ver=<?= JS_VERSION ?>"></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script src="Js/html2pdf.js?ver=<?= JS_VERSION ?>"></script>
|
||||
|
||||
<!-- Template Main JS -->
|
||||
<script src="Bootstrap/js/main.js?ver=<?= JS_VERSION ?>"></script>
|
||||
|
||||
<!-- Initialisations et rafraîchissements -->
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// Masquer le panneau de contexte au chargement
|
||||
$("#barre_laterale_d").hide();
|
||||
/**
|
||||
* Lancement de la mise à jour du gabarit (Défini dans fonctions.js)
|
||||
*/
|
||||
if(typeof raffraichier_gabarit === "function") {
|
||||
raffraichier_gabarit();
|
||||
}
|
||||
|
||||
// Initialisation des selects
|
||||
$('.select2').select2({ theme: 'bootstrap-5' });
|
||||
$('.selectpicker').selectpicker();
|
||||
/**
|
||||
* Rafraîchissement automatique de la messagerie toutes les 60s
|
||||
*/
|
||||
$('#timer').timer({
|
||||
duration: '60s',
|
||||
callback: function() {
|
||||
if(typeof raffraichier_messagerie === "function") raffraichier_messagerie();
|
||||
},
|
||||
repeat: true
|
||||
});
|
||||
|
||||
// Rafraîchir le gabarit
|
||||
//if (typeof raffraichir_gabarit === 'function') raffraichir_gabarit();
|
||||
});
|
||||
/**
|
||||
* Gestion de l'affichage de la barre de contexte (Sidebar Droite)
|
||||
*/
|
||||
$("#showSideNav, #toggleContexte").on("click", function(e) {
|
||||
e.preventDefault();
|
||||
$("#barre_laterale_d").addClass("open").fadeIn();
|
||||
});
|
||||
|
||||
// Timer pour les messages
|
||||
/*
|
||||
$('#timer').timer({
|
||||
duration: '60s',
|
||||
callback: function() {
|
||||
if (typeof raffraichir_messagerie === 'function') raffraichir_messagerie();
|
||||
},
|
||||
repeat: true
|
||||
});
|
||||
*/
|
||||
|
||||
// Toggle du panneau de contexte
|
||||
$("#hideSideNav").on("click", function() {
|
||||
$("#barre_laterale_d").hide('slide', { direction: 'right' }, 300);
|
||||
});
|
||||
$("#showSideNav").on("click", function() {
|
||||
$("#barre_laterale_d").show('slide', { direction: 'right' }, 300);
|
||||
$("#hideSideNav, #closeContexte").on("click", function() {
|
||||
$("#barre_laterale_d").removeClass("open").fadeOut();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user