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>
212 naveen 8
<script type="text/javascript" src="jquery/jquery-1.4.2.js"></script>
9
<script type="text/javascript" src="jquery/validation/jquery.validate.js"></script>
208 naveen 10
<style type="text/css">
212 naveen 11
 
12
* { font-family: Verdana; font-size: 96%; }
13
label { width: 10em; float: left; }
14
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
15
p { clear: both; }
16
.submit { margin-left: 12em; }
17
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
18
 
208 naveen 19
table {
20
    border-width: 1px 1px 1px 1px;
21
    border-spacing: 2px;
22
    border-style: outset outset outset outset;
23
    border-color: gray gray gray gray;
24
    border-collapse: separate;
25
    background-color: white;
26
}
27
th {
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
}
35
td {
36
    border-width: 1px 1px 1px 1px;
37
    padding: 1px 1px 1px 1px;
38
    border-style: inset inset inset inset;
39
    border-color: gray gray gray gray;
40
    background-color: white;
41
    -moz-border-radius: 0px 0px 0px 0px;
42
}
43
</style>
212 naveen 44
<script>
45
$(document).ready(function() {
46
    $("#f").validate();
47
});
48
 
49
</script>
208 naveen 50
</head>
51
<body>
52
<div>
53
    <h1>$action.getEntityID() - All Media</h1>
212 naveen 54
    <form id="f" name="f" action="/content/media" method="post" enctype="multipart/form-data">
55
        <label>* Label:</label>
56
        <input type="text" name="label" class="required" value=""/><p/>
208 naveen 57
        <label>Image file:</label>
58
        <input type="file" name="pic" value=""/><p/><em>OR</em><p/>
59
        <label>Youtube URL:</label>
212 naveen 60
        <input type="text" name="youtubeURL" class="url" value=""/><p/>
208 naveen 61
        <input type="hidden" name="entityID" value="$action.getEntityID()">
448 rajveer 62
		<input type="hidden" name="slideID" value="$action.getSlideID()">	
208 naveen 63
        <input type="submit" name="imageupload" value="Save">
64
    </form>
65
    <p></p>
66
    <table>
67
        <thead>
68
            <tr style="border: 1px">
69
                <th>#</th>
70
                <th>Label</th>
71
                <th>Type</th>
72
                <th>File Name</th>
242 naveen 73
                <th></th>
208 naveen 74
            </tr>
75
        </thead>
76
        <tbody>
77
    #set ( $allmedia = $action.getMedia() )
78
    #foreach ( $media in $allmedia )
79
            <tr style="border: 1px">
80
                <td>$velocityCount</td>
81
                <td>$media.getLabel()</td>
82
                <td>$media.getType()</td>
83
                #if($media.getType() == "image")
84
                <td><a href="/db/media/$action.getEntityID()/$media.getFileName()" target="_blank">$media.getFileName()</a></td>
85
                #else
86
                <td><a href="$media.getLocation()" target="_blank">$media.getLocation()</a></td>
87
                #end
448 rajveer 88
                <td><a href="/content/media/$media.getEncodedLabel()?_method=delete&entityID=$action.getEntityID()&slideID=$action.getSlideID()">Delete</a></td>
208 naveen 89
            </tr>
90
    #end
91
        </tbody>
92
    </table>
93
</div>
94
</body>
95
</html>