Advertisement
Guest User

asd

a guest
Dec 22nd, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <meta charset="utf-8" />
  6. <title>Market</title>
  7. <link rel="stylesheet" type="text/css" href="market.css" />
  8. <script src="market.js"></script>
  9. <script src="jQuery.js"></script>
  10. </head>
  11.  
  12. <body onload="startApp()">
  13.  
  14. <div id="app">
  15. <header id="menu">
  16. <a href="#" class="anonymous" id="linkMenuAppHome">Home</a>
  17. <a href="#" class="anonymous" id="linkMenuLogin">Login</a>
  18. <a href="#" class="anonymous" id="linkMenuRegister">Register</a>
  19.  
  20. <a href="#" class="useronly" id="linkMenuUserHome">Home</a>
  21. <a href="#" class="useronly" id="linkMenuShop">Shop</a>
  22. <a href="#" class="useronly" id="linkMenuCart">Cart</a>
  23. <a href="#" class="useronly" id="linkMenuLogout">Logout</a>
  24.  
  25. <span class="useronly" id="spanMenuLoggedInUser">Welcome, {user}!</span>
  26. </header>
  27.  
  28. <main>
  29. <div id="loadingBox" hidden>Loading ...</div>
  30.  
  31. <div id="infoBox" hidden>Info</div>
  32.  
  33. <div id="errorBox" hidden>Error</div>
  34.  
  35. <section id="viewAppHome">
  36. <h1>Welcome</h1>
  37. Welcome to our shopping system.
  38. </section>
  39.  
  40. <section id="viewLogin">
  41. <h1>Please login</h1>
  42. <form id="formLogin">
  43. <label>
  44. <div>Username:</div>
  45. <input type="text" name="username" id="loginUsername" required />
  46. </label>
  47. <label>
  48. <div>Password:</div>
  49. <input type="password" name="password" id="loginPasswd" required />
  50. </label>
  51. <div>
  52. <input type="submit" value="Login" />
  53. </div>
  54. </form>
  55. </section>
  56.  
  57. <section id="viewRegister">
  58. <h1>Please register here</h1>
  59. <form id="formRegister">
  60. <label>
  61. <div>Username:</div>
  62. <input type="text" name="username" id="registerUsername" required />
  63. </label>
  64. <label>
  65. <div>Password:</div>
  66. <input type="password" name="password" id="registerPasswd" required />
  67. </label>
  68. <label>
  69. <div>Name:</div>
  70. <input type="name" name="name" id="registerName" />
  71. </label>
  72. <div>
  73. <input type="submit" value="Register" />
  74. </div>
  75. </form>
  76. </section>
  77.  
  78. <section id="viewUserHome">
  79. <h1 id="viewUserHomeHeading">Welcome, {user}!</h1>
  80. <a href="#" id="linkUserHomeShop">Shop</a>
  81. <a href="#" id="linkUserHomeCart">Cart</a>
  82. </section>
  83.  
  84. <section id="viewShop">
  85. <h1>Products</h1>
  86. <div class="products" id="shopProducts">
  87. <table>
  88. <thead>
  89. <tr>
  90. <th>Product</th>
  91. <th>Description</th>
  92. <th>Price</th>
  93. <th>Actions</th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. <!-- TODO: more messages will come here -->
  98. </tbody>
  99. </table>
  100. </div>
  101. </section>
  102.  
  103. <section id="viewCart">
  104. <h1>My Cart</h1>
  105. <div class="products" id="cartProducts">
  106. <table>
  107. <thead>
  108. <tr>
  109. <th>Product</th>
  110. <th>Description</th>
  111. <th>Quantity</th>
  112. <th>Total Price</th>
  113. <th>Actions</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <!-- TODO: more messages will come here -->
  118. </tbody>
  119. </table>
  120. </div>
  121. </section>
  122. </main>
  123.  
  124. <footer>Shopping System - Simple SPA Application</footer>
  125. </div>
  126.  
  127. </body>
  128.  
  129. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement