Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 55 | Revision 62 | 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>
4 lars 4
		<title>{$title} - {$title2}</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
				{
141
					window.alert("Bitte einen Usernamen eingeben!");
142
					document.register.username.focus();
143
					return false;
144
				}
145
				if (email=="")
146
				{
147
					window.alert("Bitte eine E-Mail Adresse eingeben!");
148
					document.register.email.focus();
149
					return false;
150
				}
151
				if (password=="")
152
				{
153
					window.alert("Bitte ein Paßwort eingeben!");
154
					document.register.password.focus();
155
					return false;
156
				}
157
				if (password2=="")
158
				{
159
					window.alert("Bitte das Paßwort ein zweites Mal eingeben!");
160
					document.register.password2.focus();
161
					return false;
162
				}
163
				if (password!=password2)
164
				{
165
					window.alert("Die Paßwörter stimmen nicht überein!");
166
					document.register.password.focus();
167
					return false;
168
				}
60 lars 169
				if (u_lang=="no")
170
				{
171
					window.alert("Bitte eine Sprache auswählen!");
172
					document.register.u_lang.focus();
173
					return false;
174
				}
51 lars 175
			}
176
 
3 lars 177
		</script>{/literal}
178
	</head>
44 lars 179
	<body onload="{$focus}.focus();">
40 lars 180
		angemeldet als: {$u_name|default:"<i>[nicht angemeldet]</i>"} Version: {$version}
181
		<div align="right">Datum / Uhrzeit: {$smarty.now|date_format:"%d.%m.%Y %H:%M"} Uhr</div>
55 lars 182
		<h1>{if !$h1}{$title}{else}{$h1}{/if} - <img src="{$logo}" width="64" alt="Logo" title="Logo">{$title2}</h1>
4 lars 183
		<table>
184
	<tr>
15 lars 185
		<th colspan="5">Aktionen</th>
4 lars 186
	</tr>
187
	<tr align="center">
188
		<td>
19 lars 189
			<form action="index.php" method="post">
4 lars 190
				<input type="submit" class="liteoption" name="change" value="Liste der Spiele">
191
			</form>
19 lars 192
		</td>
4 lars 193
		<td>
19 lars 194
			<form action="liste_teams.php" method="post">
4 lars 195
				<input type="submit" class="liteoption" name="change" value="Liste der Mannschaften">
196
			</form>
19 lars 197
		</td>
4 lars 198
		<td>
19 lars 199
			<form action="liste_orte.php" method="post">
4 lars 200
				<input type="submit" class="liteoption" name="change" value="Liste der Austragungsorte">
201
			</form>
19 lars 202
		</td>
4 lars 203
		<td>
19 lars 204
			<form action="liste_groups.php" method="post">
4 lars 205
				<input type="submit" class="liteoption" name="change" value="Liste der Gruppen">
206
			</form>
19 lars 207
		</td>
4 lars 208
		<td>
19 lars 209
			<form action="liste_types.php" method="post">
4 lars 210
				<input type="submit" class="liteoption" name="change" value="Liste der Spieltypen">
211
			</form>
19 lars 212
		</td>
213
	</tr>
214
	<tr align="center">
215
		<td>
15 lars 216
			<form action="table.php" method="post">
19 lars 217
				<input type="submit" class="liteoption" name="table" value="Vorrundentablle">
218
			</form>
219
		</td>
220
		<td>
221
			{if $u_name!=""}
15 lars 222
			<form action="logout.php" method="post">
19 lars 223
				<input type="submit" class="liteoption" name="logout" value="Ausloggen">
224
			</form>
225
			{else}
226
			<form action="login.php" method="post">
227
				<input type="submit" class="liteoption" name="login" value="Einloggen">
228
			</form>
15 lars 229
			{/if}
19 lars 230
		</td>
231
		<td>
232
			{if $u_name!=""}
15 lars 233
			<form action="edit_user.php" method="post">
19 lars 234
				<input type="submit" class="liteoption" name="profile" value="Profil">
235
			</form>
15 lars 236
			{/if}
19 lars 237
		</td>
238
		<td>
239
			{if $u_name==""}
15 lars 240
			<form action="register.php" method="post">
49 lars 241
				<input type="submit" class="liteoption" name="register" value="Registrieren">
19 lars 242
			</form>
243
			{else}
244
				{if $u_type==1}
245
					<form action="table_gen.php" method="post">
246
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
247
					</form>
248
				{/if}
249
			{/if}
250
		</td>
251
		<td>
252
			{if $u_name==""}
15 lars 253
			<form action="lost.php" method="post">
19 lars 254
				<input type="submit" class="liteoption" name="lost" value="Paßwort vergessen" disabled=disabled>
255
			</form>
256
			{/if}
257
		</td>
258
	</tr>
4 lars 259
</table>
260
<br>