From 2a6c58cb9cbcc0fe7b24f2a45db51bb521c68392 Mon Sep 17 00:00:00 2001 From: Botanic Date: Thu, 24 Oct 2013 02:21:43 -0700 Subject: [PATCH] made users a dropdown for adding users to group --- .../server/ryzom_ams/www/html/inc/show_sgroup.php | 10 ++++++++++ .../ryzom_ams/www/html/templates/show_sgroup.tpl | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_sgroup.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_sgroup.php index 76dbe7b18..b35802551 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_sgroup.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_sgroup.php @@ -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; diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_sgroup.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_sgroup.tpl index e55d1b034..061731eab 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_sgroup.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_sgroup.tpl @@ -54,9 +54,11 @@
-
- -
+