Commit d4386b12cf6e40482f42a4a37fffc3e661c7ab19
1 parent
d7080d1a
re-ordered functions
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2496 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
6 deletions
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
| @@ -8,6 +8,12 @@ | @@ -8,6 +8,12 @@ | ||
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | +function getAddUserLink() { | ||
| 12 | + global $default; | ||
| 13 | + $sBGColor = $default->siteMap->getSectionColour("Administration", "td"); | ||
| 14 | + return "<table width=\"100%\"><tr><td bgcolor=\"$sBGColor\">" . generateControllerLink("addUser", "", "<font color=\"#ffffff\">Add A User</font>") . "</td></tr></table>\n"; | ||
| 15 | +} | ||
| 16 | + | ||
| 11 | function getGroupDisplay($iGroupID) { | 17 | function getGroupDisplay($iGroupID) { |
| 12 | global $default; | 18 | global $default; |
| 13 | if (Permission::userIsSystemAdministrator()) { | 19 | if (Permission::userIsSystemAdministrator()) { |
| @@ -30,12 +36,6 @@ function getGroupDisplay($iGroupID) { | @@ -30,12 +36,6 @@ function getGroupDisplay($iGroupID) { | ||
| 30 | return "<table><tr><td><b>Filter by group </b></td><td>" . $oPatternListBox->render() . "</td></tr></table>"; | 36 | return "<table><tr><td><b>Filter by group </b></td><td>" . $oPatternListBox->render() . "</td></tr></table>"; |
| 31 | } | 37 | } |
| 32 | 38 | ||
| 33 | -function getAddUserLink() { | ||
| 34 | - global $default; | ||
| 35 | - $sBGColor = $default->siteMap->getSectionColour("Administration", "td"); | ||
| 36 | - return "<table width=\"100%\"><tr><td bgcolor=\"$sBGColor\">" . generateControllerLink("addUser", "", "<font color=\"#ffffff\">Add A User</font>") . "</td></tr></table>\n"; | ||
| 37 | -} | ||
| 38 | - | ||
| 39 | function getUsers($fGroupID) { | 39 | function getUsers($fGroupID) { |
| 40 | global $default; | 40 | global $default; |
| 41 | $sQuery = "SELECT users.id as userID, users.name as name, username, " . | 41 | $sQuery = "SELECT users.id as userID, users.name as name, username, " . |