phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php


From: nomail
Subject: [Phpgroupware-cvs] pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php, 1.3
Date: Sun, 23 May 2004 06:18:04 -0000

Update of /pbwebmaui/inc/pb.WebMAUI/lib
Modified Files:
        Branch: 
          class.dlgFilterList.php

date: 2004/05/06 10:38:45;  author: fipsfuchs;  state: Exp;  lines: +20 -19

Log Message:
patch from aschiller
=====================================================================
Index: pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php
diff -u pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php:1.2 
pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php:1.3
--- pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php:1.2    Mon Apr 19 
15:34:37 2004
+++ pbwebmaui/inc/pb.WebMAUI/lib/class.dlgFilterList.php        Thu May  6 
10:38:45 2004
@@ -65,14 +65,14 @@
          * @var object $_MailAccount
          * @access private
          */
-        var $_MailAccount; 
+        var $_MailAccount;
         /**
          * Main domain
          *
          * @var object $_MailDomain
          * @access private
          */
-        var $_MailDomain;  
+        var $_MailDomain;
         /**
          * Access level
          *
@@ -227,27 +227,28 @@
             $filters = $this->_MailAccount->getAttribute("filters");
             $dialog->setVariable("l_mail_filter", 
$this->_application->lang("mail filter"));
             $dialog->setVariable("l_absence", 
$this->_application->lang("absence"));
-            
+
 
             //fill template
             while(!empty($filters) && list($id,$filter)=each($filters)) {
                 debug (dbgAccount, 1, "filter", 
array("id"=>$id,"filter"=>$filter));
 
-                $dialog->setVariable("fldActive", 
$filter["active"]?"checked":"");
-                $dialog->setVariable("l_delete", 
$this->_application->lang("delete"));
-                $dialog->setVariable('imgDir', 
$GLOBALS['phpgw_info']['server']['webserver_url'].
-                                               
'/pbwebmaui/templates/'.'default'.'/' // hardcoded :-(
-                                    );
-                $dialog->setVariable("fldName", $filter["name"]);
-                $dialog->setVariable("fldId", $id);
-
-                //active time
-                if ($time = $filter["time"]) {
-                    $from=$time["from"];
-                    $to=$time["to"];
-                    $dialog->setVariable("fldTime", $from." - ".$to);
-                }
-
+                if ($filter['type'] <= 2) {
+                                                                       
$dialog->setVariable("fldActive", $filter["active"]?"checked":"");
+                                                                       
$dialog->setVariable("l_delete", $this->_application->lang("delete"));
+                                                                       
$dialog->setVariable('imgDir', 
$GLOBALS['phpgw_info']['server']['webserver_url'].
+                                                                               
                                                                                
                                '/pbwebmaui/templates/'.'default'.'/' // 
hardcoded :-(
+                                                                               
                                                                        );
+                                                                       
$dialog->setVariable("fldName", $filter["name"]);
+                                                                       
$dialog->setVariable("fldId", $id);
+
+                                                                       
//active time
+                                                                       if 
($time = $filter["time"]) {
+                                                                               
        $from=$time["from"];
+                                                                               
        $to=$time["to"];
+                                                                               
        $dialog->setVariable("fldTime", $from." - ".$to);
+                                                                       }
+                                                               }
                 switch ($filter["type"]) {
                     case 1: //Filter
                         $dialog->setVariable("fldLink", 
$_SERVER["PHP_SELF"]."?action=EditFilter".
@@ -258,7 +259,7 @@
                                                                                
 'id' => $id
                                                                                
 ))
                                             );
-                        
+
                         $dialog->parse("FilterList");
                         break;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]