Bijoux & Objets de vitrine

Vente de bijoux et objets de vitrine

Vente en Live sur www.interencheres-live.com

Jeudi 26 juillet 2018 à 18h00

Lieu de vente

ETUDE TOLEDANO
135 cours Lamarque de Plaisance
33120 Arcachon

Exposition :

Mercredi 25 juillet de 14h à 18h

Jeudi 26 juillet de 10h à 16h

Retrouvez notre vente en Live sur www.interencheres-live.com 

 







// **************************  interenchere   
$pag =2;

    function Curlitmet($url,$params='',$method='post') {
        $method=strtolower($method);
        $user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
      
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie_curl");
        curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie_curl");   
            curl_setopt($ch, CURLOPT_TIMEOUT, 5); //en seconde
        if ($method=='post') {   
            if ($params!='')
                curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
            curl_setopt($ch, CURLOPT_POST,1);
            curl_setopt($ch, CURLOPT_URL,$url);
        } else {
            curl_setopt($ch, CURLOPT_URL,$url.(($params!='')?'?'.$params:''));
        }
        $v=curl_exec($ch);
        if (curl_errno($ch)) {
            return curl_error($ch);
        } else {
            curl_close($ch);
        }
       
    $v = substr($v,strpos($v,'<div id="lots_0">')+17);
    //$v = substr($v,strpos($v,'<!-- Barre de pagination complète -->')+38);
    $v = substr($v,0,strpos($v,'<!-- id="lots_0" -->'));

    $div = explode('<script type="text/javascript">', $v);

    $est ="";
    $photo ="";
    $desc ="";
    $numinter ="";
    $prod ="";

    $nbrcol=1;


    for ($i = 1; $i < 201; $i++) {
       
        $est ="";
        $photo ="";
        $desc ="";
        $numinter ="";
        $prod ="";
       
        $div[$i] = substr($div[$i],strpos($div[$i],'<div class="ph_vente">')+22);
        //estimation
        $est = substr($div[$i],strpos($div[$i],'<strong>Estimation</strong>'));
        $est = substr($est,0,strpos($est,'<!-- LIVE -->'));
        $est = str_replace('</li>','',$est);
        if(strpos($est,'Estimation') === false) $est="";
       
           
        //photo
        $photo = substr($div[$i],strpos($div[$i],'<span class="bloc_photo-left-150">'));
        $photo = str_replace('<span class="lot_select"></span>','',$photo);
        $photo = substr($photo,0,strpos($photo,'</span>')+7);
        $photo = str_replace('data-original','src',$photo);
       
        //if($i==1){
         //   $photo = "<tr id=".$numinter." valign=top><td align=center id=lot2 valign=top>".$photo;
        //}
           
        //desc
        $desc = substr($div[$i],strpos($div[$i],'<div class="des_vente">'));
       
        $lien = substr($desc,strpos($desc,'<a  href="')+10);
        $lien = "http://www.interencheres.com".substr($lien,0,strpos($lien,'"'));

        $photo = str_replace('href="#"','href="'.$lien.'" target="_blank"',$photo);
       
       
        $desc = substr($desc,strpos($desc,'<strong>'));
        $desc = substr($desc,0,strpos($desc,'</p>'));
        $desc = str_replace('</a>','',$desc);
       
        //num interenchere
        $numinter = substr($div[$i],strpos($div[$i],'<strong class="rouge">')+22);
        $numinter = substr($numinter,0,strpos($numinter,'</strong>'));
        $numinter = str_replace('</div>','',$numinter);
        $numinter = trim($numinter);  
       
        //$div[$i] = substr($div[$i],0,strpos($div[$i],'<div class="info_vente">'));
   
        if ($desc==""){

        }else{ 


          
            //construction
            $prod = $photo."<br><table align=center border=0 cellspacing=0 cellpadding=0 valign=bottom><tr><td><a href="/.$lien." target='_blank'><img src='http://www.toledano.fr/nouv/images/icone-loupe.png' alt='icone-loupe' width='30' height='30' /></a></td><td><a href='http://www.toledano.fr/vendre-acheter/ordre-d-achat.html'><img src='http://www.toledano.fr/nouv/images/icone-ordre.png' width='30' height='30' /></a></td><td><a href='http://www.toledano.fr/vendre-acheter/encheres-par-telephone.html'><img src='http://www.toledano.fr/nouv/images/icone-tel.png' width='30' height='30' /></a></td></tr></table>".$numinter."<br><div style='text-align: justify'>".$desc."<br>".$est."<br></div>";

           
           //ajout col

          if ($nbrcol==3){

                 $div[$i] = "<div class='center  span3' style='position:relative;'>".$prod."</div><div class='span12'></div>";
                 $nbrcol = 0;
          }else{

                  $div[$i] = "<div class='center  span3' style='position:relative;'>".$prod."</div>";

          }

          $nbrcol++;

        }
  

    }

    $v = implode(" ", $div);


    //$v= str_replace('width="90"','',$v);


    //$j = 1;


    $html = $v;


    return $html;

    }

$res ="";

for ($i = 1; $i < $pag + 1; $i++) {
    $res = $res.Curlitmet($url.'/'.$i,'','get');
}

//echo "<div class='row-fluid'>".$res."</div>";

//echo "<div class='row-container visible-first visible'><div class='container-fluid'><div class='row-fluid'><div class='moduletable center  span12'>".$res."</div></div></div></div>";

echo $res;

?>

 

{/source}