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