<h3><?php echo $title?></h3>
<form id="form" action="<?php echo SITE_URL?>/admin/action.php/ticketsystem/assign_post" method="post">
<dl>
	<dt>Ticket</dt>
	<dd><?php echo $ticket->title; ?></dd>
	<dt>Assign to</dt>
	<dd>
		<select name="assigned_to">
			<?php
			foreach($staff as $s) {?>
			<option <?php if($ticket->assigned_to == $s->pilotid) echo "selected" ; ?> value="<?php echo $s->pilotid; ?>"><?php echo $s->firstname. ' '.$s->lastname;?></option>
			<?php } ?>

	<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>
