<h3><?php echo $title?></h3>
<form id="form" action="<?php echo SITE_URL?>/admin/action.php/ticketsystem/edit_post" method="post">
<dl>
	<dt>Subject</dt>
	<dd><input name="title" type="text" value="<?php echo $ticket->title; ?>" /></dd>
	<dt>Content</dt>
	<dd><textarea name="content"><?php echo $ticket->content; ?></textarea></dd>
	<dt>Priority</dt>
	<dd>
		<select name="priority">
			<option <?php if($ticket->priority == 1) echo "selected"; ?> value="1">Low</option>
			<option <?php if($ticket->priority == 2) echo "selected"; ?> value="2">Medium</option>
			<option <?php if($ticket->priority == 3) echo "selected"; ?> value="3">High</option>
		</select>
	</dd>
	<dt>Priority</dt>
	<dd>
		<select name="status">
			<option <?php if($ticket->status == 1) echo "selected"; ?> value="1">Unsolved</option>
			<option <?php if($ticket->status == 2) echo "selected"; ?> value="2">Pending User Action</option>
			<option <?php if($ticket->status == 3) echo "selected"; ?> value="3">Solved</option>
		</select>
	</dd>


	<dt></dt>
	<dd><input type="hidden" name="id" value="<?php echo $ticket->id;?>" />
		<input type="submit" name="submit" value="<?php echo $title;?>" /></dd>
</dl>
</form>
