getAttributes(); $pdo = new \PDO($dbDsn, $dbUser, $dbPass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $projectManager = new \pvv\side\ProjectManager($pdo); $projects = $projectManager->getAll(); $page = 1; if(isset($_GET['page'])){ $page = $_GET['page']; } $filterTitle = ''; if(isset($_POST['title'])){ $filterTitle = $_POST['title']; } $filterOrganiser = ''; if(isset($_POST['organiser'])){ $filterOrganiser = $_POST['organiser']; } // filter $projects = array_values(array_filter( $projects, function($project) use ($filterTitle, $filterOrganiser){ return (preg_match('/.*'.$filterTitle.'.*/i', $project->getName()) and preg_match('/.*'.$filterOrganiser.'.*/i', $project->getOwner())); } )); ?>
Prosjekt­administrasjon

Prosjekter

    getID(); ?>
  • getName() . " (ID: " . $projectID . ")"; ?>

    getOwner(); ?>

    getDescription(); ?>

    🖊'; ?> 🗑'; ?>
Forrige side'; } if(($counter == $pageLimit) and (($pageLimit * $page) < count($projects))){ echo 'Neste side'; } ?>

Verktøy

Legg inn nytt prosjekt

Filter

Navn

' ?>

Organisator

' ?>