<!doctype html>
<html>
<head>
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="{{ base() }}favicon.ico" type="image/x-icon">
{{ titleHtml() }}
<div id='loader' style='display:none;'>
	<div id='picto_loader'>
	</div>
</div>

	
	{% include '@GlobalApplication/Template/_script.twig' %}

<!-- specifique twig -->
{% set data = i|specifiqueScript  %}

{% for object  in data  %}
    {% include object  %}
{% endfor %}

<meta charset="utf-8">
</head>

<body>

<span id="scriptGenerate"></span>
	<div class="container-fluid">
        <!-- client -->
        {% include '@GlobalApplication/Component/page_header.twig' with getHeaderData() %}
    </div>
    <div class="container-fluid clearfix">
   
        {{ menuLeft(menuActive, menuLeft) }}
		{% include '@GlobalApplication/Component/page_header.twig' with getHeaderData() %}
      

           {{ menuTop(menuActive) }}
                
    
    
		<!-- Modal content -->
		<div id="myModal" class="modal" tabindex="-1" role="dialog">

			<div id="modal-content" class="modal-content" style="z-index:99999">
				<div class="modal-header">
					<span class="modal-close">&times;</span>
					<h3 id="modal-title"></h3>
				</div>
				<div id="modal-body" style="z-index:99999;padding:15px;">
				</div>
			</div>
	</div>
        	
			{{ block( 'body' ) }}


    
    </div>
        </div>
    </div>
<script>

var baseUrl ='{{ baseUrl() }}';

</script>
<script type="text/javascript" src="{{ baseUrl('js/menu.js') }}"></script>
<script type="text/javascript" src="{{ baseUrl('js/parametre.js') }}" id="parametreJS"></script>
 
	
<script>

	
init(
	'{{ path("Ajax.Notification.majNotification") }}',
	'{{ baseUrl('IconeV2/Global/deadline-change.svg') }}', 
	'{{ 'dd/mm/yy' | paramDateFormat }}', 
	'{{ path("Ajax.AutoComplete.autocomplete") }}'
	
	);

	function ajouterFavorisLeft(fav)
	{    	
		var titre = fav.data('titre');
		var path = fav.data('path');
		var param = fav.data('param');
		
		$.ajax({
			url: '{{ path('Ajax.Favoris.ajouterFavoris') }}',
			type: 'POST',
			dataType: 'html',
			data: {titre : titre, path : path, param : param},
			success: function (htmlData) {
				
				// Use any selector
				refrechDiv(window.location.pathname, 'menu-lateral', null, 1);
				
			}
		});
	}
	
	function supprimerFavorisLeft(fav)
	{
		var id = fav.data('id');
	
		$.ajax({
			url: '{{ path('Ajax.Favoris.supprimerFavoris') }}',
			type: 'POST',
			dataType: 'html',
			data: {id : id},
			success: function (htmlData) {
	
				refrechDiv(window.location.pathname, 'menu-lateral', null, 1);
				
			}
		});
	}
		
</script>

  

	<div id="footer" class="container-fluid footer clearfix">
		<div>
			{{ piedDePage() }}
        	<a href='https://www.oxalys.com' target='_blank'><img src="{{ baseUrl('IconeV2/Misc/logo-oxalys_50.png') }}"  style="width:75px;margin-top:10px" /></a>
       </div>
    </div>
    <form method='POST' action='{{ base('session_ipad.php') }}' id='formHeader' name='formHeader'>
    	<input type='hidden' name='lienHeader' id='lienHeader' value='' />
    	<input type='hidden' name='call' id='call' value='' />
    </form>
</body>
</html>


