Subversion Repositories SmartDukaan

Rev

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