noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 09/46: search : add placeholder


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 09/46: search : add placeholder
Date: Mon, 4 May 2020 13:38:43 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 1ff9d19c1af2ecdad1aeef20a718c42e0b87d62a
Author: Dany De Bontridder <address@hidden>
AuthorDate: Tue Feb 11 08:20:21 2020 +0100

    search : add placeholder
---
 include/lib/html_input.class.php | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 987a89b..f79048b 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -965,7 +965,8 @@ class HtmlInput
     {
         $r="
                        <span>
-                       <input id=\"lk_".$p_table_id."\" name=\"$p_name\" 
value=\"$p_old_value\"autocomplete=\"off\" class=\"input_text\" name=\"filter\" 
onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row )\" 
type=\"text\">
+                        <span  class=\"icon\"  >&#xf50d;</span>
+                       <input id=\"lk_".$p_table_id."\" name=\"$p_name\" 
value=\"$p_old_value\"autocomplete=\"off\" class=\"input_text\" name=\"filter\" 
onkeyup=\"filter_table(this, '$p_table_id','$p_col',$start_row )\" 
type=\"text\" placeholder=\""._("Recherche")."\">
                        <input type=\"button\" class=\"smallbutton\" 
onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'),
 '$p_table_id','$p_col',$start_row );\" value=\"X\">
                        </span>
                        ";
@@ -983,7 +984,9 @@ class HtmlInput
     {
         $r="
                        <span>
-                       <input id=\"lk_".$p_table_id."\" autocomplete=\"off\" 
class=\"input_text\" name=\"filter\" onkeyup=\"filter_table(this, 
'$p_table_id','$p_col',$start_row )\" type=\"text\">
+                        <span  class=\"icon\"  >&#xf50d;</span>
+
+                       <input id=\"lk_".$p_table_id."\" autocomplete=\"off\" 
class=\"input_text\" name=\"filter\" onkeyup=\"filter_table(this, 
'$p_table_id','$p_col',$start_row )\" type=\"text\" 
placeholder=\""._("Recherche")."\">
                        <input type=\"button\" class=\"smallbutton\" 
onclick=\"$('lk_".$p_table_id."').value='';filter_table($('lk_".$p_table_id."'),
 '$p_table_id','$p_col',$start_row );\" value=\"X\">
                        </span>
                        ";
@@ -999,8 +1002,8 @@ class HtmlInput
     {
         $r="<span>";
         $r.='<span  class=" icon">&#xf50d;</span>';
-        $r.=sprintf('<input id="search_%s" type="TEXT" class="input_text" 
name="filter_list%s" onkeyup="filter_list(this,\'%s\')">',
-                $p_list_id,$p_list_id,$p_list_id);
+        $r.=sprintf('<input id="search_%s" type="TEXT" class="input_text" 
name="filter_list%s" placeholder="%s" onkeyup="filter_list(this,\'%s\')">',
+                $p_list_id,$p_list_id,_("Recherche"),$p_list_id);
         
         $r.=sprintf('<input type="button" class="smallbutton" 
onclick="$(\'search_%s\').value=\'\';filter_list(\'search_%s\',\'%s\')" 
value="x">',$p_list_id,$p_list_id,$p_list_id);
         $r.='</span>';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]