Subversion Repositories taios

Rev

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

Rev Author Line No. Line
201 tom 1
<?php
2
 
202 tom 3
require '../_taios.php';
201 tom 4
 
202 tom 5
$page = new Taios_Page('Add Project', '../');
201 tom 6
$page->drawHeader();
7
$page->drawMiddle();
8
 
9
?>
10
 
11
<p class="bold">Here you can add a project to the Tim32 database.</p>
12
<br />
13
 
14
<?php
15
 
16
if (isset($_GET['error']))
17
{
18
    $page->drawError($_GET['error'], false);
19
}
20
 
21
$page->checkLoggedIn();
22
 
23
if ($page->isUserGM($page->getLoggedInUser()))
24
{
25
?>
26
 
27
<form action="add-project-do.php" method="POST">
28
<table>
29
<tr>
30
<td class="bold">Title: </td>
31
<td><input type="text" name="title" /></td>
32
</tr>
33
<tr>
34
<td class="bold">Description: </td>
203 tom 35
<td><textarea name="description"></textarea></td>
201 tom 36
</tr>
37
<tr>
38
<td class="bold">Logo URL: </td>
39
<td><input type="text" name="logourl" /></td>
40
</tr>
41
<tr>
42
<td class="bold">Website URL: </td>
43
<td><input type="text" name="websiteurl" /></td>
44
</tr>
45
<tr>
46
<td class="bold">DownloadURL: </td>
47
<td><input type="text" name="downloadurl" /></td>
48
</tr>
49
<tr>
50
<td class="bold">Latest Version: </td>
51
<td><input type="text" name="latestversion" /></td>
52
</tr>
53
<tr>
54
<td class="bold"></td>
55
<td><input type="submit" value="Add Project" /></td>
56
</tr>
517 freddie 57
<input type="hidden" name="csrftoken" value="<?php echo $page->getCSRFToken($page->getLoggedInUser()->ID); ?>" />
201 tom 58
</table>
59
</form>
60
 
61
<?php
62
}
63
else
64
{
65
    $page->drawError('You do not have permission to access this page.');
66
}
67
 
68
$page->drawFooter();
69
 
70
?>