SōkoMan byl pokrten
[mirrors/SokoMan.git] / assistants / sell.inc.php
index 64130efbe11a6e3857f5dc8657353a0ec38e69e6..af7ef8b5e47d28568d8ea34059b2bb115dd4c86c 100644 (file)
@@ -1,12 +1,12 @@
 <?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">
+<form action="<?=$URL?>/2" method="GET">
        item_serial: <input type="text" name="serial" autofocus />
        <input type="submit" value="SELL" />
 </form>
This page took 0.115651 seconds and 4 git commands to generate.