noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 09/13: ajout à HTMLINPUT::anchor d'un style


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 09/13: ajout à HTMLINPUT::anchor d'un style ou classe
Date: Sun, 09 Nov 2014 17:25:14 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 672a84c7aa2b85235639f1941c16a0a6c1333b8a
Author: Dany De Bontridder <address@hidden>
Date:   Sun Nov 9 18:10:06 2014 +0100

    ajout à HTMLINPUT::anchor d'un style ou classe
---
 include/class_html_input.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/class_html_input.php b/include/class_html_input.php
index 19463e9..3f8ea98 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -716,8 +716,9 @@ class HtmlInput
          * @param string $p_text text of the anchor
          * @param string $p_url  url
          * @param string $p_js javascript
+         * @param string $p_style is the visuable effect (class, style...)
          */
-      static function anchor($p_text,$p_url="",$p_js="")
+      static function anchor($p_text,$p_url="",$p_js="",$p_style=' 
class="line" ')
       {
           if ($p_js != "")
           {
@@ -725,8 +726,8 @@ class HtmlInput
           }
 
 
-          $str=sprintf('<a class="line" href="%s" %s>%s</a>',
-                  $p_url,$p_js,$p_text);
+          $str=sprintf('<a %s href="%s" %s>%s</a>',
+                  $p_style,$p_url,$p_js,$p_text);
           return $str;
       }
       /**



reply via email to

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