[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] CVS: squirrelmail/functions options.php,1.46,1.47
From: Paul Lesneiwski <pdontthink () users ! sourceforge ! net>
Date: 2004-07-25 13:38:59
Message-ID: E1BojDP-0004Ef-RY () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16259/functions
Modified Files:
options.php
Log Message:
Added 'trailing text' for options that SM builds, which is placed after a text input \
or select list. One less reason for plugin authors to build their own HTML.
Index: options.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/options.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -w -r1.46 -r1.47
--- options.php 25 Jul 2004 13:24:16 -0000 1.46
+++ options.php 25 Jul 2004 13:38:57 -0000 1.47
@@ -62,6 +62,7 @@
var $type;
var $refresh_level;
var $size;
+ var $trailing_text;
var $comment;
var $script;
var $post_script;
@@ -83,6 +84,7 @@
$this->refresh_level = $refresh_level;
$this->possible_values = $possible_values;
$this->size = SMOPT_SIZE_MEDIUM;
+ $this->trailing_text = '';
$this->comment = '';
$this->script = '';
$this->post_script = '';
@@ -124,6 +126,11 @@
$this->size = $size;
}
+ /* Set the trailing_text for this option. */
+ function setTrailingText($trailing_text) {
+ $this->trailing_text = $trailing_text;
+ }
+
/* Set the comment for this option. */
function setComment($comment) {
$this->comment = $comment;
@@ -210,7 +217,7 @@
$result = "<input type=\"text\" name=\"new_$this->name\" value=\"" .
htmlspecialchars($this->value) .
- "\" size=\"$width\" $this->script />\n";
+ "\" size=\"$width\" $this->script />$this->trailing_text\n";
return ($result);
}
@@ -237,7 +244,7 @@
}
/* Close the select tag and return our happy result. */
- $result .= "</select>\n";
+ $result .= "</select>$this->trailing_text\n";
return ($result);
}
@@ -436,6 +443,11 @@
$next_option->setSize($optset['size']);
}
+ /* If provided, set the trailing_text for this option. */
+ if (isset($optset['trailing_text'])) {
+ $next_option->setTrailingText($optset['trailing_text']);
+ }
+
/* If provided, set the comment for this option. */
if (isset($optset['comment'])) {
$next_option->setComment($optset['comment']);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic