getAttributes();
$projectManager = new \pvv\side\ProjectManager($pdo);
$project = $projectManager->getByID($projectID);
if (!$project) {
echo ":^)";
exit();
}
$members = $projectManager->getProjectMembers($projectID);
$normal_members = $members;
foreach($normal_members as $i => $data){
if($data['lead']){
unset($normal_members[$i]);
}
}
$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['name']; ?>
= $data['role'] ?>
= $data['uname']; ?>
= $data['mail']; ?>
0){
?>
Medlemmer
$data){
?>
= $data['name']; ?>
= $data['role'] ? $data['role'] : 'Deltaker' ?>
= $data['uname']; ?>
= $data['mail']; ?>