Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 62 | Revision 71 | 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
			}
176
 
3 lars 177
		</script>{/literal}
178
	</head>
66 lars 179
	{if isset($focus)}
44 lars 180
	<body onload="{$focus}.focus();">
66 lars 181
	{else}
182
	<body>
183
	{/if}
62 lars 184
		{$L_LOGGED_IN_AS}: {$u_name|default:"<i>[$L_NOT_LOGGED_IN]</i>"} Version: {$version}
66 lars 185
		<div align="right">{$L_DATE} / {$L_TIME}: {$date} {$L_O_CLOCK}</div>
186
		<h1>{$title} - <img src="{$logo}" width="64" alt="Logo" title="Logo">FIFA {$L_TYPE} {$year} in {$L_HOST}</h1>
4 lars 187
		<table>
188
	<tr>
62 lars 189
		<th colspan="5">{$L_ACTIONS}</th>
4 lars 190
	</tr>
191
	<tr align="center">
192
		<td>
19 lars 193
			<form action="index.php" method="post">
62 lars 194
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GAMES}">
4 lars 195
			</form>
19 lars 196
		</td>
4 lars 197
		<td>
19 lars 198
			<form action="liste_teams.php" method="post">
62 lars 199
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TEAMS}">
4 lars 200
			</form>
19 lars 201
		</td>
4 lars 202
		<td>
19 lars 203
			<form action="liste_orte.php" method="post">
62 lars 204
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_VENUES}">
4 lars 205
			</form>
19 lars 206
		</td>
4 lars 207
		<td>
19 lars 208
			<form action="liste_groups.php" method="post">
62 lars 209
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GROUPS}">
4 lars 210
			</form>
19 lars 211
		</td>
4 lars 212
		<td>
19 lars 213
			<form action="liste_types.php" method="post">
62 lars 214
				<input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TYPES}">
4 lars 215
			</form>
19 lars 216
		</td>
217
	</tr>
218
	<tr align="center">
219
		<td>
15 lars 220
			<form action="table.php" method="post">
62 lars 221
				<input type="submit" class="liteoption" name="table" value="{$L_PREL_TABLE}">
19 lars 222
			</form>
223
		</td>
224
		<td>
225
			{if $u_name!=""}
15 lars 226
			<form action="logout.php" method="post">
62 lars 227
				<input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
19 lars 228
			</form>
229
			{else}
230
			<form action="login.php" method="post">
62 lars 231
				<input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
19 lars 232
			</form>
15 lars 233
			{/if}
19 lars 234
		</td>
235
		<td>
236
			{if $u_name!=""}
15 lars 237
			<form action="edit_user.php" method="post">
62 lars 238
				<input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}" disabled="disabled">
19 lars 239
			</form>
15 lars 240
			{/if}
19 lars 241
		</td>
242
		<td>
243
			{if $u_name==""}
15 lars 244
			<form action="register.php" method="post">
62 lars 245
				<input type="submit" class="liteoption" name="register" value="{$L_REGISTER}">
19 lars 246
			</form>
247
			{else}
248
				{if $u_type==1}
249
					<form action="table_gen.php" method="post">
250
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
251
					</form>
252
				{/if}
253
			{/if}
254
		</td>
255
		<td>
256
			{if $u_name==""}
15 lars 257
			<form action="lost.php" method="post">
62 lars 258
				<input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
19 lars 259
			</form>
260
			{/if}
66 lars 261
			{if $u_type==1}
262
			<form action="viewlog.php" method="post">
263
				<input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
264
			</form>
265
			{/if}
19 lars 266
		</td>
267
	</tr>
4 lars 268
</table>
269
<br>