2 //TODO: Merge SELL and DISPOSE to single file with parameter!
3 //TODO: Add support for selling/disposing multiple items at once...
4 //TODO: Reuse /item/$item_id/edit
5 $script = $_SERVER['SCRIPT_NAME'].'/assistant/sell';
9 <form action
="<?=$script?>/2" method
="GET">
10 item_serial
: <input type
="text" name
="serial" autofocus
/>
11 <input type
="submit" value
="SELL" />
16 $item_id = $this->db
->map_unique('item_serial', $_GET['serial'], 'item_id', 'item');
17 $columns = $this->db
->get_columns('item');
18 $selectbox = $this->db
->columns_get_selectbox($columns, 'item');
20 $current = $this->db
->get_listing('item', $item_id, 1);
21 $current[$item_id]['status_id'] = 3;
23 $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit";
24 echo $this->html
->render_insert_form('item', $columns, $selectbox, $current, false, $action);
This page took 0.267488 seconds and 5 git commands to generate.