switch($SUBPATH[0]) {
default: case 1:
+ $serial = isset($_GET['serial']) ? htmlspecialchars($_GET['serial']) : ''; //TODO: XSS
echo $this->html->form("$URL/2", 'GET', array(
- array('serial','','text',false,'autofocus','item_serial:'),
+ array('serial',$serial,'text',false,'autofocus','item_serial:'),
array('quantity','1','text',false,false,'quantity:'),
array(false,$button_label,'submit')
));
'model_id' => array(array('item',$where_url)),
'model_barcode' => array(array('store','assistant/%d?barcode=%v'))
),
+ 'item' => array(
+ 'item_serial' => array(array('dispose','assistant/%d?serial=%v'),array('sell','assistant/%d?serial=%v'))
+ ),
'category' => array('category_id' => array(array('item',$where_url))),
'producer' => array('producer_id' => array(array('item',$where_url))),
'vendor' => array('vendor_id' => array(array('item',$where_url))),