Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 74 | Revision 77 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html>
3
	<head>
62 lars 4
		<title>{$title} - FIFA {$L_TYPE} {$year} in {$L_HOST}</title>
12 lars 5
		<link href="./images/favicon.ico" rel="shortcut icon" type="image/x-icon">
6
		<link rel="stylesheet" href="./styles/Standard.css" type="text/css">
7
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
29 lars 8
		{literal}
9
			<script language="Javascript" type="text/javascript">
19 lars 10
			function check_games_form()
3 lars 11
			{
19 lars 12
				var g_name;
13
				var g_m1;
14
				var g_m2;
26 lars 15
				var g_g1;
19 lars 16
				var g_g2;
17
				var g_location;
18
				var g_day;
19
				var g_month;
20
				var g_hour;
21
				var g_type;
52 lars 22
				var mode;
23
				mode=document.games.mode.value;
19 lars 24
				g_name=document.games.g_name.value;
25
				g_m1=document.games.g_m1.value;
26
				g_m2=document.games.g_m2.value;
27
				g_g1=document.games.g_g1.value;
28
				g_g2=document.games.g_g2.value;
29
				g_location=document.games.g_location.value;
30
				g_day=document.games.Day.value;
31
				g_month=document.games.Month.value;
32
				g_hour=document.games.Hour.value;
33
				g_typ=document.games.g_typ.value;
34
				if (g_name=="")
3 lars 35
				{
19 lars 36
					window.alert("Bitte dem Spiel einen Namen geben!");
37
					document.games.g_name.focus();
3 lars 38
					return false;
39
				}
19 lars 40
				if (g_m1==-1 || g_m2==-1)
3 lars 41
				{
19 lars 42
					window.alert("Bitte eine Mannschaft auswählen!");
43
					return false;
3 lars 44
				}
19 lars 45
				if (g_location==-1)
46
				{
47
					window.alert("Bitte einen Austragungsort auswählen!");
48
					return false;
49
				}
50
				if (g_typ==-1)
51
				{
52
					window.alert("Bitte einen Spieltyp auswählen!");
52 lars 53
					document.games.g_typ.focus();
19 lars 54
					return false;
55
				}
52 lars 56
				if (g_g1==g_g2 && g_typ > 1 && mode != "save")
57
				{
58
					window.alert("Bei Spielen in der K.O. Runde ist ein Unentschieden nicht zulässig!");
59
					document.games.g_g1.focus();
60
					return false;
61
				}
3 lars 62
			}
39 lars 63
			function check_types_form()
64
			{
65
				var t_name;
66
				var t_max;
67
 
68
				t_name=document.types.t_name.value;
69
				t_max=document.types.t_max.value;
70
 
71
				if (t_name=="")
72
				{
73
					window.alert("Der Spieltyp muß einen Namen bekommen!");
74
					document.types.t_name.focus();
75
					return false;
76
				}
77
				if (t_max<0)
78
				{
79
					window.alert("Der Spieltyp muß eine positive Anzahl von Spielen haben!");
80
					document.types.t_max.focus();
81
					return false;
82
				}
83
				if (t_max==0)
84
				{
85
					window.alert("Die Anzahl von Spielen für disen Spieltyp muß größer 0 sein!");
86
					document.types.t_max.focus();
87
					return false;
88
				}
89
			}
49 lars 90
			function check_teams_form()
91
			{
92
				var t_name;
93
				var t_group;
94
 
95
				t_name=document.teams.t_name.value;
96
				t_group=document.teams.t_group.value;
97
 
98
				if (t_name=="")
99
				{
100
					window.alert("Die Mannschaft muß einen Namen bekommen!");
101
					document.teams.t_name.focus();
102
					return false;
103
				}
104
				if (t_group==-1)
105
				{
106
					window.alert("Die Mannschaft muß einer Gruppe zugewiesen werden!");
107
					document.teams.t_group.focus();
108
					return false;
109
				}
110
			}
39 lars 111
			function check_orte_form()
112
			{
113
				var l_name;
114
				var l_name2;
115
 
116
				l_name=document.orte.l_name.value;
117
				l_name2=document.orte.l_name2.value;
118
 
119
				if (l_name=="")
120
				{
121
					window.alert("Der Austragungsort m8ß eienen Namen haben!");
122
					document.orte.l_name.focus();
123
					return false;
124
				}
125
				if (l_name2=="")
126
				{
127
					window.alert("Das Stadion muß einen Namen haben!");
128
					document.orte.l_name2.focus();
129
					return false;
130
				}
131
			}
51 lars 132
			function check_register_form()
133
			{
134
				var u_name=document.register.username.value;
135
				var email=document.register.email.value;
136
				var password=document.register.password.value;
137
				var password2=document.register.password2.value;
60 lars 138
				var u_lang=document.register.u_lang.value;
51 lars 139
				if (u_name=="")
140
				{
62 lars 141
					window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
51 lars 142
					document.register.username.focus();
143
					return false;
144
				}
145
				if (email=="")
146
				{
62 lars 147
					window.alert({/literal}"{$L_EMAIL_EMPTY}"{literal});
51 lars 148
					document.register.email.focus();
149
					return false;
150
				}
151
				if (password=="")
152
				{
62 lars 153
					window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
51 lars 154
					document.register.password.focus();
155
					return false;
156
				}
157
				if (password2=="")
158
				{
62 lars 159
					window.alert({/literal}"{$L_PASSWORD_CONFIRM_EMPTY}"{literal});
51 lars 160
					document.register.password2.focus();
161
					return false;
162
				}
163
				if (password!=password2)
164
				{
62 lars 165
					window.alert({/literal}"{$L_PASSWORD_DIFF}"{literal});
51 lars 166
					document.register.password.focus();
167
					return false;
168
				}
60 lars 169
				if (u_lang=="no")
170
				{
62 lars 171
					window.alert({/literal}"{$L_LANGUAGE_EMPTY}"{literal});
60 lars 172
					document.register.u_lang.focus();
173
					return false;
174
				}
51 lars 175
			}
76 lars 176
			function check_login_form()
177
			{
178
				var u_name=login.username.value;
179
				var u_pass=login.password.value;
180
				var u_type={/literal}{$u_type}{literal};
181
				var finished={/literal}{$FINISHED}{literal};
182
				if (u_name=="")
183
				{
184
					window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
185
					document.login.username.focus();
186
					return false;
187
				}
188
				if (u_pass=="")
189
				{
190
					window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
191
					document.login.password.focus();
192
					return false;
193
				}
194
			}
3 lars 195
		</script>{/literal}
196
	</head>
66 lars 197
	{if isset($focus)}
44 lars 198
	<body onload="{$focus}.focus();">
66 lars 199
	{else}
200
	<body>
201
	{/if}
62 lars 202
		{$L_LOGGED_IN_AS}: {$u_name|default:"<i>[$L_NOT_LOGGED_IN]</i>"} Version: {$version}
66 lars 203
		<div align="right">{$L_DATE} / {$L_TIME}: {$date} {$L_O_CLOCK}</div>
204
		<h1>{$title} - <img src="{$logo}" width="64" alt="Logo" title="Logo">FIFA {$L_TYPE} {$year} in {$L_HOST}</h1>
4 lars 205
		<table>
206
	<tr>
62 lars 207
		<th colspan="5">{$L_ACTIONS}</th>
4 lars 208
	</tr>
209
	<tr align="center">
210
		<td>
19 lars 211
			<form action="index.php" method="post">
62 lars 212
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GAMES}">
4 lars 213
			</form>
19 lars 214
		</td>
4 lars 215
		<td>
19 lars 216
			<form action="liste_teams.php" method="post">
62 lars 217
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TEAMS}">
4 lars 218
			</form>
19 lars 219
		</td>
4 lars 220
		<td>
19 lars 221
			<form action="liste_orte.php" method="post">
62 lars 222
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_VENUES}">
4 lars 223
			</form>
19 lars 224
		</td>
4 lars 225
		<td>
19 lars 226
			<form action="liste_groups.php" method="post">
62 lars 227
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GROUPS}">
4 lars 228
			</form>
19 lars 229
		</td>
4 lars 230
		<td>
19 lars 231
			<form action="liste_types.php" method="post">
62 lars 232
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TYPES}">
4 lars 233
			</form>
19 lars 234
		</td>
235
	</tr>
236
	<tr align="center">
237
		<td>
15 lars 238
			<form action="table.php" method="post">
62 lars 239
				<input type="submit" class="liteoption" name="table" value="{$L_PREL_TABLE}">
19 lars 240
			</form>
241
		</td>
242
		<td>
243
			{if $u_name!=""}
15 lars 244
			<form action="logout.php" method="post">
62 lars 245
				<input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
19 lars 246
			</form>
247
			{else}
248
			<form action="login.php" method="post">
62 lars 249
				<input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
19 lars 250
			</form>
15 lars 251
			{/if}
19 lars 252
		</td>
253
		<td>
254
			{if $u_name!=""}
15 lars 255
			<form action="edit_user.php" method="post">
62 lars 256
				<input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}" disabled="disabled">
19 lars 257
			</form>
15 lars 258
			{/if}
19 lars 259
		</td>
260
		<td>
261
			{if $u_name==""}
15 lars 262
			<form action="register.php" method="post">
71 lars 263
				<input type="submit" class="liteoption" name="register" value="{$L_REGISTER}" {$disabled2}>
19 lars 264
			</form>
265
			{else}
266
				{if $u_type==1}
267
					<form action="table_gen.php" method="post">
268
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
269
					</form>
270
				{/if}
271
			{/if}
272
		</td>
273
		<td>
274
			{if $u_name==""}
15 lars 275
			<form action="lost.php" method="post">
62 lars 276
				<input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
19 lars 277
			</form>
278
			{/if}
66 lars 279
			{if $u_type==1}
280
			<form action="viewlog.php" method="post">
281
				<input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
282
			</form>
283
			{/if}
19 lars 284
		</td>
285
	</tr>
71 lars 286
	<tr align="center">
287
		<td>
288
			{if $display_result}
289
			<form action="result.php" method="post">
290
				<input type="submit" value="{$L_RESULT}" class="liteoption">
291
			</form>
292
			{/if}
293
		</td>
74 lars 294
		<td>
295
			{if $u_type==1}
296
			<form action="edit_users.php" method="post">
297
				<input type="submit" value="{$L_EDIT_USERS}" class="liteoption" disabled="disabled">
298
			</form>
299
			{/if}
300
		</td>
301
		<td colspan="3"></td>
71 lars 302
	</tr>
4 lars 303
</table>
304
<br>