Seitenanzahl

Nucleus

Erfahrenes Mitglied
Hi leits erst mal,
hab ne frage und zwar wenn ich an die 200 einträge habe schaut meine seitenanzahl so aus
<1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20> wird also ne unendliche wurst
was kann man am besten dagegen machen ?
hab schon ungefähr so ne idee wollt nur mal hören wie ihr das so macht.

cya nucle
 
Hier der Code:

PHP:
<?php include ("admin/design.php"); ?>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY bgProperties=fixed background="<?php echo "$dbackcolor"; ?>" >
<BR>
<style>
<!--
#glowtext{
filter:glow(color=<?php echo"$glowfarbe";?>,strength=<?php echo"$staerke";?>);
width:100%;
}
-->
</style>
<CENTER><FONT face='\"Verdana,' size='\"3\"' Arial\? Tahoma,><BR>
  </FONT> 
  <?php



$logfile = "admin/textfiles/eintraege.txt";
$perPage = $seite;
$seiteneintraege = "<b>[Seite:</b>";
$seite="1";



if(empty($number)){
$number = $perPage;
}

$file_line = file($logfile);
$total_lines = count($file_line);



$mzeige= $number-($perPage-1);


for($i=($total_lines-1); 0 <= $i; $i--) { $line[] = $file_line[$i]</b>";
?>
                    <b></b> |<b>Eintr&auml;ge :[</b> 
                    <?php echo $total_lines ?>
                    <b>]</b></font></td>
                </tr>
                <tr> 
                  <td height="13" valign="top"> 
                    <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Zeige:[</b> 
                      <?php echo $mzeige ?>
                      bis 
                      <?php echo$number ?>
                      <b>]</b></font></div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <?php 

        for($i = 0; $i < $total_lines; $i++){
      
                 if ($i >= ($number-$perPage) && $i < $number){
                $pieces = explode("#",$line[$i]);


 $mzeige= $number-($perPage-1);
 
$name = $pieces[0];

 include "viewchange.php";

   /*//#$pieces[0]--> name
	//#$pieces[1]--> email
	//#$pieces[2]--> icq
	//#$pieces[3]--> hp  
	//#$pieces[4]--> titel
	//#pieces[5]-->icon
	//#$pieces[6]--> comment
	//#$pieces[7]--> datum
	//#$pieces[8]--> Zeit*/ 


	  ?>
  <table width="527" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="527" height="6"></td>
    </tr>
  </table>
  <div align="center">
    <table width="512" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
      <tr> 
        <td width="510" height="115" valign="top"> 
          <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo "$dtabelle2farbe";?>">
            <tr> 
              <td width="143" height="22" valign="middle" bgcolor="<?php echo "$dtabelle4farbe";?>">            <?php
				


 	 ?><b><font 
      face="Verdana" color=#ffffff size=2> 
                    
  <span id="glowtext"> &nbsp;<?php echo $pieces[0];?></span>
                </font></b></td>
              <td width="32" valign="middle" bgcolor="<?php echo"$dtabelle5farbe"; ?>" align="center"> 
                <?php echo $micon ;?>
              </td>
              <td width="335" valign="middle" bgcolor="<?php echo"$dtabelle6farbe"; ?>"><font size="2" face="Verdana"><b> 
                <?php echo $pieces[3];?>
                </b></font></td>
            </tr>
            <tr> 
              <td valign="middle" height="22" bgcolor="<?php echo"$dtabelle7farbe"; ?>"><font size="2" face="Verdana"> 
                <font size="1">
                <?php echo $pieces[7];?>
                / 
                <?php echo $pieces[8];?>
                </font> </font></td>
              <td colspan="2" rowspan="3" valign="top"> <font size="2"> <br>
                <font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF"> 
                <font color="#000000"> 
                <?php echo $mtext; 
			
				
				?>
                </font></font></font></td>
            </tr>
            <tr> 
              <td height="20" valign="middle" bgcolor="<?php echo"$dtabelle8farbe"; ?>"><b><font face="Verdana, Arial, Helvetica, sans-serif" color=#cccccc size=2> 
</font></b></td>
            </tr>
            <tr> 
              <td height="52" valign="top" bgcolor="<?php echo"$dtabelle8farbe"; ?>">    <?php
			  
if ($pieces[1] == "kein") 
  { 
  $pieces[1] = str_replace("kein","",$pieces[1] );
  echo "<img src='";
  echo "gbgrafixx/textchange/nogif.gif'>"; 
  
  }
  else 
  { 
  echo "&nbsp;<a href ='";
  echo $pieces[1]; 
  echo "'>";
  echo "<img src='gbgrafixx/admin/home_02.gif' border='0'>"; 
  echo "</a>";
  
  }
    if ($pieces[2] == "kein") 
  { 
  $pieces[2] = str_replace("kein","",$pieces[2] );
  echo "<img src='";
  echo "gbgrafixx/textchange/nogif.gif'>"; 
  }
  else 
  { 
  echo "&nbsp;<a href ='mailto:";
  echo $pieces[2]; 
  echo "'>";
  echo "<img src='gbgrafixx/admin/mail_03.gif' border='0'>"; 
  echo "</a>";
  }
    if ($pieces[4] == "kein") 
  {
  $pieces[4] = str_replace("kein","",$pieces[4] );
  echo $pieces[4];
  }
  else 
  { 
  echo "&nbsp;<a href='http://wwp.icq.com/scripts/search.dll?to=";
  echo $pieces[4]; 
  echo "'><img src='http://online.mirabilis.com/scripts/online.dll?icq=";
  echo $pieces[4]; 
  echo "&img=5 'border='0'>";
  echo "</a>";  }

   ?><br><center>
   <a href ="kommentar.php?user=<? echo "$pieces[9]"; ?>"><font size="1">Kommentar(<? echo "$key $value"; ?>)</font></a>
   <?php

  ?>  


 </center></br>&nbsp;</td>
      </tr>
          </table>
        </td>
      </tr>
    </table>
    <table width="338" border="0" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="338" height="1"></td>
      </tr>
    </table>
  </div>

    
  <?php  
  }
  }?>
  <table width="443" border="0" cellpadding="0" cellspacing="0" height="9">
    <tr> 
      <td width="443" height="1"></td>
    </tr>
  </table>
  
</CENTER>
<div align="center">
  <table width="514" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr> 
      <td width="512" valign="top"> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo "$dtabelle3farbe";?>">
          <tr> 
            <td width="305" valign="top" bgcolor="<?php echo"$dtabelle9farbe"; ?>"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">[Seite 
               
              <?php  


$y=1;
$k=1;
$num=$perPage;

while( $total_lines > ($num-($perPage))){

               if($perPage < $total_lines){
                if(($number-($perPage-1)) == $y && $number == $num){


 
                                          echo "$y ";

                } else { echo  "<a href=\"?action=Anzeigen&number=$num&pass=$pass\">$y</a>\n";
          }
}

$num+=$perPage;
$y+=$k;

}


?>
              ] </font></td>
 
Zurück