8af2da6fb70cd223ebd7f79ad6280da26f8397dc
2 $script = $_SERVER['SCRIPT_NAME'].'/assistant/store';
6 <form action
="<?=$script?>/2" method
="GET">
7 model_barcode
: <input type
="text" name
="barcode" />
8 <input type
="submit" value
="STORE" />
13 $model_id = $this->db
->map_unique('model_barcode', $_GET['barcode'], 'model_id', 'model');
14 $columns = $this->db
->get_columns('item');
15 $selectbox = $this->db
->columns_get_selectbox($columns, 'item');
17 //print_r(array('<pre>', $selectbox));
18 //foreach($selectbox['model_id'] as $id => $name) if($id != $model_id) unset($selectbox['model_id'][$id]);
19 $current = array(array(
20 'model_id' => $model_id,
25 $action = $_SERVER['SCRIPT_NAME'].'/item/new';
26 echo $this->html
->render_insert_form('item', $columns, $selectbox, $current, false, $action);
This page took 0.320388 seconds and 3 git commands to generate.