Subversion Repositories SmartDukaan

Rev

Rev 6848 | Rev 8590 | 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>
6848 kshitij.so 45
    <div style="color:blue;">
46
    #sactionmessage()
47
    </div>
48
    <div style="color:red;">
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>
69
					#foreach ($uri in $uris)
70
						$uri.getUri()&nbsp;
71
					#end
72
				</td>
73
				<td>
74
					#if ($banner.isHasMap())
75
						<img style="vertical-align: middle; width: 18px;" src="/images/active.ico">
6848 kshitij.so 76
					#else
8578 kshitij.so 77
						<img style="vertical-align: middle; width: 18px;" src="/images/inactive.ico">
6848 kshitij.so 78
					#end
79
				</td>
8578 kshitij.so 80
				<td>
81
					#if ($banner.isIsActive())
82
						<img style="vertical-align: middle; width: 18px;" src="/images/active.ico">
83
					#else
84
						<img style="vertical-align: middle; width: 18px;" src="/images/inactive.ico">
85
					#end
86
				</td>
87
				<td><a href="/user-image/$banner.getBannerName()/edit">View/Edit</a></td>
88
				<td>
89
 
90
					<a href="/user-image/$banner.getBannerName()?_method=delete"  id="$banner.getBannerName()" class="delete">Delete</a>
91
				</td>
6848 kshitij.so 92
            </tr>
93
    #end
94
        </tbody>
95
    </table>
8578 kshitij.so 96
	</div>
97
	<div class="right" style="width: 50%; float: right;">
98
	#set($campaigns=$action.getAllCampaigns())
99
	<table id="campaignTable">
100
        <thead>
101
            <tr>
102
                <th>Campaign Name</th>
103
				<th>Action</th>
104
            </tr>
105
        </thead>
106
        <tbody>
107
    #foreach ( $campaign in $campaigns )
108
		<tr>
109
			<td>$campaign</td>
110
			<td><a href="/user-image!editNewsletter?newsletterName=$campaign">View/Edit</a></td>
111
		</tr>
112
	#end
113
	</tbody>
114
	</table>
115
	</div>
116
</div>
6848 kshitij.so 117
 
8578 kshitij.so 118
</body>
119
</html>