extranet/www/pages/menu.php
2009-09-29 13:01:59 +00:00

46 lines
1.7 KiB
PHP

<script> if (!document.layers){ document.write('<div id="divStayTopLeft" style="position:absolute">'); }</script>
<layer id="divStayTopLeft">
<div style="float:left" id="my_menu" class="sdmenu">
<img src="./img/logo_menu.gif" width="200" height="65">
<?php
require_once 'menu/menu.php';
print menu();
//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']);
}
?>
<span>&nbsp;</span>
<center>
<?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>&nbsp;
<?php
if($page!='recherche' || $page=='')
{
?>
<a href="./?<?=$_SERVER['QUERY_STRING'];?>&sortie=pdf" target="_blank" title="PDF"><img src="./img/exporticones/pdf.png" alt="PDF"></a>&nbsp;
<?php
}
if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements' || $page=='dirigeants'){
?>
<a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" title="CSV"><img src="./img/exporticones/csv.png" alt="CSV"></a>&nbsp;
<?php
}
if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements' || $page=='dirigeants' || $page=='annonces'){
?>
<a href="./exportxml.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" title="XML"><img src="./img/exporticones/xml.png" alt="XML"></a>&nbsp;
</center>
<?php
}
?>
</div>
</layer>
<script type="text/javascript" src="./js/menubottom.js"></script>