Ticket #44: cache.php.2.diff

File cache.php.2.diff, 1.3 KB (added by dmorton, 13 years ago)
Line 
184c84,85
2<     
3---
4>     var $searchfor;   
5>     var $url_add;
6148c149,154
7<                          header("Location: list-cache.php" . $sid. "?cache_type=". $this->type);
8---
9>                        if (isset($_GET['searchfor']))
10>                                $this->url_add = '&searchfor=' .$_GET['searchfor'];
11>                          else
12>                               $this->url_add = "";
13>
14>                          header("Location: list-cache.php" . $sid. "?cache_type=". $this->type . $this->url_add);
15207a214
16>       global $_GET;
17218a226,235
18>       if (isset($_GET['searchfor'])) {
19>               $this->searchfor = $_GET['searchfor'];
20>               $searchclause = "AND (maia_mail.sender_email LIKE '%$this->searchfor%' OR maia_mail.envelope_to LIKE '%$this->searchfor%') ";
21>                 $this->url_add = '&searchfor=' ."$this->searchfor";
22>
23>       } else {
24>               $searchclause = "";
25>                 $this->url_add = "";
26>       }
27>       
28225c242,243
29<               "AND maia_mail_recipients.recipient_id = ? ";
30---
31>               "AND maia_mail_recipients.recipient_id = ? ".
32>             $searchclause;
33235a254
34>               $searchclause .
35422d440
36<
37501c519,521
38<         //$this->smarty->assign("cols", $cols);   
39---
40>         //$this->smarty->assign("cols", $cols);
41>       $this->smarty->assign("searchfor",$this->searchfor);
42>       $this->smarty->assign("searchadd",$this->url_add);