Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> gd progressbar
GrayHat
post
Post #1





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


witam. potrzebuje skryptu kreslacego progressbar w gd...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bim2
post
Post #2





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

Ostrzeżenie: (0%)
-----


  1. <?php
  2. # kolor paska
  3. # mozna zrobic dynamiczny... musisz sie pobawic :) (już jest (IMG:http://forum.php.pl/style_emoticons/default/haha.gif) )
  4. $colors = array('00FF22','119F09','FDFF00','FFA200','FF0000','AF2D00');
  5. if($percent < 10)
  6.  $progress['line'] = $colors[5];
  7. elseif($percent >= 10 AND $percent < 30)
  8.  $progress['line'] = $colors[4];
  9. elseif($percent >= 30 AND $percent < 50)
  10.  $progress['line'] = $colors[3];
  11. elseif($percent >= 50 AND $percent < 70)
  12.  $progress['line'] = $colors[2];
  13. elseif($percent >= 70 AND $percent < 90)
  14.  $progress['line'] = $colors[1];
  15. elseif($percent >= 90 AND $percent < 101)
  16.  $progress['line'] = $colors[0];
  17. ?>

Nudziło mi się (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post

Posty w temacie
- GrayHat   gd progressbar   18.05.2005, 23:42:11
- - tiraeth   [PHP] pobierz, plaintext <?php# procent wykonan...   19.05.2005, 07:47:29
- - WebKing   Super skrypt jesteś   24.08.2007, 20:11:51
- - bim2   [PHP] pobierz, plaintext <?php# kolor paska# mo...   28.08.2007, 15:46:07


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 17:00