Recommend this page to a friend! |
Download .zip |
Info | View files (12) | Download .zip | Reputation | Support forum (4) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-07-18 (8 years ago) | 55% | Total: 1,898 | All time: 2,017 This week: 1,068 |
Version | License | PHP version | Categories | |||
ajax-poll 1.0 | GNU General Publi... | 5.0 | PHP 5, Content management, AJAX |
Description | Author | ||||||||||||||
This class can be used to display poll questions and collect the results using AJAX to avoid page reloading. |
|
---- About this class ----- This class is used on the WebExp Template Engine WebExp is Template Engine identical to Smarty, created by José Franco and Revista PHP contibutors at >>> http://www.revista-php.net <<<< We build this tool to develop PHP Ajax based Web sites fast and easy This project is growing based on contibutors help and users feedback If you want to start deploy with us m your can contact us and we will send to you our Template Engine PHP source code We proudly present our list of contibutors and supporters José Augusto Ferreira Franco (Portugal) Informatics Engineer student > WebExp Template Engine Project Manager PHP-Ajax Pluggins | Database Wrapper Marcelo Soares da Costa (Brazil) FreeBSD System Engineer > WebExp Object Framework developer Gabi Solomon (Romania) Economical Engineer/PHP programmer > WebExp Template Engine features Bruno Canongia (Brazil) Software Engenineer > WebExp PHP-Ajax Api developer >>>>> About this package >>>>> Author : José Augusto F. Franco >>>>> Email : guto.onidesk@gmail.com >>>>> Msn : gutoferreira69@hotmail.com >>>>> Web : http://www.revista-php.net/ >>>>> Package : WebExpPoll test script - Easy way to build your polls with Ajax >>>>> License : GPL --------- HOW TO RUN THE SCRIPT ------------------ 1st step - Uncompress the files on package and add them on your web server httpdocs or www folder. 2nd step - Create a new folder and name it as 'images'. Right next copy all images to there. Further steps : Edit the class add add you own configuration Inside the class you will find this attributes // this is poll question public $q = "What´s your favourite color ? "; // Ajax callback (it´s the name of Ajax function) public $f = 'Vote'; (you don´t need to change it) // quiz options public $opt; // quiz name on radios and ajax div name public $quiz = 'vote'; // page to output poll results public $output = 'results.php'; //images location folder public $imgRoot = 'images/'; // js location folder public $jsLocation = ''; // js file public $jsFile = 'poll.js'; // file where votes are saved public $pool_db = 'pool_results.txt'; // graph images background public $graph_bg = 1; // 1 - to random bg 0 - to static bg // the image graph height public $graph_height = '5'; // message if user cast poll twice public $voteRep = " You already cast this poll !"; // message result public $msgRes = "<h2>Poll results:</h2>"; //allow to show table again public $showT = 'Show poll'; // the bg color to options table public $TableOptColor = '#ccc'; // style fonts at options table public $TableOptStyle = 'mycssClass'; -------- How to build the class parameters --------- To build your own polls edit the file test_poll.php and yout poll question on the vatiable $YourPollQuestion // your poll question $YourPollQuestion = "Type here your poll question !"; // set your array option like this $yourArrayPollOptions = array("<li>Option one</li>", "<li>Option two</li>", "<li>Option three</li>"); ---------- Make the class instance (build the poll object) ------ // creates your PHP-AJAX Poll new WebExpPoll($YourPollQuestion,$yourArrayPollOptions); ------- About the author ----------- José Franco is a Informatics Engineer student and he owns his own buisness in Guarda - Portugal He´s also the project admin of Portuguese PHP Magazine on a digital version identical as PHPMag Contact : guto.onidesk@gmail.com Mobile : +351 96 269 44 32 MSN : gutoferreira69@hotmail.com Web : www.revista-php.net |
Files |
File | Role | Description |
---|---|---|
WebExpPoll.class.php | Class | PHP Ajax main class |
halt.png | Icon | images from the script |
Linux_users_help.txt | Doc. | Run this class on Linux |
poll.gif | Icon | images from the script |
poll_black.gif | Icon | images from the script |
poll_green.gif | Icon | images from the script |
poll_orange.gif | Icon | images from the script |
poll_preview.gif | Icon | Class design preview |
poll_purple.gif | Icon | images from the script |
poll_red.gif | Icon | images from the script |
readme.txt | Data | Read me first |
test_poll.php | Example | poll test file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (3) | ||||||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.