$this->totalSumm = $totalSumm; // Десериализация строки в массив (состав заказа) foreach ($orders as $k => $order) { $orders[$k]['order_content'] = unserialize(stripslashes($order['order_content'])); if ($orders[$k]['number'] == '') { $orders[$k]['number'] = $orders[$k]['id']; DB::query("UPDATE `" . PREFIX . "order` SET `number`= " . DB::quote($orders[$k]['number']) . " WHERE `id`=" . DB::quote($orders[$k]['id']) . ""); } } $propertyOrder = MG::getOption('propertyOrder'); $propertyOrder = stripslashes($propertyOrder); $propertyOrder = unserialize($propertyOrder); $product = new Models_Product(); $exampleName = $product->getProductByUserFilter(' 1=1 LIMIT 0,1'); $ids = array_keys($exampleName); $this->exampleName = $exampleName[$ids[0]]['title']; $this->assocStatus = Models_Order::$status; $this->assocStatusClass = array('get-paid', 'get-paid', 'paid', 'get-paid', 'dont-paid', 'paid', 'get-paid'); // цветная подсветка статусов $model = new Models_Order(); $this->assocDelivery = $model->getListDelivery(); $this->assocPay = $model->getListPayment(); $this->orders = $orders; $this->pager = $navigator->getPager('forAjax'); $this->orderCount = $model->getOrderCount(); $this->countPrintRowsOrder = $countPrintRowsOrder; $this->displayFilter = $_POST['status_id'] != "null" && !empty($_POST['status_id']) || isset($_POST['applyFilter']); // так проверяем произошол ли запрос по фильтрам или нет $this->filter = $filter->getHtmlFilter(); $this->sorterData = $sorterData; $this->propertyOrder = $propertyOrder;