[dev] Horde::raiseMessage() in HTML

Giannici Federico giannici at neomedia.it
Wed Nov 19 07:39:18 PST 2003


I had to show a Horde::raiseMessage() but with an HTML text (I need to 
put a link and a linebreak).

If you want to implement it, here are a couple of very little patches 
against RELENG HORDE and IMP.

Bye.



--- lib/Horde.php-orig  Wed Nov 19 15:50:22 2003
+++ lib/Horde.php       Wed Nov 19 15:51:45 2003
@@ -49,6 +49,9 @@
  /** @constant HORDE_ERROR Unrecoverable failure. */
  define('HORDE_ERROR', 4);

+/** @constant HORDE_HTMLMESSAGE An informational message in HTML. */
+define('HORDE_HTMLMESSAGE', 5);
+

  /**
   * Removes given elements at request shutdown.

--- imp/status.php-orig Wed Nov 19 15:49:42 2003
+++ imp/status.php      Wed Nov 19 15:52:48 2003
@@ -43,6 +43,11 @@
              echo '<tr><td class="control">' . 
Horde::img('alerts/warning.gif', 'alt="' . _("Warning") . '" 
class="control"', $registry->getGraphicsPath("horde")) . 
'&nbsp;&nbsp;<b>' . htmlspecialchars($message['message']) . 
'</b></td></tr>';
              break;

+        case HORDE_HTMLMESSAGE:
+        default:
+            echo '<tr><td class="control">' . 
Horde::img('alerts/message.gif', 'alt="' . _("Message") . '" 
class="control"', $registry->getGraphicsPath("horde")) . 
'&nbsp;&nbsp;<b>' . $message['message'] . '</b></td></tr>';
+            break;
+
          case HORDE_MESSAGE:
          default:
              echo '<tr><td class="control">' . 
Horde::img('alerts/message.gif', 'alt="' . _("Message") . '" 
class="control"', $registry->getGraphicsPath("horde")) . 
'&nbsp;&nbsp;<b>' . htmlspecialchars($message['message']) . 
'</b></td></tr>';


-- 
___________________________________________________
     __
    |-                      giannici at neomedia.it
    |ederico Giannici      http://www.neomedia.it

___________________________________________________



More information about the dev mailing list