<?php if(file_exists("content/".$page_admin.".top.php")) include("content/".$page_admin.".top.php"); ?>
<?php print_top();?>
<?php include("include/block/application_top.php"); ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo "template/".TEMPLATE_ADMIN."/".theme_grp(NOM_STYLES_CSS_ADMIN,'css').".css" ?>" />
<?php
  /* Chargement du theme */
//   if(file_exists("template/".TEMPLATE_ADMIN."/css_content/".$page_admin.".css"))  print "<style type=\"text/css\">@import url(template/".TEMPLATE_ADMIN."/css_content/".$page_admin.".css); </style>\n";
//   @include("template/".TEMPLATE_ADMIN."/".theme_grp('inc/init_theme','inc').".inc") ;

if(file_exists("template/".TEMPLATE_ADMIN."/".$page_admin.".css"))  print "<style type=\"text/css\">@import url(template/".TEMPLATE_ADMIN."/".$page_admin.".css); </style>\n";
if(file_exists("template/".TEMPLATE_ADMIN."/css_content/".$page_admin.".css"))  print "<style type=\"text/css\">@import url(template/".TEMPLATE_ADMIN."/css_content/".$page_admin.".css); </style>\n";
if(file_exists("template/".TEMPLATE_ADMIN."/".theme_grp('inc/init_theme','inc').".inc")) include("template/".TEMPLATE_ADMIN."/".theme_grp('inc/init_theme','inc').".inc") ;
?>
</head>
<?php array_push($function_js_init, "cache('onload');"); ?>
<body onunload="montre('onload')">
<!-- 	struture destiné a produire affiche ajax et js -->
	<div id="backgd" style="display: none;"></div><div id="backgd_w" style="display: none;"></div>
	<div id="form_ajax" style="display: none;">
		<div id="form_ajax_bar"> <a onclick="{cache('form_ajax'); cache('backgd'); document.getElementById('form_ajax_txt').innerHTML='';}"><img src="<?php print URL_ADMIN.URL_IMG_CLOSE; ?>" onmouseover="this.src='<?php print URL_ADMIN.URL_IMG_CLOSE_S; ?>'" onmouseout="this.src='<?php print URL_ADMIN.URL_IMG_CLOSE; ?>'" alt="Close" style="float:right;"/></a></div>
		<div id='form_ajax_txt'></div>
		<div id='form_ajax_nav'></div>
	</div>
	<div id="onload" style="display: none;">
		<?php print IMG_ONLOAD ?>
		<?php print ONLOAD; ?>
	</div>
	<script type='text/javascript'>
		montre('onload');
	</script>
	<!-- 	struture reel -->
	<div id="structure">
		<div id='header'>
			<div id="header_d"></div>
			<div id="header_g"></div>
			<a href="<?php print URL_MISSOL ?>" title="lossim.org"><img id="logo_menu" src="<?php print URL_IMG_LOGO ?>" alt="logo" /></a>
			<!--  Switcher de theme module-->
				<?php if (function_exists('switcher_theme_bo_form')) switcher_theme_bo_form(); ?>
			<div id="ssheader">
				 <div id="ssheader_block_menu">
					 <?php $f= NewFct('menu_ajax_complet','ssmenu=true&print=false');
// 					       print_r($f);
					      while ($r=each($f[1])){
							if (tep_not_null($r['value'][2])) print '<a href="'.$r['value'][2].'"><img src="'.'template/'.TEMPLATE_ADMIN.'/img/'.$r['value'][1].'.png" href="'.$r['value'][2].'" title="'.$r['value'][0].'" alt="'.$r['value'][0].'" /></a>';
					      }
					      while ($r=each($f[6])){
							if (tep_not_null($r['value'][2])) print '<a href="'.$r['value'][2].'"><img src="'.'template/'.TEMPLATE_ADMIN.'/img/'.$r['value'][1].'.png" href="'.$r['value'][2].'" title="'.$r['value'][0].'" alt="'.$r['value'][0].'" /></a>';
					      }
					      ?>
				 <script type="text/javascript">
					function init_full_menu_bo(){
						var linkRelay = function(e){
									var ele = Event.element(e);
									window.location = ele.getAttribute("href");
								}
						var myFishEye = new FishEyeToolBar("ssheader_block_menu", { createSub : function(ele, options){ return new FishEyeItemDown(ele, options);}});
						myFishEye.addEventListener("itemClick", linkRelay);
					}
				 </script>
				 <?php array_push($function_js_init, "init_full_menu_bo();"); ?>
				 <noscript></noscript>
				</div>

			</div>
		<div id="block_fil_rouge">
			<p id="fil_rouge"><!-- Block charge ajax --></p>
			<p id="version"><?php echo nett_acen( "<h3>".VERSION." </h3>") ?></p>
		</div>
		</div>

		<div id="lereste">
			<!--Block du repertoire econtent-->
			<?php include_once("content/".$page_admin.".php"); ?>
		</div>
	<!-- 	MENU INTER - SS MENU + FIL ARIANE -->
			 <?php  printf("<script type='text/javascript'> upload_ajax('%1\$s','%2\$s','%3\$s','%4\$s', 'false'); </script>",'fil_rouge','include/inc/fil_rouge.inc','fil_rouge',urlencode("'".$dest."','2'")); ?>
			 <noscript><?php NewFct('fil_rouge',$dest); ?></noscript>
		<hr class="spacer" />
		<div id="footer">
			<div id="footer_d"></div>
			<div id="footer_g"></div>
			<div id="ssfooter">
				<!-- MERCI DE RESPECTER NOTRE TRAVAIL : LAISSEZ CE COPYRIGHT -->
				<?php include ('template/'.TEMPLATE_ADMIN.'/inc/footer.php') ?>
			</div>
		</div>
	</div>  <!-- Fin de structure -->
	<div id="bulle"></div> <!--TOOLIP-->
	<div id="retour_ajax" style="display:none;">
		<p id='retour_ajax_txt'></p>
		<p id='retour_ajax_nav'></p>
		<p id='retour_ajax_help'><?php echo TXT_SORTIE_CLIC ?></p>
	</div> <!-- RETOUR AJAX -->
	<?php include("include/block/application_bottom.php"); ?>
</body>
</html>