################################################################# ## PHP Pro Bid v6.03 ## ##-------------------------------------------------------------## ## Copyright ©2007 PHP Pro Software LTD. All rights reserved. ## ##-------------------------------------------------------------## ################################################################# session_start(); define ('IN_SITE', 1); include_once ('includes/global.php'); include_once ('includes/class_formchecker.php'); include_once ('includes/class_custom_field.php'); include_once ('includes/class_user.php'); include_once ('includes/class_fees.php'); include_once ('includes/class_item.php'); include_once ('includes/functions_item.php'); require ('global_header.php'); (array) $user_details = null; $start_time_id = 1; $end_time_id = 2; $item = new item(); $item->setts = &$setts; $item->layout = &$layout; $page_handle = 'auction'; $item_details = $db->get_sql_row("SELECT * FROM " . DB_PREFIX . "auctions WHERE auction_id='" . $_REQUEST['auction_id'] . "'"); if ($item->count_contents($item_details)) { if ($_REQUEST['option'] == 'retract_bid' && $session->value('user_id') == $item_details['owner_id']) { $retract_output = $item->retract_bid($_REQUEST['bidder_id'], $_REQUEST['auction_id']); $template->set('msg_changes_saved', '
' . $retract_output['display'] . '
'); } $template->set('bid_history_header', header5(MSG_VIEW_BID_HISTORY)); $template->set('item_details', $item_details); //$template->set('fees', $fees); $template->set('session', $session); $template->set('item', $item); $sql_select_history = $db->query("SELECT b.*, u.user_id, u.username FROM " . DB_PREFIX . "bids b LEFT JOIN " . DB_PREFIX . "users u ON u.user_id=b.bidder_id WHERE b.auction_id='".$_REQUEST['auction_id']."' ORDER BY b.bid_out ASC, b.bid_id DESC"); (string) $bid_history_content = null; $remaining_quantity = $item_details['quantity']; while ($bid_details = $db->fetch_array($sql_select_history)) { $background = ($counter++%2) ? 'c1' : 'c2'; $background .= (!$bid_details['bid_out']) ? ' bold_item hl_item' : ''; $bid_history_content .= '' . MSG_AUCTION_DETAILS_ERROR_CONTENT . '
'); $template_output .= $template->process('single_message.tpl.php'); } include_once ('global_footer.php'); echo $template_output; ?>