Advertisement
Guest User

Untitled

a guest
Oct 18th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. IN WEB XML
  2. --------------------------
  3.  
  4. <context-param>
  5. <param-name>driver</param-name>
  6. <param-value>com.mysql.jdbc.Driver</param-value>
  7. </context-param>
  8.  
  9. <context-param>
  10. <param-name>connUrl</param-name>
  11. <param-value>jdbc:mysql://localhost</param-value>
  12. </context-param>
  13.  
  14. <context-param>
  15. <param-name>database</param-name>
  16. <param-value>pizza_order</param-value>
  17. </context-param>
  18.  
  19. <context-param>
  20. <param-name>user</param-name>
  21. <param-value>root</param-value>
  22. </context-param>
  23.  
  24. <context-param>
  25. <param-name>pass</param-name>
  26. <param-value>PROG32758</param-value>
  27. </context-param>
  28.  
  29.  
  30. REPLACE OLD ORDERDB WITH
  31. ----------------------
  32.  
  33. String driver = "com.mysql.jdbc.Driver";
  34. String connUrl = "jdbc:mysql://localhost/";
  35. String database = "pizza_orders";
  36. String user = "root";
  37. String pass = "PROG32758";
  38.  
  39.  
  40. INDEX
  41. --------------------
  42.  
  43. <html>
  44. <head>
  45. <title>Pizza Order</title>
  46. <meta charset="UTF-8">
  47. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  48. <link rel="stylesheet" type="text/css" href="css.css">
  49. </head>
  50. <body>
  51. <div id="login"><form action ="BeginOrder.do" method="get" name="login">
  52. <h1> Welcome to my Pizza Ordering Application </h1>
  53. <br>
  54. <br>
  55. Name : <input type="text" class="textbox" name="name" required=""> <br> <br>
  56. Phone: <input type="number" class="textbox" name="phone" required=""> <br><br>
  57. <input type="submit" class="button" value="Submit">
  58. </form></div>
  59. <a href="DisplayOrders.do" class='link'>Display Orders</a>
  60.  
  61. </body>
  62. </html>
  63.  
  64.  
  65.  
  66. CSS
  67. -----------------------
  68.  
  69. /*
  70. To change this license header, choose License Headers in Project Properties.
  71. To change this template file, choose Tools | Templates
  72. and open the template in the editor.
  73. */
  74. /*
  75. Created on : 18-Oct-2016, 12:48:11 AM
  76. Author : Meggan
  77. */
  78.  
  79. body {
  80. background-image: url(images/background.jpg);
  81. font-family: sans-serif;
  82. color: white;
  83. font-size: 14px;
  84. margin-left: auto;
  85. margin-right: auto;
  86. }
  87. h1 {
  88. color: white;
  89. font-size: 24px;
  90. }
  91.  
  92. h2 {
  93. color: white;
  94. font-size: 18px;
  95. }
  96.  
  97. .button {
  98. background: #b5cd60;
  99. border: 0;
  100. width: 20%;
  101. height: 40px;
  102. border-radius: 3px;
  103. color: white;
  104. cursor: pointer;
  105. transition: background 0.3s ease-in-out;
  106. }
  107.  
  108.  
  109. .checkbox{
  110.  
  111. }
  112.  
  113.  
  114. .link{
  115. margin:auto;
  116. }
  117.  
  118. ul{
  119.  
  120. }
  121.  
  122. li{
  123.  
  124. }
  125.  
  126. input {
  127. border: none;
  128. font-family: 'Open Sans', Arial, sans-serif;
  129. font-size: 16px;
  130. line-height: 1.5em;
  131. padding: 0;
  132. -webkit-appearance: none;
  133. }
  134.  
  135. p {
  136. line-height: 1.5em;
  137. }
  138.  
  139. #login {
  140. margin: 50px auto;
  141. width: 320px;
  142. }
  143.  
  144. #login form {
  145. margin: auto;
  146. padding: 22px 22px 22px 22px;
  147. width: 100%;
  148. border-radius: 5px;
  149. border-top: 3px solid #434a52;
  150. border-bottom: 3px solid #434a52;
  151. }
  152.  
  153. #login form input[type="name"] {
  154. background-color: #3b4148;
  155. border-radius: 0px 3px 3px 0px;
  156. color: #a9a9a9;
  157. margin-bottom: 1em;
  158. padding: 0 16px;
  159. width: 235px;
  160. height: 50px;
  161. }
  162.  
  163. #login form input[type="phone"] {
  164. background-color: #3b4148;
  165. border-radius: 0px 3px 3px 0px;
  166. color: #a9a9a9;
  167. margin-bottom: 1em;
  168. padding: 0 16px;
  169. width: 235px;
  170. height: 50px;
  171. }
  172.  
  173. #login form input[type="submit"] {
  174. background: #b5cd60;
  175. border: 0;
  176. width: 100%;
  177. height: 40px;
  178. border-radius: 3px;
  179. color: white;
  180. cursor: pointer;
  181. transition: background 0.3s ease-in-out;
  182. }
  183. #login form input[type="submit"]:hover {
  184. background: #16aa56;
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement