function determinePaging($totRecs, $atts) { $numPages = $totRecs / $atts[7]; $str = '<div>'; for ($i = 1; $i <= $numPages; $i++) { $str .= createPageLink($i, $atts); } if ($totRecs % $atts[7] != 0) { $str .= createPageLink($i, $atts); //$str .= '<span class="pagination"><a href="' . $pageUrl . '?sort=' . $atts[0] . '&ad=' . $atts[1] . '&StatusType=' . $atts[3] . '&agent=' . $atts[4] . '&commentSearch=' . $atts[5] .'&pge=' .$i . '">' . $i . '</a></span>'; } $str .= '</div>'; return $str; // a href='{$curUrl}?sort=tix.last_name&ad={$results[2]}&StatusType={$results[3]}&agent={$results[4]}&commentSearch={$results[5]}&page={$results[8]}' }
<a href="https://www.kapohokine.com/reservationFareHarbor.php?<?php echo $record['book_it_now_button']; ?>" name="reserveNow" id="reserve"><img src="/images/reserveNow.jpg" width="181" height="39" alt="Book It Now!" title="Book It Now!" /></a> </div> <?php else: ?> <div class="reserveBtnSec" style="padding-left:16px;"> <form id="reserve" name="reserveNow" method="post" action="http://www.kapohokine.com/reservation.php"> <input type="image" title="Book It Now!" alt="Book It Now!" value="Reserve Now" src="/images/reserveNow.jpg"> </form> </div> <? endif; ?> <!-- STEP2a: /Display Uploads --> </div> <div class="rightDesc"> <h1><a href="<?php echo createPageLink($record['slug'] ); ?>"><?php echo $record['headline_text'] ?></h1></a> <?php echo maxWords($record['description'], 30) . '...' ?> <br /><a href="<?php echo createPageLink($record['slug'] ); ?>">More Info</a><br /><br /> <? if(isset($record['facebook_album_id']) && $record['facebook_album_id'] != ""):?> <? $fbConfig = array( "fbID" => @$record["facebook_album_id"], "fb_cache_file" => @$record["fb_album_cache_file"] ); $fbGalleryObjs[$groupNumber] = new fbGallery($fbConfig); $fbGalleryObjs[$groupNumber]->getPhotos($groupNumber); ?> <?php else: ?> <?php foreach ($record['gallery'] as $upload): ?> <a class="group<?php echo $groupNumber; ?>" href="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1']; ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="75" alt="" style="border:5px solid #ededed;" /></a> <?php endforeach; ?> <? endif; ?> </div>