Login   Register  
PHP Classes
elePHPant
Icontem

Vote Image: Generate images to render the average of votes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-11-13 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 599 All time: 4,702 This week: 1,687Up
Version License PHP version Categories  
vote_image 0.1GNU General Public Lice...4.0Graphics
Description Author  

This is a simple class that can be used to render an image that can represent the average of votes taken in a poll.

It takes as parameters the total number of votes and the number of approval votes.

The class generates an image that shows the proportion of approval votes relatively to the total number of votes.

It uses an image to show the part that represents the approving votes, and another image to show the remaining votes. The images that it uses to render both parts are configurable.

Picture of Nguyen Duy Quang
Name: Nguyen Duy Quang <contact>
Classes: 3 packages by
Country: Australia Australia
Age: 33
All time rank: 6157 in Australia Australia
Week rank: 1790 Down19 in Australia Australia Down

Screenshots  
  • vote-screen.jpg
  Files folder image Files  
File Role Description
Plain text file cls.vote.php Class Class to draw vote image
Plain text file getimgvote.php Example Get the image vote from class
Image file heartblank.png Icon Image with heart no fill
Image file heartfill.png Icon Image with heart full fill
Plain text file testvoteimage.html Data Out put image vote to html

 Version Control Unique User Downloads Download Rankings  
 0%Total:599All time:4,702
 This week:0This week:1,687Up