0) { $record_per_page = GetName("select * from t_count_page","ResourcesCount"); $page_count = ceil($record_count/$record_per_page); } $sql = "select * from t_resources where PageLang='".$_SESSION['Lang']."' and Visible='1' order by Seq asc limit ".($_GET['page_no']*$record_per_page).",".$record_per_page; $qrResources = mysql_query($sql); while($rsResources = mysql_fetch_array($qrResources)) { if ($rsResources['Link']!='') { echo "".$rsResources['LinkComment']."
"; } if ($rsResources['LinkText']!='') { echo "".$rsResources['LinkText']."
"; } if ($rsResources['LinkBanner']!='') { $str = str_replace('"', '"', $rsResources['LinkBanner']); echo str_replace('"', '"', $str)."
"; } echo "
"; } ?>
1) { echo $_SESSION['SearchPage']. " "; echo $_GET['page_no'] + 1 . " / " . $page_count; echo "   "; echo " [ "; for ($m=1;$m<=$page_count;$m++) { if($m-1==$_GET['page_no']) { echo "".$m.""; } else { echo "".$m.""; } if ($m < $page_count) { echo " | "; } } echo " ] "; echo "   "; if ($_GET['page_no'] > 0) { echo " < ".$_SESSION['SearchPreviousPage'].""; } if($_GET['page_no'] + 1 != $page_count) { echo " |"; } if ($_GET['page_no'] < $page_count - 1) { echo " ".$_SESSION['SearchNextPage']." >"; } } ?>