| @@ 62-64 (lines=3) @@ | ||
| 59 | ||
| 60 | if ($this->getGateway()->getDBQuery()->checkFilter("contact_id")) { |
|
| 61 | $this->getGateway()->getDBQuery()->setFilter("status", "-1"); |
|
| 62 | } elseif (isset($_GET["status"]) && $_GET['status'] != '') { |
|
| 63 | $this->getGateway()->getDBQuery()->setFilter("status", $_GET["status"]); |
|
| 64 | } else { |
|
| 65 | $this->getGateway()->getDBQuery()->setFilter("status", "-2"); |
|
| 66 | } |
|
| 67 | ||
| @@ 32-36 (lines=5) @@ | ||
| 29 | ||
| 30 | $onlinepayment = OnlinePayment::factory($this->context->getKernel()); |
|
| 31 | ||
| 32 | if (isset($_GET['status'])) { |
|
| 33 | $onlinepayment->getDBQuery()->setFilter('status', $_GET['status']); |
|
| 34 | } else { |
|
| 35 | $onlinepayment->getDBQuery()->setFilter('status', 2); |
|
| 36 | } |
|
| 37 | if (isset($_GET['text'])) { |
|
| 38 | $onlinepayment->getDBQuery()->setFilter('text', $_GET['text']); |
|
| 39 | } |
|
| @@ 40-42 (lines=3) @@ | ||
| 37 | if (isset($_GET['text'])) { |
|
| 38 | $onlinepayment->getDBQuery()->setFilter('text', $_GET['text']); |
|
| 39 | } |
|
| 40 | if (isset($_GET["from_date"]) && $_GET["from_date"] != "") { |
|
| 41 | $onlinepayment->getDBQuery()->setFilter("from_date", $_GET["from_date"]); |
|
| 42 | } |
|
| 43 | if (isset($_GET["to_date"]) && $_GET["to_date"] != "") { |
|
| 44 | $onlinepayment->getDBQuery()->setFilter("to_date", $_GET["to_date"]); |
|
| 45 | } |
|
| @@ 43-45 (lines=3) @@ | ||
| 40 | if (isset($_GET["from_date"]) && $_GET["from_date"] != "") { |
|
| 41 | $onlinepayment->getDBQuery()->setFilter("from_date", $_GET["from_date"]); |
|
| 42 | } |
|
| 43 | if (isset($_GET["to_date"]) && $_GET["to_date"] != "") { |
|
| 44 | $onlinepayment->getDBQuery()->setFilter("to_date", $_GET["to_date"]); |
|
| 45 | } |
|
| 46 | ||
| 47 | $payments = $onlinepayment->getList(); |
|
| 48 | ||