<!DOCTYPE html>
<html class="fixed sidebar-left-collapsed">
<head>
<meta charset="UTF-8">
<title>{% block title %}CIRAD/SELMET - Demandes{% endblock %}</title>
<link rel="stylesheet" href="{{ asset('assets/vendor/bootstrap/css/bootstrap.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/font-awesome/css/font-awesome.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/magnific-popup/magnific-popup.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/bootstrap-datepicker/css/datepicker3.css') }}">
<link rel="stylesheet" href="{{ asset('assets/plugins/datetimepicker-master/jquery.datetimepicker.css') }}">
<!-- Specific Page Vendor CSS -->
<link rel="stylesheet" href="{{ asset('assets/vendor/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.custom.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/morris/morris.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/select2/select2.css') }}">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="{{ asset('assets/vendor/summernote/summernote.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/summernote/summernote-bs3.css') }}">
<link rel="stylesheet" href="{{ asset('assets/vendor/bootstrap-fileupload/bootstrap-fileupload.min.css') }}">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta2/css/all.css">
<link rel="shortcut icon" href="{{ asset('assets/images/logoTitle.ico') }}" type="image/x-icon" />
<link href="{{ asset('main.css') }}" rel="stylesheet"></head>
<!-- Theme CSS -->
<link rel="stylesheet" href="{{ asset('assets/stylesheets/theme.css') }}">
<!-- Skin CSS -->
<link rel="stylesheet" href="{{ asset('assets/stylesheets/skins/default.css') }}">
<!-- Theme Custom CSS -->
<link rel="stylesheet" href="{{ asset('assets/stylesheets/theme-custom.css') }}">
<link rel="stylesheet" href="{{ asset('assets/stylesheets/perso.css') }}">
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<!-- Head Libs -->
<script src="{{ asset('assets/vendor/modernizr/modernizr.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery/jquery.js')}}"></script>
{# <link rel="stylesheet" href="{{ asset('bundles/bootstrap/css/bootstrap.min.css') }}"> #}
<style>
.tooltip-inner {
background-color: rgb(0,163,166);
border: rgb(0,163,166);
padding:10px;
font-size:14px;
}
.tooltip.bs-tooltip-bottom .arrow:before {
border-bottom-color: rgb(0,163,166) !important;
}
.tooltip.bs-tooltip-top .arrow:before {
border-top-color:rgb(0,163,166)!important;
}
</Style>
{% block stylesheets %}
{% endblock %}
</head>
<body>
<section class="body">
{% include ('header.html.twig') %}
{% if app.session.flashBag.has('info') %}
<div class="alert alert-success">
{{ app.flashes('info')|join }}
</div>
{% endif %}
<div class="inner-wrapper">
{% include('sidebar.html.twig') %}
<!-- MAIN CONTENT-->
<section role="main" class="content-body">
<header class="page-header">
<h2>{% block titre_appli %}CIRAD/SELMET - Demandes{% endblock %}</h2>
<div class="right-wrapper pull-right">
<ol class="breadcrumbs">
<li>
<a href="{{ path('accueil') }}">
<i class="fa fa-home"></i>
</a>
</li>
</ol>
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
</div>
</header>
{% block body %}{% endblock %}
</section>
</div>
</section>
<body>
<script src="{{ asset('assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js')}}"></script>
<script src="{{ asset('assets/vendor/bootstrap/js/bootstrap.js')}}"></script>
<script src="{{ asset('assets/vendor/nanoscroller/nanoscroller.js')}}"></script>
<script src="{{ asset('assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js')}}"></script>
<script src="{{ asset('assets/vendor/magnific-popup/magnific-popup.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-placeholder/jquery.placeholder.js')}}"></script>
<!-- Specific Page Vendor -->
<script src="{{ asset('assets/vendor/jquery-ui/js/jquery-ui-1.10.4.custom.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-ui-touch-punch/jquery.ui.touch-punch.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-appear/jquery.appear.js')}}"></script>
<script src="{{ asset('assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-easypiechart/jquery.easypiechart.js')}}"></script>
<script src="{{ asset('assets/vendor/flot/jquery.flot.js')}}"></script>
<script src="{{ asset('assets/vendor/flot-tooltip/jquery.flot.tooltip.js')}}"></script>
<script src="{{ asset('assets/vendor/flot/jquery.flot.pie.js')}}"></script>
<script src="{{ asset('assets/vendor/flot/jquery.flot.categories.js')}}"></script>
<script src="{{ asset('assets/vendor/flot/jquery.flot.resize.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-sparkline/jquery.sparkline.js')}}"></script>
<script src="{{ asset('assets/vendor/raphael/raphael.js')}}"></script>
<script src="{{ asset('assets/vendor/morris/morris.js')}}"></script>
<script src="{{ asset('assets/vendor/gauge/gauge.js')}}"></script>
<script src="{{ asset('assets/vendor/snap-svg/snap.svg.js')}}"></script>
<script src="{{ asset('assets/vendor/liquid-meter/liquid.meter.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-maskedinput/jquery.maskedinput.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/jquery.vmap.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/data/jquery.vmap.sampledata.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/jquery.vmap.world.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.africa.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.asia.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.australia.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.europe.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.north-america.js')}}"></script>
<script src="{{ asset('assets/vendor/jqvmap/maps/continents/jquery.vmap.south-america.js')}}"></script>
<script src ="{{ asset('assets/plugins/datetimepicker-master/jquery.datetimepicker.js') }}"></script>
<script src="{{ asset('assets/vendor/select2/select2.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-datatables/media/js/jquery.dataTables.min.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js')}}"></script>
<script src="{{ asset('assets/vendor/jquery-datatables-bs3/assets/js/datatables.js')}}"></script>
<script src="{{ asset('assets/vendor/summernote/summernote.js')}}"></script>
<script src="{{ asset('assets/vendor/bootstrap-fileupload/bootstrap-fileupload.min.js')}}"></script>
<!-- Theme Base, Components and Settings -->
<script src="{{ asset('assets/javascripts/theme.js')}}"></script>
<!-- Theme Custom -->
<script src="{{ asset('assets/javascripts/theme.custom.js')}}"></script>
<!-- Theme Initialization Files -->
<script src="{{ asset('assets/javascripts/theme.init.js')}}"></script>
{% include 'app/DatePicker/datepicker.html.twig' %}
<script>
(function() {
var datatableInit = function() {
$('#maTable').dataTable( {
stateSave: true,
"pagingType": "full_numbers",
fixedHeader: true,
columnDefs: [
{ width: 50, targets: 0 }
],
fixedColumns: true,
// "aaSorting": [] ,
language: {
"lengthMenu": "_MENU_ enregistrements par page",
"search": "Rechercher",
"zeroRecords": "aucun résultat",
"info": "_MAX_ enregistrements",
"infoEmpty": "Pas de résultats",
"infoFiltered": "(filtered from _MAX_ total records)",
"paginate": {
"previous": "<",
"first": "<<",
"next": ">",
"last": ">>",
},
},
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Toutes"]],
dom: '<"top"Bli>rt<"bottom"p><"clear">,',
fixedHeader: {
headerOffset: 50
},
} );
};
var datatableEntreeInit = function() {
$('#maTableEntree').dataTable( {
stateSave: true,
"pagingType": "full_numbers",
fixedHeader: true,
columnDefs: [
{ width: 50, targets: 0 }
],
fixedColumns: true,
// "aaSorting": [] ,
language: {
"lengthMenu": "_MENU_ enregistrements par page",
"search": "Rechercher",
"zeroRecords": "aucun résultat",
"info": "_MAX_ enregistrements",
"infoEmpty": "Pas de résultats",
"infoFiltered": "(filtered from _MAX_ total records)",
"paginate": {
"previous": "<",
"first": "<<",
"next": ">",
"last": ">>",
},
},
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Toutes"]],
dom: '<"top"Bli>rt<"bottom"p><"clear">,',
fixedHeader: {
headerOffset: 50
},
} );
};
var datatableSortieInit = function() {
$('#maTableSortie').dataTable( {
stateSave: true,
"pagingType": "full_numbers",
fixedHeader: true,
columnDefs: [
{ width: 50, targets: 0 }
],
fixedColumns: true,
// "aaSorting": [] ,
language: {
"lengthMenu": "_MENU_ enregistrements par page",
"search": "Rechercher",
"zeroRecords": "aucun résultat",
"info": "_MAX_ enregistrements",
"infoEmpty": "Pas de résultats",
"infoFiltered": "(filtered from _MAX_ total records)",
"paginate": {
"previous": "<",
"first": "<<",
"next": ">",
"last": ">>",
},
},
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Toutes"]],
dom: '<"top"Bli>rt<"bottom"p><"clear">,',
fixedHeader: {
headerOffset: 50
},
} );
};
$(function() {
datatableInit();
datatableEntreeInit();
datatableSortieInit();
});
}).apply( this, [ jQuery ]);
(function() {
var datatableInitExplo = function() {
$('#maTableExplo').dataTable( {
"scrollX" : true,
"paging" : false,
"ordering" : false,
"info" : false,
"searching" : false,
} );
};
$(function() {
datatableInitExplo();
});
}).apply( this, [ jQuery ]);
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$(function(){
jQuery(document).ready(function() {
console.log("jQuery est prêt !");
$('.select2').select2();
});
$("#fieldset1 legend").click(function(){
if ($("#fields").is(":visible")){$("#fields").slideUp(500);}
if ($("#fields").is(":hidden")){$("#fields").slideDown(500);}
});
$("#fieldset2 legend").click(function(){
if ($("#fields2").is(":visible")){$("#fields2").slideUp(500);}
if ($("#fields2").is(":hidden")){$("#fields2").slideDown(500);}
});
});
function monthDiff(valDateEntreeSouhaitee, valDateSortiePrevue)
{
if (valDateEntreeSouhaitee != '' && valDateSortiePrevue != '') {
words=valDateEntreeSouhaitee.split('/');
d1 = new Date(words[2],words[1],words[0]);
words=valDateSortiePrevue.split('/');
d2 = new Date(words[2],words[1],words[0]);
var diff =(d2.getTime() - d1.getTime()) / 1000;
diff /= (60 * 60 * 24 * 30);
return Math.abs(Math.round(diff));
}
else {
return "";
}
}
function weekDiff(valDateEntreeSouhaitee, valDateSortiePrevue)
{
if (valDateEntreeSouhaitee != '' && valDateSortiePrevue != '') {
words=valDateEntreeSouhaitee.split('/');
d1 = new Date(words[2],words[1],words[0]);
words=valDateSortiePrevue.split('/');
d2 = new Date(words[2],words[1],words[0]);
var diff =(d2.getTime() - d1.getTime()) / 1000;
diff /= (60 * 60 * 24 * 7);
return Math.abs(Math.round(diff));
}
else {
return "";
}
}
function dayDiff(valDateEntreeSouhaitee, valDateSortiePrevue)
{
if (valDateEntreeSouhaitee != '' && valDateSortiePrevue != '') {
words=valDateEntreeSouhaitee.split('/');
d1 = new Date(words[2],words[1],words[0]);
words=valDateSortiePrevue.split('/');
d2 = new Date(words[2],words[1],words[0]);
// var Difference_In_Time = d2.getTime() - d1.getTime();
var diff =(d2.getTime() - d1.getTime()) / 1000;
diff /= (60 * 60 * 24);
// var diff = Difference_In_Time / (1000 * 3600 * 24);
return Math.abs(Math.round(diff));
}
else {
return "";
}
}
</script>
{% block javascripts %}
{% endblock %}
</body>
</html>