SourceForge has been redesigned. Learn more.
Close

#71 Add more params to xoopstree::makemyselbox()

XOOPS_2.2
open
nobody
Core (214)
5
2012-09-25
2004-05-13
zer0fill
No

allow devs to put their own "none" values than the hard-
coded values

function makeMySelBox($title,$order="",$preset_id=0,
$none=0, $sel_name="", $onchange="")
...
if ( $none ) {
echo "<option value="0">---
-</option>\n";
}
...

TO

function makeMySelBox($title,$order="",$preset_id=0,
$none=0, $none_value=0, $none_caption="----",
$sel_name="", $onchange="")
...
if ( $none ) {
echo "<option value="$none_value">$none_caption</option>\n";
}
...

we may want to put a snazzy saying such as "- Select
One -" or (in my case) "NEW===>" which is pointing to a
text box if the options in the listbox are not acceptable.

Discussion


Log in to post a comment.