Amélioration bug impression recherche
This commit is contained in:
parent
d567fdb465
commit
668a56a808
@ -63,7 +63,7 @@ Tous droits réservé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>
|
||||
|
@ -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é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>
|
||||
<?php
|
||||
//Affichage des impressions seulement pour certaines pages
|
||||
|
||||
?>
|
||||
<a href="./exportpdf.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">PDF</a>
|
||||
<a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">CSV</a>
|
||||
<a href="./exportxml.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank">XML</a>
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</layer>
|
||||
|
||||
@ -247,5 +262,4 @@ function JSFX_FloatTopDiv()
|
||||
stayTopLeft();
|
||||
}
|
||||
JSFX_FloatTopDiv();
|
||||
</script>
|
||||
<? } ?>
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user