Novy assistent pro jednorazove naskladneni, status "deleted" presunut na id 0
[mirrors/SokoMan.git] / assistants / store-single.inc.php
CommitLineData
bda4a4be
TM
1<?php
2$script = $_SERVER['SCRIPT_NAME'].'/assistant/store-single';
3$this->process_http_request_post('new', false, false, 'assistant/store-single/2');
4switch($step) {
5 default: case 1:
6 echo $this->render_form_add('model');
7 break;
8 case 2:
9 $model_id = trim($_GET['last']);
10 $columns = $this->db->get_columns('item');
11 $selectbox = $this->db->columns_get_selectbox($columns, 'item');
12
13 $current = array(array(
14 'model_id' => $model_id,
15 'item_quantity' => 1,
16 'status_id' => 1
17 ));
18
19 $action = $_SERVER['SCRIPT_NAME'].'/item/new';
20 echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action);
21 break;
22}
This page took 0.119921 seconds and 4 git commands to generate.