$value) { $$key = $value; } foreach ($_GET as $key => $value) { $$key = $value; } foreach ($_SESSION as $key => $value) { $$key = $value; } foreach ($_REQUEST as $key => $value) { $$key = $value; } /* flikr stuff */ //$picset = $_REQUEST['Picset']; $picset=72157710466476481; $api_key = "baf17893c19370413eb561fb21b64957"; //API Key for KNudson // secret: 4cd8633733b61f38 $flickr_userid = "183694827@N07"; //user ID for KNudson //SET $recordsperpage TO THE NUMBER OF PICTURES YOU WANT PER PAGE if(!$recordsperpage){ $recordsperpage=100; } //SET $numofthumbnails TO THE NUMBER OF THUMBNAILS PER ROW //(SHOULD BE A FACTOR OF $recordsperpage) $numofthumbnails = 4; $nowtime=time(); $nowyear=date('Y', $nowtime); /* Change $recordsperpage value here to display whatever number of properties per page you want */ if(!$startrow){ $startrow=0; } $pagenum = 0; $done=false; $idxcount=0; function multisort($array, $sort_by, $key1, $key2=NULL, $key3=NULL, $key4=NULL, $key5=NULL, $key6=NULL){ // sort by ? foreach ($array as $pos => $val) $tmp_array[$pos] = $val[$sort_by]; asort($tmp_array); // display however you want foreach ($tmp_array as $pos => $val){ $return_array[$pos][$sort_by] = $array[$pos][$sort_by]; $return_array[$pos][$key1] = $array[$pos][$key1]; if (isset($key2)){ $return_array[$pos][$key2] = $array[$pos][$key2]; } if (isset($key3)){ $return_array[$pos][$key3] = $array[$pos][$key3]; } if (isset($key4)){ $return_array[$pos][$key4] = $array[$pos][$key4]; } if (isset($key5)){ $return_array[$pos][$key5] = $array[$pos][$key5]; } if (isset($key6)){ $return_array[$pos][$key6] = $array[$pos][$key6]; } } return $return_array; } if($picset){ $ch = curl_init(); /// initialize a cURL session $api_url="https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=$api_key&photoset_id=$picset&format=rest&extras=url_s%2C+url_q%2C+url_z"; curl_setopt ($ch, CURLOPT_URL, $api_url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $flickrreturn = curl_exec ($ch); //echo "$flickrreturn
"; $doc = new SimpleXmlElement($flickrreturn, LIBXML_NOCDATA); $photocount = count($doc->photoset->photo); //print_r($doc); curl_close ($ch); } /* end flikr stuff */ ?> Gallery | Knudson Transmission Service

Gallery

$recordsperpage){ ?> = $startrow and $idxcount < $startrow + $recordsperpage){ if($cellcount==1){ echo "
\r\n"; } if($picset){ $pic=$doc->photoset->photo[$a][url_s]; if($doc->photoset->photo[$a][url_z]) $pic2=$doc->photoset->photo[$a][url_z]; else $pic2=$doc->photoset->photo[$a][url_s];?>
 
"; $cellcount=1; } }else{ if($idxcount == $startrow + $recordsperpage){ //echo "DONE $idxcount $startrow $recordsperpage
"; $done=true; } if(!($idxcount % $recordsperpage)){ $pagenum++; //echo "pagenum up $pagenum idxcount $idxcount
"; } } $a++; $idxcount++; } if(!$done){ $pagenum++; } if($cellcount > 1){ echo "
\r\n"; } if($photocount > $recordsperpage){ ?> = 2) { // Do PREV NEXT and NUMBER navigation ?>
1) { // Make PREVIOUS link?> = 2) { // Make clickable NUMBER row $rowstring=""; $lowerrowstring=""; if($pagenum > 10){ $startnum = $pagenum - 10; }else{ $startnum = 1; } if($pagenum < ($totalpages - 10)){ $endnum = $pagenum + 10; }else{ $endnum = $totalpages; } for($n=$startnum;$n<=$endnum;$n++){ if ($pagenum == $n) { $rowstring .= ""; $lowerrowstring .= ""; }else{ $rowstring .= ""; $lowerrowstring .= ""; } $rowstring .= " " . $n . " "; $lowerrowstring .= " " . $n . " "; }?>
OUR
GUARANTEE
All qualifying vehicle transmission work is guaranteed with our standard 2 year / 24,000 mile nationwide warranty.

We also offer a nationwide 3 year / 50,000 mile extended warranty.
Ask us for details.
  • © , Knudson Transmission Service. All Rights Reserved.
  • Iowa Web Design by EDJE