04bf68443c4ec5fec79c096576355bd8f1dbb618
[mirrors/SokoMan.git] / assistants / store-single.inc.php
1 <?php
2 $script = $_SERVER['SCRIPT_NAME'].'/assistant/store-single';
3 $this->process_http_request_post('new', false, false, 'assistant/store-single/2');
4 switch($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.270888 seconds and 4 git commands to generate.