aboutsummaryrefslogtreecommitdiffstats
path: root/view/acl_selectors.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-13 02:26:28 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-13 02:26:28 -0700
commit323697d9dc2b321da494f1cde0f22d8052587320 (patch)
tree89d09bdb7b29fa3ad2bdf9b4ca9ceaf850f5b1f8 /view/acl_selectors.php
parentc6267a2cd2e3a731f44df9288ced508ad90c4ca3 (diff)
downloadvolse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.tar.gz
volse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.tar.bz2
volse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.zip
more group editor
Diffstat (limited to 'view/acl_selectors.php')
-rw-r--r--view/acl_selectors.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/acl_selectors.php b/view/acl_selectors.php
index e5df4c65e..e3ee8c879 100644
--- a/view/acl_selectors.php
+++ b/view/acl_selectors.php
@@ -1,11 +1,11 @@
<?php
-function group_select($selname,$selclass,$preselected = false) {
+function group_select($selname,$selclass,$preselected = false,$size = 4) {
$o = '';
- $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"4\" />\r\n";
+ $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" />\r\n";
$r = q("SELECT * FROM `group` WHERE `uid` = %d ORDER BY `name` ASC",
$_SESSION['uid']
@@ -30,11 +30,11 @@ function group_select($selname,$selclass,$preselected = false) {
-function contact_select($selname,$selclass,$preselected = false) {
+function contact_select($selname,$selclass,$preselected = false,$size = 4) {
$o = '';
- $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"4\" />\r\n";
+ $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" />\r\n";
$r = q("SELECT `id`, `name` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 ORDER BY `name` ASC ",
$_SESSION['uid']