extranet/www/pages/menu2.php

71 lines
2.7 KiB
PHP
Raw Normal View History

2009-08-31 16:04:51 +00:00
<?php
$siret = $_REQUEST['siret'];
$idEntreprise = $_REQUEST['idEntreprise'];
?>
<div id="floatMenu">
<div id="logo"><img src="./img/logo_menu.gif" width="200" height="65"/></div>
<div id="Menu">
2009-09-28 10:25:27 +00:00
<?php
2009-11-04 10:03:58 +00:00
require_once 'menu/menu.php';
print menu2();
?>
</div>
<div id="icones">
2009-08-27 09:28:16 +00:00
<?php
//Ajout des param<61>tres optionnelles pour la page recherche (lors de la premi<6D>re recherche)
if ($page=='recherche'){
if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']);
}
?>
2009-08-27 09:28:16 +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">
<img src="./img/exporticones/printer.png" alt="Impression"/></a>&nbsp;
<?php
//Affichage des impressions seulement pour certaines pages
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;
2009-08-27 09:28:16 +00:00
<?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;
2009-08-27 09:28:16 +00:00
<?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;
2009-08-27 09:28:16 +00:00
<?php
}
?>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
2009-08-27 09:28:16 +00:00
<?php if($page=='recherche' || $page=='international_recherche'){?>
$('#Menu').accordion('activate', 0)
<?php }elseif($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements'){ ?>
$('#Menu').accordion('activate', 1)
<?php }elseif($page=='dirigeants'){ ?>
$('#Menu').accordion('activate', 2)
2009-09-28 10:25:27 +00:00
<?php }elseif($page=='synthese' || $page=='rsynthese' || $page=='bilans' || $page=='ratios' || $page=='liasse' || $page=='bourse'){ ?>
$('#Menu').accordion('activate', 3)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='annonces' || $page=='infosreg' || $page=='competences' || $page=='conventions' || $page=='marques'){ ?>
$('#Menu').accordion('activate', 4)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='indiscore' || $page=='scorecsf' || $page=='enquetec'){ ?>
$('#Menu').accordion('activate', 5)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='kbis' || $page=='greffes'){ ?>
$('#Menu').accordion('activate', 6)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='moncompte' || $page=='surveillance' || $page=='administration' || $page=='stats' || $page=='survliste'){ ?>
$('#Menu').accordion('activate', 7)
2009-08-27 09:28:16 +00:00
<?php }?>
});
2009-08-27 09:28:16 +00:00
</script>