PHP Classes
elePHPant
Icontem

File: test_poll.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Josť Augusto Ferreira Franco  >  AJAXPoll  >  test_poll.php  >  Download  
File: test_poll.php
Role: Example script
Content type: text/plain
Description: poll test file
Class: AJAXPoll
Display polls and update results using AJAX
Author: By
Last change: some new features
Date: 7 years ago
Size: 2,532 bytes
 

Contents

Class file image Download
<?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 : 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
 
 ***********************************************************************/
  
   /*
    >> 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>