Subversion-Projekte lars-tiefland.medien

Revision

Revision 85 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 85 Revision 88
Zeile 3... Zeile 3...
3
	<head>
3
	<head>
4
		<title>{$title|default:"No title"}</title>
4
		<title>{$title|default:"No title"}</title>
5
		<link href="../images/favicon.ico" rel="shortcut icon" type="image/x-icon">
5
		<link href="../images/favicon.ico" rel="shortcut icon" type="image/x-icon">
6
		<link rel="stylesheet" href="../styles/Standard.css" type="text/css">
6
		<link rel="stylesheet" href="../styles/Standard.css" type="text/css">
7
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
		{literal}
-
 
9
		<script language="Javascript" type="text/javascript">
-
 
10
			function check_album_form()
-
 
11
			{
-
 
12
				var a_name=document.album.a_name.value;
-
 
13
				var a_pic=document.album.a_pic.value;
-
 
14
				var del=document.album.del.checked;
-
 
15
				var a_genre=document.album.a_genre.value;
-
 
16
				var a_artist=document.album.a_artist.value;
-
 
17
				if (a_name == "")
-
 
18
				{
-
 
19
					window.alert({/literal}"{$L_ALBUM_NAME_EMPTY}"{literal});
-
 
20
					document.album.a_name.focus();
-
 
21
					return false;
-
 
22
				}
-
 
23
				if(del && a_pic.length)
-
 
24
				{
-
 
25
					window.alert({/literal}"{$L_EDIT_REMOVE_PIC_ONLY}"{literal});
-
 
26
					return false;
-
 
27
				}
-
 
28
				if (a_genre==-1)
-
 
29
				{
-
 
30
					window.alert({/literal}"{$L_GENRE_EMPTY}"{literal});
-
 
31
					return false;
-
 
32
				}
-
 
33
				if (a_artist==-1)
-
 
34
				{
-
 
35
					window.alert({/literal}"{$L_ARTIST_EMPTY}"{literal});
-
 
36
					return false;
-
 
37
				}
-
 
38
			}
-
 
39
			function check_artist_form()
-
 
40
			{
-
 
41
				var a_name=document.artist.a_name.value;
-
 
42
				var a_pic=document.album.a_pic.value;
-
 
43
				var del=document.album.del.checked;
-
 
44
				if (a_name == "")
-
 
45
				{
-
 
46
					window.alert("{$L_ARTIST_NAME_EMPTY}");
-
 
47
					document.album.a_name.focus();
-
 
48
					return false;
-
 
49
				}
-
 
50
				if(del && a_pic.length)
-
 
51
				{
-
 
52
					window.alert({/literal}"{$L_EDIT_REMOVE_PIC_ONLY}"{literal});
-
 
53
					return false;
-
 
54
				}
-
 
55
			}
-
 
56
			function check_cd_form()
-
 
57
			{
-
 
58
				var cd_name=document.cd.cd_name.value;
-
 
59
				var cd_tracks=document.cd.cd_t_anz.value;
-
 
60
				var cd_album=document.cd.cd_album.value;
-
 
61
				if (cd_name == "")
-
 
62
				{
-
 
63
					window.alert({/literal}"{$L_CD_NAME_EMPTY}"{literal});
-
 
64
					document.cd.cd_name.focus();
-
 
65
					return false;
-
 
66
				}
-
 
67
				if (cd_tracks=="" || cd_tracks<1)
-
 
68
				{
-
 
69
					window.alert("{$L_TRACK_COUNT_INVALID}");
-
 
70
					document.cd.cd_t_anz.focus();
-
 
71
					return false;
-
 
72
				}
-
 
73
				if (cd_album==-1)
-
 
74
				{
-
 
75
					window.alert("{$L_ALBUM_EMPTY}");
-
 
76
					return false;
-
 
77
				}
-
 
78
			}
-
 
79
			function check_cd_track_form()
-
 
80
			{
-
 
81
				var cd_id=document.cd_tracks.cd_id.value;
-
 
82
				var t_id=document.cd_tracks.t_id.value;
-
 
83
				var track_no=document.cd_tracks.track_no.value;
-
 
84
				if (cd_id==-1)
-
 
85
				{
-
 
86
					window.alert({/literal}"{$L_CD_EMPTY}"{literal});
-
 
87
					return false;
-
 
88
				}
-
 
89
				if (t_id==-1)
-
 
90
				{
-
 
91
					window.alert({/literal}"{$L_TRACK_EMPTY}"{literal});
-
 
92
					return false;
-
 
93
				}
-
 
94
				if (track_no=="" || track_no <=0)
-
 
95
				{
-
 
96
					window.alert({/literal}"{$L_TRACK_NO_INVALID}"{literal});
-
 
97
					document.cd_tracks.track_no.focus();
-
 
98
					return false;
-
 
99
				}
-
 
100
			}
-
 
101
			function check_genre_form()
-
 
102
			{
-
 
103
				var g_name=document.genre.g_name.value;
-
 
104
				if (g_name == "")
-
 
105
				{
-
 
106
					window.alert({/literal}"{$L_GENRE_NAME_EMPTY}"{literal});
-
 
107
					document.genre.g_name.focus();
-
 
108
					return false;
-
 
109
				}
-
 
110
			}
-
 
111
			function check_login_form()
-
 
112
			{
-
 
113
				var u_name=login.username.value;
-
 
114
				var u_pass=login.password.value;
-
 
115
				var u_type={/literal}{$u_type}{literal};
-
 
116
				if (u_name=="")
-
 
117
				{
-
 
118
					window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
-
 
119
					document.login.username.focus();
-
 
120
					return false;
-
 
121
				}
-
 
122
				if (u_pass=="")
-
 
123
				{
-
 
124
					window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
-
 
125
					document.login.password.focus();
-
 
126
					return false;
-
 
127
				}
-
 
128
			}
-
 
129
			function check_register_form()
-
 
130
			{
-
 
131
				var u_name=document.register.username.value;
-
 
132
				var email=document.register.email.value;
-
 
133
				var password=document.register.password.value;
-
 
134
				var password2=document.register.password2.value;
-
 
135
				var u_lang=document.register.u_lang.value;
-
 
136
				if (u_name=="")
-
 
137
				{
-
 
138
					window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
-
 
139
					document.register.username.focus();
-
 
140
					return false;
-
 
141
				}
-
 
142
				if (email=="")
-
 
143
				{
-
 
144
					window.alert({/literal}"{$L_EMAIL_EMPTY}"{literal});
-
 
145
					document.register.email.focus();
-
 
146
					return false;
-
 
147
				}
-
 
148
				if (password=="")
-
 
149
				{
-
 
150
					window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
-
 
151
					document.register.password.focus();
-
 
152
					return false;
-
 
153
				}
-
 
154
				if (password.length<5)
-
 
155
				{
-
 
156
					window.alert({/literal}"{$L_PASSWORD_TOO_SHORT}"{literal});
-
 
157
					document.register.password2.focus();
-
 
158
					return false;
-
 
159
				}
-
 
160
				if (password!=password2)
-
 
161
				{
-
 
162
					window.alert({/literal}"{$L_PASSWORD_DIFF}"{literal});
-
 
163
					document.register.password.focus();
-
 
164
					return false;
-
 
165
				}
-
 
166
				if (u_lang=="no")
-
 
167
				{
-
 
168
					window.alert({/literal}"{$L_LANGUAGE_EMPTY}"{literal});
-
 
169
					document.register.u_lang.focus();
-
 
170
					return false;
-
 
171
				}
-
 
172
			}
-
 
173
			function check_track_form()
-
 
174
			{
-
 
175
				var t_name=document.track.t_name.value;
-
 
176
				var t_min=document.track.min.value;
-
 
177
				var t_sec=document.track.sec.value;
-
 
178
				var t_artist=document.track.t_artist.value;
-
 
179
				var t_genre=document.track.t_genre.value;
-
 
180
				if(t_genre==-1)
-
 
181
				{
-
 
182
					window.alert({/literal}"{$L_GENRE_EMPTY}"{literal});
-
 
183
					document.track.t_genre.focus();
-
 
184
					return false;
-
 
185
				}
-
 
186
				if (t_artist==-1)
-
 
187
				{
-
 
188
					window.alert({/literal}"{$L_ARTIST_EMPTY}"{literal});
-
 
189
					return false;
-
 
190
				}
-
 
191
				if (t_name=="")
-
 
192
				{
-
 
193
					window.alert({/literal}"{$L_TRACK_NAME_EMPTY}"{literal});
-
 
194
					document.track.t_name.focus();
-
 
195
					return false;
-
 
196
				}
-
 
197
				if(t_min==-1||t_sec==-1)
-
 
198
				{
-
 
199
					window.alert({/literal}"{$L_DURATION_EMPTY}"{literal});
-
 
200
					return false;
-
 
201
				}
-
 
202
			}
-
 
203
			function check_User_Form()
-
 
204
			{
-
 
205
				var u_name=document.user.u_name.value;
-
 
206
				var mode=document.user.mode.value;
-
 
207
				var u_pw=document.user.u_pw.value;
-
 
208
				var u_pw_conf=document.user.u_pw_conf.value;
-
 
209
				if (u_name.length<1)
-
 
210
				{
-
 
211
					window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
-
 
212
					document.user.u_name.focus();
-
 
213
					return false;
-
 
214
				}
-
 
215
				if (u_pw!="" && u_pw.length<5)
-
 
216
				{
-
 
217
					window.alert({/literal}"{$L_PASSWORD_TOO_SHORT}"{literal});
-
 
218
					document.user.u_pw.focus();
-
 
219
					return false;
-
 
220
				}
-
 
221
				if(u_pw_conf != u_pw)
-
 
222
				{
-
 
223
					window.alert({/literal}"{$L_PASSWORD_DIFF}"{literal});
-
 
224
					document.user.u_pw_conf.focus();
-
 
225
					return false;
-
 
226
				}
-
 
227
				if (u_lang=="no")
-
 
228
				{
-
 
229
					window.alert({/literal}"{$L_LANGUAGE_EMPTY}"{literal});
-
 
230
					document.register.u_lang.focus();
-
 
231
					return false;
-
 
232
				}
-
 
233
			}
-
 
234
		</script>
-
 
235
		{/literal}
-
 
236
	</head>
8
	</head>
237
	{if isset($focus)}
9
	{if isset($focus)}
238
	<body onload="{$focus}.focus();">
10
	<body onload="{$focus}.focus();">
239
	{else}
11
	{else}
240
	<body>
12
	<body>
Zeile 256... Zeile 28...
256
	<tr>
28
	<tr>
257
		<th colspan="5">{$L_ACTIONS}</th>
29
		<th colspan="5">{$L_ACTIONS}</th>
258
	</tr>
30
	</tr>
259
	<tr align="center">
31
	<tr align="center">
260
		<td>
32
		<td>
261
			<form action="index.php" method="post">
33
			<form action="audio/index.php" method="post">
262
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_ALBUMS}">
34
				<input type="submit" class="liteoption" name="change" value="{$L_CD_ADMIN}">
263
			</form>
35
			</form>
264
		</td>
36
		</td>
265
		<td>
37
		<td>
266
			<form action="liste_cds.php" method="post">
-
 
267
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_CDS}">
-
 
268
			</form>
-
 
269
		</td>
-
 
270
		<td>
-
 
271
			<form action="liste_artists.php" method="post">
-
 
272
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_ARTISTS}">
-
 
273
			</form>
-
 
274
		</td>
-
 
275
		<td>
-
 
276
			<form action="liste_genres.php" method="post">
38
			<form action="video/index.php" method="post">
277
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GENRES}">
39
				<input type="submit" class="liteoption" name="change" value="{$L_DVD_ADMIN}">
278
			</form>
-
 
279
		</td>
-
 
280
		<td>
-
 
281
			<form action="liste_tracks.php" method="post">
-
 
282
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TRACKS}">
-
 
283
			</form>
40
			</form>
284
		</td>
41
		</td>
-
 
42
		<td>&nbsp;</td>
-
 
43
		<td>&nbsp;</td>
-
 
44
		<td>&nbsp;</td>
285
	</tr>
45
	</tr>
286
	<tr align="center">
46
	<tr align="center">
287
		<td>
47
		<td>
288
			{if $u_name!=""}
48
			{if $u_name!=""}
289
			<form action="../logout.php" method="post">
49
			<form action="logout.php" method="post">
290
				<input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
50
				<input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
291
			</form>
51
			</form>
292
			{else}
52
			{else}
293
			<form action="../login.php" method="post">
53
			<form action="login.php" method="post">
294
				<input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
54
				<input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
295
			</form>
55
			</form>
296
			{/if}
56
			{/if}
297
		</td>
57
		</td>
298
		<td>
58
		<td>
-
 
59
			&nbsp;
299
			{if $u_name!=""}
60
			{if $u_name!=""}
300
			<form action="../edit_users.php" method="post">
61
			<form action="edit_users.php" method="post">
301
				<input type="hidden" name="mode" value="edit">
62
				<input type="hidden" name="mode" value="edit">
302
				<input type="hidden" name="id" value="{$u_id}">
63
				<input type="hidden" name="id" value="{$u_id}">
303
				<input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}">
64
				<input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}">
304
			</form>
65
			</form>
305
			{/if}
66
			{/if}
306
		</td>
67
		</td>
307
		<td>
68
		<td>
-
 
69
			&nbsp;
308
			{if $u_name==""}
70
			{if $u_name==""}
309
			<form action="../register.php" method="post">
71
			<form action="register.php" method="post">
310
				<input type="submit" class="liteoption" name="register" value="{$L_REGISTER}" {$disabled2}>
72
				<input type="submit" class="liteoption" name="register" value="{$L_REGISTER}" {$disabled2}>
311
			</form>
73
			</form>
312
			{/if}
74
			{/if}
313
		</td>
75
		</td>
314
		<td>
76
		<td>
-
 
77
			&nbsp;
315
			{if $u_name==""}
78
			{if $u_name==""}
316
			<form action="../lost.php" method="post">
79
			<form action="lost.php" method="post">
317
				<input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
80
				<input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
318
			</form>
81
			</form>
319
			{/if}
82
			{/if}
320
			{if $u_type==1}
83
			{if $u_type==1}
321
			<form action="../viewlog.php" method="post">
84
			<form action="viewlog.php" method="post">
322
				<input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
85
				<input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
323
			</form>
86
			</form>
324
			{/if}
87
			{/if}
325
		</td>
88
		</td>
326
		<td>
-
 
327
		</td>
89
		<td>&nbsp;</td>
328
	</tr>
90
	</tr>
329
	<tr align="center"> 
91
	<tr align="center"> 
330
		<td>
92
		<td>
331
			{if $u_type==1}
93
			{if $u_type==1}
332
			<form action="../edit_users.php" method="post">
94
			<form action="edit_users.php" method="post">
333
				<input type="submit" value="{$L_EDIT_USERS}" class="liteoption">
95
				<input type="submit" value="{$L_EDIT_USERS}" class="liteoption">
334
			</form>
96
			</form>
335
			{/if}
97
			{/if}
336
		</td>
98
		</td>
337
		<td colspan="4"></td>
99
		<td colspan="4">&nbsp;</td>
338
	</tr>
-
 
339
</table>
-
 
340
{if $u_type==1}
-
 
341
<br>
-
 
342
<table>
-
 
343
	<tr>
-
 
344
		<th colspan=6>{$L_ADMIN} {$L_TASKS}</th>
-
 
345
	</tr>
-
 
346
	<tr align="center">
-
 
347
		<td>
-
 
348
			<form action="edit_albums.php" method="post">
-
 
349
				<input type="submit" value="{$L_NEW_ALBUM}" class="liteoption">
-
 
350
				<input type="hidden" name="mode" value="new">
-
 
351
			</form>
-
 
352
		</td>
-
 
353
		<td>
-
 
354
			<form action="edit_artists.php" method="post">
-
 
355
				<input type="submit" value="{$L_NEW_ARTIST}" class="liteoption">
-
 
356
				<input type="hidden" name="mode" value="new">
-
 
357
			</form>
-
 
358
		</td>
-
 
359
		<td>
-
 
360
			<form action="edit_cds.php" method="post">
-
 
361
				<input type="submit" value="{$L_NEW_CD}" class="liteoption">
-
 
362
				<input type="hidden" name="mode" value="new">
-
 
363
			</form>
-
 
364
		</td>
-
 
365
		<td>
-
 
366
			<form action="edit_genres.php" method="post">
-
 
367
				<input type="submit" value="{$L_NEW_GENRE}" class="liteoption">
-
 
368
				<input type="hidden" name="mode" value="new">
-
 
369
			</form>
-
 
370
		</td>
-
 
371
		<td>
-
 
372
			<form action="edit_tracks.php" method="post">
-
 
373
				<input type="submit" value="{$L_NEW_TRACK}" class="liteoption">
-
 
374
				<input type="hidden" name="mode" value="new">
-
 
375
			</form>
-
 
376
		</td>
-
 
377
		<td>
-
 
378
			<form action="../edit_users.php" method="post">
-
 
379
				<input type="submit" value="{$L_NEW_USER}" class="liteoption">
-
 
380
				<input type="hidden" name="mode" value="new">
-
 
381
			</form>
-
 
382
		</td>
-
 
383
	</tr>
100
	</tr>
384
</table>
101
</table>
385
{/if}
-
 
386
<br>
102
<br>