getAttributes();
$projectManager = new \pvv\side\ProjectManager($pdo);
$project = $projectManager->getByID($projectID);
if (!$project) {
echo ":^)";
exit();
}
$members = $projectManager->getProjectMembers($projectID);
$is_owner = False;
$is_member = False;
if ($attrs){
$uname = $attrs['uid'][0];
foreach($members as $member){
if ($member['uname'] == $uname){
if ($member['owner']==1){
$is_owner = True;
}
else if ($member['owner']==0){
$is_member = True;
}
}
}
}
?>
= $project->getName(); ?>
text(implode("\n", $project->getDescription()));
?>
Prosjektledelsen
$data){
if($data['lead']){
?>
= $data['role'] ?>
= $data['name']; ?>
= $data['uname']; ?>
= $data['mail']; ?>
Medlemmer
$data){
if($data['lead']){ continue; }
?>
= $data['role'] ? $data['role'] : 'Deltaker' ?>
= $data['name']; ?>
= $data['uname']; ?>
= $data['mail']; ?>