$duration_attr_type_r = fetch_sfieldtype_item_attribute_type_r($borrowed_item_r['s_item_type'], 'DURATION'); $listingObject->addDisplayColumn($duration_attr_type_r['s_attribute_type'], NULL, $duration_attr_type_r['display_type'], $borrowed_item_r['borrow_duration']); } else { $listingObject->addColumn(get_opendb_lang_var('undefined')); } } } } $listingObject->addColumn(nl2br($borrowed_item_r['more_information'])); $listingObject->endRow(); } // End of while @db_free_result($result); } $listingObject->endListing(); if ($listingObject->isCheckboxColumns() > 0) { if ($HTTP_VARS['op'] == 'my_reserve_basket') { $checkbox_action_rs[] = array('action' => $PHP_SELF, 'op' => 'delete_from_my_reserve_basket', link => get_opendb_lang_var('delete_from_reserve_list')); $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'reserve', link => get_opendb_lang_var('reserve_item(s)')); $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'reserve_all', 'checked' => FALSE, link => get_opendb_lang_var('reserve_all_item(s)')); } else { if ($HTTP_VARS['op'] == 'my_reserved') { $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'cancel_reserve', link => get_opendb_lang_var('cancel_reservation(s)')); } else { if ($HTTP_VARS['op'] == 'owner_borrowed') { $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'check_in', link => get_opendb_lang_var('check_in_item(s)')); if (is_valid_opendb_mailer()) { $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'reminder', link => get_opendb_lang_var('send_reminder(s)')); } if (get_opendb_config_var('borrow', 'duration_support') !== FALSE) { $checkbox_action_rs[] = array('action' => 'item_borrow.php', 'op' => 'extension', link => get_opendb_lang_var('borrow_duration_extension(s)'));