made users a dropdown for adding users to group
This commit is contained in:
parent
1e875568cb
commit
2a6c58cb9c
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