Dalsi vylepseni HTML abstrakce - tentokrat <head>
[mirrors/SokoMan.git] / assistants / sell.inc.php
index 0cd1d7d4bdf69f6b828e4e582400be5ebba009d2..4bdfbfd2a6b5a907a45ee436ad99f0b1d97f669a 100644 (file)
@@ -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:
-?>
-<form action="<?=$script?>/2" method="GET">
-       item_serial: <input type="text" name="serial" autofocus />
-       <input type="submit" value="SELL" />
-</form>
-<?php
+               echo $this->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');
This page took 0.169438 seconds and 4 git commands to generate.