<div id="floatMenu"> <?php $logo = './img/logo_menu.gif'; $logo_width = 200; $logo_height = 65; if ( $_SESSION['tabInfo']['login']=='blabla' ){ $logo = './img/logo_sg.gif'; $logo_width = 200; $logo_height = 65; } elseif ($_SESSION['tabInfo']['login']=='testsd30') { $logo = './img/logo_sita.gif'; $logo_width = 200; $logo_height = 128; } ?> <div id="logo"> <img src="<?=$logo?>" width="<?php echo $logo_width?>" height="<?php echo $logo_height?>"/> </div> <div id="Menu"> <?php require_once 'menu/menu.php'; echo menu(); ?> </div> <div id="icones"> <?php //Ajout des paramètres optionnelles pour la page recherche (lors de la première recherche) if ($page=='recherche'){ if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']); } ?> <?php $printUrl = $_SERVER['QUERY_STRING']; if ($page=='bilans' && isset($_REQUEST['type']) && $_REQUEST['type']!=''){ $printUrl.= '&type='.$_REQUEST['type']; } ?> <a href="/?<?=$printUrl;?>&sortie=prt" title="Impression" target="_blank"> <img src="./img/exporticones/printer.png" alt="Impression"/></a> <?php //Affichage des impressions seulement pour certaines pages if ($page!='recherche' && $page!='main' && $page!='' ){ ?> <a href="./?<?=$_SERVER['QUERY_STRING'];?>&sortie=pdf" target="_blank" title="PDF"> <img src="./img/exporticones/pdf.png" alt="PDF" /></a> <?php } $pageCSV = array( 'identite', 'etablissements', 'liens', 'evenements', 'dirigeants', 'annonces', 'synthese', 'bilans', 'ratios', 'liasse', 'indiscore', 'bourse', 'banque', 'conventions', 'marques', ); $pageXML = array( 'identite', 'etablissements', 'liens', 'evenements', 'dirigeants', 'annonces', 'synthese', 'bilans', 'ratios', 'liasse', 'indiscore', 'bourse', 'banque', 'scorescf', 'competences', 'conventions', 'marques', ); if (in_array($page, $pageCSV) || ($page == 'marques' && empty($_GET['id']))) { ?> <a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING']?>" target="_blank" title="CSV"> <img src="./img/exporticones/csv.png" alt="CSV" /></a> <?php } if (in_array($page, $pageXML) || ($page == 'marques' && empty($_GET['id'])) || ($page == 'competences' && empty($_GET['vue'])) ) { ?> <a href="./exportxml.php?<?=$_SERVER['QUERY_STRING']?>" target="_blank" title="XML"> <img src="./img/exporticones/xml.png" alt="XML" /></a> <?php } ?> </div> </div> <script type="text/javascript"> <?php require_once 'menu/defineMenu.php'; ?> $(document).ready(function() { $('#Menu').accordion(<?=activeMenu($page)?>); }); </script>