?>
</a> <?php 
                if (in_array($this_project->id, $active_user->owner_of_projects)) {
                    echo '<span class="isOwner">Owner</span>';
                }
                ?>
</h4>
			
			<p class="desc"><?php 
                echo $this_project->description;
                ?>
</p>
			
			<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)) {
                    ?>
**    ACH is distributed in the hope that it will be useful,
**    but WITHOUT ANY WARRANTY; without even the implied warranty of
**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**    GNU General Public License for more details.
**
**    You should have received a copy of the GNU General Public License
**    along with Open Source ACH. If not, see <http://www.gnu.org/licenses/>.
//////////////////////////////////////////////////////////////////////////////// */
/* this file is the parent of every project-specific page. It needs to be cleaned up: divs, JS scripts and PHP
	are pretty messy here */
include "code/includes.php";
$id = $_REQUEST['id'];
$part = $_REQUEST['part'];
$active_project = new Project();
$active_project->populateFromID($id);
$active_project->getUsers();
$active_owner = new User();
$active_owner->populateFromID($active_project->user_id);
?>



<html>
<head>
	<title>
	<?php 
if ($active_project->id === NULL) {
    ?>
	
		ACH: This project does not exist
	<?php 
 public function getUsers($projectid)
 {
     $convProjectID = $this->getProject($projectid);
     if ($convProjectID != false) {
         $project = new Project($convProjectID);
         return $project->getUsers();
     }
 }