Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 44 | Revision 51 | 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;
22
				g_name=document.games.g_name.value;
23
				g_m1=document.games.g_m1.value;
24
				g_m2=document.games.g_m2.value;
25
				g_g1=document.games.g_g1.value;
26
				g_g2=document.games.g_g2.value;
27
				g_location=document.games.g_location.value;
28
				g_day=document.games.Day.value;
29
				g_month=document.games.Month.value;
30
				g_hour=document.games.Hour.value;
31
				g_typ=document.games.g_typ.value;
32
				if (g_name=="")
3 lars 33
				{
19 lars 34
					window.alert("Bitte dem Spiel einen Namen geben!");
35
					document.games.g_name.focus();
3 lars 36
					return false;
37
				}
19 lars 38
				if (g_m1==-1 || g_m2==-1)
3 lars 39
				{
19 lars 40
					window.alert("Bitte eine Mannschaft auswählen!");
41
					return false;
3 lars 42
				}
19 lars 43
				if (g_location==-1)
44
				{
45
					window.alert("Bitte einen Austragungsort auswählen!");
46
					return false;
47
				}
48
				if (g_typ==-1)
49
				{
50
					window.alert("Bitte einen Spieltyp auswählen!");
51
					return false;
52
				}
3 lars 53
			}
39 lars 54
			function check_types_form()
55
			{
56
				var t_name;
57
				var t_max;
58
 
59
				t_name=document.types.t_name.value;
60
				t_max=document.types.t_max.value;
61
 
62
				if (t_name=="")
63
				{
64
					window.alert("Der Spieltyp muß einen Namen bekommen!");
65
					document.types.t_name.focus();
66
					return false;
67
				}
68
				if (t_max<0)
69
				{
70
					window.alert("Der Spieltyp muß eine positive Anzahl von Spielen haben!");
71
					document.types.t_max.focus();
72
					return false;
73
				}
74
				if (t_max==0)
75
				{
76
					window.alert("Die Anzahl von Spielen für disen Spieltyp muß größer 0 sein!");
77
					document.types.t_max.focus();
78
					return false;
79
				}
80
			}
49 lars 81
			function check_teams_form()
82
			{
83
				var t_name;
84
				var t_group;
85
 
86
				t_name=document.teams.t_name.value;
87
				t_group=document.teams.t_group.value;
88
 
89
				if (t_name=="")
90
				{
91
					window.alert("Die Mannschaft muß einen Namen bekommen!");
92
					document.teams.t_name.focus();
93
					return false;
94
				}
95
				if (t_group==-1)
96
				{
97
					window.alert("Die Mannschaft muß einer Gruppe zugewiesen werden!");
98
					document.teams.t_group.focus();
99
					return false;
100
				}
101
			}
39 lars 102
			function check_orte_form()
103
			{
104
				var l_name;
105
				var l_name2;
106
 
107
				l_name=document.orte.l_name.value;
108
				l_name2=document.orte.l_name2.value;
109
 
110
				if (l_name=="")
111
				{
112
					window.alert("Der Austragungsort m8ß eienen Namen haben!");
113
					document.orte.l_name.focus();
114
					return false;
115
				}
116
				if (l_name2=="")
117
				{
118
					window.alert("Das Stadion muß einen Namen haben!");
119
					document.orte.l_name2.focus();
120
					return false;
121
				}
122
			}
3 lars 123
		</script>{/literal}
124
	</head>
44 lars 125
	<body onload="{$focus}.focus();">
40 lars 126
		angemeldet als: {$u_name|default:"<i>[nicht angemeldet]</i>"} Version: {$version}
127
		<div align="right">Datum / Uhrzeit: {$smarty.now|date_format:"%d.%m.%Y %H:%M"} Uhr</div>
26 lars 128
		<h1>{if !$h1}{$title}{else}{$h1}{/if} - <img src="{$logo}" width="64">{$title2}</h1>
4 lars 129
		<table>
130
	<tr>
15 lars 131
		<th colspan="5">Aktionen</th>
4 lars 132
	</tr>
133
	<tr align="center">
134
		<td>
19 lars 135
			<form action="index.php" method="post">
4 lars 136
				<input type="submit" class="liteoption" name="change" value="Liste der Spiele">
137
			</form>
19 lars 138
		</td>
4 lars 139
		<td>
19 lars 140
			<form action="liste_teams.php" method="post">
4 lars 141
				<input type="submit" class="liteoption" name="change" value="Liste der Mannschaften">
142
			</form>
19 lars 143
		</td>
4 lars 144
		<td>
19 lars 145
			<form action="liste_orte.php" method="post">
4 lars 146
				<input type="submit" class="liteoption" name="change" value="Liste der Austragungsorte">
147
			</form>
19 lars 148
		</td>
4 lars 149
		<td>
19 lars 150
			<form action="liste_groups.php" method="post">
4 lars 151
				<input type="submit" class="liteoption" name="change" value="Liste der Gruppen">
152
			</form>
19 lars 153
		</td>
4 lars 154
		<td>
19 lars 155
			<form action="liste_types.php" method="post">
4 lars 156
				<input type="submit" class="liteoption" name="change" value="Liste der Spieltypen">
157
			</form>
19 lars 158
		</td>
159
	</tr>
160
	<tr align="center">
161
		<td>
15 lars 162
			<form action="table.php" method="post">
19 lars 163
				<input type="submit" class="liteoption" name="table" value="Vorrundentablle">
164
			</form>
165
		</td>
166
		<td>
167
			{if $u_name!=""}
15 lars 168
			<form action="logout.php" method="post">
19 lars 169
				<input type="submit" class="liteoption" name="logout" value="Ausloggen">
170
			</form>
171
			{else}
172
			<form action="login.php" method="post">
173
				<input type="submit" class="liteoption" name="login" value="Einloggen">
174
			</form>
15 lars 175
			{/if}
19 lars 176
		</td>
177
		<td>
178
			{if $u_name!=""}
15 lars 179
			<form action="edit_user.php" method="post">
19 lars 180
				<input type="submit" class="liteoption" name="profile" value="Profil">
181
			</form>
15 lars 182
			{/if}
19 lars 183
		</td>
184
		<td>
185
			{if $u_name==""}
15 lars 186
			<form action="register.php" method="post">
49 lars 187
				<input type="submit" class="liteoption" name="register" value="Registrieren">
19 lars 188
			</form>
189
			{else}
190
				{if $u_type==1}
191
					<form action="table_gen.php" method="post">
192
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
193
					</form>
194
				{/if}
195
			{/if}
196
		</td>
197
		<td>
198
			{if $u_name==""}
15 lars 199
			<form action="lost.php" method="post">
19 lars 200
				<input type="submit" class="liteoption" name="lost" value="Paßwort vergessen" disabled=disabled>
201
			</form>
202
			{/if}
203
		</td>
204
	</tr>
4 lars 205
</table>
206
<br>