X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=assistants%2Fdispose.inc.php;h=18c048b2ce0f829d1eb697acc5220b59c2207ce4;hb=e7ffc208813f90877fb4787bc3947f01dd34b81f;hp=fcaf7f2cdda4246adf42f674cbb113be8dd223c2;hpb=35916247a3b7ed49d0dc758ebdf76cf636763d2c;p=mirrors%2FSokoMan.git diff --git a/assistants/dispose.inc.php b/assistants/dispose.inc.php index fcaf7f2..18c048b 100644 --- a/assistants/dispose.inc.php +++ b/assistants/dispose.inc.php @@ -1,21 +1,5 @@ html->form("$URL/2", 'GET', array( - array('serial','','text',false,'autofocus','item_serial:'), - array(false,'DISPOSE','submit') - )); - break; - case 2: - $item_id = $this->db->map_unique('item_serial', $_GET['serial'], 'item_id', 'item'); - $columns = $this->db->get_columns('item'); - $selectbox = $this->db->columns_get_selectbox($columns, 'item'); - - $current = $this->db->get_listing('item', $item_id, 1); - $current[$item_id]['status_id'] = 2; - $current[$item_id]['item_customer'] = 0; - - $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit"; - echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action); - break; -} +$status_id = 2; +$item_customer = 0; +$hide_cols_additional = array('item_customer'); +require('sell.inc.php');