<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?> " enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="2" bgcolor="#382ada" height="35">
<span class="list_heading">Editing <?php echo $_SESSION['name'] ?>...</span>
</th>
</tr>
<tr>
<td align="center" colspan="2" bgcolor="#0080ff" height="25">
<p class="edit"><?php echo $num_post_message ?></p>
</td>
</tr>
<tr>
<td colspan="2" align="center" height="40" bgcolor="#eeeeee">
<?php if(isset($pagination_row)) { echo $pagination_row; } ?>
</td>
</tr>
<tr>
<th colspan="2" bgcolor="#0080ff" height="30">
<p align="center">Page info:</p>
</th>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
page ID:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $_SESSION['page_id'] ?>
<input type="hidden" name="page_id" value="<?php echo $_SESSION['page_id'] ?>">
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Select a Category:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $category_select ?>
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Page Name:
</td>
<td bgcolor="#eeeeee" height="40">
<input type="text" name="name" value="<?php echo $_SESSION['name'] ?>" size="35" maxlength="35">
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="175">
Page Text: HTML allowed
</td>
<td bgcolor="#eeeeee" height="175">
<textarea rows="15" cols="75" name="text"><?php echo $_SESSION['text'] ?></textarea>
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Page display:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $display_select ?>
</td>
</tr>
<tr>
<th colspan="2" bgcolor="#0080ff" height="30">
<p align="center">Web Data:</p>
</th>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Web title:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $errors['title']['length'] ?>
<input type="text" name="title" value="<?php echo $_SESSION['title'] ?>" size="55" maxlength="55">
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="135">
Description:
</td>
<td bgcolor="#eeeeee" height="135">
<?php echo $errors['description']['length'] ?>
<textarea rows="5" cols="55" name="description"><?php echo $_SESSION['description'] ?></textarea>
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="135">
Key Words:
</td>
<td bgcolor="#eeeeee" height="135">
<?php echo $errors['keywords']['length'] ?>
<textarea rows="5" cols="55" name="keywords"><?php echo $_SESSION['keywords'] ?></textarea>
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Priority:
</td>
<td bgcolor="#eeeeee" height="40">
<input type="text" name="priority" value="<?php echo $_SESSION['priority'] ?>" size="1" maxlength="1">
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
Allow Comments:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $comment_select ?>
</td>
</tr>
<tr>
<td align="right" bgcolor="#eeeeee" height="40">
RSS Feed:
</td>
<td bgcolor="#eeeeee" height="40">
<?php echo $rss_select ?>
</td>
</tr>
<tr>
<th colspan="2" bgcolor="#0080ff" height="30">
<p align="center">Click "Save" to edit this page.</p>
</th>
</tr>
<tr>
<td colspan="2" align="center" height="40">
<?php echo $pagination_row ?>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" width="50%" height="75">
<p id="border"><input type="submit" id="editinput" name="gallery_edit" value="Save"></p>
</td>
<td align="center" valign="middle" width="50%" height="75">
<p id="border"><input type="submit" id="deleteinput" name="quit" value="Quit"></p>
</td>
</tr>
<tr>
<td align="center" valign="middle" width="50%" height="25">
Save Changes
</td>
<td align="center" valign="middle" width="50%" height="25">
Cancel
</td>
</tr>
</table>
<input type="hidden" name="task" value="Save">
</td>
</tr>
</table>
</form>