Dr. Venton Kepuska Donald L. Troup
Dynamic Web Calendar
Purposes Personal Organization Scheduling Increased productivity Small buisnesses Flexibility
Technology XHTML, Extensible Hyper Text Markup Language PHP, Hypertext Preprocessor MySQL Server Databases Tables
Implementation HTML pages: Login.html Newuser.html Login.html Simple log in form Checks for valid accounts Link to Newuser.html
Implementation Newuser.html Form Gathers information to POST to Newuser.php Register new user ○ Username ○ Password
Implementation PHP pages: Newuser.php Homepage.php Add.php Calendar.php Delete.php
Implementation Newuser.php Creates a query to add a new user to the system ○ Username ○ Password Also creates a database table named after the username ○ Contains date_id, month, day, year and description fields for the table
Implementation Homepage.php POST information sent from login.html to verify a valid user using a rowCheck Displays 3 options for the user to interact with the calendar ○ Add an Event ○ Delete an Event ○ View Calendar ○ Also prints a table with all events registered for that user
Implementation Various print statements set a form method for each option and post to their corresponding pages ○ Add.php ○ Delete.php ○ Calendar.php
Implementation Add.php POST to user’s database table to insert a date into relevant fields Confirmation of successful POST Delete.php POST to user’s database removing data from selected date Confirmation of removal
Implementation Calendar.php Longest file of the application Contains all algorithms for successfully setting up a calendar with days in correct spots Contains php function getdate() to pull data from browser to help facilitate construction of the calendar Uses Gaussian algorithm to determine the day of week for any particular date Also uses a POST to get event dates from user’s table and apply style to calendar highlighting which days contain an event
Implementation
Conclusion Very difficult coding for calendar Good base application available for more development Employs most skills learned over the semester Fun application