backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 28 Apr 2005 09:19:53 +0000 (09:19 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:46 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.5--patch-11
   fix #304

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-598

include/search.inc.php
templates/search.tpl

index 271bab1..9990957 100644 (file)
@@ -113,16 +113,16 @@ class XOrgSearch extends XOrgPlugin
         $page->assign('search_results', $list);
         $page->assign('search_results_nb', $total);
         $page->assign('search_page', $offset);
-        $page->assign('search_pages_nb', $page_max);
+        $page->assign('search_pages_nb', $page_max+1);
         $page->assign('search_pages_link', $links);
-        
+
         $order_links = Array();
         foreach ($this->orders as $key=>$o) if ($o[3]) {
             $order_links[] = Array(
-                "text"=>$o[2],
-                "url" =>$this->make_url(Array('order'    =>$key,'order_inv'=>($o[0] == $order) && ($order_inv != $o[1]))),
-                "asc" =>($o[0] == $order) && $order_inv,
-                "desc"=>($o[0] == $order) && !$order_inv
+                "text" => $o[2],
+                "url"  => $this->make_url(Array('order' => $key, 'order_inv' => ($o[0] == $order) && ($order_inv != $o[1]))),
+                "asc"  => ($o[0] == $order) && $order_inv,
+                "desc" => ($o[0] == $order) && !$order_inv
             );
         }
         $page->assign('search_order_link', $order_links);
index a30f4de..22856e8 100644 (file)
@@ -37,8 +37,8 @@
     [<a href='{$tri.url}'>
     {if $tri.asc or $tri.desc}<strong>{/if}
     {$tri.text}
-    {if $tri.desc}<img src='{rel}/images/up.png' />{/if}
-    {if  $tri.asc}<img src='{rel}/images/dn.png' />{/if}
+    {if $tri.desc}<img src='{rel}/images/up.png' alt='tri ascendant' />{/if}
+    {if  $tri.asc}<img src='{rel}/images/dn.png' alt='tri descendant' />{/if}
     {if $tri.asc or $tri.desc}</strong>{/if}
     </a>]
     {/foreach}