Amélioration bug impression recherche

This commit is contained in:
Michael RICOIS 2009-03-06 16:26:26 +00:00
parent d567fdb465
commit 668a56a808
2 changed files with 20 additions and 6 deletions

View File

@ -63,7 +63,7 @@ Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.htm" ta
<?
if ($sortie!='prt') {
if ($page='recherche.php'){
$_SERVER['REQUEST_URI'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['REQUEST_URI']);
$_SERVER['REQUEST_URI'] = preg_replace('/vue=list/i', 'vue=list_pre', $_SERVER['REQUEST_URI']);
}
?>
- <a href="<?=$_SERVER['REQUEST_URI']?>&sortie=prt" target="_blank"><img src="./img/icone_print.png"/></a>

View File

@ -1,6 +1,3 @@
<?php
if ($sortie<>'pdf' && $sortie<>'prt') {
?>
<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"><div class="collapsed">
@ -195,6 +192,24 @@ if ($sortie<>'pdf' && $sortie<>'prt') {
?>
<a href="/?page=main&action=logout">Se d&eacute;connecter</a>
</div>
<?php
//Ajout des paramètres optionnelles pour la page recherche (lors de la première recherche)
if ($page='recherche.php'){
$_SERVER['QUERY_STRING'] = preg_replace('/vue=list/i', 'vue=list_pre', $_SERVER['QUERY_STRING']);
}
?>
<a href="/?<?=$_SERVER['QUERY_STRING']?>&sortie=prt" alt="Impression" target="_blank"><img src="./img/icon_export/printer.png" alt="Impression"/></a>&nbsp;
<?php
//Affichage des impressions seulement pour certaines pages
?>
<a href="./exportpdf.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">PDF</a>&nbsp;
<a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">CSV</a>&nbsp;
<a href="./exportxml.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">XML</a>&nbsp;
<?php
?>
</div>
</layer>
@ -247,5 +262,4 @@ function JSFX_FloatTopDiv()
stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
<? } ?>
</script>