2 //TODO: Merge SELL and DISPOSE to single file with parameter!
3 //TODO: Highlight fields that should be filled (and maybe even check them when submited)
4 //TODO: Add support for selling/disposing multiple items at once...
5 //TODO: Reuse /item/$item_id/edit
8 echo $this->html
->form("$URL/2", 'GET', array(
9 array('serial','','text',false,'autofocus','item_serial:'),
10 array(false,'SELL','submit')
14 $item_id = $this->db
->map_unique('item_serial', $_GET['serial'], 'item_id', 'item');
15 $columns = $this->db
->get_columns('item');
16 $selectbox = $this->db
->columns_get_selectbox($columns, 'item');
18 $current = $this->db
->get_listing('item', $item_id, 1);
19 $current[$item_id]['status_id'] = 3;
21 $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit";
22 echo $this->html
->render_insert_form('item', $columns, $selectbox, $current, false, $action);
This page took 0.244786 seconds and 4 git commands to generate.