Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
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>
8578 kshitij.so 6
<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
7
<style>
6848 kshitij.so 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;
8578 kshitij.so 16
	width: 90%;
6848 kshitij.so 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
</style>
37
<title>List of Banners</title>
38
</head>
39
<body>
40
<div>
41
    <h1>Banner List</h1>
42
 
43
    <a href="$request.contextPath/user-image/new">Create New Banner</a>
8578 kshitij.so 44
	<a href="$request.contextPath/user-image/newCampaign" style="margin-left: 30px;">Create New Campaign</a>
8590 kshitij.so 45
    <div style="color:blue;padding:0px;">
6848 kshitij.so 46
    #sactionmessage()
47
    </div>
8590 kshitij.so 48
    <div style="color:red;padding:0px;">
6848 kshitij.so 49
    #sactionerror()
50
    </div>
8578 kshitij.so 51
    <div class="left" style="width: 50%; float: left;">
52
		#set ($banners = $action.getAllBanners())
53
		    <table id="bannerTable">
6848 kshitij.so 54
        <thead>
8578 kshitij.so 55
            <tr>
6848 kshitij.so 56
                <th>Banner Name</th>
8578 kshitij.so 57
				<th>URI Mapped</th>
58
				<th>Image Map</th>
59
                <th>Status</th>
60
				<th colspan="2">Action</th>
6848 kshitij.so 61
            </tr>
62
        </thead>
63
        <tbody>
8578 kshitij.so 64
    #foreach ( $banner in $banners )
65
		#set($uris = $action.getUriMapping($banner.getBannerName()))
66
            <tr>
67
                <td>$banner.getBannerName()</td>
68
				<td>
8590 kshitij.so 69
					#set($isActive="False")
8578 kshitij.so 70
					#foreach ($uri in $uris)
8590 kshitij.so 71
						#if ($uri.isIsActive())
72
							#set($isActive="True")
73
						#end
8578 kshitij.so 74
						$uri.getUri()&nbsp;
75
					#end
76
				</td>
77
				<td>
78
					#if ($banner.isHasMap())
79
						<img style="vertical-align: middle; width: 18px;" src="/images/active.ico">
6848 kshitij.so 80
					#else
8578 kshitij.so 81
						<img style="vertical-align: middle; width: 18px;" src="/images/inactive.ico">
6848 kshitij.so 82
					#end
83
				</td>
8578 kshitij.so 84
				<td>
8590 kshitij.so 85
 
86
					#if ($isActive=="True")
8578 kshitij.so 87
						<img style="vertical-align: middle; width: 18px;" src="/images/active.ico">
88
					#else
89
						<img style="vertical-align: middle; width: 18px;" src="/images/inactive.ico">
90
					#end
91
				</td>
92
				<td><a href="/user-image/$banner.getBannerName()/edit">View/Edit</a></td>
93
				<td>
94
 
95
					<a href="/user-image/$banner.getBannerName()?_method=delete"  id="$banner.getBannerName()" class="delete">Delete</a>
96
				</td>
6848 kshitij.so 97
            </tr>
98
    #end
99
        </tbody>
100
    </table>
8578 kshitij.so 101
	</div>
102
	<div class="right" style="width: 50%; float: right;">
103
	#set($campaigns=$action.getAllCampaigns())
104
	<table id="campaignTable">
105
        <thead>
106
            <tr>
107
                <th>Campaign Name</th>
108
				<th>Action</th>
109
            </tr>
110
        </thead>
111
        <tbody>
112
    #foreach ( $campaign in $campaigns )
113
		<tr>
114
			<td>$campaign</td>
115
			<td><a href="/user-image!editNewsletter?newsletterName=$campaign">View/Edit</a></td>
116
		</tr>
117
	#end
118
	</tbody>
119
	</table>
120
	</div>
121
</div>
6848 kshitij.so 122
 
8578 kshitij.so 123
</body>
124
</html>