' . html_head('Projects', HEAD_FLASHWAVE) . '' . html_navigation(NAV_FLASHWAVE) . '
'; ?>
Active Projects
prepare(' SELECT `project_id`, `project_name`, `project_summary`, `project_homepage`, `project_repository`, `project_forum`, `project_archived` FROM `fm_projects` WHERE `project_deleted` IS NULL ORDER BY !ISNULL(`project_archived`), `project_order` DESC '); $getProjects->execute(); $projects = $getProjects->fetchAll(PDO::FETCH_OBJ); $getLanguages = $pdo->prepare(' SELECT pl.`language_name`, pl.`language_colour` FROM `fm_proglangs` AS pl LEFT JOIN `fm_projects_proglangs` AS ppl ON ppl.`language_id` = pl.`language_id` WHERE ppl.`project_id` = :project_id ORDER BY ppl.`priority` '); foreach ($projects as $project) { $getLanguages->bindValue('project_id', $project->project_id); $getLanguages->execute(); $languages = $getLanguages->fetchAll(PDO::FETCH_OBJ); if(!$archived && !empty($project->project_archived)) { $archived = true; ?>
Archived Projects
language_colour)) { echo sprintf(' style="background-color: %1$s; box-shadow: 0 0 3px %1$s;"', html_colour($languages[0]->language_colour)); } ?>>

project_name;?>

project_summary);?>
language_name;?>
' . html_footer() . '' . html_close();