Services Offers

Inbox


0) $pageno = $s; else $pageno = 1; $retlimit = 50; $rowcount = $loopcount; if($pageno > 1) { $Retoffset = abs(($pageno - 1) * $retlimit); $RetCompanyStartNo = $Retoffset+1; $RetCompanyEndNo = $Retoffset + $retlimit; $StartNo = $RetCompanyStartNo-1; $EndNo = $RetCompanyEndNo; } elseif($pageno == 1) { $RetCompanyStartNo = 1; $RetCompanyEndNo = $retlimit; $StartNo = 0; $EndNo = $retlimit; } else { $Retoffset = abs(($pageno - 1) * $retlimit); $RetCompanyStartNo = $Retoffset+1; $RetCompanyEndNo = $RetCompanyStartNo + $retlimit; } if($rowcount < $EndNo) $EndNo = $rowcount; $offset=0; // echo $rowcount; // echo $retlimit; $numPages = ceil($rowcount / $retlimit); //exit; if($numPages == $pageno) $RetCompanyEndNo = $rowcount; if($old == 1) $isold = "old=1&"; else $isold = ''; $Page_String = ''; if($numPages > 0) { $limit=5 ; // May be what you are looking for if ($numPages >=1 && $pageno <= $numPages) { $counter = 1; $link = ""; if ($pageno > ($limit/2)) { if($pageno == '5') { $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages=1'; $Page_String .= "".$addunderline.'1'.$closeunderline." | "; } elseif($pageno != '3' && $pageno !='2' && $pageno != '4') { $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages='.($pageno-1); $Page_String .= " Previous "; $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages=1'; $Page_String .= "".$addunderline.'1'.$closeunderline." ... "; } else { $Page_String .= ""; } } $lastno = $pageno-3; if($lastno <= 0) $lastno = 1; for ($x=$lastno; $x<=$numPages;$x++) { if($counter < $limit+2 && ($x != 1 || $x != 2)) { if($x == $pageno) { $m = $x+1; $addclass = 'style="font-size: 20px;"'; $addunderline = ""; $closeunderline = ""; } else { $addclass = ''; $addunderline = ""; $closeunderline = ""; } $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages='.$x; $Page_String .= "".$addunderline.$x.$closeunderline." | "; } $counter++; } if (($pageno < $numPages - ($limit/2)) && ($numPages > 4 )) { if($numPages == $pageno) { $addclass = 'style="font-size: 20px;"'; $addunderline = ""; $closeunderline = ""; } else { $addclass = ''; $addunderline = ""; $closeunderline = ""; } $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages='.$m; $Page_String .= "... " . " Next "; $getinbox_link = DOC_ROOT.$adminpath.'services_inbox.php?'.$isold.'pages='.$numPages; $Page_String .= "".$addunderline." Last » ".$closeunderline.""; } } } //for ($i=0;$i<$totalcount;$i++) for ($i=$StartNo;$i<$EndNo;$i++) { //$pageno = 1; $offerid = $getOfferProduct[$i]['travelofferid']; //$isoldandpageno = $pageno."/"; $travelofferid = $getOfferProduct[$i]['travelofferid']; $CountryID = $getOfferProduct[$i]['CountryID']; $CountryName = $getOfferProduct[$i]['CountryName']; $pickuplocation = ucfirst($getOfferProduct[$i]['pickuplocation']); $returntolocation = ucfirst($getOfferProduct[$i]['returntolocation']); $otherlocation = ucfirst($getOfferProduct[$i]['otherlocation']); $pickupdate = date('d M Y',strtotime($getOfferProduct[$i]['pickupdate'])); $pickuptime = $getOfferProduct[$i]['pickuptime']; $dropoffdate = date('d M Y',strtotime($getOfferProduct[$i]['dropoffdate'])); $dropofftime = $getOfferProduct[$i]['dropofftime']; $noofpassenger = $getOfferProduct[$i]['noofpassenger']; $vehicle = $getOfferProduct[$i]['vehicle']; $offersubject = $vehicle." Vehicle Required"; $travelusername = $getOfferProduct[$i]['username']; $travelusersalutation = $getOfferProduct[$i]['usersalutation']; $traveluserfirstname = ucfirst($getOfferProduct[$i]['userfirstname']); $traveluserlastname = ucfirst($getOfferProduct[$i]['userlastname']); $travelfullname = $travelusersalutation." ".$traveluserfirstname." ".$traveluserlastname; $travelusercountry = $getOfferProduct[$i]['usercountry']; $travelusercountrycode = $getOfferProduct[$i]['usercountrycode']; $travelusercitycode = $getOfferProduct[$i]['usercitycode']; $travelusertelno = $getOfferProduct[$i]['usertelno']; $travelusermobilecountrycode = $getOfferProduct[$i]['usermobilecountrycode']; $travelusermobileno = $getOfferProduct[$i]['usermobileno']; $travelusercountryid = $getOfferProduct[$i]['usercountryid']; $traveluserwhatsappmobileno = $getOfferProduct[$i]['userwhatsappmobileno']; $travelusercompany = $getOfferProduct[$i]['usercompany']; $traveluserfullname = $getOfferProduct[$i]['userfullname']; $offerread = ($getOfferProduct[$i]['offerread']=='1')?'':'class="unread"'; $offerfrom = ($travelusercompany=="")?$traveluserfullname:$travelusercompany; $len = strlen($offerfrom); if ($len > 5) { $cutlen = 7; $offerfromStarred = substr($offerfrom, 0,1). str_repeat('*',$cutlen - 2) . substr($offerfrom, $cutlen - 1 ,1); } else { $cutlen = ($len>2)?$len:2; $offerfromStarred = substr($offerfrom, 0,1). str_repeat('*',$cutlen - 2) . substr($offerfrom, $cutlen - 1 ,1); } ?> > >
Pages :  
From Subject Country Date   Subject Country Date
Inbox
 
View Details
 



View Details

Pages :