<% require("admin/required_include.php"); disable_cache(); $eventid = Request("eventid",C_NUM); $lotid = Request("lotid",C_NUM); $flag = Request("flag",C_NUM); if (!$eventid && !$lotid) { header("Location: auction_show.php"); die(); } // Step 1, make sure this lot isn't already reserved $tmp_lotdata = $DBObj->query_r("SELECT timestamp,shopperid,flags FROM event_lotdata WHERE id = '".RQ($lotid)."' AND eventid = '".RQ($eventid)."'"); switch($tmp_lotdata["flags"]) { // Already marked as on hold ? See if it belongs to this user and if so update the timestamp, or boot them. case 2: if ($shopper_id == $tmp_lotdata["shopperid"]) { $sqlQ = "UPDATE event_lotdata SET timestamp = ".time()." WHERE id = '".RQ($lotid)."' AND eventid = '".RQ($eventid)."'"; $DBObj->action($sqlQ); header("Location: auction_step1.php?eventid=$eventid&lotid=$lotid"); } break; } switch($flag) { // Initial entry into page case 0: $event_data = $DBObj->query_r("SELECT name,date_start,date_end,num_cols,num_rows,flags FROM event_main WHERE id = $eventid"); $auction_name = $event_data["name"]; $auction_date = $event_data["date_start"]; $num_rows = $event_data["num_rows"]; $num_cols = $event_data["num_cols"]; $auction_flags = $event_data["flags"]; break; } $lotdata = $DBObj->query_r("SELECT * FROM event_lotdata WHERE id = '".RQ($lotid)."' AND eventid = '".RQ($eventid)."'"); $next = $lotdata["lotnumber"] + 1; $last = $lotdata["lotnumber"] - 1; $nextlot = $DBObj->query_r("SELECT * FROM event_lotdata WHERE lotnumber = '".$next."' AND eventid = '".RQ($eventid)."'"); $prevlot = $DBObj->query_r("SELECT * FROM event_lotdata WHERE lotnumber = '".$last."' AND eventid = '".RQ($eventid)."'"); %> Silver Auctions
query($sqlQ,$rCnt); while($rsLoop = $DBObj->getrow()) { //$imagename = "/uploaded_images/carimages/".$lotid."_".$rsLoop["filenum"]."_thumb.".$rsLoop["fileext"]; //$imagelarge = "/uploaded_images/carimages/".$lotid."_".$rsLoop["filenum"]."_show.".$rsLoop["fileext"]; $imagename = "/uploaded_images/carimages/".$rsLoop["filename_thumb"]; $imagelarge = "/uploaded_images/carimages/".$rsLoop["filename_show"]; ?> <% require("nav_left.php"); %>


Current Auction: <%= $auction_name %> on <%= date("F jS, Y",strtotime($auction_date)) %>
         
<% if ($lotdata["flags"] != 8) { %>
You are viewing lot #<%= $DBObj->query_r("SELECT lotnumber FROM event_lotdata WHERE id = $lotid AND eventid = $eventid"); %>. <% } %>
<% if (($auction_flags & 4) == 4) { // Modify this line to make purchasing portion live ****************** if ($lotdata["flags"] == 1) { $lotdata["flags"] = 4; } } switch($lotdata["flags"]) { // available case 1: %> This lot is available for purchase. To begin the purchasing process you may create a new account or login with an already existing account. Before proceeding, be sure that this is the lot that you wish to purchase. The system will hold this lot for a period of 20 minutes for you to complete your purchase. If you have not completed your purchase in the time alloted, another user may be able to purchase this lot.

Fee Schedule for this Lot:
No-Reserve Fee: $<%= $lotdata["entry_reg"] %>
Reserve Fee: $<%= $lotdata["entry_prime"] %>



New Customers | Existing Customers <% break; // On hold case 2: %> This lot is "on hold" while another buyer purchases this lot. It may or may not become available.

<% // Unavailable case 4: %> We're sorry, this lot is unavailable for purchase online. Please call 1-800-255-4485 to consign.

<% break; // purchased case 8: %>
<% // Update the car data table $carinfo_array = split(",",$carinfo_list); for ($i = 0; $i < count($carinfo_array); $i++) { $tmparray = explode("|",$carinfo_array[$i]); $fieldname = $tmparray[0]; $fieldval = $DBObj->query_r("SELECT fieldvalue FROM event_cardata WHERE lotid = $lotid AND fieldname = '$fieldname'"); switch($fieldname) { case "bidprice": case "reserveprice": case "result": break; default: if (strlen($fieldval)) { %> <% } break; } } %>
Lot #:    <%= $DBObj->query_r("SELECT lotnumber FROM event_lotdata WHERE id = $lotid AND eventid = $eventid"); %>
<%= $tmparray[1] %>:    <%= $fieldval %>

<% $sqlQ = "SELECT * FROM event_images WHERE itemid = '".RQ($lotid)."' ORDER BY filenum"; //echo $sqlQ; $DBObj->query($sqlQ,$rCnt); while($rsLoop = $DBObj->getrow()) { //$imagename = "/uploaded_images/carimages/".$lotid."_".$rsLoop["filenum"]."_thumb.".$rsLoop["fileext"]; //$imagelarge = "/uploaded_images/carimages/".$lotid."_".$rsLoop["filenum"]."_show.".$rsLoop["fileext"]; $imagename = "/uploaded_images/carimages/".$rsLoop["filename_thumb"]; $imagelarge = "/uploaded_images/carimages/".$rsLoop["filename_show"]; %> <% } %>
<% break; } %>
<% require("nav_footer.php"); %>