Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 109 | 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};
111 lars 181
				var finished={/literal}{$FINISHED|default:0}{literal};
76 lars 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}
109 lars 202
	{dynamic}
77 lars 203
	<table>
204
		<tr>
205
			<th>{$L_LOGGED_IN_AS}</th>
206
			<th>{$L_VERSION}</th>
207
			<th>{$L_DATE} / {$L_TIME}</th>
208
		</tr>
209
		<tr>
210
			<td align="center">{$u_name|default:"<i>[$L_NOT_LOGGED_IN]</i>"}</td>
211
			<td align="center">{$version}</td>
94 lars 212
			<td align="center">{$date} {$L_O_CLOCK}</td>
77 lars 213
		</tr>
214
	</table>
90 lars 215
	<h1>{$h1|default:$title} - {if $logo}<img src="{$logo}" width="64" alt="Logo" title="Logo">{/if}FIFA {$L_TYPE} {$year} {$L_IN} {$L_HOST}</h1>
77 lars 216
	<table>
4 lars 217
	<tr>
62 lars 218
		<th colspan="5">{$L_ACTIONS}</th>
4 lars 219
	</tr>
220
	<tr align="center">
221
		<td>
19 lars 222
			<form action="index.php" method="post">
62 lars 223
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GAMES}">
4 lars 224
			</form>
19 lars 225
		</td>
4 lars 226
		<td>
19 lars 227
			<form action="liste_teams.php" method="post">
62 lars 228
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TEAMS}">
4 lars 229
			</form>
19 lars 230
		</td>
4 lars 231
		<td>
19 lars 232
			<form action="liste_orte.php" method="post">
62 lars 233
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_VENUES}">
4 lars 234
			</form>
19 lars 235
		</td>
4 lars 236
		<td>
19 lars 237
			<form action="liste_groups.php" method="post">
62 lars 238
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GROUPS}">
4 lars 239
			</form>
19 lars 240
		</td>
4 lars 241
		<td>
19 lars 242
			<form action="liste_types.php" method="post">
62 lars 243
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TYPES}">
4 lars 244
			</form>
19 lars 245
		</td>
246
	</tr>
247
	<tr align="center">
248
		<td>
15 lars 249
			<form action="table.php" method="post">
62 lars 250
				<input type="submit" class="liteoption" name="table" value="{$L_PREL_TABLE}">
19 lars 251
			</form>
252
		</td>
253
		<td>
254
			{if $u_name!=""}
15 lars 255
			<form action="logout.php" method="post">
62 lars 256
				<input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
19 lars 257
			</form>
258
			{else}
259
			<form action="login.php" method="post">
62 lars 260
				<input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
19 lars 261
			</form>
15 lars 262
			{/if}
19 lars 263
		</td>
264
		<td>
265
			{if $u_name!=""}
15 lars 266
			<form action="edit_user.php" method="post">
62 lars 267
				<input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}" disabled="disabled">
19 lars 268
			</form>
15 lars 269
			{/if}
19 lars 270
		</td>
271
		<td>
272
			{if $u_name==""}
15 lars 273
			<form action="register.php" method="post">
71 lars 274
				<input type="submit" class="liteoption" name="register" value="{$L_REGISTER}" {$disabled2}>
19 lars 275
			</form>
276
			{else}
277
				{if $u_type==1}
278
					<form action="table_gen.php" method="post">
279
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
280
					</form>
281
				{/if}
282
			{/if}
283
		</td>
284
		<td>
285
			{if $u_name==""}
15 lars 286
			<form action="lost.php" method="post">
62 lars 287
				<input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
19 lars 288
			</form>
289
			{/if}
66 lars 290
			{if $u_type==1}
291
			<form action="viewlog.php" method="post">
292
				<input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
293
			</form>
294
			{/if}
19 lars 295
		</td>
296
	</tr>
71 lars 297
	<tr align="center">
298
		<td>
299
			{if $display_result}
300
			<form action="result.php" method="post">
77 lars 301
				<input type="submit" value="{$L_FINAL_RESULT}" class="liteoption">
71 lars 302
			</form>
303
			{/if}
304
		</td>
74 lars 305
		<td>
306
			{if $u_type==1}
307
			<form action="edit_users.php" method="post">
308
				<input type="submit" value="{$L_EDIT_USERS}" class="liteoption" disabled="disabled">
309
			</form>
310
			{/if}
311
		</td>
312
		<td colspan="3"></td>
71 lars 313
	</tr>
4 lars 314
</table>
315
<br>
97 lars 316
	{/dynamic}