'; if(empty($_SESSION['searchkind'])) $_SESSION['searchkind']=1; if($_REQUEST[searchkind]==2 or $_SESSION['searchkind']==2){ $_SESSION['searchkind']=2; } if($_REQUEST[searchkind]==1 or $_SESSION['searchkind']==1){ $_SESSION['searchkind']=1; echo ''; } ?>
'.$basicsearch.'   /   '.$advancesearch.'
:
/>
/> />


'.$query.'
'; $nb=mysql_query("$query"); list($nb)=mysql_fetch_array($nb); echo '

'.$inthedatabase.' : '.$nb.' '.$resultstxt.'

' ; $countM100=$nb-40; IF($countM100<0) $countM100=0; $quote=priceestimation($countM100); if($_REQUEST["justcount"]==1){ }else{ if($_REQUEST[whichbdd]=='1688'){ $query='SELECT * FROM `1688` WHERE false '.$sql.' limit '.$from.','.$howmany; }elseif($_REQUEST[whichbdd]=='alibabacom'){ $query='SELECT * FROM `alibabacom` WHERE false '.$sqlalibaba.' order by priority DESC, action DESC limit '.$from.','.$howmany; } $query=str_replace('false or','',$query); $query=str_replace('false or','',$query); $nb=mysql_query("$query"); if($_REQUEST[whichbdd]=='1688'){ echo ''; }elseif($_REQUEST[whichbdd]=='alibabacom'){ echo ''; } } $specificamount=$nb; if(!empty($_REQUEST[specificamount])) $specificamount=$_REQUEST[specificamount]; if(!empty($_REQUEST[newquotation])){ $countM100=$nb-40; IF($countM100<0) $countM100=0; if($countM100<100){ print($lessthan150contacts); }else{ $newquote=priceestimation($_REQUEST[specificamount]); $extractcontacts0=str_replace('#QT#',$_REQUEST[specificamount],$extractcontacts); $extractcontacts0=str_replace('#KW#',$_REQUEST['keyword1'],$extractcontacts0); $extractcontacts0=str_replace('#PRICE#',$newquote.' '.$RMB,$extractcontacts0); $_SESSION[chinesedatabasequotation]=$extractcontacts0; $_SESSION[chinesedatabasequotationprice]=$newquote; echo '
'.$extractcontacts0.'
'; } echo '


'.$anotherquantity.' : '; }else{ $extractcontacts0=str_replace('#QT#',$nb,$extractcontacts); $extractcontacts0=str_replace('#KW#',$_REQUEST['keyword1'],$extractcontacts0); $extractcontacts0=str_replace('#PRICE#',$quote.' '.$RMB,$extractcontacts0); $_SESSION[chinesedatabasequotation]=$extractcontacts0; $_SESSION[chinesedatabasequotationprice]=$quote; echo '
'.$pricetoaccestothisdatas.' '.$quote.''.$RMB.'



'.$anotherquantity.' : '; } } function extract_emails_from($string){ preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $string, $matches); return $matches[0]; } function priceestimation($nb){ $nborigine=$nb; $coef=1; $price=0; if($nb>2000){ $nb=$nb-2000; $price=$price+2000*$coef; }else{ $price=$price+$nb*$coef; $nb=0; } if($nb>4000){ $nb=$nb-4000; $price=$price+4000*0.8*$coef; }else{ $price=$price+$nb*0.8*$coef; $nb=0; } if($nb>8000){ $nb=$nb-8000; $price=$price+4000*0.7*$coef; }else{ $price=$price+$nb*0.7*$coef; $nb=0; } if($nb>16000){ $nb=$nb-16000; $price=$price+16000*0.6*$coef; }else{ $price=$price+$nb*0.6*$coef; $nb=0; } if($nb>32000){ $nb=$nb-32000; $price=$price+32000*0.55*$coef; }else{ $price=$price+$nb*0.55*$coef; $nb=0; } if($nb>64000){ $nb=$nb-64000; $price=$price+64000*0.5*$coef; }else{ $price=$price+$nb*0.5*$coef; $nb=0; } $price=$price+$nb*0.45*$coef; $nb=0; return $price; } /* echo '$_SESSION[chinesedatabasequotation]='.$_SESSION[chinesedatabasequotation].'
$_SESSION[chinesedatabasequotationprice]='.$_SESSION[chinesedatabasequotationprice]; */ include("footer.php"); ?>