Commit 7cfcbe3cf72cd33093768844490ccd8b6f4e045c
1 parent
4a94978f
added headings
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1577 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
17 additions
and
21 deletions
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupBL.php
| ... | ... | @@ -13,6 +13,7 @@ if (checkSession()) { |
| 13 | 13 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); |
| 14 | 14 | require_once("$default->fileSystemRoot/lib/visualpatterns/PatternEditableListFromQuery.inc"); |
| 15 | 15 | require_once("removeGroupUI.inc"); |
| 16 | + require_once("../adminUI.inc"); | |
| 16 | 17 | require_once("$default->fileSystemRoot/lib/security/permission.inc"); |
| 17 | 18 | require_once("$default->fileSystemRoot/lib/groups/Group.inc"); |
| 18 | 19 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |
presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/removeGroupUI.inc
| ... | ... | @@ -14,17 +14,14 @@ function getDeletePage($iGroupID) { |
| 14 | 14 | $oGroup = null; |
| 15 | 15 | if (isset($iGroupID)) { |
| 16 | 16 | $oGroup = Group::get($iGroupID); |
| 17 | - $sToRender .= "<br></br>\n"; | |
| 18 | - $sToRender .= "<b>Are you sure you wish to Remove this Group?:</b>\n"; | |
| 19 | - } | |
| 20 | - else{ | |
| 21 | - $sToRender .= "<br></br>\n"; | |
| 22 | - $sToRender .= "<b>Remove Group From System:</b>\n"; | |
| 23 | - } | |
| 17 | + $sHeading = "<b>Are you sure you wish to Remove this Group?:</b>\n"; | |
| 18 | + } else { | |
| 19 | + $sHeading = "Please select a group: "; | |
| 20 | + } | |
| 24 | 21 | |
| 22 | + $sToRender .= "<table width=\"600\">" . renderHeading("Remove Group") . "</table>"; | |
| 25 | 23 | $sToRender .= "<table>\n"; |
| 26 | - $sToRender .= "<br></br>\n"; | |
| 27 | - $sToRender .= "<tr></tr>\n"; | |
| 24 | + $sToRender .= "<tr><td>$sHeading</td></tr>\n"; | |
| 28 | 25 | $sToRender .= "<tr>\n"; |
| 29 | 26 | $sToRender .= "<td>Group Name: " . getGroupDisplay($oGroup) . "</td>\n"; |
| 30 | 27 | $sToRender .= "</tr>\n"; |
| ... | ... | @@ -52,8 +49,8 @@ function getDeleteSuccessPage() { |
| 52 | 49 | |
| 53 | 50 | global $default; |
| 54 | 51 | |
| 55 | -$sToRender = "<br></br>\n" ; | |
| 56 | -$sToRender .= "<TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\">\n"; | |
| 52 | +$sToRender .= "<table width=\"600\">" . renderHeading("Remove Group") . "</table>"; | |
| 53 | +$sToRender .= "<table>\n"; | |
| 57 | 54 | $sToRender .= "<tr>\n"; |
| 58 | 55 | $sToRender .= "<td><b>Group SuccessFully Removed!</b></td>\n"; |
| 59 | 56 | $sToRender .= "</tr>\n"; |
| ... | ... | @@ -74,8 +71,8 @@ function getDeleteFailPage() { |
| 74 | 71 | |
| 75 | 72 | global $default; |
| 76 | 73 | |
| 77 | -$sToRender = "<br></br>\n" ; | |
| 78 | -$sToRender .= "<TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\">\n"; | |
| 74 | +$sToRender .= "<table width=\"600\">" . renderHeading("Remove Group") . "</table>"; | |
| 75 | +$sToRender .= "<table>\n"; | |
| 79 | 76 | $sToRender .= "<tr>\n"; |
| 80 | 77 | $sToRender .= "<td><b>Deletion Failed!</b></td>\n"; |
| 81 | 78 | $sToRender .= "</tr>\n"; |
| ... | ... | @@ -111,7 +108,7 @@ function getUnitAdminCheckBox($oGroup) { |
| 111 | 108 | if (!isset($oGroup)) { |
| 112 | 109 | return ""; |
| 113 | 110 | } else { |
| 114 | - return "Unit Administrator: <input type=\"checkbox\" name=\"fGroupUnitAdmin\" " . ($oGroup->getUnitAdmin() ? "CHECKED " : " ") . " />"; | |
| 111 | + return "Unit Administrator: <input disabled=\"true\" type=\"checkbox\" name=\"fGroupUnitAdmin\" " . ($oGroup->getUnitAdmin() ? "CHECKED " : " ") . " />"; | |
| 115 | 112 | } |
| 116 | 113 | } |
| 117 | 114 | |
| ... | ... | @@ -120,7 +117,7 @@ function getSysAdminCheckBox($oGroup) { |
| 120 | 117 | if (!isset($oGroup)) { |
| 121 | 118 | return ""; |
| 122 | 119 | } else { |
| 123 | - return "System Administrator: <input type=\"checkbox\" name=\"fGroupSysAdmin\" " . ($oGroup->getSysAdmin() ? "CHECKED " : " ") . " />"; | |
| 120 | + return "System Administrator: <input disabled=\"true\" type=\"checkbox\" name=\"fGroupSysAdmin\" " . ($oGroup->getSysAdmin() ? "CHECKED " : " ") . " />"; | |
| 124 | 121 | } |
| 125 | 122 | |
| 126 | 123 | } |
| ... | ... | @@ -128,11 +125,9 @@ function getSysAdminCheckBox($oGroup) { |
| 128 | 125 | // show delete button |
| 129 | 126 | function getDeleteButton($oGroup) { |
| 130 | 127 | global $default; |
| 131 | - if (!isset($oGroup)) { | |
| 132 | - return "Please select a group: "; | |
| 133 | - } else { | |
| 134 | - return "<td align = right><input type=\"image\" src =\"$default->graphicsUrl/widgets/delete.gif\" value=\"submit\" border=\"0\"/></td>\n". | |
| 135 | - "<td align = right><a href=\"$default->rootUrl/control.php?action=removeGroup\"><img src =\"$default->graphicsUrl/widgets/cancel.gif\" border = \"0\" /></a></td>\n"; | |
| 136 | - } | |
| 128 | + if (isset($oGroup)) { | |
| 129 | + return "<td align = right><input type=\"image\" src =\"$default->graphicsUrl/widgets/delete.gif\" value=\"submit\" border=\"0\"/></td>\n". | |
| 130 | + "<td align = right><a href=\"$default->rootUrl/control.php?action=removeGroup\"><img src =\"$default->graphicsUrl/widgets/cancel.gif\" border = \"0\" /></a></td>\n"; | |
| 131 | + } | |
| 137 | 132 | } |
| 138 | 133 | ?> | ... | ... |