Subversion Repositories SmartDukaan

Rev

Rev 6848 | Rev 8590 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6848 Rev 8578
Line 1... Line 1...
1
<!DOCTYPE html PUBLIC 
1
<!DOCTYPE html PUBLIC 
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<head>
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; }
6
<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
10
p { clear: both; }
7
<style>
11
.submit { margin-left: 12em; }
-
 
12
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
-
 
13
ul { padding-left: 13px;}
-
 
14
 
-
 
15
table {
8
table {
16
    border-width: 1px 1px 1px 1px;
9
    border-width: 1px 1px 1px 1px;
17
    border-spacing: 2px;
10
    border-spacing: 2px;
18
    border-style: outset outset outset outset;
11
    border-style: outset outset outset outset;
19
    border-color: gray gray gray gray;
12
    border-color: gray gray gray gray;
20
    border-collapse: separate;
13
    border-collapse: separate;
21
    background-color: white;
14
    background-color: white;
22
	margin-top: 10px;
15
	margin-top: 10px;
23
	width: 22%;
16
	width: 90%;
24
}
17
}
25
th {
18
th {
26
    border-width: 1px 1px 1px 1px;
19
    border-width: 1px 1px 1px 1px;
27
    padding: 1px 1px 1px 1px;
20
    padding: 1px 1px 1px 1px;
28
    border-style: inset inset inset inset;
21
    border-style: inset inset inset inset;
Line 46... Line 39...
46
<body>
39
<body>
47
<div>
40
<div>
48
    <h1>Banner List</h1>
41
    <h1>Banner List</h1>
49
 
42
 
50
    <a href="$request.contextPath/user-image/new">Create New Banner</a>
43
    <a href="$request.contextPath/user-image/new">Create New Banner</a>
-
 
44
	<a href="$request.contextPath/user-image/newCampaign" style="margin-left: 30px;">Create New Campaign</a>
51
    <div style="color:blue;">
45
    <div style="color:blue;">
52
    #sactionmessage()
46
    #sactionmessage()
53
    </div>
47
    </div>
54
    <div style="color:red;">
48
    <div style="color:red;">
55
    #sactionerror()
49
    #sactionerror()
56
    </div>
50
    </div>
57
    
-
 
58
    #drawAllBanners($action.getAllBanners())
51
    <div class="left" style="width: 50%; float: left;">
59
</div>
-
 
60
 
-
 
61
</body>
-
 
62
</html>
-
 
63
 
-
 
64
#macro (drawAllBanners $banners)
52
		#set ($banners = $action.getAllBanners())
65
    <table id="myTable">
53
		    <table id="bannerTable">
66
        <thead>
54
        <thead>
67
            <tr style="border: 1px">
-
 
68
                <th>#</th>
55
            <tr>
69
                <th>Banner Name</th>
56
                <th>Banner Name</th>
-
 
57
				<th>URI Mapped</th>
-
 
58
				<th>Image Map</th>
-
 
59
                <th>Status</th>
70
                <th colspan="2">Action</th>
60
				<th colspan="2">Action</th>
71
            </tr>
61
            </tr>
72
        </thead>
62
        </thead>
73
        <tbody>
63
        <tbody>
74
    #foreach ( $bannerName in $banners )
64
    #foreach ( $banner in $banners )
75
            <tr style="border: 1px">
65
		#set($uris = $action.getUriMapping($banner.getBannerName()))
76
                <td>$velocityCount</td>
66
            <tr>
77
                <td><a href="/user-image/$bannerName/edit">$bannerName</a></td>
67
                <td>$banner.getBannerName()</td>
78
                <td>
68
				<td>
79
					#set($bannerstatus = $action.getUpdates("$bannerName"))
69
					#foreach ($uri in $uris)
-
 
70
						$uri.getUri()&nbsp;
-
 
71
					#end
-
 
72
				</td>
-
 
73
				<td>
80
					#if ($bannerstatus.isIsActive())
74
					#if ($banner.isHasMap())
81
						<img style="vertical-align: middle; width: 11px; height: 11px;" src="/images/greendot.gif">
75
						<img style="vertical-align: middle; width: 18px;" src="/images/active.ico">
82
					#else
76
					#else
83
						<img style="vertical-align: middle; width: 11px; height: 11px;" src="/images/reddot.gif">
77
						<img style="vertical-align: middle; width: 18px;" src="/images/inactive.ico">
84
					#end
78
					#end
-
 
79
				</td>
-
 
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
					
85
					<a href="/user-image/${bannerName}?_method=delete"  id="$bannerName" class="delete">Delete</a>
90
					<a href="/user-image/$banner.getBannerName()?_method=delete"  id="$banner.getBannerName()" class="delete">Delete</a>
86
				</td>
91
				</td>
87
            </tr>
92
            </tr>
88
    #end
93
    #end
89
        </tbody>
94
        </tbody>
90
    </table>
95
    </table>
-
 
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>
91
 
117
 
92
#end
118
</body>
-
 
119
</html>