Rev 207 |
Rev 209 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
require '../_taios.php';
$page = new Taios_Page
('Projects', '../');
$page->drawHeader();
$page->drawMiddle();
write
('<p class="bold">Here you can find all the projects that are created by members of Tim32!</p><br />');
if ($page->isUserGM($page->getLoggedInUser()))
{
write
('<p class="bold"><a href="add-project.php">Add Project</a></p>');
write
('<br />');
}
$ids = $page->findIDs('Projects', 'ORDER BY LastUpdate DESC');
for ($i = 0; $i < count($ids); $i++)
{
$id = $ids[$i];
$project = $page->getProject($id);
write
('<h3>' . $project->title . '</h3>');
write
('<table style="border: 0px;">');
write
('<tr>');
write
('<td style="border: 0px; vertical-align: top;"><img class="smiley" src="' . $project->logoURL . '" /></td>');
write
('<td style="border: 0px;">');
write
('<h4>Latest Version: ' . $project->latestVersion . '</h4>');
write
('<p>Project Author: ' . $project->author->name . '</p>');
write
('<p>' . $page->replaceBBCode($project->description) . '</p>');
write
('<p>');
if (!empty($project->websiteURL))
{
write
('<a href="' . $project->websiteURL . '">Website</a>');
}
if (!empty($project->downloadURL))
{
write
(' · <a href="' . $project->downloadURL . '">Download</a>');
}
write
('</p>');
write
('</td>');
write
('</tr>');
write
('</table>');
write
('<br />');
}
$page->drawFooter();
?>