Code

removed old stuff, we don't need that anymore
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Jun 2005 13:02:36 +0000 (13:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Jun 2005 13:02:36 +0000 (13:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@815 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index b131b2b98073baf90ec4af893a31164d9a7877e7..dd7c7677729042962273b84e64a8e8eb1677357b 100644 (file)
@@ -251,11 +251,11 @@ class phoneAccount extends plugin
           $str="<select name='".$var."' ".chkacl($this->acl, "goFonMacro").">";
 
           if($choosen){
-            $str.="<option name='".$var."' value='0'>"._("false")."</option>";
-            $str.="<option name='".$var."' value='1' selected>"._("true")."</option>";
+            $str.="\n<option name='".$var."' value='0'>"._("false")."</option>";
+            $str.="\n<option name='".$var."' value='1' selected>"._("true")."</option>";
           }else{
-            $str.="<option name='".$var."' value='0' selected>"._("false")."</option>";
-            $str.="<option name='".$var."' value='1'>"._("true")."</option>";
+            $str.="\n<option name='".$var."' value='0' selected>"._("false")."</option>";
+            $str.="\n<option name='".$var."' value='1'>"._("true")."</option>";
           }
           $str.="<select name='".$var."'>";
         }
@@ -380,28 +380,6 @@ class phoneAccount extends plugin
     }
     $smarty->assign("forwarder_list", $forwarder_list);
 
-
-
-    /* Check box * /
-    if ($this->parent->by_object['mailAccount'] &&
-        $this->parent->by_object['mailAccount']->is_account &&
-        preg_match("/M/i", $this->goFonDeliveryMode)){
-      $smarty->assign("fon_to_mail", "checked");
-    } else {
-      $smarty->assign("fon_to_mail", "");
-    }
-    
-   
-    if (!isset($this->parent->by_object['mailAccount'])) {
-      $smarty->assign("has_mailaccount", "false");
-      $this->has_mailAccount= false;
-    } elseif ( !$this->parent->by_object['mailAccount']->is_account){
-      $smarty->assign("has_mailaccount", "false");
-      $this->has_mailAccount= false;
-    } else {
-      $smarty->assign("has_mailaccount", "true");
-    }
-    */
     /* Show main page */
     $display.= $smarty->fetch(get_template_path('generic.tpl', TRUE, dirname(__FILE__)));
     return($display);
@@ -437,13 +415,6 @@ class phoneAccount extends plugin
         }
       }
 
-
-      /* Check if mail account is active and correct the internal
-         reference to represent the current status. * /
-      if ($this->parent->by_object['mailAccount']->is_account){
-        $this->has_mailAccount= TRUE;
-      }
-      */
       /* Every macro in the select box are available */
       if((isset($_POST['macro']))){
         $this->macrostillavailable=true;
@@ -507,13 +478,6 @@ class phoneAccount extends plugin
   {
     plugin::save();
 
-    /* goFonAccount has "mail" as must! Block if no mailaddress is specified... * /
-    if (isset($this->parent->by_object['mailAccount']) &&
-        !$this->parent->by_object['mailAccount']->is_account) {
-
-      $this->goFonDeliveryMode= preg_replace("/M/i", "", $this->goFonDeliveryMode);
-    }
-    */
     /* Save arrays */
     $this->attrs['telephoneNumber']= array();
     foreach ($this->phoneNumbers as $number){