Advertisement
Guest User

Untitled

a guest
Mar 19th, 2014
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.  
  6. <title>Pizza Parlor</title>
  7.  
  8. <link rel="stylesheet" type="text/css" media="all" href="pizzaParlor.css" />
  9.  
  10. <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
  11. <script type="text/javascript" src="pizzaParlor.js"></script>
  12. <script>
  13. //<!--
  14.  
  15. // put your code here to retrieve the data from your cookies
  16. // and display the customer information and order information
  17. // in the appropriate area's of the screen.
  18.  
  19. // Also need to add code to display an estimated time (approx 30min)
  20.  
  21.  
  22. var pizzaSize = GetCookie("pizSZ");
  23. var pizzaCrust = GetCookie("pizzaCRST");
  24. var pizzaType = GetCookie("pizzaTyp");
  25. var totalCost = GetCookie("totalCST");
  26.  
  27. var firstName = GetCookie("fNAME", firstName);
  28. var lastName = GetCookie("lNAME", lastName);
  29. var emailAdd = GetCookie("email", emailAdd);
  30. var address = GetCookie("add", address);
  31. var aptNum = GetCookie("apt", aptNum);
  32. var city = GetCookie("cty", city);
  33. var state = GetCookie("st", state);
  34. var zipCode = GetCookie("zip", zipCode);
  35. var phoneNum = GetCookie("pNUM", phoneNum);
  36.  
  37.  
  38.  
  39.  
  40.  
  41. /* -----------------------------------------------------
  42. * name: updateDisplay()
  43. * purpose: Updates the shopping cart with any changes in order.
  44. * author: Eric Collins
  45. * date: 03/03/2014
  46. * parameters: none
  47. */
  48. function updateDisplay(){
  49. //alert("updateDisplay was called");
  50. //alert(order[0]);
  51. $('#messages').text("");
  52.  
  53. for(var i = 0; i < order.length; i++){
  54. $('#messages').append(order[i] + price[i] + "<br />");
  55.  
  56. } // end for loop
  57.  
  58. } // end function updateDisplay()
  59.  
  60.  
  61.  
  62.  
  63.  
  64. $('document').ready(function(){
  65.  
  66. updateDisplay();
  67.  
  68. });
  69.  
  70.  
  71.  
  72.  
  73.  
  74. //-->
  75. </script>
  76. </head>
  77. <body>
  78. <div id="wrapper" class="wrapper">
  79. <div id="header" class="header">
  80. <img src="images/pizzaParlorLogo.png" alt="LogoImage" height="100" width="150" style="float: left;" />
  81.  
  82. <h1>Pizza Parlor Example</h1>
  83.  
  84. <span style="text-align: right;">(425) 555-1212</span><br />
  85. <span style="text-align: right;">555 5th Ave</span><br />
  86. <span style="text-align: right;">Everett, WA 98203</span>
  87. </div>
  88. <!-- horizontal menu -->
  89. <div id="horizontalMenu" style="text-align: center; font-size: 10px;">
  90. <a href="#">Home</a>
  91. <a href="#">Order Now</a>
  92. <a href="#">Contact Us</a>
  93. </div>
  94. <!-- horizontal menu -->
  95. <br />
  96. <div id="content" class="main">
  97. <div id="center" class="yourOrder">
  98.  
  99. <h2>Customer Information</h2>
  100. <hr />
  101.  
  102. </div>
  103.  
  104. <div id="rightSidebar" class="shoppingCart">
  105. <h2>Your Order</h2>
  106. <div id="messages"> </div>
  107. </div>
  108. <div id="deliveryTime">
  109. <label id="delivery"> </label>
  110. </div>
  111. </div>
  112. </div>
  113. </body>
  114. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement