phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4176 - phpcompta/branches/rel560/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4176 - phpcompta/branches/rel560/include
Date: Tue, 5 Jul 2011 23:26:49 +0200 (CEST)

Author: danydb
Date: 2011-07-05 23:26:47 +0200 (Tue, 05 Jul 2011)
New Revision: 4176

Modified:
   phpcompta/branches/rel560/include/class_html_input.php
Log:
add function HtmlInput::button_close

Modified: phpcompta/branches/rel560/include/class_html_input.php
===================================================================
--- phpcompta/branches/rel560/include/class_html_input.php      2011-06-29 
17:04:07 UTC (rev 4175)
+++ phpcompta/branches/rel560/include/class_html_input.php      2011-07-05 
21:26:47 UTC (rev 4176)
@@ -398,11 +398,12 @@
      */
     static function button_close($div_name)
     {
-    $html=' <div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">';
+      $a=new IButton('Fermer','Fermer');
+      $a->label="Fermer";
+      $a->javascript="removeDiv('".$div_name."')";
+      $html=$a->input();
 
-    $html.= '<A style="background-color:blue;color:white;text-decoration:none" 
HREF="javascript:void(0)" onclick="removeDiv(\''.$div_name.'\');">Fermer</A>';
-    $html.='</div>';
-    return $html;
+      return $html;
 
     }
     /**




reply via email to

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