Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 31 | Revision 40 | 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
			}
81
			function check_orte_form()
82
			{
83
				var l_name;
84
				var l_name2;
85
 
86
				l_name=document.orte.l_name.value;
87
				l_name2=document.orte.l_name2.value;
88
 
89
				if (l_name=="")
90
				{
91
					window.alert("Der Austragungsort m8ß eienen Namen haben!");
92
					document.orte.l_name.focus();
93
					return false;
94
				}
95
				if (l_name2=="")
96
				{
97
					window.alert("Das Stadion muß einen Namen haben!");
98
					document.orte.l_name2.focus();
99
					return false;
100
				}
101
			}
3 lars 102
		</script>{/literal}
103
	</head>
104
	<body>
105
		angemeldet als: {$u_name|default:"<i>[nicht angemeldet]</i>"}
106
		<br>
9 lars 107
		Version: {$version}
3 lars 108
		<div align="right">Datum: {$smarty.now|date_format:"%d.%m.%Y"}</div>
109
		<div align="right">Zeit: {$smarty.now|date_format:"%H:%M"} Uhr</div>
26 lars 110
		<h1>{if !$h1}{$title}{else}{$h1}{/if} - <img src="{$logo}" width="64">{$title2}</h1>
4 lars 111
		<table>
112
	<tr>
15 lars 113
		<th colspan="5">Aktionen</th>
4 lars 114
	</tr>
115
	<tr align="center">
116
		<td>
19 lars 117
			<form action="index.php" method="post">
4 lars 118
				<input type="submit" class="liteoption" name="change" value="Liste der Spiele">
119
			</form>
19 lars 120
		</td>
4 lars 121
		<td>
19 lars 122
			<form action="liste_teams.php" method="post">
4 lars 123
				<input type="submit" class="liteoption" name="change" value="Liste der Mannschaften">
124
			</form>
19 lars 125
		</td>
4 lars 126
		<td>
19 lars 127
			<form action="liste_orte.php" method="post">
4 lars 128
				<input type="submit" class="liteoption" name="change" value="Liste der Austragungsorte">
129
			</form>
19 lars 130
		</td>
4 lars 131
		<td>
19 lars 132
			<form action="liste_groups.php" method="post">
4 lars 133
				<input type="submit" class="liteoption" name="change" value="Liste der Gruppen">
134
			</form>
19 lars 135
		</td>
4 lars 136
		<td>
19 lars 137
			<form action="liste_types.php" method="post">
4 lars 138
				<input type="submit" class="liteoption" name="change" value="Liste der Spieltypen">
139
			</form>
19 lars 140
		</td>
141
	</tr>
142
	<tr align="center">
143
		<td>
15 lars 144
			<form action="table.php" method="post">
19 lars 145
				<input type="submit" class="liteoption" name="table" value="Vorrundentablle">
146
			</form>
147
		</td>
148
		<td>
149
			{if $u_name!=""}
15 lars 150
			<form action="logout.php" method="post">
19 lars 151
				<input type="submit" class="liteoption" name="logout" value="Ausloggen">
152
			</form>
153
			{else}
154
			<form action="login.php" method="post">
155
				<input type="submit" class="liteoption" name="login" value="Einloggen">
156
			</form>
15 lars 157
			{/if}
19 lars 158
		</td>
159
		<td>
160
			{if $u_name!=""}
15 lars 161
			<form action="edit_user.php" method="post">
19 lars 162
				<input type="submit" class="liteoption" name="profile" value="Profil">
163
			</form>
15 lars 164
			{/if}
19 lars 165
		</td>
166
		<td>
167
			{if $u_name==""}
15 lars 168
			<form action="register.php" method="post">
19 lars 169
				<input type="submit" class="liteoption" name="register" value="Registrieren" disabled=disabled>
170
			</form>
171
			{else}
172
				{if $u_type==1}
173
					<form action="table_gen.php" method="post">
174
						<input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
175
					</form>
176
				{/if}
177
			{/if}
178
		</td>
179
		<td>
180
			{if $u_name==""}
15 lars 181
			<form action="lost.php" method="post">
19 lars 182
				<input type="submit" class="liteoption" name="lost" value="Paßwort vergessen" disabled=disabled>
183
			</form>
184
			{/if}
185
		</td>
186
	</tr>
4 lars 187
</table>
188
<br>