<?php
require '../_taios.php';
$page = new Taios_Page
('Add Project', '../');
$page->drawHeader();
$page->drawMiddle();
?>
<p class="bold">Here you can add a project to the Tim32 database.</p>
<br />
<?php
if (isset($_GET['error']))
{
$page->drawError($_GET['error'], false);
}
$page->checkLoggedIn();
if ($page->isUserGM($page->getLoggedInUser()))
{
?>
<form action="add-project-do.php" method="POST">
<table>
<tr>
<td class="bold">Title: </td>
<td><input type="text" name="title" /></td>
</tr>
<tr>
<td class="bold">Description: </td>
<td><textarea name="description"></textarea></td>
</tr>
<tr>
<td class="bold">Logo URL: </td>
<td><input type="text" name="logourl" /></td>
</tr>
<tr>
<td class="bold">Website URL: </td>
<td><input type="text" name="websiteurl" /></td>
</tr>
<tr>
<td class="bold">DownloadURL: </td>
<td><input type="text" name="downloadurl" /></td>
</tr>
<tr>
<td class="bold">Latest Version: </td>
<td><input type="text" name="latestversion" /></td>
</tr>
<tr>
<td class="bold"></td>
<td><input type="submit" value="Add Project" /></td>
</tr>
<input type="hidden" name="csrftoken" value="
<?php echo $page->getCSRFToken($page->getLoggedInUser()->ID); ?>" />
</table>
</form>
<?php
}
else
{
$page->drawError('You do not have permission to access this page.');
}
$page->drawFooter();
?>