Ignore:
Timestamp:
12/28/10 10:09:59 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1468 - Notificacao por email de uploads de arquivos enviados pelo modulo Filemanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/inc/class.notifications.inc.php

    r3632 r3636  
    130130        { 
    131131                $id     = $_GET['filemanagerId'];                
    132                 $return = ""; 
     132                $return = "False"; 
    133133                 
    134134                if( $this->db ) 
    135135                { 
    136136                        $query = "DELETE FROM phpgw_filemanager_notification WHERE filemanager_id = '".$id."';"; 
    137                          
    138                         if( !$this->db->query($query) ) 
    139                                 $return = "False"; 
    140                         else 
    141                                 $return = "True"; 
     137 
     138                        if( $this->db->query( $query ) ) 
     139                                $return = "True"; 
    142140                } 
    143141                 
     
    145143        } 
    146144         
    147         public function SearchEmail( $pData ) 
     145        public function SearchId( $pData ) 
    148146        { 
    149                 $query = "SELECT * FROM phpgw_filemanager_notification WHERE email_from like '%".$pData."%';"; 
     147                $query = "SELECT * FROM phpgw_filemanager_notification WHERE filemanager_id ='".$pData."';"; 
    150148                 
    151149                if( $this->db ) 
    152150                { 
    153151                        if( $this->db->query($query) ) 
     152                        { 
     153                                while( $this->db->next_record()) 
     154                                        $result[] = $this->db->row();                                    
     155                        } 
     156                } 
     157                 
     158                return $result; 
     159        } 
     160         
     161        public function SearchEmail( $pEmail, $pLimit, $pOffset ) 
     162        { 
     163                $query = "SELECT * FROM phpgw_filemanager_notification WHERE email_from like '%".$pEmail."%' " . 
     164                                 "ORDER BY email_from OFFSET (".$pOffset."-1)*".$pLimit." LIMIT ".$pLimit.";"; 
     165 
     166                if( $this->db ) 
     167                { 
     168                        if( $this->db->query($query, __LINE__, __FILE__, $pOffset) ) 
    154169                        { 
    155170                                while( $this->db->next_record()) 
Note: See TracChangeset for help on using the changeset viewer.