Subversion Repositories SmartDukaan

Rev

Rev 20424 | Rev 20514 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20424 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
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
7
<style>
8
table {
9
    border-width: 1px 1px 1px 1px;
10
    border-spacing: 2px;
11
    border-style: outset outset outset outset;
12
    border-color: gray gray gray gray;
13
    border-collapse: separate;
14
    background-color: white;
15
	margin-top: 10px;
16
	width: 90%;
17
}
18
th {
19
    border-width: 1px 1px 1px 1px;
20
    padding: 1px 1px 1px 1px;
21
    border-style: inset inset inset inset;
22
    border-color: gray gray gray gray;
23
    background-color: white;
24
    -moz-border-radius: 0px 0px 0px 0px;
25
	text-align: center;
26
}
27
td {
28
    border-width: 1px 1px 1px 1px;
29
    padding: 1px 1px 1px 1px;
30
    border-style: inset inset inset inset;
31
    border-color: gray gray gray gray;
32
    background-color: white;
33
    -moz-border-radius: 0px 0px 0px 0px;
34
	text-align: center;
35
}
36
.actionMessage{
37
	paddding:0px;
38
}
39
.actionError{
40
	padding:0px;
41
}
42
</style>
43
<title>List of Banners</title>
44
</head>
45
<body>
46
<div>
47
    <h1>Banner List</h1>
48
 
20513 kshitij.so 49
    <a href="$request.contextPath/new">Create New Banner</a>
20424 kshitij.so 50
    <div style="color:blue;">
51
    #sactionmessage()
52
    </div>
53
    <div style="color:red;">
54
    #sactionerror()
55
    </div>
56
    <div class="left" style="width: 100%; float: left;">
57
		#set ($banners = $action.getAllBanners())
58
		    <table id="bannerTable">
59
        <thead>
60
            <tr>
61
				<th>Banner Id</th>
62
                <th>Banner Name</th>
63
				<th>Image Map</th>
64
                <th>Status</th>
65
				<th colspan="2">Action</th>
66
            </tr>
67
        </thead>
68
        <tbody>
69
    #foreach ( $banner in $banners )
70
		#set($uris = $action.getUriMapping($banner.getBannerName(), $banner.getBannerType()))
71
            <tr>
72
				<td>$banner.get_id()</td>
73
                <td>$banner.getBannerName()</td>
74
				<td>
75
					#if ($banner.getBannerList().size() > 0)
76
						<img style="vertical-align: middle; width: 18px;" src="images/active.ico">
77
					#else
78
						<img style="vertical-align: middle; width: 18px;" src="images/inactive.ico">
79
					#end
80
				</td>
81
				<td>
82
					#if ($banner.isActive())
83
						<img style="vertical-align: middle; width: 18px;" src="images/active.ico">
84
					#else
85
						<img style="vertical-align: middle; width: 18px;" src="images/inactive.ico">
86
					#end
87
				</td>
88
				<td><a href="banner/$banner.get_id()/edit">View/Edit</a></td>
89
				<td><a href="banner!destroy?id=$banner.get_id()" class="delete">Delete</a></td>
90
            </tr>
91
    #end
92
        </tbody>
93
    </table>
94
	</div>
95
</div>
96
</body>
97
</html>