PDA

View Full Version : progress bar زمان خواندن دیتا



hamed_m
شنبه 25 شهریور 1385, 18:52 عصر
دوستان اگر کسی در خصوص نمایش progress bar زمان خواندن دیتای با حجم بالا کار کرده ممنون میشم به من هم اطلاعاتی در این زمینه بده.

oxygenws
یک شنبه 26 شهریور 1385, 08:53 صبح
چی؟؟؟؟؟؟؟؟

hamed_m
یک شنبه 26 شهریور 1385, 11:28 صبح
یعنی موقع خواندن دیتا یه progress bar به کاربر نشون بدیم.

oxygenws
یک شنبه 26 شهریور 1385, 11:39 صبح
خوندن داده از کجا؟؟
یک کم انرژی صرف کن و کامل توضیح بده می خوای چیکار کنی.

Lagon666
یک شنبه 26 شهریور 1385, 12:03 عصر
این هم یه Progress Bar ساده:

<?
// Progressbar v0.1
// Copyright by Micha Koller
// Contact: micha81@gmx.de
// Release: 14.09.2004

//use this code:
//<img src="progressbar?value=50">

if(isset($_GET['value']))
{
//picture size definieren
$width = 180;
$height = 12;

//computations
$pixel_per_value = ($width-2)/100;
$fillwidth = $pixel_per_value*$value;

//create Picture
$img = imagecreatetruecolor($width,$height);

//Farben definieren
$black = ImageColorAllocate($img, 0, 0, 0);
$blue = ImageColorAllocate($img, 77, 81, 255);
$white = ImageColorAllocate($img, 255, 255, 255);
$grey = ImageColorAllocate($img, 192, 192, 192);

imagefill($img,0,0,$black); //fill background
imageline($img,0,0,$width-1,0,$white); //white top border
imageline($img,0,0,0,$height-1,$white); //white left border

imageline($img,1,$height-1,$width,$height-1,$grey); //grey bottom border
imageline($img,$width-1,$height-1,$width-1,1,$grey); //grey right border

imagefilledrectangle($img,2,2,$fillwidth-1,($height-3),$blue); //progresse

header ("Content-type: image/png"); //Browser Header
imagejpeg($img,'',100); //Output Picture
imagedestroy ($img);
}//if
?>

نمونه:

http://hamid.byethost10.com/php/progressbar.php?value=25
http://hamid.byethost10.com/php/progressbar.php?value=50
http://hamid.byethost10.com/php/progressbar.php?value=75
http://hamid.byethost10.com/php/progressbar.php?value=100