"; $all_images = file_get_contents($url); //print $all_images; if($all_images) { $q2 = "UPDATE auctionstock SET all_images = '$all_images' WHERE auctionstock.auction_id = '".$auction_id ."' "; $r2 = pg_query($q2) or die(pg_last_error()); } } if($download && $auction_id) { $pic_list = array(); //if($ZAAVIEWAUCTIONPICS) { if($line['all_images']) { $image_list = explode("#" , $line['all_images']); foreach($image_list as $img ) $pic_list[] = $img; } else { if($line[image1]) { $pic_list[] = $line[image1]; } if($line[image2]) { $pic_list[] = $line[image2]; } if($line[image3]) { $pic_list[] = $line[image3]; } if($line[image4]) { $pic_list[] = $line[image4]; } if($line[image5]) { $pic_list[] = $line[image5]; } if($line[auction_img]) { $pic_list[] = $line[auction_img]; } } } $files = array(); foreach($pic_list as $i => $pic) { $files['path'][] = $pic; $files['name'][] = "Pic ".($i+1).".jpg"; } # create new zip opbject $zip = new ZipArchive(); # create a temp file & open it $tmp_file = tempnam('/temp','AUCPIC'); $zip->open($tmp_file, ZipArchive::CREATE); # loop through each file foreach($files['path'] as $k => $file){ # download file $download_file = file_get_contents($file); fclose($handle); #add it to the zip $zip->addFromString($files['name'][$k],$download_file); } # close zip $zip->close(); # send the file to the browser as a download header('Content-disposition: attachment; filename='.$line['lot_no'].'-'.$line['auction_name'].'-pictures.zip'); header('Content-type: application/zip'); readfile($tmp_file); die(); } if($auction_id) { showpopup('detailspopup' , "" , ""); ?> */ ?>
0 ) { ?>
1 ? '12px' : '12px').";'>".$price_type."
"; if($price > 1) print $price_curr . " " . number_format($price); if($show_above_label == 0) print "".$price_type.""; ?>
".$line[lot_no]. " "; if($line[grade]) print "". substr($line[grade],0,20) ." "; print "". $line[transmission] ." "; print "". $line[color] ." "; if($drive) print "". $drive ." "; if(!$price) print " ". $line[points] ."points "; print " ". $line[cc] ."cc ".$line[mileage]."km "; ?>
start"; ?>
JPY