Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 naveen 1
<!DOCTYPE html PUBLIC 
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
 
5
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<head>
7
<title>$action.getEntityID() - All Media</title>
8
<link type="text/css" href="jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
9
<style type="text/css">
10
table {
11
    border-width: 1px 1px 1px 1px;
12
    border-spacing: 2px;
13
    border-style: outset outset outset outset;
14
    border-color: gray gray gray gray;
15
    border-collapse: separate;
16
    background-color: white;
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
}
26
td {
27
    border-width: 1px 1px 1px 1px;
28
    padding: 1px 1px 1px 1px;
29
    border-style: inset inset inset inset;
30
    border-color: gray gray gray gray;
31
    background-color: white;
32
    -moz-border-radius: 0px 0px 0px 0px;
33
}
34
</style>
35
</head>
36
<body>
37
<div>
38
    <h1>$action.getEntityID() - All Media</h1>
39
    <form name="f" action="/content/media" method="post" enctype="multipart/form-data">
40
        <label>Label:</label>
41
        <input type="text" name="label" value=""/><p/>
42
        <label>Image file:</label>
43
        <input type="file" name="pic" value=""/><p/><em>OR</em><p/>
44
        <label>Youtube URL:</label>
45
        <input type="text" name="youtubeURL" value=""/><p/>
46
        <input type="hidden" name="entityID" value="$action.getEntityID()">
47
        <input type="submit" name="imageupload" value="Save">
48
    </form>
49
    <p></p>
50
    <table>
51
        <thead>
52
            <tr style="border: 1px">
53
                <th>#</th>
54
                <th>Label</th>
55
                <th>Type</th>
56
                <th>Content Type</th>
57
                <th>File Name</th>
58
            </tr>
59
        </thead>
60
        <tbody>
61
    #set ( $allmedia = $action.getMedia() )
62
    #foreach ( $media in $allmedia )
63
            <tr style="border: 1px">
64
                <td>$velocityCount</td>
65
                <td>$media.getLabel()</td>
66
                <td>$media.getType()</td>
67
                #if($media.getType() == "image")
68
                <td>$media.getContentType()</td>
69
                <td><a href="/db/media/$action.getEntityID()/$media.getFileName()" target="_blank">$media.getFileName()</a></td>
70
                #else
71
                <td>&nbsp;</td>
72
                <td><a href="$media.getLocation()" target="_blank">$media.getLocation()</a></td>
73
                #end
74
            </tr>
75
    #end
76
        </tbody>
77
    </table>
78
</div>
79
</body>
80
</html>