Commit | Line | Data |
---|---|---|
ec28d06c | 1 | <?php |
de77377e | 2 | switch($SUBPATH[0]) { |
ec28d06c TM |
3 | default: case 1: |
4 | ?> | |
de77377e | 5 | <form action="<?=$URL?>/2" method="GET"> |
e390b72f | 6 | item_serial: <input type="text" name="serial" autofocus /> |
ec28d06c TM |
7 | <input type="submit" value="DISPOSE" /> |
8 | </form> | |
9 | <?php | |
10 | break; | |
11 | case 2: | |
12 | $item_id = $this->db->map_unique('item_serial', $_GET['serial'], 'item_id', 'item'); | |
13 | $columns = $this->db->get_columns('item'); | |
14 | $selectbox = $this->db->columns_get_selectbox($columns, 'item'); | |
15 | ||
16 | $current = $this->db->get_listing('item', $item_id, 1); | |
17 | $current[$item_id]['status_id'] = 2; | |
b895e8ea | 18 | $current[$item_id]['item_customer'] = 0; |
ec28d06c TM |
19 | |
20 | $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit"; | |
21 | echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action); | |
22 | break; | |
23 | } |