public function ajaxRestoreFilter($iced8cbcfca3c880f0f157e119d1cc6f8691e7e89) { $i05355412b857f5174e9a2f71b1e936a86ad60cd2c6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM `" . DB_PREFIX . "sp_marketing_filter` WHERE `id` = '" . $this->escape($iced8cbcfca3c880f0f157e119d1cc6f8691e7e89["filter"]) . "'"); if ($i05355412b857f5174e9a2f71b1e936a86ad60cd2c6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) { foreach ($i05355412b857f5174e9a2f71b1e936a86ad60cd2c6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i05355412b857f5174e9a2f71b1e936a86ad60cd243ef5aef4168652439ef5de195405ced9f0f7952) { $i698e6f64ca4934e15ff68883b32c0e3ae044df24 = self::getSession($this, "filter", null); if (!is_a($i698e6f64ca4934e15ff68883b32c0e3ae044df24, "activeFilter")) { $i698e6f64ca4934e15ff68883b32c0e3ae044df24 = new activeFilter($this->marketingFilter); } $i27c126497b4d7328343e141aa017829cb679381d = unserialize($i05355412b857f5174e9a2f71b1e936a86ad60cd243ef5aef4168652439ef5de195405ced9f0f7952["filter"]); $i698e6f64ca4934e15ff68883b32c0e3ae044df24->setData($i27c126497b4d7328343e141aa017829cb679381d->data); self::setSession($this, "filter", $i698e6f64ca4934e15ff68883b32c0e3ae044df24); self::setSession($this, "disableCustomer", unserialize($i05355412b857f5174e9a2f71b1e936a86ad60cd243ef5aef4168652439ef5de195405ced9f0f7952["disabled"])); self::setSession($this, "disableCustomerCount", $i05355412b857f5174e9a2f71b1e936a86ad60cd243ef5aef4168652439ef5de195405ced9f0f7952["disabled_counter"]); } } $this->sendSnippet("filters", $this->marketingFilter->getFilterItems()); $this->_okMsg[] = v_filter_been_apply; $this->invalidateSnippets(); }
public function ajaxRestoreFilter($ib1199182837e705aae8d93f525c88b1184f9395d) { $id960ddd9e843150fe4875c48e896395edac7ca1d83d1339527a9dc91b02fa99420eb13b0cd47adfe = $this->Execute("SELECT * FROM `" . DB_PREFIX . "sp_marketing_filter` WHERE `id` = '" . $this->escape($ib1199182837e705aae8d93f525c88b1184f9395d["filter"]) . "'"); if ($id960ddd9e843150fe4875c48e896395edac7ca1d83d1339527a9dc91b02fa99420eb13b0cd47adfe->num_rows) { foreach ($id960ddd9e843150fe4875c48e896395edac7ca1d83d1339527a9dc91b02fa99420eb13b0cd47adfe->rows as $id960ddd9e843150fe4875c48e896395edac7ca1d2e93e61d67c274d891066238c74ba6322d527b6d) { $iff4d7a22830d73b83e55a907cf2b7c446e53db32 = self::getSession($this, "filter", null); if (!is_a($iff4d7a22830d73b83e55a907cf2b7c446e53db32, "activeFilter")) { $iff4d7a22830d73b83e55a907cf2b7c446e53db32 = new activeFilter($this->marketingFilter); } $i45de34ca7ff6ea45eca54a7d7ac0d728d8c32396 = unserialize($id960ddd9e843150fe4875c48e896395edac7ca1d2e93e61d67c274d891066238c74ba6322d527b6d["filter"]); $iff4d7a22830d73b83e55a907cf2b7c446e53db32->setData($i45de34ca7ff6ea45eca54a7d7ac0d728d8c32396->data); self::setSession($this, "filter", $iff4d7a22830d73b83e55a907cf2b7c446e53db32); self::setSession($this, "disableCustomer", unserialize($id960ddd9e843150fe4875c48e896395edac7ca1d2e93e61d67c274d891066238c74ba6322d527b6d["disabled"])); self::setSession($this, "disableCustomerCount", $id960ddd9e843150fe4875c48e896395edac7ca1d2e93e61d67c274d891066238c74ba6322d527b6d["disabled_counter"]); } } $this->sendSnippet("filters", $this->marketingFilter->getFilterItems()); $this->_okMsg[] = v_filter_been_apply; $this->invalidateSnippets(); }