query("SELECT proID FROM site_products WHERE view = 1", PDO::FETCH_ASSOC); $total_products = $eCount->rowCount(); // page calculation $limit = 24; $show = $page * $limit - $limit; $page_count = ceil($total_products / $limit); $forlimit = 3; // language control $lng = get('lang'); if($lng){ require('lang/'.$lng.'.php'); }else{ $lng = $settings['def_lang']; require('lang/'.$settings['def_lang'].'.php'); } ?> -

:
query($sqlPL, PDO::FETCH_ASSOC); if ($queryPL->rowCount()){ foreach( $queryPL as $rowPL){ echo '

'.$rowPL['proName_'.$lng].'

'.$rowPL['proName_'.$lng].'

'.$lang['b_kategori'].': '.$rowPL['name_'.$lng].'     '.$lang['b_gosterim'].': '.$rowPL['proHit'].'

'.$rowPL['proDesc_'.$lng].'

'; } }else{ echo '

'.$lang['pnfound'].'

'.$lang['pnfound_sub'].'

'; } ?>
    0 && $page_count > 1){ // first and prev if($page > 1){ // first echo '
  • '.$lang['first'].'
  • '; // prev $prev = $page - 1; echo '
  • '; } // page list for ($i = $page - $forlimit; $i < $page + $forlimit + 1; $i++) { if($i > 0 && $i <= $page_count){ echo '
  • '.$i.'
  • '; } } // last and next if($page != $page_count){ // next $next = $page + 1; echo '
  • '; // first echo '
  • '.$lang['last'].'
  • '; } } ?>