extranet/www/pages/menu2.php

77 lines
2.5 KiB
PHP
Raw Normal View History

<?php
$siret = $_REQUEST['siret'];
$idEntreprise = $_REQUEST['idEntreprise'];
?>
2009-05-26 10:03:51 +00:00
<div id="floatMenu">
<div id="logo"><img src="./img/logo_menu.gif" width="200" height="65"/></div>
2009-05-26 10:03:51 +00:00
<div id="Menu">
2009-05-26 10:03:51 +00:00
<?php
require_once 'menu/menu.php';
print menu2();
2009-05-26 10:03:51 +00:00
?>
</div>
<div id="icones">
<?php
2009-05-26 10:03:51 +00:00
//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']);
}
?>
<?php
2009-05-26 10:03:51 +00:00
$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;
2009-05-26 10:03:51 +00:00
<?php
//Affichage des impressions seulement pour certaines pages
if ($page!='recherche' && $page!='main' && $page!='' ){
2009-05-26 10:03:51 +00:00
?>
<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;
<?php
2009-05-26 10:03:51 +00:00
}
?>
</div>
2009-05-26 13:09:15 +00:00
</div>
<script type="text/javascript">
<?php
$activeMenu = array(
0 => array('recherche', 'international_recherche'),
1 => array('identite', 'etablissements', 'liens', 'evenements'),
2 => array('dirigeants'),
3 => array('synthese', 'bilans', 'ratios', 'liasse', 'bourse', 'banque'),
4 => array('annonces', 'infosreg', 'competences', 'conventions', 'marques'),
5 => array('indiscore', 'scorescsf', 'enquetec', 'rsynthese', 'rsynthesemin'),
6 => array('kbis', 'greffes'),
7 => array('moncompte', 'surveillance', 'administration', 'stats', 'survliste'),
);
?>
$(document).ready(function()
{
$('#floatMenu').css('display','block');
<?php
$menuIndex = 0;
foreach($activeMenu as $key => $pages)
{
if( in_array($page, $pages)) { $menuIndex = $key; break; }
}
if($menuIndex==0){?> $('#Menu').accordion(); <?php }
else{?> $('#Menu').accordion('activate', <?=$menuIndex?>); <?php }
?>
2009-05-26 13:09:15 +00:00
});
</script>