Rev 201 | Rev 207 | 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>'); |
||
198 | tom | 28 | write('<p>' . $page->replaceBBCode($project->description) . '</p>'); |
197 | tom | 29 | write('<p>'); |
199 | tom | 30 | if (!empty($project->websiteURL)) |
197 | tom | 31 | { |
199 | tom | 32 | write('<a href="' . $project->websiteURL . '">Website</a>'); |
197 | tom | 33 | } |
199 | tom | 34 | if (!empty($project->downloadURL)) |
197 | tom | 35 | { |
199 | tom | 36 | write(' · <a href="' . $project->downloadURL . '">Download</a>'); |
197 | tom | 37 | } |
38 | write('</p>'); |
||
195 | tom | 39 | write('</td>'); |
193 | tom | 40 | write('</tr>'); |
41 | write('</table>'); |
||
191 | tom | 42 | write('<br />'); |
43 | } |
||
169 | tom | 44 | |
45 | $page->drawFooter(); |
||
46 | |||
47 | ?> |
||
48 |