Parašė Lordcraft· 2008 Rugs. 4 22:09:49
#1
Kaip panaikinti tarpus tarp tu pirmadienis - antradienis? dabar yra labai didele panele is panaikinus tarpus ja butu galima su mazinti per pus. ten nera jokiu <br> tagu. stai pati panele:
<?
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Sib-Visitstat v. 1.0
| spiker, Russia, Krasnoyarsk 2007
| http://www.sib-fusion.ru
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
include INFUSIONS."visitstat_panel/locale/Lithuanian.php";
$cmreload=60;
$cmip=$_SERVER['REMOTE_ADDR'];
$cmtime=time();
$cmnew=date("l");
$anfrage = dbquery("SELECT * from ".$db_prefix."visitstat");
if($data = dbarray($anfrage)) {
if ($cmnew!=$data['new']) {
$result = dbquery("DELETE FROM ".$db_prefix."visitstat_ip");
$result = dbquery("UPDATE ".$db_prefix."visitstat SET $cmnew='0', new='$cmnew'");}
} else { dbquery("INSERT INTO ".$db_prefix."visitstat VALUES (0,0,0,0,0,0,0,0,0,'$cmnew')");}
$result = dbquery("DELETE FROM ".$db_prefix."visitstat_ip WHERE time<".($cmtime-($cmreload*60)));
$anfrage2 = dbquery("SELECT * from ".$db_prefix."visitstat_ip WHERE ip='$cmip'");
if($data2 = dbarray($anfrage2)) {
$result = dbquery("UPDATE ".$db_prefix."visitstat_ip SET time='$cmtime' WHERE ip='$cmip'");
} else {
$anfrage = dbquery("SELECT * from ".$db_prefix."visitstat");
if($data = dbarray($anfrage)) {
$result = dbquery("INSERT INTO ".$db_prefix."visitstat_ip (time, ip) VALUES ('$cmtime','$cmip')");
if (($data[$cmnew]+1)>$data['rekord'])
$cmupdate=", rekord=".$data[$cmnew]."+1";
else
$cmupdate="";
$result = dbquery("UPDATE ".$db_prefix."visitstat SET $cmnew=$cmnew+1, gesamt=gesamt+1".$cmupdate);
}
}
if (!$cmanday) {
$anfrage = dbquery("SELECT * from ".$db_prefix."visitstat");
while ($data = dbarray($anfrage)) {
$cmc = array('Monday' => 'tbl', 'Tuesday' => 'tbl', 'Wednesday' => 'tbl', 'Thursday' => 'tbl', 'Friday' => 'tbl', 'Saturday' => 'tbl', 'Sunday' => 'tbl');
if ($data["new"]==$cmnew)
$cmc[$cmnew]= "tbl1";
$data[$cmnew]="<b>".$data[$cmnew]."</b>";
openside($locale['vs100']);
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0' align='center'>
<tr><td class='".$cmc['Monday']."'>".$locale['vs101']."</td><td class='".$cmc['Monday']."' align='right'>".$data["Monday"]."</td></tr>
<tr><td class='".$cmc['Tuesday']."'>".$locale['vs102']."</td><td class='".$cmc['Tuesday']."' align='right'>".$data["Tuesday"]."</td></tr>
<tr><td class='".$cmc['Wednesday']."'>".$locale['vs103']."</td><td class='".$cmc['Wednesday']."' align='right'>".$data["Wednesday"]."</td></tr>
<tr><td class='".$cmc['Thursday']."'>".$locale['vs104']."</td><td class='".$cmc['Thursday']."' align='right'>".$data["Thursday"]."</td></tr>
<tr><td class='".$cmc['Friday']."'>".$locale['vs105']."</td><td class='".$cmc['Friday']."' align='right'>".$data["Friday"]."</td></tr>
<tr><td class='".$cmc['Saturday']."'>".$locale['vs107']."</td><td class='".$cmc['Saturday']."' align='right'>".$data["Saturday"]."</td></tr>
<tr><td class='".$cmc['Sunday']."'>".$locale['vs108']."</td><td class='".$cmc['Sunday']."' align='right'>".$data["Sunday"]."</td></tr>
<tr><td class='tbl'>".$locale['vs109']."</td><td class='tbl' align='right'>".$data["gesamt"]."</td></tr>
</table>";
}
}
closeside();
?>