summaryrefslogtreecommitdiff
path: root/skins/stone/mllist.tmpl
blob: 9d9643a309e6c48ad12249d32bfea34d31f8ba25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!--media list-->
<body class="frame">
<div id="body">
<?% ######################################################################## %?>
<?% BLOCK RowButtons %?>
    <?% IF allow('mledit') %?>
            <a href="?cmd=mledit&amp;data=<?% id %?>">
                <img src="images/edit.<?% global.imagetyp %?>" alt="" title="<?% gettext("Edit media") %?>" />
            </a>
    <?% END %?>
    <?% IF allow('mldelete') %?>
            <a href="javascript:surecmd('<?% gettext("You will delete this media") %?>','<?% escape(title) %?>','mldelete','<?% id %?>',620,670)">
                <img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete media") %?>" />
            </a>
    <?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK item %?>
<?% IF value %?>
<a href="?cmd=mlsearch&amp;__search&amp;__selfields=<?% topic %?>&amp;__searchitem=<?% value %?>"><?% value %?></a>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK ItemAsArea %?>
      <div class="areabegin">
        <table class="fieldtable" summary="">
          <tr>
            <td class="fieldhead">
              <div class="fieldhead">
                <?% IF title.length > 0 %?>
                  <a href="?cmd=mldisplay&amp;data=<?% id %?>" class="fieldinline">
                    <?% chop(title,30) %?>
                  </a>
                <?% END %?>
              </div>
            </td>
          </tr>
          <tr>
            <td class="fieldtext">
              <div class="media">
                <a href="?cmd=mldisplay&amp;data=<?% id %?>">
                  <img class="media" src='<?% IF param.usecache == "y" %?>?cmd=mlcache&amp;__source=<?% END %?><?% imgurl %?>' />
                </a>
              </div>
            </td>
          </tr>
          <tr>
            <td class="fieldtext">
               <div class="fieldtitle">
                  <?% IF subtitle.length > 0 %?>
                      <?% subtitle %?>
                  <?% END %?>
              </div>
            </td>
          </tr>
          <?% IF global.hideDescription != 1 %?>
          <tr>
            <td class="fieldtext">
              <div class="recordingdescription">
                  <a href="?cmd=mldisplay&amp;data=<?% id %?>" class="fieldinline">
                      <?% chop(description,35,3) %?>
                  </a>
              </div>
            </td>
          </tr>
          <?% END %?>
          <tr>
            <td class="fieldtext">
              <table class="fieldinline" summary="">
                <tr>
                    <td class="push" style="vertical-align:middle; text-align:left;" >
                      <?% IF year > 0 %?>
                          <font class="description"><?% PROCESS item topic="year" value=year %?></font>
                      <?% END %?>
                    </td>
                    <td class="push">
                        <?% PROCESS RowButtons %?>
                    </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="fieldbottom"></td>
          </tr>
        </table>
      </div>
<?% END %?>

<?% ######################################################################## %?>
<h1><?% gettext("Media library") %?></h1>
<form name="mlist" action="">
     <?% FOREACH zeile IN data %?>
        <?% IF verbose;"<!-- Item: ";FOREACH x IN zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
        <?% id=zeile.0;imgurl=zeile.1;title=zeile.2;subtitle=zeile.3;year=zeile.4;director=zeile.5;description=zeile.6; %?>
        <?% PROCESS ItemAsArea %?>
    <?% END %?>
<div class="areaclose"></div>
</form>
</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Media library",20) %?></td></tr>
    <tr>
    <td class="sidetext">
    <?% IF allow('mledit') %?>
    <a title="<?% gettext("New") %?>" href="?cmd=mledit&amp;__range=<?% param.range %?>"><img src="images/new.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
    <a title="<?% gettext("New") %?>" href="?cmd=mledit&amp;__range=<?% param.range %?>"><?% gettext("New",18) %?></a><br />
    <?% END %?>
    </td>
    </tr>
    <tr><td class="sidebottom"></td></tr>
  </table>

  <table summary="">
    <tr><td class="sidehead"><?% gettext("Search",20) %?></td></tr>
    <tr>
    <td class="sidetext">
      <form name="mediarange" action="">
      <select name='range' onchange="di('?cmd=mllist&amp;__range=',this.form.range.options[this.form.range.options.selectedIndex].value)">
      <?% FOREACH r IN param.ranges %?>
          <option value="<?% url( r.0 ) %?>"<?% ' selected="selected"' IF param.range == r.0 %?>><?% r.1 %?></option>
      <?% END %?>
      </select>
      </form>
    </td>
    </tr>
    <tr>
    <td class="sidebottom"></td>
    </tr>
  </table>
  <p id="sidefooter">&nbsp;</p>
</div>
<?% INCLUDE header.inc %?>