Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/04/2011, 13:03
rimander
 
Fecha de Ingreso: febrero-2011
Mensajes: 111
Antigüedad: 13 años, 3 meses
Puntos: 0
Problema con las paginas

Tengo ese log, el cual en cada pagina hay 20 usuarios.
Pero no me deja pasar de pagina, creo que es debido al url.
Para entrar al log normal tengo esto : /index.php?s=admin&a=log-gm
Que me lleva al php y asi lo veo.
Creo que es debido a esto : echo'<a href="index.php?s=admin&a=log-gm&p='.$i.'">';


Este es el codigo :
Código PHP:
<?PHP
  
if($_SESSION['user_admin']>=$adminRights['ip_suche']) {
    if(!isset(
$_GET['filter']) && empty($_GET['filter'])) {
      
$_GET['filter']='';
      
$url_extension '';
    }
    else {
      
$url_extension '&amp;filter='.$_GET['filter'];
    }
?>
<table width="435"> 
<tr>
<th width="4" class="topLine"><div align="left"></div></th>
  <th width="96" class="topLine"><div align="left">Nombre</div></th>
  <th width="237" class="topLine"><div align="left">Comando</div></th>
  <th width="128" class="topLine"><div align="left">Fecha</div></th>
</tr>
<?
 $fin 
"20";
    
    
$sqlCmd "SELECT COUNT(*) AS cnt FROM log.command_log LIMIT $fin";
    
$sqlQry mysql_query($sqlCmd,$sqlServ);
    
$anza mysql_fetch_object($sqlQry);
    
$cntEintraege $anza->cnt;
    if(isset(
$_GET['p'])) {
      
$aktSeite = (!checkInt($_GET['p'])) ? $_GET['p'];
    }
    else {
      
$aktSeite=0;
    }
    if(
$aktSeite==0$aktSeite=1;
    
$test calcPages($cntEintraege,$aktSeite,$serverSettings['page_entries']);
    
$fin "20";
    
    
$ergebnis mysql_query("SELECT username,command,date from log.command_log ORDER BY date DESC LIMIT $fin");

     echo
'<p>Seite: ';
    for(
$i=1;$i<=$test[0];$i++) {
    
    if(
$i<=20) {
    
      echo
'<a href="index.php?s=admin&a=log-gm&p='.$i.'">';
    
      if(
$aktSeite==$i) { echo'<u>'.$i.'</u>'; }
      else { echo 
$i; }
      echo
'</a> ';
    }
    }
    echo
'</p>';
    
    
    while(
$row mysql_fetch_object($ergebnis))
{


    echo 
"<tr>";
      echo 
'<td class="thell"></td>';
    echo 
'<td class="thell">'.$row->username.'</td>';
    echo 
'<td class="thell">'.$row->command.'</td>';
    echo 
'<td class="thell">'.$row->date.'</td>';
    echo 
"</td>";
    echo 
"</tr>";
}
echo
'</table>';
?>
</table>
<?PHP
  
}
  else {
    echo
'<p class="meldung">No puedes estar aqui</p>';
  }
?>