Subversion-Projekte lars-tiefland.em_wm

Revision

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