Komplet prepsano (a prelozeno) menu, Prohloubena abstrakce generovani HTML kodu
[mirrors/SokoMan.git] / assistants / sell.inc.php
index ab60c7d187160f6a3b6d66f7814cfcb944caa25c..4bdfbfd2a6b5a907a45ee436ad99f0b1d97f669a 100644 (file)
@@ -1,16 +1,14 @@
 <?php
 //TODO: Merge SELL and DISPOSE to single file with parameter!
+//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" />
-       <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.464023 seconds and 4 git commands to generate.