mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 15:26:16 +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;
|
global $INGAME_WEBPATH;
|
||||||
$result['ingame_webpath'] = $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;
|
return $result;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,11 @@
|
||||||
<div class="control-group" style="display: inline-block; ">
|
<div class="control-group" style="display: inline-block; ">
|
||||||
<label class="control-label">username</label>
|
<label class="control-label">username</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-prepend">
|
<select style="width: 140px;" name="Name">
|
||||||
<input type="text" maxlength="15" id="Name" name="Name">
|
{foreach from=$users item=member}
|
||||||
</div>
|
<option value="{$member.name}" >{$member.name}</option>
|
||||||
|
{/foreach}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue