-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0a88cb
commit 9c2084e
Showing
13 changed files
with
283 additions
and
187 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Category: {{categoryName}}</title> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/home.css') }} /> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} /> | ||
</head> | ||
<body> | ||
<div id="title"> | ||
<a href="/"> | ||
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} /> | ||
</a> | ||
<form> | ||
<input id="searchBox" type="text" name="searchQuery"> | ||
<input id="searchButton" type="submit" value="Search"> | ||
</form> | ||
|
||
{% if not loggedIn %} | ||
<div id="signInButton"> | ||
<a class="link" href="/loginForm">Sign In</a> | ||
</div> | ||
{% else %} | ||
<div id="displayUserId">Hello, <br>{{firstName}}</div> | ||
<div id="signInButton"> | ||
<a class="link" href="/logout">Sign Out</a> | ||
</div> | ||
{% endif %} | ||
<div id="kart"> | ||
<a class="link" href="/cart"> | ||
<img src={{url_for('static', filename='images/shoppingCart.png')}} id="cartIcon" /> | ||
CART {{noOfItems}} | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<h2>Showing all products of Category {{categoryName}}:</h2> | ||
{% for itemData in data %} | ||
<table> | ||
<tr id="productName"> | ||
{% for row in itemData %} | ||
<td> | ||
{{row[1]}} | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
<tr id="productImage"> | ||
{% for row in itemData %} | ||
<td> | ||
<a href="/productDescription?productId={{row[0]}}"> | ||
<img src={{ url_for('static', filename='uploads/' + row[3]) }} id="itemImage" /> | ||
</a> | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
<tr id="productPrice"> | ||
{% for row in itemData %} | ||
<td> | ||
${{row[2]}} | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
</table> | ||
{% endfor %} | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters