|
if($_GET['start']!=0){
$s=$_GET['start'];
$s=$s/10;
$s++;
$st=1;
if(($s - 3) > 0)
{ $st=$s - 3; $en=$s + 3;
if(ceil($totalrecords/10)<$en){ $en=ceil($totalrecords/10);}
}
else { $st=1; $en=9;
if(ceil($totalrecords/10)<$en){ $en=ceil($totalrecords/10);}
}
?>
< Previous ";}
if($s == $j){
echo " ".$j." ";
}else{ ?>
echo $j."";
if($j==$en){ echo " Next >";}else echo " ";
}
}
?>
".$j." ";
}else{ ?>
echo $j."";
if($j==$en){ echo " Next >";}else echo " ";
}
}
?>
|
if($totalrecords==0) echo $start;else echo $start+1;?>
-
if($totalrecords==0) echo "0";else if($totalrecords<=$start+$limit) echo $totalrecords;else echo $start+$limit;?>
of
if($totalrecords==0) echo "0";else echo $totalrecords;?>
results |
|
0 )
{
$count = 0;
if ( $totalrecords )
{
$to=9;
if($_GET['start']+10>$totalrecords){ $to=($totalrecords%10)-1;}
for($i=0;$i<=$to;$i++)
{
if(array_key_exists('jobtitle', $comarray[$i]))
{
$jobtitle = $comarray[$i]['jobtitle'];
}
if(array_key_exists('company', $comarray[$i]))
{
$company = $comarray[$i]['company'];
}
if(array_key_exists('city', $comarray[$i]))
{
$city = $comarray[$i]['city'];
}
if(array_key_exists('state', $comarray[$i]))
{
$state = $comarray[$i]['state'];
}
if(array_key_exists('country', $comarray[$i]))
{
$country = $comarray[$i]['country'];
}
if(array_key_exists('source', $comarray[$i]))
{
$source = $comarray[$i]['source'];
}
if(array_key_exists('date', $comarray[$i]))
{
$date = $comarray[$i]['date'];
}
if(array_key_exists('snippet', $comarray[$i]))
{
$snippet = $comarray[$i]['snippet'];
}
if(array_key_exists('url', $comarray[$i]))
{
$url = $comarray[$i]['url'];
}
if(array_key_exists('latitude', $comarray[$i]))
{
$latitude = $comarray[$i]['latitude'];
}
if(array_key_exists('longitude', $comarray[$i]))
{
$longitude = $comarray[$i]['longitude'];
}
?>
echo $jobtitle;?>
if($company){ $comp_search='company:"'.$company.'"';
echo "$company -";}?>
if($city) echo $city.","; if($state) echo $state.",";if($country) echo $country;?>
if($snippet) echo wordwrap($snippet,ceil(strlen($snippet)/2)+5, " ");?>
From if($source) echo $source;?> - if($date) echo $date;?>
No records found."; }
?> |
|
|