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;
}
/**
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev