Subversion Repositories taios

Rev

Rev 207 | Rev 209 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
169 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Projects', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
196 tom 9
write('<p class="bold">Here you can find all the projects that are created by members of Tim32!</p><br />');
201 tom 10
if ($page->isUserGM($page->getLoggedInUser()))
11
{
12
    write('<p class="bold"><a href="add-project.php">Add Project</a></p>');
13
    write('<br />');
14
}
196 tom 15
 
191 tom 16
$ids = $page->findIDs('Projects', 'ORDER BY LastUpdate DESC');
17
for ($i = 0; $i < count($ids); $i++)
18
{
19
    $id = $ids[$i];
20
    $project = $page->getProject($id);
21
 
22
    write('<h3>' . $project->title . '</h3>');
194 tom 23
    write('<table style="border: 0px;">');
193 tom 24
    write('<tr>');
205 tom 25
    write('<td style="border: 0px; vertical-align: top;"><img class="smiley" src="' . $project->logoURL . '" /></td>');
195 tom 26
    write('<td style="border: 0px;">');
27
    write('<h4>Latest Version: ' . $project->latestVersion . '</h4>');
208 tom 28
    write('<p>Project Author: ' . $project->author->name . '</p>');
198 tom 29
    write('<p>' . $page->replaceBBCode($project->description) . '</p>');
197 tom 30
    write('<p>');
199 tom 31
    if (!empty($project->websiteURL))
197 tom 32
    {
199 tom 33
        write('<a href="' . $project->websiteURL . '">Website</a>');
197 tom 34
    }
199 tom 35
    if (!empty($project->downloadURL))
197 tom 36
    {
199 tom 37
        write(' &middot; <a href="' . $project->downloadURL . '">Download</a>');
197 tom 38
    }
39
    write('</p>');
195 tom 40
    write('</td>');
193 tom 41
    write('</tr>');
42
    write('</table>');
191 tom 43
    write('<br />');
44
}
169 tom 45
 
46
$page->drawFooter();
47
 
48
?>
49