<?php
-$script = $_SERVER['SCRIPT_NAME'].'/assistant/dispose';
-switch($step) {
+switch($SUBPATH[0]) {
default: case 1:
?>
-<form action="<?=$script?>/2" method="GET">
- item_serial: <input type="text" name="serial" />
+<form action="<?=$URL?>/2" method="GET">
+ item_serial: <input type="text" name="serial" autofocus />
<input type="submit" value="DISPOSE" />
</form>
<?php
$current = $this->db->get_listing('item', $item_id, 1);
$current[$item_id]['status_id'] = 2;
+ $current[$item_id]['item_customer'] = 0;
$action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit";
echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action);