noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/05: Improve Manage_Table : add icon


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/05: Improve Manage_Table : add icon
Date: Wed, 20 Dec 2017 04:42:23 -0500 (EST)

sparkyx pushed a commit to annotated tag rel6919.3
in repository noalyss.

commit 94256020aa5d4e2b6be097d68c5a174c358b40ef
Author: Dany De Bontridder <address@hidden>
Date:   Tue Jul 4 00:08:40 2017 +0200

    Improve Manage_Table : add icon
---
 include/lib/class_manage_table_sql.php | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/include/lib/class_manage_table_sql.php 
b/include/lib/class_manage_table_sql.php
index b522597..2a9bb39 100644
--- a/include/lib/class_manage_table_sql.php
+++ b/include/lib/class_manage_table_sql.php
@@ -425,9 +425,10 @@ class Manage_Table_SQL
         $nb=Database::num_row($ret);
         if ($this->can_append_row()==TRUE)
         {
-            echo HtmlInput::button_action(_("Ajout"),
-                    sprintf("%s.input('-1','%s')", $this->object_name,
-                            $this->object_name));
+            echo HtmlInput::button_action(" "._("Ajout"),
+                    sprintf("%s.input('-1','%s')", 
+                            $this->object_name,
+                            $this->object_name),"xx","smallbutton",BUTTONADD);
         }
         $nb_order=count($this->a_order);
         $virg=""; $result="";
@@ -453,9 +454,10 @@ class Manage_Table_SQL
         echo "</table>";
         if ($this->can_append_row()==TRUE)
         {
-            echo HtmlInput::button_action(_("Ajout"),
-                    sprintf("%s.input('-1','%s')", $this->object_name,
-                            $this->object_name));
+              echo HtmlInput::button_action(" "._("Ajout"),
+                    sprintf("%s.input('-1','%s')", 
+                            $this->object_name,
+                            $this->object_name),"xx","smallbutton",BUTTONADD);
         }
         printf ('<script> alternate_row_color("tb%s");</script>', 
$this->object_name);
     }
@@ -478,10 +480,10 @@ class Manage_Table_SQL
                 echo th($this->a_label_displaid[$key]);
         }
         if ($this->can_update_row()) {
-            echo td(_('Modifier'));
+            echo th("  ",'style="width:40px"');
         }
         if ($this->can_delete_row()) {
-            echo td(_('Effacer'));
+            echo th(" ",'style="width:40px"');
         }
         echo "</tr>";
     }



reply via email to

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