Sunday, April 11, 2010

Week 11 – Project Task

The project task for Week 11 was to begin working on a task to incorporate AJAX with PHP and MySQL. I am working on an Admin Logon screen. From the home page, the user can click on the Admin Logon link at the bottom of the page and is navigated to a log on screen. Users were already entered into a new table called ‘User_Admin’. If the password is incorrect, a PASSWORD INCORRECT message appears. If the user signs in successfully, their admin user information appears (name, address, etc) from using a PHP file. I also added some admin function links here as well, such as viewing the customer table as well as the ability to create or delete the customer table – only functions that an Admin should have. The direct link is below:

http://webdev.ramapo.edu/~cdaleo/FinalProject/TEB_Master/Admin_Logon/display.html

You can try this out by enter test for the Username and test for the password.

Saturday, April 10, 2010

Week 11 Labs

Week 11
Task 1
The example below shows my web page retrieving information from my existing ‘Art’ table database using AJAX. An artist’s name is selected from the drop down, and his information is then populated into the appropriate cells of the table.

http://webdev.ramapo.edu/~cdaleo/Week11/Week11_PHP_Database.html
Task 2
The example for Task 2 is similar to task 1, except that the selected information from my existing ‘Art’ database will be converted to a XML document. The DOM will then be used to extract the artist’s information and display it on the HTML page.

http://webdev.ramapo.edu/~cdaleo/Week11/Task2_Week11/Week11_XML_Database.html

Everything is working.

Saturday, April 3, 2010

Week 10 - Project Task

For Week 10’s Project Task, I used the database functions to update my Order Page and try to begin building a Shopping Cart.

ORDER PAGE

The user clicks order and goes to the Order page. Here they enter in all their customer information including name, address, zip, as well as credit card information. After filling out the fields the user clicks Submit and the information is inserted as a new record via a PHP file which uses the INSERT function. (Please note I first created a “Customer” database in order for this to work). A message tells the user “Your order has been submitted”. Currently, the website has links to Create, Delete, and View Records for the “Customer” database. Clicking View Records (using the SELECT function) will allow the user to see all customer information in a table. The links are only there right now to prove that my database functions are working. However, realistically those links should not be there as the user (customer) should never have access to this information. This would be something that should be accessible by an Admin of the site, which I may build at a later date. The link for the Order page is below:

http://webdev.ramapo.edu/~cdaleo/FinalProject/TEB_Master/Order/Order.html

SHOPPING CART

I have been trying to build some sort of shopping cart for a couple weeks now without much luck. However, I used what we learned this week to make some version of a cart – not very realistic though. First, the user clicks on the Shopping Cart link on the site. The product and price are displayed on the screen. ( I had to use Text Boxes because labels didn’t work with the PHP file). The user clicks Add to Cart, where I used the INSERT function here to add the information to a “Cart” table that I had previously created. A message appears saying that “Product has been added to cart”. Then I put a link at the bottom of the page which says “View Cart”. When the user clicks this, it takes them to another PHP page where I used the SELECT function which shows the records, or the customer’s “cart”.
I’m sure there is a better more realistic way to build a Shopping Cart, but this demonstrates the database functions we learned this week. Everything works.

http://webdev.ramapo.edu/~cdaleo/FinalProject/TEB_Master/ShoppingCt/Cart.html

Friday, April 2, 2010

Week 10 - Labs

Using the hard code files, I was able to create a table, insert records, and select the records. I modified the table and records using an Art Collection table. Here is my link showing the table of records using Select statement:

http://webdev.ramapo.edu/~cdaleo/Week10/select.php

Next, I worked on the HTML form and the PHP file that works with this. I created the HTML with text boxes where the user enters the art information and then clicks Submit. This takes them to the PHP page that tells them the new record has been added. I included a link on this page so the user can immediately see that the new record has been added to the table. The HTML page is below:

http://webdev.ramapo.edu/~cdaleo/Week10/Insert_Data_From_Form.html

Everything is working.

Sunday, March 28, 2010

Week 9 – Project Task – PHP Form

The project task this week was to create a form in our final project using a PHP file. I created an Order form where the users enters shipping information including name, address , and payment information. They also have an option to check off a box called “My Shipping Address is the same as billing address”. If they uncheck this box, they can fill out a different shipping address if it different – more fields pop up. The user then clicks Process Order. This next screen says “Thank you for your order! “ and includes their name and address information that they filled in from the Order page. It uses a PHP file to read this information that is stored in variables. Everything seems to work.

However, I think logically that when ordering a product from an ecommerce site that the user would “Add to cart” as the first step, and then proceed to complete his shipping/billing information. So, I may change this later if we learn about adding Shopping Carts. I did attempt a Shopping Cart this week but was unsuccessful – I believe MySQL database is necessary. Hopefully, we will learn this as we go through the course.

http://webdev.ramapo.edu/~cdaleo/FinalProject/TEB_Master/Order/Order.html

Thursday, March 25, 2010

Week 9 - Labs

I made a form and used the $_GET function. The breakdown is as follows:

• Use a Name and Age on the first page. Once the information is entered the user clicks submit at which time the information is loaded to the server.
• I did a Loop example show age increments.
• I did a Function/Math example where I added 20 years to my age.
• Did an If Else example showing “It’s a wonderful day!” if it was any day but Friday.
• Did a String example counting the number of characters in my name.

Everything works. I will work on something more comprehensive for my Project Task – probably an Order form.

http://webdev.ramapo.edu/~cdaleo/Week9/test.html

Friday, March 12, 2010

Week 8 - Project Task - Ajax

For my Project task for Week 8, I used Ajax to display a table that appears on the Comparison.html page showing competitor information and prices. The data appears once the GET HAIRSTYLING TOOLS button is pressed.


http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/TEB_FinaProj/Comparisons.html

Thursday, March 11, 2010

Week 8 - Labs - Ajax

WEEK 8

LAB 1

For this first example, I used 2 text files. I modified the box increasing height and width. I made the font Comic Sans MS and Bold. I added a Pink background. I named the button Submit. This shows how the content on the page changes by clicking the button without reloading the web page.

http://phobos.ramapo.edu/~cdaleo/Technology/Week8/Week8_FirstExample.html

LAB 2

For this second example, I used my own XML file called “hair.xml”. Upon clicking the “Get Hair Style Tools” button, a table is displayed pulling all the appropriate nodes (tool, title, and price).I modified the Font, and added a Lavender background. It reads the data from the XML file, and again it does this without having to reload the web page.

http://phobos.ramapo.edu/~cdaleo/Technology/Week8/SecondExampled_XML.html

Monday, March 8, 2010

Week 7 - Project Task

I used the Get Value of an Element and looped through all the elements in an XML file I created. The XML file is of hair tools for a Comparison page in the website. I did this for the text node, and the Category Attribute, and also the Prices child node to meet the 3 lab requirement.



http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/TEB_FinaProj/ProjectTask_Week7.html

On the web dev server the link is:
http://webdev.ramapo.edu/~cdaleo/FinalProject/TEB_Master/Comparisons/Comparisons.html

Week 7 labs

TEB – WEEK 7
Example 1 from the Get Node Values section:
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example1_GetValueNode.html

Example 2 - Change text nodes
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example2_ChangeTextNode.html

Example 3 – Demonstrates how to remove the Element node “music”.
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example3_RemoveElementNode.html
Example 4 - Replace text node with different data.
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example4_ReplaceTextNode.html

Example 5 – Create a new element node
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example5_CreateTextNode.html

Example 6 – Adds a node after the last child node
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example6_AddNode.html

Example 7 - Clone a node - copies the first node and appends it to the root node of the document:
http://phobos.ramapo.edu/~cdaleo/Technology/Week7/Example7_Clone.html

Sunday, February 28, 2010

Week 6 - Final Project - Home Page

Here is my project website including the home page and some other pages I've started. I have added all the project task pages here as well including Proposal, Business Model, and my Terms & Conditons page. I chose a template called "Purple Beauty" from the free template website give to us. I wanted something feminine and girly as my product that I am selling will be target to women.

http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/TEB_FinaProj/home.html

Saturday, February 27, 2010

Week 6 - Project Task using JavaScript

For our project task this week for Week 6, I chose a JavaScript Confirmation box to put on my project's Terms and Conditions page. The button says Agreement Confirmation and when clicked the user has to hit okay or cancel. If they hit Okay, the message says "Yes, I agree"; if they hit Cancel the message returns "No, I do not agree".


http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/Week6_JavaScript_TermsAndConditions.html

Friday, February 26, 2010

Week 6 - JavaScript Examples

Here are my links for the JavaScript examples – everything works:

IF ELSE EXAMPLE
If the time on your browser is greater than 18, you will get a "Good evening" greeting. Otherwise you will get a "Do you have the time?" greeting.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/If_Else_Example.html

EXTERNAL FILE EXAMPLE
Added external .js file and linked it with script tags in my HTML page.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/ExternalFile_Example.html

SWITCH EXAMPLE
This JavaScript will generate a different greeting based on what day it is. Anything other than Friday, Saturday, and Sunday should generate an "Is it almost the weekend?" message.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Switch_Example.html

FUNCTION EXAMPLE - RETURN
The function will return the addition of these two parameters.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Function_Return.html

FUNCTION – ALERT
Modified example to display “Encouragement” and “Motivation” buttons. When clicked, they generate a message box with a quote.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Function_Alert.html

FOR LOOP
As long as “I” is less than, or equal to 10, the loop will continue to run, “I” will increase by 1 each time the loop runs.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/For_Loop_Example.html


FOR WHILE LOOP
Did a for while loop that increments up to 20.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Do_While_Example.html

ARRAY
Added an array of five colors listed.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Array_Example.html

ERROR EXAMPLE
An error message pops up.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Error_Example.html

TIMER EXAMPLE
Modified the button label and added a pink background.
http://phobos.ramapo.edu/~cdaleo/Technology/Week6/Timer_Example.html

Sunday, February 21, 2010

Business Model

My business model for my electronic business will be a Direct Model or Manufacturer model. It does seem very similar to a Merchant model or E-tailer so I'm not sure if it could be both. I'm still not certain on all the details, but I will be selling a hair styling tool via a website. From the Manufacturer to the consumer, it will be a B2C e-commerce site. Right now, I think I'm only going to sell the one product, but maybe I might add more. I am not sure. The is a as seen on tv product so it has already received a lot of marketing exposure. The website is another means of purchase.

I've literally been up since 2:45am this morning working on TEB homework,and it is now 9:55am on Sunday. The coffee just finished brewing thank god, but I probably should go to sleep. Had to finish TEB in order to leave the last day of the weekend Sunday to work on my Strat presentation due this week. Only got today, once the new work week begins, there's no time for homework. Sigh...yum..the eggnog coffee is ready now...

Here's my link to my Business Model page on my project site:

http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/Business_Model.html

Week 5 - Project Tasks

Week 5 – Project Tasks - XSLT

I made a Contact information page for my site using XML. Here is the link for the original XML with CSS applied:

http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/XML_for_XSL_ORIGINAL.xml

Here is the link for my example using XML with XSLT. I created a Contact Page using XSLT for my project. It was much easier to use XSLT than CSS. I used the background image of my site, set an Aerial font, and used italics and a pink color for text that I wanted to emphasis.

http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/XML_for_XSL_RESULTING.xml

Saturday, February 20, 2010

Week 5 - Task 5.3 - XSLT

Here are my examples for the XSL tasks for Task 5.3:

This is the link for the “If” example. I made it so that it would only show titles and artists less than $10. I also changed the color of the heading.

http://phobos.ramapo.edu/~cdaleo/Technology/Week5/XML_for_XSL_IF.XML

This is the link for the “Choose” example. I made it so that for titles over $10 it would show a pink cell; else the cell will show up blue. Changed the heading to red:

http://phobos.ramapo.edu/~cdaleo/Technology/Week5/XML_for_XSL_CHOOSE.xml

This is the link for the “Apply” example. I applied the template to the Company and Year child elements. I applied pink and purple colors.

http://phobos.ramapo.edu/~cdaleo/Technology/Week5/XML_for_XSL_APPLY.xml
WEEK 5

TASK 5.2 - XML/CSS

Changed the example by using a purple background, and different color fonts for the headings:


http://phobos.ramapo.edu/~cdaleo/Technology/Week5/XML_Week5.xml

Sunday, February 14, 2010

Enterprise 2.0 Proposal


Please visit the link below for my Enterprise 2.0 Proposal for our ebusiness project.

http://phobos.ramapo.edu/~cdaleo/Technology/FinalProject/Proposal_Enterprise.html