Prof. Peter - 2012-04-10

I attached electionboard.zip files.There are 2 files in that :

  1. Development Folder
  2. electionboard.sql(Database mysql File)

Development folder contain whole code with API.

  • CSS folder (All css files)

    -     jquery.countdown.css(Time countdown css files)
    -     style.css (custom css file)
    
  • Images(All images required for Site)

  • JS(All js files)

    -   Highcharts.js : js file needed for pie charts displayed in Top left side on site
    -   iscroll.js : iscroll for ios device(iPad/iPhone/iPad)
    -   jquery.countdown.pack.js  : needed for Time countdown
    -   jquery.microcharts.js : needed for Dynamic line chart display in facebook likes row
    -   jquery.sparkline.min.js : needed for small pie chart display in Blog and News row which is updated every 10 sec
    -   jquery-1.7.1.min.js : needed for jQuery to work
    -   script.js : Main js file which handle other js function
    
  • likes.php : main file which contain all javascript,css call and get all candidate detail from Database and display on page.

  • db_connect.php : server and database connection file
  • fetchInfo.php : This file get the data from database and return data in json format
  • getfacebookdata.php : this file return facebook like according to username
  • gettwitterdata.php : this file return twitter follower according to username

Database Connection :

You can set your database connection from db_connect.php file.

// Server Connection
# $con = mysql_connect("localhost","username of server","password of server");
// Database Connection
# mysql_select_db("database name",$con);