Changeset 227 for quests/statistic.php


Ignore:
Timestamp:
Jan 14, 2008, 9:43:21 PM (17 years ago)
Author:
maron
Message:

statistika, shoutbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/statistic.php

    r204 r227  
    22
    33  include('includes/global.php');
    4  
    5   $ID = mysql_fetch_row($Database->SQLCommand("SELECT count(entry) FROM quests WHERE Language <> '0' AND Complete = '1'"));
    6   $NumberTranslate = $ID[0];
    7  
    8   $ID = mysql_fetch_row($Database->SQLCommand("SELECT count(*) FROM quests WHERE Language = '0'"));
    9   $NumberAJQuests = $ID[0];
    104
    11   $Percent = ($NumberTranslate/$NumberAJQuests)*100;
     5?>
    126
    13   $PercentBar = $Percent*4;
    14   $obrazek = imagecreatetruecolor(400,60);
    15   $Color1 = imagecolorallocate($obrazek,225,246,247);
    16   $Color2 = imagecolorallocate($obrazek,77,225,251);
    17   $Color3 = imagecolorallocate($obrazek,2,59,199);
    18   imagefilledrectangle($obrazek,0,0,400,59,$Color1);
    19   imagefilledrectangle($obrazek,0,0,$PercentBar,59,$Color2);
    20   imagestring($obrazek, 10, 120, 15, $NumberTranslate.'/'.$NumberAJQuests, $Color3);
    21   imagestring($obrazek, 10, 120, 30, $Percent.' %', $Color3);
    22   imagestring($obrazek, 1, 240, 50, 'Aktualizováno: '.date("m.d.y  H:i"), $Color3);
    23  
    24  
    25  // header('Content-Type: image/png');
    26   imagepng($obrazek,'statistic.png');
    27   imagedestroy($obrazek);
    28  
    29   echo '<img src="statistic.png">';
     7<b>Statistika pøelo¾ených questù:</b><br>
     8 <img alt="quests" src="quests_statistic.php" title="statistika pøekladu úkolù">
     9
     10<?php 
    3011         
    3112  ShowFooter();     
Note: See TracChangeset for help on using the changeset viewer.