-
Notifications
You must be signed in to change notification settings - Fork 5
/
webmain.ecpp
39 lines (36 loc) · 1.05 KB
/
webmain.ecpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<%include>global.ecpp</%include>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="tntnet bookshop demo">
<link rel="stylesheet" href="/tntnet.css" type="text/css">
</head>
<body>
<div id="header">
<span id="title">Tntnet bookshop demo</span>
</div>
<div id="menu">
<ul class="nav">
<li class="navheader">Bookshop</li>
<li class="navitem"><a href="/">Home</a></li>
<li class="navitem"><a href="/products">Products</a></li>
<li class="navitem"><a href="/cart">Shopping cart</a></li>
% if (!shoppingcart.empty()) {
<li class="navitem"><a href="/order">Order</a></li>
% }
</ul>
</div>
% if (!shoppingcart.empty()) {
<div id="shoppingcart">
You have currently <span id="countItems"><$ shoppingcart.countProducts() $></span> books in your shopping cart
</div>
% }
% if (!feedback.empty()) {
<div id="feedback"><$ feedback $></div>
% }
<div id="content">
<& (request.getArg("next")) qparam >
</div>
</body>
</html>