Menu

#30 perm.inc little modification (code submitted)

open
nobody
None
5
2003-12-27
2003-12-27
Anonymous
No

Dont know if this is the place to contrib to code...
but worth the try.. little thing:

in func perm_sel in class Perm in perm.inc line 90
added piece of code to allow a size attrib on the
select tab to customize the size of the select..
(release 7.4)

that is:

change
$ret = sprintf("<select multiple name=\"%s[]\"%s>\n",
$name,
($class!="")?" class=$class":"");

by:
if (isset($this->perm_sel_size))
{
$ret = sprintf("<select
size=$this->perm_sel_size multiple name=\"%s[]\"%s>\n",
$name,
($class!="")?" class=$class":"");
}
else
{
$ret = sprintf("<select multiple
name=\"%s[]\"%s>\n",
$name,
($class!="")?" class=$class":"");
}

then.. if you declare a var $perm_sel_size in your
inherited class it will put it as a tag, if you dont,
it will be the same as before.

hope you like it.. I do (and I need it)

Ariel Barreiro
ariel_barreiro@hotmail.com

Discussion


Log in to post a comment.