Subversion Repositories taios

Rev

Rev 284 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
283 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Add Category', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
9
$page->checkLoggedIn();
10
 
11
$parentID = $_GET['parentID'];
12
if (empty($parentID))
13
{
14
    $parentID = -1;
15
}
16
 
17
$categoryID = $_GET['categoryID'];
18
if (empty($categoryID))
19
{
20
    $categoryID = -1;
21
}
22
 
23
if ($page->isLoggedIn())
24
{
25
 
26
if (isset($_GET['error']))
27
{
28
    $page->drawError($_GET['error'], false);
29
}
30
 
31
?>
32
 
33
<form action="add-post-do.php" method="POST">
34
<input type="hidden" name="parentID" value="<?php echo $parentID; ?>" />
35
<input type="hidden" name="categoryID" value="<?php echo $categoryID; ?>" />
36
<table>
37
<tr>
38
<td class="bold">Title: </td>
39
<td><input type="text" name="title" /></td>
40
</tr>
41
<tr>
42
<td class="bold">Content: </td>
43
<td><input type="text" name="content" /></td>
44
</tr>
45
<tr>
46
<td></td>
47
<td><input type="submit" value="Add" /></td>
48
</tr>
49
</table>
50
</form>
51
 
52
<?php
53
}
54
else
55
{
56
    $page->drawError('You do not have permission to access this page.');
57
}
58
 
59
$page->drawFooter();
60
 
61
?>
62