getModule(BigTreeAutoModule::getModuleForView($bigtree["view"])); } $permission = $admin->getAccessLevel($bigtree["module"]["id"]); // Setup the preview action if we have a preview URL and field. if ($bigtree["view"]["preview_url"]) { $bigtree["view"]["actions"]["preview"] = "on"; } $module_page = ADMIN_ROOT.$bigtree["module"]["route"]."/"; // Retrieve our results. if ((isset($_POST["search"]) && $_POST["search"]) || (isset($_GET["search"]) && $_GET["search"])) { $search = isset($_GET["search"]) ? $_GET["search"] : $_POST["search"]; $bigtree["view"]["options"]["per_page"] = 10000000; $r = BigTreeAutoModule::getSearchResults($bigtree["view"],1,$search,"column1 ASC",false); $items = $r["results"]; } else { $items = BigTreeAutoModule::getViewData($bigtree["view"],"position DESC, CAST(id AS UNSIGNED) ASC","both"); $search = ""; } // We're going to append information to the end of an edit string so that we can return to the same page / set of search results after submitting a form. $edit_append = "?view_data=".base64_encode(json_encode(array("view" => $bigtree["view"]["id"], "search" => $search))); foreach ($items as $item) { // Stop the item status notice if (!isset($item["status"])) { $item["status"] = false; } 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/draggable.php on line 60

    Notice: Undefined variable: status in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/auto-modules/views/draggable.php on line 65
    getCachedAccessLevel($bigtree["module"],$item,$bigtree["view"]["table"]); foreach ($bigtree["view"]["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"; } ?>