count("locations") == 0 || $database->count("categories") == 0) { header('Location: app.php?page=items&msg=noloccat'); die(); } $item = [ 'itemid' => '', 'name' => '', 'catid' => '', 'catname' => '', 'locid' => '', 'locname' => '', 'loccode' => '', 'code1' => '', 'code2' => '', 'text1' => '', 'text2' => '', 'text3' => '', 'qty' => 1, 'want' => 0, 'cost' => 0.0, 'price' => 0.0, 'userid' => '']; if (empty($VARS['id']) || !$database->has('items', ['itemid' => $VARS['id']])) { header('Location: app.php?page=items&msg=invalid_itemid'); die(); } $item = $database->get( 'items', [ '[>]categories' => [ 'catid' => 'catid' ], '[>]locations' => [ 'locid' => 'locid' ] ], [ 'itemid', 'name', 'code1', 'code2', 'text1', 'text2', 'text3', 'items.catid', 'catname', 'items.locid', 'locname', 'loccode', 'qty', 'want', 'cost', 'price', 'userid' ], [ 'itemid' => $VARS['id'] ]); ?>
get('date'); ?> | get('amount'); ?> | get('description'); ?> | get('changed by'); ?> |
---|---|---|---|
getName() . " (" . $user->getUsername() . ")"; ?> |