14
ECE 3553 MULITFARIOUS SYSTEMS Dr. Venton Kepuska Donald L. Troup

Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Embed Size (px)

Citation preview

Page 1: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

ECE 3553 MULITFARIOUS

SYSTEMS

Dr. Venton Kepuska

Donald L. Troup

Page 2: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Dynamic Web Calendar

1 2 3 4

5 6 7 8 9 10 11

12 13 14 15 16 17 18

19 20 21 22 23 24 25

26 27 28 29 30

Page 3: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Purposes

Personal Organization Scheduling Increased productivity Small buisnesses Flexibility

Page 4: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Technology

XHTML, Extensible Hyper Text Markup Language

PHP, Hypertext Preprocessor

MySQL Server DatabasesTables

Page 5: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

HTML pages:Login.htmlNewuser.html

Login.htmlSimple log in formChecks for valid accountsLink to Newuser.html

Page 6: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

Newuser.htmlFormGathers information to POST to

Newuser.phpRegister new user

○ Username○ Password

Page 7: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

PHP pages:Newuser.phpHomepage.phpAdd.phpCalendar.phpDelete.php

Page 8: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

Newuser.phpCreates 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

Page 9: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

Homepage.phpPOST information sent from login.html to

verify a valid user using a rowCheckDisplays 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

Page 10: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

ImplementationVarious print statements set a form method

for each option and post to their corresponding pages○ Add.php○ Delete.php○ Calendar.php

Page 11: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

Add.phpPOST to user’s database table to insert a

date into relevant fieldsConfirmation of successful POST

Delete.phpPOST to user’s database removing data

from selected dateConfirmation of removal

Page 12: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation Calendar.php

Longest file of the applicationContains all algorithms for successfully setting up

a calendar with days in correct spotsContains 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

Page 13: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Implementation

Page 14: Dr. Venton Kepuska Donald L. Troup. Dynamic Web Calendar 1234 567891011 12131415161718 19202122232425 2627282930

Conclusion

Very difficult coding for calendar Good base application available for

more development Employs most skills learned over the

semester Fun application