Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: pilig
  4. Date: 18.04.2017
  5. Time: 23:44
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  10. <html>
  11. <head>
  12. <title>Games</title>
  13. <link rel="stylesheet" type="text/css" href="/css/tables.css">
  14. <link rel="stylesheet" type="text/css" href="/css/input.css">
  15. </head>
  16. <body>
  17. <h1>This is super duper game table:</h1>
  18. <div style="height:200px;overflow:auto; border: 1px solid black;">
  19. <table class="tableDate">
  20. <th class="thDate">Game name</th>
  21. <th class="thDate">Year</th>
  22. <th class="thDate">Budget</th>
  23. <th class="thDate">Country</th>
  24. <th class="thDate">Rating mark</th>
  25. <c:forEach items="${games}" var="game">
  26. <tr class="trDate">
  27. <td class="tdDate"><c:out value="${game.name}"/></td>
  28. <td class="tdDate"><c:out value="${game.year}"/></td>
  29. <td class="tdDate"><c:out value="${game.cost}"/></td>
  30. <td class="tdDate"><c:out value="${game.country}"/></td>
  31. <td class="tdDate"><c:out value="${game.ratingMark}"/></td>
  32. </tr>
  33. </c:forEach>
  34. </table>
  35. </div>
  36. <div style="width: 40%">
  37. <form name="insertGameForm" action="/gamestable" method="post">
  38. <table class="tableInput">
  39. <tr class="trInput">
  40. <td class="tdInput"><label for="fname">Enter game name: </label></td>
  41. <td class="tdInput"><input id="fname" type="text" name="name"></td>
  42. </tr>
  43. <tr class="trInput">
  44. <td class="tdInput"><label for="fyear">Enter game release year: </label></td>
  45. <td class="tdInput"><input id="fyear" type="datetime-local" name="year"></td>
  46. </tr>
  47. <tr class="trInput">
  48. <td class="tdInput"><label for="fcost">Enter game budget: </label></td>
  49. <td class="tdInput"><input id="fcost" type="number" name="cost"></td>
  50. </tr>
  51. <tr class="trInput">
  52. <td class="tdInput"><label for="fcountry">Enter game country: </label></td>
  53. <td class="tdInput"><input id="fcountry" type="text" name="country"></td>
  54. </tr>
  55. </table>
  56. <br>
  57. <input type="submit" value="Insert">
  58. </form>
  59. </div>
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement