Son Güncellenenler

Ağustos 2nd, 2010 | by hakki

{source}

<?php require_once(‘Connections/baglan.php’); ?>
<?php

mysql_query(“SET NAMES ‘utf8′”);
$currentPage = $_SERVER[“PHP_SELF”];

$maxRows_Recordset1 = 33;
$pageNum_Recordset1 = 0;
if (isset($_GET[‘pageNum_Recordset1’])) {
    $pageNum_Recordset1 = $_GET[‘pageNum_Recordset1’];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

mysql_select_db($database_baglan, $baglan);$query_Recordset1 = “select * from jos_content Order By modified DESC”;

$query_limit_Recordset1 = sprintf(“%s LIMIT %d, %d”, $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $baglan) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);

if (isset($_GET[‘totalRows_Recordset1’])) {
    $totalRows_Recordset1 = $_GET[‘totalRows_Recordset1’];
} else {
    $all_Recordset1 = mysql_query($query_Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

mysql_select_db($database_baglan, $baglan);
$query_Recordset2 = “SELECT * FROM jos_categories”;
$Recordset2 = mysql_query($query_Recordset2, $baglan) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);

mysql_select_db($database_baglan, $baglan);
$query_Recordset3 = “SELECT * FROM jos_sections”;
$Recordset3 = mysql_query($query_Recordset3, $baglan) or die(mysql_error());
$row_Recordset3 = mysql_fetch_assoc($Recordset3);
$totalRows_Recordset3 = mysql_num_rows($Recordset3);

$queryString_Recordset1 = “”;
if (!empty($_SERVER[‘QUERY_STRING’])) {
    $params = explode(“&”, $_SERVER[‘QUERY_STRING’]);
    $newParams = array();
    foreach ($params as $param) {
    if (stristr($param, “pageNum_Recordset1”) == false &&
        stristr($param, “totalRows_Recordset1”) == false) {
     array_push($newParams, $param);
    }
    }
    if (count($newParams) != 0) {
    $queryString_Recordset1 = “&” . htmlentities(implode(“&”, $newParams));
    }
}
$queryString_Recordset1 = sprintf(“&totalRows_Recordset1=%d%s”, $totalRows_Recordset1, $queryString_Recordset1);

?>



<div align=”center”><?php echo $totalRows_Recordset1?>&nbsp;&nbsp;Kayıttan&nbsp;&nbsp;<?php echo ($startRow_Recordset1 + 1) ?>&nbsp;&nbsp;ile&nbsp;&nbsp;<?php echo min($startRow_Recordset1 + $maxRows_Recordset1, $totalRows_Recordset1) ?>&nbsp;&nbsp;Arasindakiler&nbsp;&nbsp;Görüntüleniyor.</div>
<table border=”0″ align=”center”
class=“contentpaneopen” cellpadding=”2″ cellspacing=”2″>
    <tr>
    <td><font size=”+1″><b>Konu Başlıkları
</b></font></td>
    <td>
<font size=”+1″><b>Güncelleme Tarihi </b></font></td>
    </tr>
    <?php do { ?>
    <tr>
    
     <td><a href=”http://www.multecihaklari.org/index.php?option=com_content&view=article&id=80&recordID=<?php echo $row_Recordset1[‘alias’]; ?>> <?php echo $row_Recordset1[‘title’]; ?>&nbsp; </a> </td>
     <td><?php echo $row_Recordset1[‘modified’]; ?></td>
    </tr>
    <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<br>
<table border=”0″ width=”50%” align=”center”>
    <tr>
    <td width=”23%” align=”center”><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
         <a href=”<?php printf(“%s?pageNum_Recordset1=%d%s”, $currentPage, 0, $queryString_Recordset1); ?>>Ilk Sayfa</a>
         <?php } // Show if not first page ?>
    </td>
    <td width=”31%” align=”center”><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
         <a href=”<?php printf(“%s?pageNum_Recordset1=%d%s”, $currentPage, max(0, $pageNum_Recordset1 – 1), $queryString_Recordset1); ?>>Onceki Sayfa</a>
         <?php } // Show if not first page ?>
    </td>
    <td width=”23%” align=”center”><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
         <a href=”<?php printf(“%s?pageNum_Recordset1=%d%s”, $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>>Sonraki Sayfa</a>
         <?php } // Show if not last page ?>
    </td>
    <td width=”23%” align=”right”><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
         <a href=”<?php printf(“%s?pageNum_Recordset1=%d%s”, $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>>Son Sayfa</a>
         <?php } // Show if not last page ?>
    </td>
    </tr>
</table>
<p>&nbsp;</p>
<div align=”center”><?php echo $totalRows_Recordset1?>&nbsp;&nbsp;Kayıttan&nbsp;&nbsp;<?php echo ($startRow_Recordset1 + 1) ?>&nbsp;&nbsp;ile&nbsp;&nbsp;<?php echo min($startRow_Recordset1 + $maxRows_Recordset1, $totalRows_Recordset1) ?>&nbsp;&nbsp;Arasindakiler&nbsp;&nbsp;Görüntüleniyor.</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>


<?php
mysql_free_result($Recordset1);

mysql_free_result($Recordset2);

mysql_free_result($Recordset3);
?>

{/source}

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

10 − 4 =