| @@ 514-516 (lines=3) @@ | ||
| 511 | $i = 0; |
|
| 512 | $this->getDBQuery()->setCondition('newsletter_subscriber.optin = '.$this->getDBQuery()->getFilter('optin')); |
|
| 513 | $this->getDBQuery()->setCondition('newsletter_subscriber.active = '.$this->getDBQuery()->getFilter('active')); |
|
| 514 | if ($this->getDBQuery()->checkFilter("q")) { |
|
| 515 | $this->getDBQuery()->setCondition("(address.name LIKE \"%".$this->getDBQuery()->getFilter("q")."%\" OR address.email LIKE \"%".$this->getDBQuery()->getFilter("q")."%\")"); |
|
| 516 | } |
|
| 517 | ||
| 518 | $db = $this->getDBQuery()->getRecordset("newsletter_subscriber.id, date_optin_email_sent, contact_id, resend_optin_email_count, date_submitted, DATE_FORMAT(date_submitted, '%d-%m-%Y') AS dk_date_submitted, optin", "", false); |
|
| 519 | ||
| @@ 456-458 (lines=3) @@ | ||
| 453 | $this->getDBQuery()->setCondition("status_key = ".intval($this->getDBQuery()->getFilter('status'))); |
|
| 454 | } |
|
| 455 | ||
| 456 | if ($this->getDBQuery()->getFilter('text') != "") { |
|
| 457 | $this->getDBQuery()->setCondition("transaction_number LIKE \"%".$this->getDBQuery()->getFilter('text')."%\" OR text LIKE \"%".$this->dbquery->getFilter('text')."%\""); |
|
| 458 | } |
|
| 459 | ||
| 460 | if ($this->getDBQuery()->checkFilter("from_date")) { |
|
| 461 | $date = new Intraface_Date($this->getDBQuery()->getFilter("from_date")); |
|