Guest User

Untitled

a guest
Nov 21st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <h2>Clothes</h2>
  2. <table class="table">
  3. <thead>
  4. <tr>
  5.  
  6. <th>price</th>
  7. <th> date </th>
  8. <th>Delete</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12.  
  13. <% for(var i = 0; i < result.length; i++){%>
  14. <% if(result[i].type == "price"){%>
  15. <tr>
  16.  
  17. <td><%= result[i].price %></td>
  18. <td><%= result[i].date %></td>
  19. <td>
  20. <form action="/delete-price" method="POST">
  21. <input type="hidden" name="id" value="<%= result[i]._id %>">
  22. <input type="submit" name="submit" value="Delete">
  23. </form>
  24. </td>
  25. </tr>
  26. <%}%>
  27. <%}%>
  28.  
  29. </tbody>
  30. </table>
  31.  
  32. Ex: If the user enters budget of 200$ , I should go to all the rows in
  33.  
  34. "Clothes" , check the prices, if the prices is greater than the budget, this
  35.  
  36. row should be flagged .
Add Comment
Please, Sign In to add comment