Skip to content
Snippets Groups Projects
Commit c0231f18 authored by llaffont's avatar llaffont
Browse files

Correction affichage tri recherche

parent 30966783
Branches
Tags
No related merge requests found
......@@ -64,8 +64,7 @@ if (!isset($tags)) $tags=[];
<div style="width:100%" class="conteneur_simple">
<?php
// Si facettes ou tags on ouvre un tableau a 2 colonnes
if ($hasFacettes or ($hasTags and (2 == $tagsPosition)))
{
if ($hasFacettes or ($hasTags and (2 == $tagsPosition))) {
?>
<table class="resultat_recherche" style="width:100%">
<tr>
......
......@@ -23,7 +23,7 @@ class ZendAfi_View_Helper_TagTriRecherche extends Zend_View_Helper_HtmlElement {
public function tagTriRecherche($page,$nombre_resultats,$criteres_recherche) {
// Nombre de resultats et n° de page
$html='<div><span>';
$html='<div class="resultats_page"><div><span>';
if(!intval($page)) $page=1;
if(!$nombre_resultats) $html.= $this->view->_('Aucune notice trouvée');
if($nombre_resultats == 1) $html.=$this->view->_('1 notice trouvée');
......@@ -34,15 +34,16 @@ class ZendAfi_View_Helper_TagTriRecherche extends Zend_View_Helper_HtmlElement {
if($url = $criteres_recherche->getUrlCriteresWithoutTri()) {
$url_str = $this->view->url($url,null,true);
$onchange="var tri=$('#tri').val();document.location='".$url_str."/tri/'+tri;";
$html.='<span>Trier par </span>';
$html.='<span>Trier par ';
$html.=$this->view->formSelect('tri',
$tri_selected,
['onchange' => $onchange],
$criteres_recherche->getListeTris());
$html.='</span>';
}
$html.=' <span>page&nbsp;'.$page.'</span>';
$html.='</div>';
$html.='</div></div>';
return $html;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment