extranet/www/pages/menu.php

81 lines
2.4 KiB
PHP
Raw Normal View History

2010-01-28 09:32:35 +00:00
<div id="floatMenu">
<?php
$logo = './img/logo_menu.gif';
2010-06-11 10:30:05 +00:00
if($_SESSION['tabInfo']['login']=='blabla'){
$logo = './img/logo_sg.gif';
}
?>
<div id="logo"><img src="<?=$logo?>" width="200" height="65"/></div>
2010-01-28 09:32:35 +00:00
<div id="Menu">
2010-03-02 15:50:11 +00:00
<?php
2009-10-02 09:24:43 +00:00
require_once 'menu/menu.php';
2010-01-28 09:32:35 +00:00
echo menu();
?>
</div>
2010-01-28 09:32:35 +00:00
<div id="icones">
<?php
//Ajout des paramètres optionnelles pour la page recherche (lors de la première recherche)
2009-03-06 17:12:26 +00:00
if ($page=='recherche'){
if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']);
2009-03-06 16:26:26 +00:00
}
?>
2009-07-01 09:02:54 +00:00
<?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">
2010-01-28 09:32:35 +00:00
<img src="./img/exporticones/printer.png" alt="Impression"/></a>&nbsp;
2009-03-06 16:26:26 +00:00
<?php
2010-01-28 09:32:35 +00:00
//Affichage des impressions seulement pour certaines pages
if ($page!='recherche' && $page!='main' && $page!='' ){
2009-03-06 16:26:26 +00:00
?>
<a href="./?<?=$_SERVER['QUERY_STRING'];?>&sortie=pdf" target="_blank" title="PDF">
<img src="./img/exporticones/pdf.png" alt="PDF" /></a>&nbsp;
2009-07-01 09:02:54 +00:00
<?php
2009-05-28 17:10:09 +00:00
}
if ($page == 'identite' ||
$page == 'etablissements' ||
$page == 'liens' ||
$page == 'evenements' ||
$page == 'dirigeants' ||
$page == 'annonces' ||
2010-05-24 14:06:04 +00:00
$page == 'synthese' ||
2010-05-21 12:47:17 +00:00
$page == 'bilans' ||
$page == 'ratios' ||
2010-05-24 12:24:02 +00:00
$page == 'indiscore' ||
$page == 'bourse' ||
$page == 'banque' ||
2010-05-24 14:23:31 +00:00
$page == 'scorescf' ||
2010-05-24 14:38:35 +00:00
$page == 'competences' ||
2010-05-24 14:50:08 +00:00
$page == 'conventions' ||
$page == 'marques') {
if (($page != 'competences' &&
$page != 'marques') ||
($page == 'competences' && empty($_GET['vue']) == true) ||
($page == 'marques' && empty($_GET['id']) == true)) {
if ($page != 'scorescf') {
print '<a href="./exportcsv.php?'.$_SERVER['QUERY_STRING'].
'" target="_blank" title="CSV">'.
'<img src="./img/exporticones/csv.png" alt="CSV" /></a>&nbsp;';
}
print '<a href="./exportxml.php?'.$_SERVER['QUERY_STRING'].
'" target="_blank" title="XML">'.
'<img src="./img/exporticones/xml.png" alt="XML" /></a>&nbsp;';
}
2009-03-06 17:12:26 +00:00
}
2009-03-06 16:26:26 +00:00
?>
</div>
2010-01-28 09:32:35 +00:00
</div>
<script type="text/javascript">
2010-03-02 15:50:11 +00:00
<?php
require_once 'menu/defineMenu.php';
2010-01-28 09:32:35 +00:00
?>
$(document).ready(function()
{
$('#Menu').accordion(<?=activeMenu($page)?>);
2010-01-28 09:32:35 +00:00
});
</script>