| 6848 |
kshitij.so |
1 |
<!DOCTYPE html PUBLIC
|
|
|
2 |
"-//W3C//DTD XHTML 1.1 Transitional//EN"
|
|
|
3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
4 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
5 |
<head>
|
|
|
6 |
<style type="text/css">
|
|
|
7 |
* { font-family: Verdana; font-size: 96%; }
|
|
|
8 |
label { width: 10em; float: left; }
|
|
|
9 |
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
|
|
|
10 |
p { clear: both; }
|
|
|
11 |
.submit { margin-left: 12em; }
|
|
|
12 |
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
|
|
|
13 |
ul { padding-left: 13px;}
|
|
|
14 |
|
|
|
15 |
table {
|
|
|
16 |
border-width: 1px 1px 1px 1px;
|
|
|
17 |
border-spacing: 2px;
|
|
|
18 |
border-style: outset outset outset outset;
|
|
|
19 |
border-color: gray gray gray gray;
|
|
|
20 |
border-collapse: separate;
|
|
|
21 |
background-color: white;
|
|
|
22 |
margin-top: 10px;
|
|
|
23 |
width: 22%;
|
|
|
24 |
}
|
|
|
25 |
th {
|
|
|
26 |
border-width: 1px 1px 1px 1px;
|
|
|
27 |
padding: 1px 1px 1px 1px;
|
|
|
28 |
border-style: inset inset inset inset;
|
|
|
29 |
border-color: gray gray gray gray;
|
|
|
30 |
background-color: white;
|
|
|
31 |
-moz-border-radius: 0px 0px 0px 0px;
|
|
|
32 |
text-align: center;
|
|
|
33 |
}
|
|
|
34 |
td {
|
|
|
35 |
border-width: 1px 1px 1px 1px;
|
|
|
36 |
padding: 1px 1px 1px 1px;
|
|
|
37 |
border-style: inset inset inset inset;
|
|
|
38 |
border-color: gray gray gray gray;
|
|
|
39 |
background-color: white;
|
|
|
40 |
-moz-border-radius: 0px 0px 0px 0px;
|
|
|
41 |
text-align: center;
|
|
|
42 |
}
|
|
|
43 |
</style>
|
|
|
44 |
<title>List of Banners</title>
|
|
|
45 |
</head>
|
|
|
46 |
<body>
|
|
|
47 |
<div>
|
|
|
48 |
<h1>Banner List</h1>
|
|
|
49 |
|
|
|
50 |
<a href="$request.contextPath/user-image/new">Create New Banner</a>
|
|
|
51 |
<div style="color:blue;">
|
|
|
52 |
#sactionmessage()
|
|
|
53 |
</div>
|
|
|
54 |
<div style="color:red;">
|
|
|
55 |
#sactionerror()
|
|
|
56 |
</div>
|
|
|
57 |
|
|
|
58 |
#drawAllBanners($action.getAllBanners())
|
|
|
59 |
</div>
|
|
|
60 |
|
|
|
61 |
</body>
|
|
|
62 |
</html>
|
|
|
63 |
|
|
|
64 |
#macro (drawAllBanners $banners)
|
|
|
65 |
<table id="myTable">
|
|
|
66 |
<thead>
|
|
|
67 |
<tr style="border: 1px">
|
|
|
68 |
<th>#</th>
|
|
|
69 |
<th>Banner Name</th>
|
|
|
70 |
<th colspan="2">Action</th>
|
|
|
71 |
</tr>
|
|
|
72 |
</thead>
|
|
|
73 |
<tbody>
|
|
|
74 |
#foreach ( $bannerName in $banners )
|
|
|
75 |
<tr style="border: 1px">
|
|
|
76 |
<td>$velocityCount</td>
|
|
|
77 |
<td><a href="/user-image/$bannerName/edit">$bannerName</a></td>
|
|
|
78 |
<td>
|
|
|
79 |
#set($bannerstatus = $action.getUpdates("$bannerName"))
|
|
|
80 |
#if ($bannerstatus.isIsActive())
|
|
|
81 |
<img style="vertical-align: middle; width: 11px; height: 11px;" src="/images/greendot.gif">
|
|
|
82 |
#else
|
|
|
83 |
<img style="vertical-align: middle; width: 11px; height: 11px;" src="/images/reddot.gif">
|
|
|
84 |
#end
|
|
|
85 |
<a href="/user-image/${bannerName}?_method=delete" id="$bannerName" class="delete">Delete</a>
|
|
|
86 |
</td>
|
|
|
87 |
</tr>
|
|
|
88 |
#end
|
|
|
89 |
</tbody>
|
|
|
90 |
</table>
|
|
|
91 |
|
|
|
92 |
#end
|