getModuleByRoute($_GET["module"]); } BigTree::globalizeArray($bigtree["view"]); $search = isset($_GET["search"]) ? $_GET["search"] : ""; $page = isset($_GET["page"]) ? intval($_GET["page"]) : 1; if (isset($_GET["sort"])) { $sort = $_GET["sort"]." ".$_GET["sort_direction"]; // Append information to the end of an edit string so that we can return to the same set of search results after submitting a form. $edit_append = "?view_data=".base64_encode(json_encode(array("view" => $bigtree["view"]["id"], "sort" => $_GET["sort"], "sort_direction" => $_GET["sort_direction"], "search" => $search, "page" => $page))); } else { if (isset($options["sort_column"])) { $sort = $options["sort_column"]." ".$options["sort_direction"]; } elseif (isset($options["sort"])) { $sort = $options["sort"]; } else { $sort = "id DESC"; } // Same thing we were going to do above but omit the sort stuff. $edit_append = "?view_data=".base64_encode(json_encode(array("view" => $bigtree["view"]["id"], "search" => $search, "page" => $page))); } $module_page = ADMIN_ROOT.$bigtree["module"]["route"]."/"; // Setup the preview action if we have a preview URL and field. if ($bigtree["view"]["preview_url"]) { $actions["preview"] = "on"; } $perm = $admin->getAccessLevel($bigtree["module"]); // Handle how many pages we have and get our results. $data = BigTreeAutoModule::getSearchResults($bigtree["view"],$page,$search,$sort,false); $pages = $data["pages"]; $items = $data["results"]; foreach ($items as $item) { // If it's straight from the db, it's published. if (!isset($item["status"])) { $item["status"] = ""; } if ($item["status"] == "p") { $status = "Pending"; $status_class = "pending"; } elseif ($item["status"] == "c") { $status = "Changed"; $status_class = "pending"; } elseif ($item["status"] == "i") { $status = "Inactive"; $status_class = "inactive"; } else { $status = "Published"; $status_class = "published"; } ?>
  • $field) { $x++; $value = $item["column$x"]; ?>

    Notice: Undefined variable: value in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/auto-modules/views/searchable-page.php on line 77

    Notice: Undefined variable: status in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/auto-modules/views/searchable-page.php on line 82
    getCachedAccessLevel($bigtree["module"],$item,$bigtree["view"]["table"]); foreach ($actions as $action => $data) { if ($data == "on") { if (($action == "delete" || $action == "approve" || $action == "feature" || $action == "archive") && $iperm != "p") { if ($action == "delete" && $item["pending_owner"] == $admin->ID) { $class = "icon_delete js-delete-hook"; } else { $class = "icon_disabled js-disabled-hook"; } } else { $class = $admin->getActionClass($action,$item); } if ($action == "preview") { $link = rtrim($bigtree["view"]["preview_url"],"/")."/".$item["id"].'/" target="_preview'; } elseif ($action == "edit") { $link = $bigtree["view"]["edit_url"].$item["id"]."/".$edit_append; } else { $link = "#".$item["id"]; } $action_title = ucwords($action); if ($action == "archive" && $item["archived"]) { $action_title = "Restore"; } elseif ($action == "feature" && $item["featured"]) { $action_title = "Unfeature"; } elseif ($action == "approve" && $item["approved"]) { $action_title = "Unapprove"; } ?>