mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 09:28:45 +00:00
made users a dropdown for adding users to group
--HG-- branch : rc-botanic-webdev
This commit is contained in:
parent
632a6f2929
commit
04619a39a9
2 changed files with 15 additions and 3 deletions
|
@ -47,6 +47,16 @@ function show_sgroup(){
|
|||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
$result['teamlist'] = Gui_Elements::make_table(Ticket_User::getModsAndAdmins(), Array("getTUserId","getExternId"), Array("tUserId","externId"));
|
||||
$i = 0;
|
||||
foreach( $result['teamlist'] as $member){
|
||||
$web_teammember = new Webusers($member['externId']);
|
||||
if (!In_Support_Group::userExistsInSGroup($member['externId'], $result['target_id'])) {
|
||||
$result['users'][$i]['name'] = $web_teammember->getUsername();
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
|
||||
|
|
|
@ -54,9 +54,11 @@
|
|||
<div class="control-group" style="display: inline-block; ">
|
||||
<label class="control-label">username</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend">
|
||||
<input type="text" maxlength="15" id="Name" name="Name">
|
||||
</div>
|
||||
<select style="width: 140px;" name="Name">
|
||||
{foreach from=$users item=member}
|
||||
<option value="{$member.name}" >{$member.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue