Komplet prepsano (a prelozeno) menu, Prohloubena abstrakce generovani HTML kodu
[mirrors/SokoMan.git] / assistants / sell.inc.php
index af7ef8b5e47d28568d8ea34059b2bb115dd4c86c..4bdfbfd2a6b5a907a45ee436ad99f0b1d97f669a 100644 (file)
@@ -5,12 +5,10 @@
 //TODO: Reuse /item/$item_id/edit
 switch($SUBPATH[0]) {
        default: case 1:
-?>
-<form action="<?=$URL?>/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.093698 seconds and 4 git commands to generate.