Skip to content
Voting app. Users can vote in a number of categories. This one was for Oscar 2014 nominees.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
data
img
incl
js
screenshots
.DS_Store
LICENSE.txt
README.md
iframeoscar.php
index.php

README.md

Ballot

What is this?

A PHP and JS tool to display nominees in an event and collect user votes on predicted winners. We used this several times, and this iteration was for the 2014 Oscars. Demo: http://data.digitalfirstmedia.com/oscarballot14/

Screenshot of the costumes category

Credits

Peggy Bustamante

Assumptions

  • JQuery
  • PHP
  • MySQL
  • Google Doc

What's in here?

The project contains the following folders and important files:

  • index.php -- main file.
  • JS -- JavaScript files. vote.js has all the action and business logic.
  • data -- Data files, in a CSV, JSON and SQL formats.
  • incl -- PHP file to record user's selections/votes
  • css -- Base css files to get rolling with.

How to use this

  1. Make a copy of these Google docs: categories: https://docs.google.com/spreadsheet/ccc?key=0Apk83VzG7OVldHZGckZSY0JYU0w3TWN6QTFmOUlMcUE&usp=drive_web#gid=0 nominees: https://docs.google.com/spreadsheet/ccc?key=0Apk83VzG7OVldEJJdWRTejlKdkt3WWNkTjMzS2h0UWc&usp=drive_web#gid=0

  2. upload your data to MySQL tables.

  3. Change the SQL calls to your named tables in index.php, nominees.php, print.php, results.php.

Recommendation: remove static data (nominees names, category names etc.) from the database and pull them in from CSV or JSON files. Only use the database for vote count.

License

This code is available under the MIT license. For more information, please see the LICENSE.txt file in this repo.

You can’t perform that action at this time.