<th width="10%" class="table-header-repeat line-left"><a href="javascript:void(0)">Image</a></th>
                      <th width="35%" class="table-header-repeat line-left"><a href="javascript:void(0)">Car Name</a></th>
                      <th width="10%" class="table-header-repeat line-left"><a href="javascript:void(0)">End Time</a></th>
                      <th width="10%" class="table-header-repeat line-left"><a href="javascript:void(0)">Price</a></th>
                      <th width="5%" class="table-header-repeat line-left"><a href="javascript:void(0);">Options</a></th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php 
if ($total_rows > 0) {
    $ii = 1;
    while ($item = mysql_fetch_object($resp)) {
        $itemId = $item->itemId;
        $title = $item->title;
        $buyItNowPrice = $item->buyItNowPrice;
        $time = convertTimeLeft($item->endTime);
        $link = DEFAULT_URL . "/ebayview.php?carid=" . $itemId;
        $spec = explode("~", $item->stdequip);
        foreach ($spec as $spex) {
            $spexs = explode("^", $spex);
            $specs[$spexs[0]] = $spexs[1];
        }
        $galleryURL = array_shift(explode("**", $item->galleryURL));
        if ($galleryURL == '') {
            $galleryURL = LIST_ROOT . "/images/default.jpg";
        }
        ?>
                    <tr <?php 
        if ($ii % 2 == 0) {
            echo 'class="alternate-row"';
        }
     $dbCarCount++;
     $itemId = (string) $item->itemId;
     $link = $item->viewItemURL;
     $postalCode = $item->postalCode;
     $location = $item->location;
     $country = $item->country;
     $listingType = $item->listingInfo->listingType;
     $buyItNowAvailable = $item->listingInfo->buyItNowAvailable;
     $buyItNowPrice = $item->sellingStatus->convertedCurrentPrice;
     if ($item->listingInfo->buyItNowAvailable == 'true') {
         $buyItNowPrice = $item->listingInfo->buyItNowPrice;
         $buyItNowAvailable = 1;
     } else {
         $buyItNowAvailable = 0;
     }
     $time = convertTimeLeft($item->sellingStatus->timeLeft);
     $endson = $item->listingInfo->endTime;
     $endtimestamp = strtotime($endson);
     $galleryURL = isset($item->galleryPlusPictureURL) ? $item->galleryPlusPictureURL : $item->galleryURL;
     $forward_str = "&title=" . urlencode($item->title) . "&buyItNowPrice=" . $buyItNowPrice . "&postalCode=" . $postalCode . "&location=" . urlencode($location) . "&listingType=" . $listingType . "&endson=" . $endson . "&endtimestamp=" . $endtimestamp . "&buyItNowAvailable=" . $buyItNowAvailable;
     $arr = array("link" => DEFAULT_URL . "/ebay/" . $itemId, "time" => $time, "title" => (string) $item->title, "buyItNowPrice" => (int) $buyItNowPrice, "galleryURL" => (string) $galleryURL, "forward_str" => $forward_str);
     $ebay_arr[$itemId] = $arr;
     $ins_str .= "(2, {$itemId}, \"" . mysql_real_escape_string($arr[title]) . "\", {$arr['buyItNowPrice']},'" . base64_encode(serialize($arr)) . "'),";
 }
 /*
 $cars_arr = array();
 if(count($cars) >=1){
 	foreach($cars as $car) {
 		$dbCarCount++;
 		
 		$temp = $common->getCarWithAttrList($car ,array("fullName","images","price","mileage","features"));