<form class="control-panel" method="POST" action="<?php echo($_SERVER['PHP_SELF']) ?>">
	<input type="hidden" name="pageId" value="<?php echo($page['pageId']); ?>" />
	<!--
	<label>Path</label>
	<input type="text" name="path" value="<?php echo($page['path']); ?>" />
	-->
	<label>Title</label>
	<input type="text" name="title" value="<?php echo($page['title']); ?>" />
	<label>Description</label>
	<textarea name="description"><?php echo($page['description']); ?></textarea>
	<label>Content</label>
	<textarea name="content"><?php echo($page['content']); ?></textarea>
	<label>Published Date (mm/dd/yyyy)</label>
	<input name="publishedDate" value="<?php echo($page['publishedDate']); ?>" />
	<label>Category</label>
	<select name="categoryId">
	<?php
		// fetch the categories from the db
		$cda = new CategoryDataAccess(getDBLink());
		$categories = $cda->getCategoryList(false);
		
		// create the option tags
		echo(createCategoryOptions($categories, $page['categoryId']));
	?>	
	</select>
	<label>Active</label>
	<input type="radio" name="active" value="yes" <?php echo($page['active'] == "yes" ? "checked" : "") ?> /> YES	
	<input type="radio" name="active" value="no" <?php echo($page['active'] == "no" ? "checked" : "") ?> /> NO
	<br>	
	<input type="submit" value="SAVE" />	
</form>