| 
<?php
/******************************************************************
 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
 
 
 
 Bruno Canongia (Brazil)
 Software Engenineer
 > WebExp PHP-Ajax Api developer
 
 >>>>>  About this package
 >>>>>  Author  : José Augusto F. Franco
 >>>>>  Email   : [email protected]
 >>>>>  Msn     : [email protected]
 >>>>>  Web     : http://www.revista-php.net/
 >>>>>  Package : WebExpPoll test script - Easy way to build your polls with Ajax
 >>>>>  License : GPL
 
 ***********************************************************************/
 
 /*
 >> Remember that you  should edit your js,
 results, images and images root inside the class
 
 To try this class jusm dump the files on your server
 and call the file test_poll.php in your browser, or
 access to it from you webserver, by changing the
 file 'test_poll.php'  to 'index.php'
 
 
 1st example : Changing images root
 public $output = 'results.php';
 
 2nd example : Changing js file name
 public $jsFile = 'votes.js';
 
 3rd example : Increase graph height
 public  $graph_height = '5';
 
 */
 
 ?>
 <html>
 <head>
 <title>Poll System by Franco</title>
 <script language="JavaScript" src="poll.js"></script>
 </head>
 
 <body>
 
 <?php
 
 // loads main class file
 require("WebExpPoll.class.php");
 
 // your poll question
 $YourPollQuestion = "Type here your poll question !";
 // your poll answer iptions
 $yourArrayPollOptions = array("<li>Option one</li>","<li>Option two</li>","<li>Option three</li>");
 
 
 
 
 // creates your PHP-AJAX Poll
 new WebExpPoll($YourPollQuestion,$yourArrayPollOptions);
 
 ?>
 
 
 
 </body>
 |