getModule(BigTreeAutoModule::getModuleForView($bigtree["view"])); } $module_page = ADMIN_ROOT.$bigtree["module"]["route"]."/"; $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"; } function _localDrawLevel($items,$depth) { global $bigtree,$module_page,$permission,$admin; foreach ($items as $item) { $expanded = !empty($_COOKIE["bigtree_admin"]["nested_views"][$bigtree["view"]["id"]][$item["id"]]) ? true : false; $children = BigTreeAutoModule::getViewDataForGroup($bigtree["view"],$item["id"],"position DESC, id ASC","both"); // 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"; } if ($expanded) { $status_class .= " expanded"; } ?>
  • $field) { $x++; $value = $item["column$x"]; if ($x == 1) { $field["width"] -= 20; } ?>

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

    Notice: Undefined variable: status in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/auto-modules/views/nested.php on line 69
    getCachedAccessLevel($bigtree["module"],$item,$bigtree["view"]["table"]); foreach ($bigtree["view"]["actions"] as $action => $data) { if ($data == "on") { if ($iperm == "n" || !$iperm || (($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"; } ?>
    "; } else { echo '"; } ?>