51 $select_element->addOption(0,
$xoops->getConfig(
'anonymous'));
65 $select_element->addOptionArray($users);
66 if ($user_count <=
$limit) {
72 $js_addusers =
"<script type='text/javascript'>
73 function addusers(opts){
74 var num = opts.substring(0, opts.indexOf(':'));
75 opts = opts.substring(opts.indexOf(':')+1, opts.length);
76 var sel = xoopsGetElementById('" .
$name .
"');
77 var arr = new Array(num);
78 for (var n=0; n < num; n++) {
79 var nm = opts.substring(0, opts.indexOf(':'));
80 opts = opts.substring(opts.indexOf(':')+1, opts.length);
81 var val = opts.substring(0, opts.indexOf(':'));
82 opts = opts.substring(opts.indexOf(':')+1, opts.length);
83 var txt = opts.substring(0, nm - val.length);
84 opts = opts.substring(nm - val.length, opts.length);
86 for (var k = 0; k < sel.options.length; k++) {
87 if(sel.options[k].value == val){
93 sel.options[k] = new Option(txt, val);
94 sel.options[k].selected = true;
100 $token =
$xoops->security()->createToken();
102 $action_tray->addElement(
105 '<a href="#" onclick="var sel = xoopsGetElementById(\'' .
$name
106 .
'\');
for (var i = sel.options.length-1; i >= 0; i--) {if (!sel.options[i].selected)
'
107 .'{sel.options[i] = null;}};
return false;
">' . \XoopsLocale::REMOVE_UNSELECTED_USERS . "</a>
"
110 $action_tray->addElement(
113 '<a href="#
" onclick="openWithSelfMain(\
'' . \
XoopsBaseConfig::get(
'url') .
'/include/findusers.php?target='
114 .
$name .
'&multiple=' . $multiple .
'&token=' . $token
115 .
'\', \
'userselect\', 800, 600, null); return false;" >'
if($uname== ''||$pass== '') $member_handler