Commit 52f60d8aa0b734d47c9d607dcc4b41dd4c03f6b9

Authored by Michael Joseph
1 parent e34bb64f

fixed notification inputs


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1506 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
... ... @@ -12,6 +12,7 @@
12 12 function getSelectUserPage($aResults) {
13 13 global $default;
14 14  
  15 + //$sToRender = renderHeading("User Administration");
15 16 $sToRender .= "<br></br>\n";
16 17 $sToRender .= "<b>Select the User to add to the System:</b>\n";
17 18 $sToRender .= "<table>\n";
... ... @@ -32,6 +33,7 @@ function getAddPage($unitID) {
32 33  
33 34 global $default;
34 35  
  36 + //$sToRender = renderHeading("User Administration");
35 37 $sToRender .= "<br></br>\n";
36 38 $sToRender .= "<b>Add a New User to the System:</b>\n";
37 39 $sToRender .= "<table>\n";
... ... @@ -73,10 +75,10 @@ function getDetailsDBPage($suserName, $aAttributes) {
73 75 $sToRender .= "<td>Mobile: </td><td><input size = \"40\" type=\"text\" name=\"fMobile\" value = \"" . $aUserAttributes["mobile"] ."\"> </td>\n";
74 76 $sToRender .= "</tr>\n";
75 77 $sToRender .= "<tr>\n";
76   - $sToRender .= "<td>Email Notification: </td><td><input size = \"40\" type=\"text\" name=\"fEmailNotificaition\" value = \"" . $aUserAttributes["email_notification"] ."\"> </td>\n";
  78 + $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" value=\"" . $aUserAttributes["email_notification"] . "\" " . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n";
77 79 $sToRender .= "</tr>\n";
78 80 $sToRender .= "<tr>\n";
79   - $sToRender .= "<td>Sms Notification: </td><td><input size = \"40\" type=\"text\" name=\"fSmsNotification\" value = \"" . $aUserAttributes["sms_notification"] ."\"> </td>\n";
  81 + $sToRender .= "<td>Sms Notification: </td><td><input type=\"checkbox\" name=\"fSmsNotification\" value=\"" . $aUserAttributes["sms_notification"] . "\" " . ($aUserAttributes["sms_notification"] == "1" ? "checked" : "") . "\"> </td>\n";
80 82 $sToRender .= "</tr>\n";
81 83 $sToRender .= "<tr>\n";
82 84 $sToRender .= "</tr>\n";
... ... @@ -120,6 +122,11 @@ function getDetailsLDAPPage($suserName, $aAttributes) {
120 122 $sToRender .= "<tr>\n";
121 123 $sToRender .= "<td>Mobile Number: </td><td><input size = \"40\" type=\"text\" name=\"fMobile\" value = \"" . $aUserAttributes["mobile"] ."\"> </td>\n";
122 124 $sToRender .= "</tr>\n";
  125 + $sToRender .= "<tr>\n";
  126 + $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\"/> </td>\n";
  127 + $sToRender .= "</tr>\n";
  128 + $sToRender .= "<tr>\n";
  129 + $sToRender .= "<td>Sms Notification: </td><td><input type=\"checkbox\" name=\"fSmsNotification\"/> </td>\n";
123 130 $sToRender .= "<tr>\n";
124 131 $sToRender .= "</tr>\n";
125 132 $sToRender .= "<tr>\n";
... ...