?> <?php include "parts/project_" . $part . ".php"; ?> <?php } else { ?> <?php $active_project->getJoinRequests(); //if anyone can join this project, then display Join This Project link. Otherwise, display Request Permission link if ($active_project->open == "y") { ?> <p><a class="button" href="<?php echo $base_URL; ?> project/<?php echo $active_project->id; ?> /join">Join this project</a></p> <?php } else { if (in_array($active_user->id, $active_project->join_requests)) { ?> <p><i><b>You have requested permission to join this project. The project owner has been notified. When your request is acted upon, there will be a notification on your <a href="<?php
<p class="otherMembers"><span class="membersLabel">Members:</span> <?php //...AND THOSE PROJECTS' MEMBERS... $this_project->getUsers(); for ($j = 0; $j < count($this_project->users); $j++) { $this_user = new User(); $this_user->populateFromId($this_project->users[$j]); echo '<a href="' . $base_URL . 'profile/' . $this_user->username . '">' . $this_user->name . '</a> '; } if (count($this_project->users) == 0) { echo "None."; } ?> </p> <?php $this_project->getJoinRequests(); if (count($this_project->join_requests) > 0 && in_array($this_project->id, $active_user->owner_of_projects)) { ?> <p class="joinRequests"><b>Join Requests:</b></p> <ul class="joinRequests"> <?php for ($j = 0; $j < count($this_project->join_requests); $j++) { $this_user = new User(); $this_user->populateFromId($this_project->join_requests[$j]); echo '<li><a href="' . $base_URL . 'profile/' . $this_user->username . '">' . $this_user->name . '</a> <a class="approve" href="' . $base_URL . 'joinrequest/' . $this_user->id . '/' . $this_project->id . '/approve">Approve</a> <a class="deny" href="' . $base_URL . 'joinrequest/' . $this_user->id . '/' . $this_project->id . '/deny">Deny</a></li>'; } ?> </ul>