Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2768 mandeep.dh 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
<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; }
10
p { clear: both; }
11
.submit { margin-left: 12em; }
12
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
13
 
14
table {
15
    border-width: 1px 1px 1px 1px;
16
    border-spacing: 2px;
17
    border-style: outset outset outset outset;
18
    border-color: gray gray gray gray;
19
    border-collapse: separate;
20
    background-color: white;
21
}
22
th {
23
    border-width: 1px 1px 1px 1px;
24
    padding: 1px 1px 1px 1px;
25
    border-style: inset inset inset inset;
26
    border-color: gray gray gray gray;
27
    background-color: white;
28
    -moz-border-radius: 0px 0px 0px 0px;
29
}
30
td {
31
    border-width: 1px 1px 1px 1px;
32
    padding: 1px 1px 1px 1px;
33
    border-style: inset inset inset inset;
34
    border-color: gray gray gray gray;
35
    background-color: white;
36
    -moz-border-radius: 0px 0px 0px 0px;
37
}
38
</style>
2838 mandeep.dh 39
<title>List of Special Pages</title>
2768 mandeep.dh 40
</head>
41
<body>
42
<div>
43
    <span align="right"> Welcome $action.getUsername()   <a href="$request.contextPath/logout">logout</a></span>
44
</div>
45
<div>
2838 mandeep.dh 46
    <h1>Special Pages</h1>
2768 mandeep.dh 47
 
2838 mandeep.dh 48
    <a href="$request.contextPath/special-page/new">Create New</a>
2768 mandeep.dh 49
 
50
    <div style="color:green;">
51
    #sactionmessage()
52
    </div>
53
    <div style="color:red;">
54
    #sactionerror()
55
    </div>
56
 
2838 mandeep.dh 57
    #drawAllBrands($action.getSpecialPages())
2768 mandeep.dh 58
</div>
59
 
60
</body>
61
</html>
62
 
2838 mandeep.dh 63
#macro (drawAllBrands $specialPages)
2768 mandeep.dh 64
    <table id="myTable">
65
        <thead>
66
            <tr style="border: 1px">
67
                <th>#</th>
2838 mandeep.dh 68
                <th>SpecialPage Id</th>
2768 mandeep.dh 69
                <th>Name</th>
70
                <th colspan="2">Actions</th>
71
            </tr>
72
        </thead>
73
        <tbody>
2838 mandeep.dh 74
    #foreach ( $specialPageId in $specialPages.keySet() )
75
            #set($specialPage = $specialPages.get($specialPageId))
2768 mandeep.dh 76
            <tr style="border: 1px">
77
                <td>$velocityCount</td>
2838 mandeep.dh 78
                <td><a href="/content/special-page/$specialPageId/edit">$specialPageId</a></td>
79
                <td>$specialPage.getDisplayName()</td>
80
                <td><a href="/content/special-page/$specialPageId" target="_blank">View</a></td>
81
                <td><a href=""  id="$specialPageId" class="delete">Delete</a></td>
2768 mandeep.dh 82
            </tr>
83
    #end
84
        </tbody>
85
    </table>
86
 
87
#end