Offers Services Offers

Inbox


0) $pageno = $s; else $pageno = 1; $retlimit = 50; $rowcount = $loopcount; /* if($rowcount < $retlimit && $pageno != 1) { $RetCompanyStartNo = 1; $RetCompanyEndNo = $rowcount; $StartNo = 0; $EndNo = $RetCompanyEndNo; } else */ 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.'inbox.php?'.$isold.'pages=1'.$servicesinbox; $Page_String .= "".$addunderline.'1'.$closeunderline." | "; } elseif($pageno != '3' && $pageno !='2' && $pageno != '4') { $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages='.($pageno-1).$servicesinbox; $Page_String .= " Previous "; $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages=1'.$servicesinbox; $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.'inbox.php?'.$isold.'pages='.$x.$servicesinbox; $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.'inbox.php?'.$isold.'pages='.$m.$servicesinbox; $Page_String .= "... " . " Next "; $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages='.$numPages.$servicesinbox; $Page_String .= "".$addunderline." Last » ".$closeunderline.""; } } } /* if($numPages > 0) { for($j=1;$j<=$numPages;$j++) { if($j == $pageno) { $addclass = 'style="font-size: 20px;border: 1px solid;"'; $addunderline = ""; $closeunderline = ""; } else { $addclass = ''; $addunderline = ""; $closeunderline = ""; } if ($numPages==$j) { $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages='.$j; $Page_String .="".$addunderline.$j.$closeunderline.""; } elseif($j==1) { $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages='.$j; $Page_String .="".$addunderline.$j.$closeunderline." | "; } else { $getinbox_link = DOC_ROOT.$adminpath.'inbox.php?'.$isold.'pages='.$j; $Page_String .="".$addunderline.$j.$closeunderline." | "; } } } */ ?> 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); } $userverified = 'Verified '; $linkadd="?serviceoffer=1"; } else { //echo 'g enq user'.$G_enqbaseduser; $offerid = $eventlisting[$i]['offerid']; $companyofferid = $eventlisting[$i]['companyofferid']; $offerfrom = ($eventlisting[$i]['usercompany']=="")?$eventlisting[$i]['userfullname']:$eventlisting[$i]['usercompany']; $usercountry = $eventlisting[$i]['usercountry']; $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); } $offersubject = ($eventlisting[$i]['offertitle']=="")?preview_text($eventlisting[$i]['offerdesc'],40):$eventlisting[$i]['offertitle']; $offerdate = formatdate($eventlisting[$i]['offerdate'],"M d Y"); $offerread = ($eventlisting[$i]['offerread']=='1')?'':'class="unread"'; $offerseenincp = $eventlisting[$i]['offerseenincp']; $offerbyuserid = $eventlisting[$i]['offerbyuserid']; $userverified =''; if ($eventlisting[$i]['userverified']=='1') { $verified = 'Verified '; if ($eventlisting[$i]['verifiedemail']=='1') { $verified .= 'Email'; } if ($eventlisting[$i]['verifiedphoneno']=='1') { $verified .= ' Mobile'; } $userverified = 'Verified Buyer'; } } if ($isMobile != '1') { ?> >'; $paymentlink = ''; ?> >
Pages :  
From Subject Country Date   Subject Country Date
From Subject Country Date   Subject Country Date  
Inbox
 
View Details View Details
 



View Details '; $paymentlink = ''; ?> View Details

Pages :