//TODO: Highlight fields that should be filled (and maybe even check them when submited)
//TODO: Add support for selling/disposing multiple items at once...
//TODO: Reuse /item/$item_id/edit
-$script = $_SERVER['SCRIPT_NAME'].'/assistant/sell';
-switch($step) {
+switch($SUBPATH[0]) {
default: case 1:
-?>
-<form action="<?=$script?>/2" method="GET">
- item_serial: <input type="text" name="serial" autofocus />
- <input type="submit" value="SELL" />
-</form>
-<?php
+ echo $this->html->form("$URL/2", 'GET', array(
+ array('serial','','text',false,'autofocus','item_serial:'),
+ array(false,'SELL','submit')
+ ));
break;
case 2:
$item_id = $this->db->map_unique('item_serial', $_GET['serial'], 'item_id', 'item');