mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
made users a dropdown for adding users to group
This commit is contained in:
parent
df0f710e96
commit
aa92d18666
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