summaryrefslogtreecommitdiff
path: root/skins/stone/mledit.tmpl
blob: 8d744bda34238bbebb583b2020d289c642171dc8 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!--media edit-->
<body class="frame">
<div id="body">


<h1><?% IF data.id %?><?% gettext("Edit media") %?><?% ELSE %?><?% gettext("Create new media") %?><?% END %?></h1>

<form method="post" action="?cmd=mlsave" name="library">
<input type="hidden" name="data" value="<?% IF data.id %?><?% data.id %?><?% ELSE %?><?% param.id %?><?% END %?>" />
<input type="hidden" name="__range" value="<?% param.range %?>" />
    <table class="largetable" summary="">
        <tr class="two">
          <td class="largehead">
            <font class="title">
            <?% title %?><?% IF subtitle %?> - <?% subtitle %?><?% END %?>
            </font>
          </td>
        </tr>
        <tr class="two">    
        <td class="largetext">
          <table width="100%">
    <tr>
        <td>
            <?% gettext('Title') %?>:
        </td>
        <td colspan="3">
            <input type="text" name="__title" id="title" value="<?% data.title || param.title %?>" style="width:50%;"  maxlength="255" />
            <!--
            &nbsp;<input type="submit" name="__search" value="<?% gettext('Search at') %?>"  onfocus="document.library.action='?cmd=mlresearch'" onblur="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
            <input type="radio" name="__source" value="dvdpalace" checked="checked" />&nbsp;
            <a href="http://www.dvd-palace.de" target="_blank">DVD-Palace (DE)</a>
            -->
        </td>
    </tr>
    <tr class="two">
        <td>
            <?% gettext('Subtitle') %?>:
        </td>
        <td>
            <input type="text" name="__subtitle" id="subtitle" value="<?% data.subtitle || param.subtitle %?>" style="width:99%;"  maxlength="255" />
        </td>
        <td>
            <?% gettext('Director') %?>:
        </td>
        <td>
            <input type="text" name="__director" id="director" value="<?% data.director || param.director %?>" style="width:99%;"  maxlength="255" />
        </td>
    </tr>
    <tr>
        <td>
            <?% gettext('Cover URL') %?>:
        </td>
        <td>
            <input type="text" name="__imgurl" id="imgurl" value="<?% data.imgurl || param.imgurl %?>" style="width:99%;"  maxlength="255" />
        </td>
        <td>
            <?% gettext('DiskID') %?>:
        </td>
        <td>
            <input type="text" name="__diskid" id="diskid" value="<?% data.diskid || param.diskid %?>" style="width:30%" maxlength="255" />
            <input type="hidden" name="__id" id="id" value="<?% data.id || param.id %?>" style="width:30%" maxlength="255" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?% gettext('Mediatype') %?>
            <select name="__mediatype">
                <option label="" value="0" <?% IF (data.mediatype || param.mediatype) && (data.mediatype == 0 || param.mediatype == 0) %?>selected="selected"<?% END %?>></option>
                <?% mediatypes = param.mediatypes %?>
                <?% FOREACH type IN mediatypes %?>
                <option label="<?% type.1 %?>" value="<?% type.0 %?>" <?% IF data.mediatype == type.0 || param.mediatype == type.0 %?>selected="selected"<?% END %?>><?% type.1 %?></option>
                <?% END %?>
            </select>
        </td>
    </tr>
    <tr class="two">
        <td>
            <?% gettext('Country') %?>:
        </td>
        <td>
            <input type="text" name="__country" id="country" value="<?% data.country || param.country %?>" style="width:99%;"  maxlength="255" />
        </td>
        <td>
            <?% gettext('Language') %?>:
        </td>
        <td>
            <input type="text" style="width:30%" maxlength="255" name="__language" id="language" value="<?% data.language || param.language %?>" />
        </td>
    </tr>
    <tr>
        <td>
            <?% gettext('TV-Episode') %?>:
        </td>
        <td>
            <input type="checkbox" name="__istv" id="istv" value="<?% data.istv || param.istv %?>" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?% gettext('Seen') %?>:
            <input type="checkbox" name="__seen" id="seen" value="<?% data.seen || param.seen %?>" />
        </td>
        <td>
            <?% gettext('Runtime') %?>:
        </td>
        <td>
            <input type="text" name="__runtime" id="runtime" value="<?% data.runtime || param.runtime %?>" style="width:30%" maxlength="5" />min
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?% gettext('Year') %?>:
            <input type="text" name="__year" id="year" value="<?% data.year || param.year %?>" style="width:30%" maxlength="4" />
        </td>
    </tr>
    <tr class="two">
        <td>
            <?% gettext('Filename') %?>:
        </td>
        <td>
            <input type="text" name="__filename" id="filename" value="<?% data.filename || param.filename %?>" style="width:99%;"  maxlength="255" />
        </td>
        <td>
            <?% gettext('Size') %?>:
        </td>
        <td>
            <input type="text" name="__video_width" id="video_width" value="<?% data.video_width || param.video_width %?>" style="width:30%" maxlength="4" /> x
            <input type="text" name="__video_height" id="video_height" value="<?% data.video_height || param.video_height %?>" style="width:30%" maxlength="4" />
        </td>
    </tr>
    <tr>
        <td>
            <?% gettext('Filesize') %?>:
        </td>
        <td>
            <input type="text" name="__filesize" id="filesize" value="<?% data.filesize || param.filesize %?>" style="width:30%" maxlength="15" /> bytes
        </td>
        <td>
            <?% gettext('Filedate') %?>:
        </td>
        <td>
            <input type="text" name="__filedate" id="filedate" value="<?% data.filedate || param.filedate %?>" style="width:30%" maxlength="20" />
        </td>
    </tr>
    <tr class="two">
        <td>
            <?% gettext('Audio Codec') %?>:
        </td>
        <td>
            <input type="text" name="__audio_codec" id="audio_codec" value="<?% data.audio_codec || param.audio_codec %?>" style="width:30%"  />
        </td>
        <td>
            <?% gettext('Video Codec') %?>:
        </td>
        <td>
            <input type="text" name="__video_codec" id="video_codec" value="<?% data.video_codec || param.video_codec %?>" style="width:30%"  />
        </td>
    </tr>
    <tr>
      <td>
        <?% gettext('Plot') %?>:<br />
      </td>
      <td colspan="3">
        <textarea style="width:99%;" rows="4" name="__plot" id="plot" wrap="virtual"><?% data.plot || param.plot %?></textarea>
      </td>
    </tr>
    <tr class="two">
      <td>
           <?% gettext('Comment') %?>:<br />
      </td>
      <td colspan="3">
           <textarea style="width:99%;" rows="4" name="__comment" id="comment" wrap="virtual"><?% data.comment || param.comment %?></textarea>
      </td>
    </tr>
    <tr>
        <td colspan="2"><?% gettext('Genre') %?>:
            <br/>
            <table class="genreselect" width="100%">
                <?% genres = param.allgenres %?>
                <?% WHILE genres.size %?>
                <tr>
                <?% FOREACH [ 1..5 ] %?>
                <?% set = genres.shift %?>
                    <td nowrap="nowrap">
                    <?% IF set.first %?>
                        <input type="checkbox" name="__genres" id="<?% set.0 %?>" value="<?% set.0 %?>" <?% IF  param.genres.grep("^$set.0\$").size > 0 %?>checked="checked"<?% END %?>/>
                        <label for="<?% set.0 %?>"><?% set.1 %?></label>
                    <?% END %?>
                    </td>
                <?% END %?>
                </tr>
                <?% END %?>
                </tr>
            </table>
        </td>
      <td colspan="2">
            <?% gettext('Actors') %?>:<br />
            <textarea style="width:99%;" rows="6" name="__actors" id="actors" wrap="off"><?% data.actors || param.actors %?></textarea>
        </td>
    </tr>
    <tr>
          <td colspan="4" align="right">
            <input type="reset" value="<?% gettext("Reset") %?>" />&nbsp;
            <input type="submit" name="__save" value="<?% gettext('Apply') %?>"  onblur="document.library.action='?cmd=mlresearch'" onfocus="document.library.action='?cmd=mlsave'" />&nbsp;&nbsp;
        </td>
    </tr>
</table>
    </td>
</tr>
<tr class="two"><td class="largebottom"></td></tr>
</table>
</form>

</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Media list",20) %?></td></tr>
    <tr>
    <td class="sidetext">
        <a href="javascript:back()"><img src="images/back.<?% global.imagetyp %?>" alt="" title="<?% gettext("Back",20) %?>" /></a>&nbsp;
        <a href="javascript:back()"><?% gettext("Back",20) %?></a><br />
    </td>
    </tr>
    <tr><td class="sidebottom"></td></tr>
  </table>
  <p id="sidefooter">&nbsp;</p>
</div>
<?% INCLUDE header.inc %?>