Advertisement
Guest User

Untitled

a guest
Nov 29th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Pick Your Poison</title>
  4. </head>
  5. <body>
  6.  
  7. <style type="text/css">
  8. body {background-image: url("http://www.glorioustreats.com/wp-content/uploads/2011/06/Margarita-Cookies.jpg")}
  9. h1 {
  10. font-family: arial, sans-serif;
  11. text-align: center;
  12. }
  13. h2 {
  14. font-family: arial, sans-serif;
  15. text-align: left;
  16. padding: 10 0 0 20;
  17. font-size: 20px;
  18. }
  19. h3 {
  20. font-family: arial, sans-serif;
  21. text-align: left;
  22. padding: 10 0 0 20;
  23. font-size: 18px;
  24. }
  25. h4 {
  26. font-family: arial, sans-serif;
  27. text-align: left;
  28. padding: 10 0 0 20;
  29. font-size: 18px;
  30. color: #228B22;
  31. }
  32. p {
  33. font-family: arial, sans-serif;
  34. padding: 10 0 0 20;
  35. }
  36.  
  37. .form-style-5{
  38. max-width: 500px;
  39. padding: 10px 20px;
  40. background: #f4f7f8;
  41. margin: 10px auto;
  42. padding: 20px;
  43. background: #f4f7f8;
  44. border-radius: 8px;
  45. font-family: Georgia, "Times New Roman", Times, serif;
  46. }
  47. .form-style-5 fieldset{
  48. border: none;
  49. }
  50. .form-style-5 legend {
  51. font-size: 1.4em;
  52. margin-bottom: 10px;
  53. }
  54. .form-style-5 label {
  55. display: block;
  56. margin-bottom: 8px;
  57. }
  58.  
  59. .form-style-5 select {
  60. font-family: Georgia, "Times New Roman", Times, serif;
  61. background: rgba(255,255,255,.1);
  62. border: none;
  63. border-radius: 4px;
  64. font-size: 16px;
  65. margin: 0;
  66. outline: 0;
  67. padding: 7px;
  68. width: 100%;
  69. box-sizing: border-box;
  70. -webkit-box-sizing: border-box;
  71. -moz-box-sizing: border-box;
  72. background-color: #e8eeef;
  73. color:#8a97a0;
  74. -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  75. box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  76. margin-bottom: 30px;
  77.  
  78. }
  79.  
  80. .form-style-5 select:focus{
  81. background: #d2d9dd;
  82. }
  83. .form-style-5 select{
  84. -webkit-appearance: menulist-button;
  85. height:35px;
  86. }
  87. .form-style-5 .number {
  88. background: #1abc9c;
  89. color: #fff;
  90. height: 30px;
  91. width: 30px;
  92. display: inline-block;
  93. font-size: 0.8em;
  94. margin-right: 4px;
  95. line-height: 30px;
  96. text-align: center;
  97. text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  98. border-radius: 15px 15px 15px 0px;
  99. }
  100.  
  101. .form-style-5 input[type="submit"],
  102. .form-style-5 input[type="button"]
  103. {
  104. position: relative;
  105. display: block;
  106. padding: 19px 39px 18px 39px;
  107. color: #FFF;
  108. margin: 0 auto;
  109. background: #1abc9c;
  110. font-size: 18px;
  111. text-align: center;
  112. font-style: normal;
  113. width: 100%;
  114. border: 1px solid #16a085;
  115. border-width: 1px 1px 3px;
  116. margin-bottom: 10px;
  117. }
  118. .form-style-5 input[type="submit"]:hover,
  119. .form-style-5 input[type="button"]:hover
  120. {
  121. background: #109177;
  122. }
  123. img.ri
  124. {
  125. display: block;
  126. margin-left: auto;
  127. margin-right: auto;
  128. margin-bottom: 2cm;
  129. max-height: 90%;
  130. max-width: 90%;
  131. top: 0;
  132. bottom: 100;
  133. left: 0;
  134. right: 0;
  135.  
  136. }
  137.  
  138. </style>
  139.  
  140. <?php
  141. $host="localhost";
  142. $username="alcohaul";
  143. $password="drunk";
  144. $database="alcohaul";
  145. $link= mysqli_connect($host,$username,$password,$database);
  146.  
  147.  
  148.  
  149. print "<form method=GET action='practiceresults.php' class='form-style-5'>";
  150. print "<h1>Pick Your Poison</h1>";
  151. print "</select><br><input type='submit' value='Browse All'></h3>";
  152. print "<h2>Search</h2>";
  153. print "<h3>Consistency: <select name='type'>";
  154. $typeresult= mysqli_query($link, 'SELECT * FROM type');
  155. print "<option value='No preference'></option>";
  156. while ($row = mysqli_fetch_array($typeresult)){
  157. print "<option value='$row[type_id]'> $row[type]</option>";
  158. }
  159. print "</select><br />";
  160.  
  161. print "Happy Hour Availability: <select name='happy_hour'>";
  162. $hhresult= mysqli_query($link, 'SELECT * FROM happy_hour');
  163. print "<option value='No preference'></option>";
  164. while ($row = mysqli_fetch_array($hhresult)){
  165. print "<option value='$row[hh_id]'> $row[hh]</option>";
  166. }
  167. print "</select><br />";
  168.  
  169. print "Flavor: <select name='flavor'>";
  170. $flavorresult= mysqli_query($link, 'SELECT * FROM flavor ORDER BY flavor');
  171. print "<option value='No preference'></option>";
  172. while ($row = mysqli_fetch_array($flavorresult)){
  173. print "<option value='$row[flavor_id]'> $row[flavor]</option>";
  174. }
  175. print "</select><br />";
  176.  
  177. print "Restaurant Area: <select name='area'>";
  178. $arearesult= mysqli_query($link, 'SELECT * FROM area ORDER BY area');
  179. print "<option value='No preference'></option>";
  180. while ($row = mysqli_fetch_array($arearesult)){
  181. print "<option value='$row[area_id]'> $row[area]</option>";
  182. }
  183. print "</select><br />";
  184.  
  185. print "Restaurant Name: <select name='rest'>";
  186. $restresult= mysqli_query($link, 'SELECT * FROM rest ORDER BY rest');
  187. print "<option value='No preference'></option>";
  188. while ($row = mysqli_fetch_array($restresult)){
  189. print "<option value='$row[rest_id]'> $row[rest]</option>";
  190. }
  191. print "</select><br><input type='submit' value='Find My Margarita!'></form></h3>";
  192.  
  193. mysqli_close($link);
  194. ?>
  195. </body>
  196. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement