CS2623: Server-Side Programming
SSP11: Object Oriented
Objective:
- Use Objects in PHP scripts
- Declare data members in classes
- Work with class member functions
Points
- Full Credit: 40 Points
- Late/Resubmit Credit: 36 Points
Situation
Caveat
There may or may not be some errors in the code in the text. Since it is the end of the semester, by now you should have honed your debugging skills. The possible errors are not on new material.
Assignment Modifications:
- Create a new include file named inc_object_oriented.php. Similar to the other pages it will have a title for Object-Oriented PHP with a brief description.
- Include a title for a title for Event Calendar and a brief description of the project. Next will be a link to [Test the Script] and [View the Source Code] (display class_EventCalendar.php)
- Make any additional modifications needed to make this a professional-looking site.
Need a Visual Reference?
The following are videos (Flash Files) of past student sites. In most of the cases the entire web page is not included in the screen shot, just enough to let you see the functionality of each project assignment.
Disclaimer: If you see something that is contradictory to our class assignments, please ask. Do not assume that since it is on the video that it is 100% correct.
Specifications
- Discovery Project 10-1:
6. The mysqli() function will include localhost, Apollo1Login, Apollo1Password, and the apollo database
Example: mysqli("localhost", "user#####", "Password", "user#####a") where the values are modified for your apollo1 account.
- Discovery Project 10-2:
Enhance the code to validate the users input. Use a regular expression (REGEX) to validate the date. The title and description must also be validated (with or without REGEX) to make sure the user has provided input into those two fields
p. 615, 6. --error last line of if statement ( ) should be replaced by [ ]
$_SESSION['currentCalendar']=serialize($Calendar);
- Discovery Project 10-3:
When creating the table for the monthly calendar, all table cells are to be the same width to give the table a professional look.
- Discovery Project 10-4, 10-5:
Keep in mind that these are being done with the methods of the object. The actually accessing of the database is done in the class.
Recurring Specifications:
- XHTML must validate STRICT on all pages
- CSS must validate for CSS3 Standards
- Code must be easy to read and properly indented.
- Documentation must be appropriate and meaningful.
- Meta Tags including the following must be included on all pages. The content must be revised to information that is meaningful to the page.
<meta name="author"
content="Your Name" />
<meta name="revised" content="12/18/2015" />
<meta name="description" content="Description of web page" />
<meta name="keywords" content="Add appropriate key words" />
- Tables may not be used for general layout and only when specifically indicated in an assignment.
- JavaScript may not be used in assignments unless specifically indicated. One exception is the date late modified at the bottom of the web page.
Assignment Submission
- Follow the Assignment Submission requirements outlined in http://apollo.occc.edu/chyde/CS2623/Handouts/CS2623_CodingStandards.htm.
- Upload the files/folder to your apollo1 account.
- View the web page/s in Firefox, Chrome, Safari, and Internet Explorer.
- Revalidate and double check to make sure all items are visible from all computers.
- Note: The include files will not validate because they do not have complete DTD's and tags. However, index.php when it is displaying ANY and ALL of the dynamic content must validate.
- Submit the URL of your web page in the LMS.
- The URL's will be
- http://apollo1.occc.edu/user#####/ChineseZodiac/index.php
- Submission links must open web page in a new window (not inside of MoodleRooms) and display the page (and not a directory)
- XHTML code must validate STRICT and CSS must also validate for CSS3 or earlier. The Web Developer Toolbar in Firefox will be used for grading.
- Assignments not meeting the previous requirements (opening in a new window and XHTML/CSS Validation) cannot be graded. If it is still within the late/resubmit period, they can be re-uploaded and resubmitted (10% penalty). If it is after the final deadline, the work can no longer be submitted.