Momentan nu avem stiri"; } else { $news .= "
"; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $articleImage = ""; if ($row['ImgID'] !== "") $articleImage .= '
'.$ra_page[0]->Titlu.'
'; // Format date as "DD MonthRO YYYY" using Romanian month names from siteData.php $dateRO = ''; if (!empty($row['Datas']) && $row['Datas'] !== '0000-00-00') { $ts = strtotime($row['Datas']); if ($ts > 0) { $mIdx = (int) date('n', $ts); $mName = isset($months[$mIdx]) ? $months[$mIdx] : date('M', $ts); $dateRO = date('d', $ts) . ' ' . $mName . ' ' . date('Y', $ts); } } $news .= '
' . $row['Titlu'] . '
' . $dateRO . '
' . substr($row['Content_Short'], 0, 700) . '

Click mai mult
' . $articleImage . '
'; } $news .= "
"; // how many pages we have when using paging? $maxPage = ceil($num_rows/$rowsPerPage); // creating 'previous' and 'next' link // plus 'first page' and 'last page' link // print 'previous' link only if we're not // on page one if ($pageNum > 1) { $page = $pageNum - 1; $prev = " [Anterioara] "; $first = " [Prima] "; } else { $prev = '[Anterioara]'; // we're on page one, don't enable 'previous' link $first = '[Prima]'; // nor 'first page' link } // print 'next' link only if we're not // on the last page if ($pageNum < $maxPage) { $page = $pageNum + 1; $next = " [Urmatoare] "; $last = " [Ultima pagina] "; } else { $next = '[Urmatoare]'; // we're on the last page, don't enable 'next' link $last = '[Ultima pagina]'; // nor 'last page' link } // print the page navigation link //$articles .= "" . $first . $prev . " Pagina  $pageNum  din  $maxPage  pagini " . $next . $last.""; $news .= "
" . $first . $prev . "
Pagina $pageNum din $maxPage pagini
" . $next . $last . "
"; } //mysql_free_result($result); } $title .=""; ?>
Feed RSS: RSS
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586