Subversion Repositories taios

Rev

Blame | Last modification | View Log | RSS feed

<?php

require '../_taios.php';

$page = new Taios_Page('Add Category', '../');
$page->drawHeader();
$page->drawMiddle();

$page->checkLoggedIn();

$parentID = $_GET['parentID'];
if (empty($parentID))
{
    $parentID = -1;
}

if ($page->isUserAdmin($page->getLoggedInUser()))
{

if (isset($_GET['error']))
{
    $page->drawError($_GET['error'], false);
}

?>

<form action="add-category-do.php" method="POST">
<input type="hidden" name="parentID" value="<?php echo $parentID; ?>" />
<table>
<tr>
<td class="bold">Title: </td>
<td><input type="text" name="title" /></td>
</tr>
<tr>
<td class="bold">Description: </td>
<td><input type="text" name="description" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Add" /></td>
</tr>
</table>
</form>

<?php
}
else
{
    $page->drawError('You do not have permission to access this page.');
}

$page->drawFooter();

?>