X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=assistants%2Fsell.inc.php;h=4bdfbfd2a6b5a907a45ee436ad99f0b1d97f669a;hb=ec106ddfe653ea6da6d65d537d38f19a9a7776e7;hp=0cd1d7d4bdf69f6b828e4e582400be5ebba009d2;hpb=b895e8ea58501324022903810c67e778b2344779;p=mirrors%2FSokoMan.git diff --git a/assistants/sell.inc.php b/assistants/sell.inc.php index 0cd1d7d..4bdfbfd 100644 --- a/assistants/sell.inc.php +++ b/assistants/sell.inc.php @@ -3,15 +3,12 @@ //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: -?> -
- item_serial: - -
-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');