CodeIgniter Forums

Full Version: implement pagination
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Tyler's pace quickened, pushing deeper and deeper into Anna. With each thrust he added more and more force causing an audible yelp as the increasing sensation continuously surprised and pleased his little sister. His hands squeezed and groped rapaciously. Methodically he made sure to examine and enjoy every inch of her body; her legs, her thighs, abdomen, chest, neck, shoulder, lips, hair. His hands became entangled in the mane flowing down from the half bun style she frequented. Anna winced as his grip tightened and Tyler pulled her head back. She reflexively arched her back as she felt his lips and teeth pinch her fully exposed neck. Her orgasm continued to flurry through her body, quickly all sense of self dissolved and she went limp. Her eyes were open, her mouth agape, but nothing, not even breath betrayed her status. Her leg was held up by Tyler's right hand, his fingers digging into the tissue, her head was still pulled back tightly by his left. Her hands had fallen by her side, knuckles white as the clenched down on the edge of the dining table. The room was silent, save the sound of Tyler's heavy breathing, and the slurping sound of his cock smashing in and out of her cum-laden cunt. She couldn't recall a time she was this wet. Her juices dripped down Tyler's balls and onto the fabric of the chair. A different Anna may have been concerned that it may stain the upholstery, this Anna did not. In fact, she may even have hoped it would.

https://bbwporn.love/

Suddenly Anna gasped as if coming up for as Tyler pressed with his cock hard into her. He rammed her body with such force that it jolted her back further onto the dining table, Tyler did so as well, lifting his leg onto the edge as he reached climax. Anna swore he grew another half inch, as she clenched and quivered, still riding the waves of ecstasy. They held their position, cleft to one another, both panting as if they’d finished a marathon. Neither seemed sure as to what the future held, both hoped it held more of this. Anna could feel the warmth of his cum as his cock continued to spurt jizz deep in her cervix. Her hand reached up to his exposed him and pulled him closer then trailed up his muscular chest before grabbing the back of his neck and pulling him down to her lips. Their tongues danced and darted around and to Anna’s surprise, she realized Tyler’s cock seemed unfazed by blowing his load. He slowly began to push into her, back and forth. Anna began to grind her waist against him elated that the fun had only just began.


https://bbwporn.fans/
Anna bit down on Tyler’s lip as she felt his cock fully vacate her hole only to ram in unapologetically back in, splitting her open with blunt force. She screamed into his mouth as he continued with his thrustful assault, sliding her further onto the table and climbing up himself. Anna could feel his feet press up under her ass, rotating her hips slightly more upward. His hands reached down, under her thighs and gripped the nape of her back from under her dress which spread legs while lifting them up and backwards. This combined with his feet and the new angle he was smashing into her from sent a shockwave into her g-spot, conjuring a guttural moaning as the sensation overwhelmed her. She reached her arms up and squeezed the biceps that currently pinned her in this pretzel shape. Her eyes took in the sheer eroticism before her. Tyler’s gruff exterior typically belied his warm nature, but tonight, it was a spot on reference. She could feel his callouses like sandpaper on the soft, delicate skin of her back. His lean, muscular frame was not that of the body builder, but one who’s muscles stemmed from practical use. They held her effortlessly in place as he continued to seamlessly ram her open with a precision only rivalled by his confidence. She caught his gaze as his pace began to rise. It was like he saw straight through her, right down to her soul.. deeper, down to the primal nature of her being – down to the lust, dormant for so long, but awakened and writhing under her dermis. A mischievous smile crept across his face and Anna knew even more pleasure was on the horizon.



With a few more violent thrusts Tyler released her from his grasps. Her legs were numb and shaky; she knew walking would be difficult. Tyler climbed off the table and surveyed Anna’s splayed body. Her dress was in shambles, stretched, ripped and stained. One of her heels managed to stay on, the other dangled by the strap around her ankle. She watched him inhale deeply as if soaking in the site through his breath then exhale a manifestation of the sheer desire that lead him. Without a word Tyler picked Anna up and threw her over his shoulder. It was as if it was that first morning again, the closeness of their bond undaunted... or rather magnified by the depravity they shared. Anna perched up her elbows on his back and rested her face in their crook. From this position she watched the dining room disappear out of view as Tyler rounded the hall and climbed the stairs that led to her bedroom. Her pussy was throbbing - she needed more.

https://chubbyporn.ooo/

Anna bounced on the bed from the force Tyler threw her with and proceeded to slip her shoulders out of her dress. With one succinct pull Tyler ripped it off of her, then untangled her dangling heel and unstrapped the pair. Once again he took in the site before him, his and her cum dripped from her pussy and pelvis, sweat and spit glistened on her soft, creamy skin. He pounced once again, cock first.
this for ci3 i use and work prefectlay 

PHP Code:
index(){
$temp $this->category_model->getAllcategory(null);

 
$nextprevious $this->myhelper->nextpervious($temp1);
 
$data['previous'] = $nextprevious['previous'];
 
$data['next'] = $nextprevious['next'];
 
$data['target'] = 1;

 
$range $this->myhelper->getMinMaxRange($this->myhelper->getNumberRows($temp), 1);

 
$data['minRange'] = $range['min'];
 
$data['maxRange'] = $range['max'];





PHP Code:
class Hepler{

 public function 
nextpervious($arr$page)
 {


 
$rows ceil($this->getNumberRows($arr) / 10);


 
$nextprevious null;

 if (
$rows == 0) {
 
$next 0;
 
$previous 0;
 
$nextprevious = array('next' => $next'previous' => $previous);

 } else if (
$rows == 1) {

 
$next 1;
 
$previous 1;
 
$nextprevious = array('next' => $next'previous' => $previous);


 } else if (
$rows && $page $rows) {

 
$next $page 1;
 
$previous $page 1;
 
$nextprevious = array('next' => $next'previous' => $previous);


 } else if (
$rows && $page == $rows) {

 
$next $page;
 
$previous $page 1;
 
$nextprevious = array('next' => $next'previous' => $previous);


 }


 return 
$nextprevious;
 }

 public function 
getMinMaxRange($rows$point)
 {


 
$topRange ceil($rows 10);
 
$maxRange 0;
 
$minRange 0;


 if (
$topRange <= 10) {


 
$minRange 1;
 
$maxRange $topRange;
 return array(
'min' => $minRange'max' => $maxRange);

 }


 if (
$point 5) {
 
$minRange 1;
 
$maxRange 10;
 return array(
'min' => $minRange'max' => $maxRange);
 } else if (
$point >= 5) {


 if (
$point $topRange) {
 
$minRange $topRange 10;


 
$maxRange $topRange;
 return array(
'min' => $minRange'max' => $maxRange);

 } else {

 
$minRange $point 4;


 
$maxRange = ($minRange 9);
 return array(
'min' => $minRange'max' => $maxRange);

 }


 }


 } 
PHP Code:
public function getNumberRows($arr
PHP Code:

PHP Code:
if (isset($arr)) { 
PHP Code:
return count($arr); 
PHP Code:
} else { 
PHP Code:
return 0
PHP Code:

PHP Code:
}




Code:
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">

<li><a href="category/point?id=<?= $previous; ?>">&laquo;</a></li>

<?php


for (; $minRange <= $maxRange; $minRange++):
if ($target == $minRange):
?>
<li class="active"><a class="mycursor"
  href="category/point?id=<?= $minRange; ?>"><?= $minRange ?></a>
</li>

<?php else: ?>
<li class=""><a class="mycursor"
href="category/point?id=<?= $minRange; ?>"><?= $minRange ?></a></li>

<?php

endif;
endfor; ?>
<li><a href="category/point?id=<?= $next; ?>">&raquo;</a></li>

</ul>
</div>