made users a dropdown for adding users to group

This commit is contained in:
Botanic 2013-10-24 02:21:43 -07:00
parent df0f710e96
commit aa92d18666
2 changed files with 15 additions and 3 deletions

View file

@ -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;

View file

@ -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>