Rev 201 | Rev 203 | 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> |
||
35 | <td><input type="text" name="description" /></td> |
||
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> |
||
57 | </table> |
||
58 | </form> |
||
59 | |||
60 | <?php |
||
61 | } |
||
62 | else |
||
63 | { |
||
64 | $page->drawError('You do not have permission to access this page.'); |
||
65 | } |
||
66 | |||
67 | $page->drawFooter(); |
||
68 | |||
69 | ?> |