Commit 43c508e585b8436cf14d492cbd01ea7551a7f8ea

Authored by michael
1 parent 217b57a8

(#2946) removed sms notification from form


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2700 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
@@ -46,7 +46,7 @@ if (checkSession()) { @@ -46,7 +46,7 @@ if (checkSession()) {
46 $oAuth = new $default->authenticationClass; 46 $oAuth = new $default->authenticationClass;
47 // user attributes to search for 47 // user attributes to search for
48 if ($default->authenticationClass == "DBAuthenticator") { 48 if ($default->authenticationClass == "DBAuthenticator") {
49 - $aAttributes = array ("username", "name", "email", "mobile", "email_notification", "sms_notification"); 49 + $aAttributes = array ("username", "name", "email", "mobile", "email_notification");
50 $bLdap = false; 50 $bLdap = false;
51 } else { 51 } else {
52 //if its using LDAP get these attributes 52 //if its using LDAP get these attributes
@@ -112,9 +112,9 @@ if (checkSession()) { @@ -112,9 +112,9 @@ if (checkSession()) {
112 } else if(isset($fAddToDb)) { 112 } else if(isset($fAddToDb)) {
113 // if db authentication 113 // if db authentication
114 if(isset($fFromDb)) { 114 if(isset($fFromDb)) {
115 - $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,0,1,0); 115 + $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,false,0,1,0);
116 } else { 116 } else {
117 - $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,$fLdap,1,0); 117 + $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,false,$fLdap,1,0);
118 } 118 }
119 119
120 if($oUser->create()) { 120 if($oUser->create()) {
@@ -131,7 +131,7 @@ if (checkSession()) { @@ -131,7 +131,7 @@ if (checkSession()) {
131 } 131 }
132 } else { 132 } else {
133 if ($default->authenticationClass == "DBAuthenticator") { 133 if ($default->authenticationClass == "DBAuthenticator") {
134 - $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification", "sms_notification")); 134 + $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification"));
135 $oPatternCustom->setHtml(getDetailsDBPage(null,$aAttributes)); 135 $oPatternCustom->setHtml(getDetailsDBPage(null,$aAttributes));
136 $main->setFormAction($_SERVER["PHP_SELF"]. "?fAddToDb=1&fFromDb=1"); 136 $main->setFormAction($_SERVER["PHP_SELF"]. "?fAddToDb=1&fFromDb=1");
137 } else { 137 } else {
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc
@@ -82,9 +82,6 @@ function getDetailsDBPage($sUserName, $aAttributes) { @@ -82,9 +82,6 @@ function getDetailsDBPage($sUserName, $aAttributes) {
82 $sToRender .= "<tr>\n"; 82 $sToRender .= "<tr>\n";
83 $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" value=\"" . $aUserAttributes["email_notification"] . "\" " . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n"; 83 $sToRender .= "<td>Email Notification: </td><td><input type=\"checkbox\" name=\"fEmailNotification\" value=\"" . $aUserAttributes["email_notification"] . "\" " . ($aUserAttributes["email_notification"] == "1" ? "checked" : "") . "\"> </td>\n";
84 $sToRender .= "</tr>\n"; 84 $sToRender .= "</tr>\n";
85 - $sToRender .= "<tr>\n";  
86 - $sToRender .= "<td>Sms Notification: </td><td><input type=\"checkbox\" name=\"fSmsNotification\" value=\"" . $aUserAttributes["sms_notification"] . "\" " . ($aUserAttributes["sms_notification"] == "1" ? "checked" : "") . "> </td>\n";  
87 - $sToRender .= "</tr>\n";  
88 $sToRender .= "<tr><td><b>Initial Group</b></td><td>" . getGroupListBox() . "</td></tr>\n"; 85 $sToRender .= "<tr><td><b>Initial Group</b></td><td>" . getGroupListBox() . "</td></tr>\n";
89 $sToRender .= "<tr>\n"; 86 $sToRender .= "<tr>\n";
90 $sToRender .= "<td colspan=\"2\" align=\"right\">" . getAddButton() . getCancelButton("listUsers") . "</td>"; 87 $sToRender .= "<td colspan=\"2\" align=\"right\">" . getAddButton() . getCancelButton("listUsers") . "</td>";