"; echo "
"; echo "
$lng_dokumente
"; $idcategoryDocumenti = $_REQUEST['idcat']; $idcategoryDocumenti = (isset($_REQUEST['idcat']))? $_REQUEST['idcat'] : '1'; if (!(is_numeric($idcategoryDocumenti))){ exit(); } $sqlkategori = "select * from ".$prt."downloadcat order by rendi"; $reskat = mysql_query($sqlkategori); while ($row = mysql_fetch_array($reskat)){ $idcat = $row['idcat']; $Emri_lng1 = stripslashes($row['Emri_lng1']); $Emri_lng2 = stripslashes($row['Emri_lng2']); if ($gjuha == "2"){ $Emrikat = $Emri_lng2; }else{ $Emrikat = $Emri_lng1; } if ($idcat == $idcategoryDocumenti){ echo "$Emrikat"; $idk = $Emrikat; }else{ echo "$Emrikat"; } } ECHO "
"; echo "
$lng_dokumented : $idk
"; $sql = "SELECT * FROM ".$prt."dokumente WHERE Kategori = '$idcategoryDocumenti' ORDER BY data DESC"; $res = mysql_query($sql); $num_rows = mysql_num_rows($res); if ($num_rows > 0){ $dp = new datapager($sql); $page = (isset($_REQUEST['page']))? $_REQUEST['page'] : '1'; $results = $dp->execute($page, $pagesize); while ($row = mysql_fetch_array($results)){ $id = $row['id']; $titulli = stripslashes($row['titulli']); $pershkrim = stripslashes($row['pershkrim']); $data = $row['data']; echo "\n"; echo "
$pershkrim
"; } echo "
\n"; echo "\n"; echo "\n"; echo ""; echo "
".$dp->prevpage("")."".$dp->nextpage("")."
"; } ?>