/* print table heading */ $main_content .= tableheading($heading); $auction_endprice_text = 'auction_endprice'; $order_number_text = 'order_number'; $order_icon = olc_image(DIR_WS_ICONS . 'order.gif', BOX_ORDERS) . BLANK; $link = olc_href_link(FILENAME_ORDERS, 'oID=#&action=edit'); $i = 0; while ($auctions_values = olc_db_fetch_array($myauctions)) { $i++; if ($i % 2 == 0) { $class = $dataTableRow_1_text; } else { $class = $dataTableRow_text; } /* define content array */ $quantity = $auctions_values[$quantity_text]; $auction_id = $auctions_values[$auction_id_text]; $buyer_id = $auctions_values[$buyer_id_text]; $buyer_land = $auctions_values[$buyer_land_text]; $auction_endprice = $auctions_values[$auction_endprice_text]; $auction_endprice = olc_format_price($auction_endprice, 1, 1, 1); $endtime = $auctions_values[$endtime_text]; $order_number = $auctions_values[$order_number_text]; $content = array($cssclass_text => $class, $values_text => array(array($value_text => $quantity . $x_text . BLANK . $auctions_values[$auction_title_text], $link_text => EBAY_SERVER . EBAY_VIEWITEM . $auction_id . APOS, $linkattribute_text => $target_blank_text, $attributes_text => $align_right_text), array($value_text => $auction_id, $link_text => $getItem_text . $auction_id, $linkattribute_text => $target_blank_text, $attributes_text => $align_right_text), array($value_text => $buyer_id . $comma_blank_text . $auctions_values[$buyer_name_text] . HTML_BR . $auctions_values[$buyer_email_text]), array($value_text => $buyer_land . DASH . $auctions_values[$buyer_zip_text] . BLANK . $auctions_values[$buyer_city_text] . HTML_BR . $auctions_values[$buyer_street_text], $attributes_text => $align_right_text), array($value_text => $auction_endprice, $attributes_text => $align_right_text), array($value_text => GMT1($endtime), array($value_text => olc_image . $order_number, $link_text => str_replace(HASH, $order_number, $link), $attributes_text => $align_right_text)))); /* print content table */ $main_content .= tablecontent($content); } $page_header_subtitle = AUCTIONS_TEXT_SUB_HEADER_AUCTION_SOLD_ORDER; $show_column_right = true; $no_left_menu = false; require PROGRAM_FRAME;
/* print table heading */ $main_content = tableheading($heading); $i = 0; while ($auctions_values = olc_db_fetch_array($myauctions)) { $mybidcount = $auctions_values[$bidcount_text]; if ($mybidcount == 0) { $currentprice = DASH; } else { $currentprice = olc_format_price($auctions_values[$bidprice_text], 1, 1, 1); } /* define content array */ $i++; if ($i % 2 == 0) { $class = $dataTableRow_1_text; } else { $class = $dataTableRow_text; } $startprice = $auctions_values[$startprice_text]; $startprice = $startprice == 0 ? DASH : olc_format_price($startprice, 1, 1, 1); $buynowprice = $auctions_values[$buynowprice_text]; $buynowprice = $buynowprice == 0 ? DASH : olc_format_price($buynowprice, 1, 1, 1); $auction_title = $auctions_values[$auction_title_text]; $auction_id = $auctions_values[$auction_id_text]; $content = array($cssclass_text => $class, $values_text => array(array($value_text => $auctions_values[$quantity_text] . $x_text . $auction_title, $link_text => EBAY_SERVER . EBAY_VIEWITEM . $auction_title . APOS, $linkattribute_text => $target_blank_text, $attributes_text => $align_right_text), array($value_text => $auction_id, $link_text => $getItem_text . $auction_id, $linkattribute_text => $target_blank_text, $attributes_text => $align_right_text), array($value_text => $startprice, $attributes_text => $align_right_text), array($value_text => $buynowprice, $attributes_text => $align_right_text), array($value_text => GMT1($auctions_values[$starttime_text]), $attributes_text => $align_right_text), array($value_text => GMT1($auctions_values[$endtime_text]), $attributes_text => $align_right_text), array($value_text => $mybidcount, $attributes_text => $align_right_text), array($value_text => $currentprice, $attributes_text => $align_right_text))); /* print content table */ $main_content .= tablecontent($content); } $page_header_subtitle = AUCTIONS_TEXT_SUB_HEADER_AUCTION_LIST; $show_column_right = true; $no_left_menu = false; require PROGRAM_FRAME;