Changeset 3636 for branches/2.2/filemanager/inc/class.notifications.inc.php
- Timestamp:
- 12/28/10 10:09:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/inc/class.notifications.inc.php
r3632 r3636 130 130 { 131 131 $id = $_GET['filemanagerId']; 132 $return = " ";132 $return = "False"; 133 133 134 134 if( $this->db ) 135 135 { 136 136 $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"; 142 140 } 143 141 … … 145 143 } 146 144 147 public function Search Email( $pData )145 public function SearchId( $pData ) 148 146 { 149 $query = "SELECT * FROM phpgw_filemanager_notification WHERE email_from like '%".$pData."%';";147 $query = "SELECT * FROM phpgw_filemanager_notification WHERE filemanager_id ='".$pData."';"; 150 148 151 149 if( $this->db ) 152 150 { 153 151 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) ) 154 169 { 155 170 while( $this->db->next_record())
Note: See TracChangeset
for help on using the changeset viewer.