| 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>File Name</th>
|
|
|
57 |
</tr>
|
|
|
58 |
</thead>
|
|
|
59 |
<tbody>
|
|
|
60 |
#set ( $allmedia = $action.getMedia() )
|
|
|
61 |
#foreach ( $media in $allmedia )
|
|
|
62 |
<tr style="border: 1px">
|
|
|
63 |
<td>$velocityCount</td>
|
|
|
64 |
<td>$media.getLabel()</td>
|
|
|
65 |
<td>$media.getType()</td>
|
|
|
66 |
#if($media.getType() == "image")
|
|
|
67 |
<td><a href="/db/media/$action.getEntityID()/$media.getFileName()" target="_blank">$media.getFileName()</a></td>
|
|
|
68 |
#else
|
|
|
69 |
<td><a href="$media.getLocation()" target="_blank">$media.getLocation()</a></td>
|
|
|
70 |
#end
|
|
|
71 |
</tr>
|
|
|
72 |
#end
|
|
|
73 |
</tbody>
|
|
|
74 |
</table>
|
|
|
75 |
</div>
|
|
|
76 |
</body>
|
|
|
77 |
</html>
|