Example #1
0
 public function Backup()
 {
     $view = new View("views/backup");
     $view->setArray(array("profiles" => $this->GetProfiles(), "schedules" => $this->GetSchedules()));
     $view->render();
     $this->load_sripts();
 }
Example #2
0
 private function Preview()
 {
     $products_with_variations = isset($this->data["products_with_variations"]) ? $this->data["products_with_variations"] : 'Off';
     $orders_with_fancy = isset($this->data["orders_with_fancy"]) ? $this->data["orders_with_fancy"] : 'Off';
     $filter = array("recordsstatus" => $this->data["recordsstatus"], "recordsauthor" => $this->data["recordsauthor"], "date-from" => $this->data["date-from"], "date-to" => $this->data["date-to"], "datatype" => $this->data["datatype"], "products_with_variations" => $products_with_variations, "orders_with_fancy" => $orders_with_fancy, "order" => "ID" . " ASC", "limit" => 500);
     if (isset($this->data["prod-cats"])) {
         $filter["prod-cats"] = $this->data["prod-cats"];
     }
     $view = new View("views/datatable");
     $view->setArray(array("fields" => Fields::Get($this->data["datatype"]), "data" => $this->core->GetData($filter), "totalfound" => $this->core->totalfound, "datatype" => $this->data["datatype"]));
     echo json_encode(array("success" => true, "datatable" => $view->render(false)));
 }