Проблем с един скрипт

Bummer

Registered
Вижте ето тази картинка http://img63.imageshack.us/my.php?image=problemll7.jpg
Искам скрипта, където пише за колко време е била заредена страницата да отиде в най-долната част на страницата.Но как ?
Благодаря :)
 
За да го направи някой ще му трябва кода на страницата ти.
Иначе слагаш всичко в таблица така:
Код:
<table>
<tr>
<td height='95%'>
тука кода без този за времето
</td>
</tr>
<tr>
<td height='5%' valign='botton'>
тука кода за времето
</td>
</tr>
</table>
 
Ами казах ти, че най лесно е да дадеш кода, а не да налучквам.
Код:
<head>
<style>
table.edno{
height:95%
}
table.dve{
height:5%
}
</style>
</head>
<table class='edno'>
<tr>
<td>
	<table class='dve'>
	<tr>
	<td height='100%'>
	тука кода без този за времето
	</td>
	</tr>
	</table>
</td>
</tr>
<tr>
<td>
тука кода за времето
</td>
</tr>
</table>
 
Код:
<?php
function compress_output($output)
{
$crc = pack('V',crc32($output));
$size = pack('V',strlen($output));
$output = gzcompress($output, 9);

$data = "\x1f\x8b\x08\x00\x00\x00\x00\x00";
$data .= substr($output, 0, strlen($output) - 4);
$data .= $crc;
$data .= $size;

return $data;
}
header("Content-Encoding: gzip");
ob_start("compress_output");
?>
<html>
<head>
<meta content="Ивайло Петров" name="Owner">
<center><title>Search Engine</title></center>
<meta http-equiv="Contеnt-Type" content="text/html; charset=windows-1251">
</head>
<center><img src=./logo.jpg></center>
<BODY BACKGROUND=./bg.jpg>
</body>
<center>
        <tr>

          <td>
            <table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border-color: #000000; height: 13px;">
              <tr>
                <td bgcolor="#3D93FF" onmouseover="this.style.backgroundColor="#0061D7";" onmouseout="this.style.backgroundColor="#3D93FF";">
                  <div align="center">
                    <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
                       <a href="http://10.23.20.35/search/links.php" target="_blank">Индексирай сайта си (само http)</a>
                    </font>

                  </div>
                </td>
                <td bgcolor="#3D93FF" onmouseover="this.style.backgroundColor="#0061D7";" onmouseout="this.style.backgroundColor="#3D93FF";">
                  <div align="center">
                    <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
                       <a href="http://10.23.20.35/indexed.php" target="_blank">Списък с индескираните сайтове</a>
                    </font>
                  </div>

                </td>
                <td bgcolor="#3D93FF" onmouseover="this.style.backgroundColor="#0061D7";" onmouseout="this.style.backgroundColor="#3D93FF";">
                  <div align="center">
                    <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
                       <a href="http://10.23.20.35/search/guestbook/" target="_blank">Коментари</a>
                    </font>
                  </div>
                </td>
<td bgcolor="#3D93FF" onmouseover="this.style.backgroundColor="#0061D7";" onmouseout="this.style.backgroundColor="#3D93FF";">
                  <div align="center">
                    <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
                       <a href="http://10.23.20.35/search/login.html" target="_blank">Админ панел</a>
                    </font>
                  </div>
                </td>

</center>
<center>
 <?php
$countfile = "count.dat";
$ipcounter = "today.dat";
$countdate = date("j-n-Y");
$visitorip = $_SERVER[REMOTE_ADDR];
$maxrecord = date("d.m.Y (H:i)");

if (!file_exists($ipcounter)) { $fp = fopen($ipcounter, 'w+'); }
if (!file_exists($countfile)) { $fp = fopen($countfile, 'w+'); fwrite($fp, "0|0|0|1|$countdate|0|$maxrecord"); }

$fcontents = file_get_contents($countfile);
list($today, $yesterday, $total, $days, $nowdate, $max, $nowrecord) = explode("|", $fcontents);

if($countdate != $nowdate) {
$ipfile2 = fopen($ipcounter, 'w');
$line = "$visitorip\n";
fwrite($ipfile2, $line, strlen($line));
fclose($ipfile2);

if($today > $max) { $max = $today; $nowrecord = $maxrecord; }
$yesterday = $today;
$today = 1;
$total++;
$days++;

$fp = fopen($countfile, 'w');
fwrite($fp, "1|$yesterday|$total|$days|$countdate|$max|$nowrecord");
fclose($fp);
}

else {
$ipfile = fopen($ipcounter, 'rb');
$line = array();
while (!feof($ipfile)) $line[]=fgets($ipfile,1024);
for ($i=0; $i<(count($line)); $i++) {
list($visitorip_x) = split("\n",$line[$i]);
if ($visitorip == $visitorip_x) {$found = 1;}
}
fclose($ipfile);

if (!$found) {
$ipfile2 = fopen($ipcounter, 'ab');
$line = "$visitorip\n";
fwrite($ipfile2, $line, strlen($line));
fclose($ipfile2);

$today++;
$total++;

if($today > $max) { $max = $today; $nowrecord = $maxrecord; }
$fp = fopen($countfile, 'r+');
fwrite($fp, "$today|$yesterday|$total|$days|$countdate|$max|$nowrecord");
fclose($fp);
}
}
if($days == 1) { $dendni = "ден"; }
else { $dendni = "дни"; }
?>

<div style="font-family:verdana;font-size:11px;color:#3D93FF;">
<b>Уникални посещения:</b>
Днес <b><?php echo $today; ?></b> /
Вчера <b><?php echo $yesterday; ?></b> /
Общо <b><?php echo $total."</b> за <b>$days</b> ".$dendni; ?> /
Средно дневно <b><?php echo ceil($total/$days); ?></b> /
Рекорд <b><?php echo $max."</b> на <b>$nowrecord"; ?></b>
</div>
</center>
<?php

include "config.php";

//Set the page size

$StartRow = 0;

//Set the page no
if(empty($_GET['PageNo'])){
    if($StartRow == 0){
        $PageNo = $StartRow + 1;
    }
}else{
    $PageNo = $_GET['PageNo'];
    $StartRow = ($PageNo - 1) * $PageSize;
}

//Set the counter start
if($PageNo % $PageSize == 0){
    $CounterStart = $PageNo - ($PageSize - 1);
}else{
    $CounterStart = $PageNo - ($PageNo % $PageSize) + 1;
}

//Counter End
$CounterEnd = $CounterStart + ($PageSize - 1);
?>

<html>
<head>
<title>Free Search Engine</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<style type="text/css">

BODY {
	FONT-SIZE: 8pt; COLOR: #526ba5; FONT-FAMILY: Arial
}
H3 {
	COLOR: #526ba5
}
H4 {
	COLOR: #526ba5
}
.Issue {
	BACKGROUND-COLOR: #c6c6ce
}
.NormalField {
	FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ffffff
}
.NormalFieldTwo {
	FONT-SIZE: 7pt;

	FONT-FAMILY: Verdana;
	background : #E4E4E4;
	font-weight : bold
}
.NormalFieldThree {
	FONT-SIZE: 10pt;
	COLOR: Yellow;
	FONT-FAMILY: Verdana;
	background : #0C79B4;
	font-weight : bold;
	text-align : center;
}

.NormalFieldFour {
	FONT-SIZE: 10pt;
	COLOR: Yellow;
	FONT-FAMILY: Verdana;
	background : Black;
	font-weight : bold;
	text-align : center;
}
.NormalFieldFive {
	FONT-WEIGHT: bold;
	FONT-SIZE: 10pt;
	COLOR: Navy;
	FONT-FAMILY: Verdana;
	BACKGROUND-COLOR: #ffffff
}
.NormalFieldSix {
		FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #526ba5; FONT-FAMILY: Arial
}

.TableText {
	FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Arial
}
.TableBorder{
	border-color : Black;
}
.NormalTable {
	BACKGROUND-COLOR: #ffffff
}
.NormalTableTwo {
	BACKGROUND-COLOR: #eeeeee
}
.UsePageBG {
	BACKGROUND-COLOR: #cccccc
}
.UseTableBG {
	BACKGROUND-COLOR: #526ba5
}
.UseDialogBG {
	BACKGROUND-IMAGE: url(../Graphics/Images/DialogBackGround.gif)
}
.ReadOnlyField {
	FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #526000; FONT-FAMILY: Arial
}
.InternalHeader {
	FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: Arial; BACKGROUND-COLOR: #526ba5;
}
.AttachedFiles {
	BACKGROUND-COLOR: #99ccff;
	color : Black
}
.SpecialAnchor {
	FONT-FAMILY: Arial; TEXT-DECORATION: none
}
UNKNOWN {
	FONT-WEIGHT: lighter; FONT-SIZE: 8pt; TEXT-TRANSFORM: capitalize; COLOR: navy; FONT-STYLE: normal; FONT-FAMILY: 'Arial', Times New Roman, Verdana; FONT-VARIANT: normal; TEXT-DECORATION: underline
}
.SearchResults {
	FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.MandatoryFields {
	FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.tab-above-heading {
	FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.textareaLabel {
	FONT-WEIGHT: bolder; FONT-SIZE: 10pt; COLOR: #526ba5; FONT-FAMILY: Arial
}
.linkStyle {
	TEXT-DECORATION: none
}
.PageTitle {
	FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: #526ba5; FONT-FAMILY: Tahoma
}
.smallfont {
	FONT-SIZE: 7.5pt; COLOR: #000000; FONT-FAMILY: Arial
}
A {
	COLOR: Red;
	TEXT-DECORATION: none
}

 #nav {
background-color: #D5D5D5;
border: 1px solid #B8B8B8;
padding-top: 8px;
height: 21px;
padding-left: 3px;
}
#nav a {
border: 1px solid #B7B7B7;
padding: 4px;
background-color: #F3F3F3;
color: #0077B4;
font-weight: bold;
text-decoration: none;
font-family: Verdana, Sans-Serif;
font-size: 12px;
}
#nav a:hover {
color: #00A8FF;
background-color: #ffffff;
border: 1px solid #727272;
border-bottom: 1px solid #ffffff;
}
</style>
</head>
<body class="UsePageBg">
<form method="GET" action="">
<table cellpadding="0" cellspacing="0" width="300px" align="center" cellpadding="0" >
<tr>
<td align="right" width="200px"><input type="text" name="q" size="30"></td>
<td align="right" width="100px"><input type="submit" value="Търсене"></td>
</tr>
</table>
</form>
<?php
$tarsene = $_GET['q'];

if($_GET['q'])
{
$trimmed = trim($tarsene); 
$var = explode(" ",$trimmed); 
$count = count($var); 


for($i = $count-1;$i < sizeof($var); $i++) {

$abc = $var[$i]; 

 mysql_connect($server, $dbusername, $dbpassword)or die("Сайтът не може да се свърже към базата данни");
 @mysql_select_db($db_name) or die("Грешна база данни");
 $TRecord = mysql_query("SELECT * FROM `linkove` WHERE `files` LIKE '%$abc%'");
 $result = mysql_query("SELECT * FROM `linkove` WHERE `files` LIKE '%$abc%' ORDER BY `id` DESC LIMIT $StartRow,$PageSize");

 //Total of record
 $RecordCount = mysql_num_rows($TRecord);

 //Set Maximum Page
 $MaxPage = $RecordCount % $PageSize;
 if($RecordCount % $PageSize == 0){
    $MaxPage = $RecordCount / $PageSize;
 }else{
    $MaxPage = ceil($RecordCount / $PageSize);
 }
?>

<table width="100%" border="0" class="InternalHeader">
  <tr>
    <td width="24%"></td>
    <td width="76%">
      <div align="right"> 
        <?php print "$RecordCount запис(а) намерен(и) - Вие сте на страница $PageNo от $MaxPage" ?></div>
    </td>
  </tr>
</table>
<br>
<table width="100%" border="0" class="NormalTableTwo">
  <tr> 
    <td class="InternalHeader" width="5%">Номер</td>
    <td class="InternalHeader" width="60%">Име</td>
	<td class="InternalHeader" width="20%">Тип</td>
    <td class="InternalHeader" width="15%">Добавен</td>
  </tr>
<?php
$i = 1;
while($row = mysql_fetch_array($result))
{
$id=$row[id]; 
$data=$row[data]; 
$fulllinks=$row[fulllinks]; 
$files=$row[files];
$tipfail=$row[tipfail];

 
    $bil = $i + ($PageNo-1)*$PageSize;
	
?>

  <tr> 
    <td class="NormalFieldTwo" width="5%"><?php echo $bil ?></td>
    <td class="NormalFieldTwo" width="60%"><a href="s.php?id=<?php echo $id; ?>" target="_new"><?php echo $files ?></a></td>
	<td class="NormalFieldTwo" width="20%"><?php echo $tipfail ?></td>
	<td class="NormalFieldTwo" width="15%"><?php echo $data ?></td>
 </tr>
<?php
  $i++;
}?>
</table><br>
<table width="100%" border="0" class="InternalHeader">
  <tr>
    <td>

      <div align="center">
      <?php
        //Print First & Previous Link is necessary
        if($CounterStart != 1){
            $PrevStart = $CounterStart - 1;
            print "<a href=?q=$tarsene&PageNo=1>Първи </a>: ";
            print "<a href=?q=$tarsene&PageNo=$PrevStart>Предишни $PageSize </a>";
        }
        print " [ ";
        $c = 0;

        //Print Page No
        for($c=$CounterStart;$c<=$CounterEnd;$c++){
            if($c < $MaxPage){
                if($c == $PageNo){
                    if($c % $PageSize == 0){
                        print "$c ";
                    }else{
                        print "$c ,";
                    }
                }elseif($c % $PageSize == 0){
                    echo "<a href=?q=$tarsene&PageNo=$c>$c</a> ";
                }else{
                    echo "<a href=?q=$tarsene&PageNo=$c>$c</a> ,";
                }//END IF
            }else{
                if($PageNo == $MaxPage){
                    print "$c ";
                    break;
                }else{
                    echo "<a href=?q=$tarsene&PageNo=$c>$c</a> ";
                    break;
                }//END IF
            }//END IF
       }//NEXT

      echo "] ";

      if($CounterEnd < $MaxPage){
          $NextPage = $CounterEnd + 1;
          echo "<a href=?q=$tarsene&PageNo=$NextPage>Следващи $PageSize</a>";
      }
      
      //Print Last link if necessary
      if($CounterEnd < $MaxPage){
       $LastRec = $RecordCount % $PageSize;
        if($LastRec == 0){
            $LastStartRecord = $RecordCount - $PageSize;
        }
        else{
            $LastStartRecord = $RecordCount - $LastRec;
        }

        print " : ";
        echo "<a href=?q=$tarsene&PageNo=$MaxPage>Последни</a>";
        }
      ?>
      </div>
    </td>
  </tr>
</table>
<?php
    mysql_free_result($result);

    mysql_free_result($TRecord);
	}}
?>
<br>

</body>
<center>Реклами:<br>Продават се домейни, 7 лева бройката.За повече информация - <a href=http://10.10.0.99/forum/privmsg.php?mode=post&u=3952>тук</а></br>

</html>
<?
$mtime = microtime();
$mtime = explode (" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$tstart = $mtime; // Start time

$mtime = microtime();
$mtime = explode (" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$tend = $mtime; // End time
$totaltime = ($tend - $tstart);
printf ("Страницата бе заредена за %f секунди!", $totaltime);
?>
 

Горе