Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 47 | Revision 54 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 47 Revision 52
Zeile 31... Zeile 31...
31
		$hour=intval(isset($_POST["Hour"])?$_POST["Hour"]:-1);
31
		$hour=intval(isset($_POST["Hour"])?$_POST["Hour"]:-1);
32
		$game=new Spiele($id);
32
		$game=new Spiele($id);
33
		$t=new Typ($g_type);
33
		$t=new Typ($g_type);
34
		$sql_t="SELECT count(*) AS anzahl FROM games WHERE g_type=$g_type";
34
		$sql_t="SELECT count(*) AS anzahl FROM games WHERE g_type=$g_type";
35
		$res_t=$db->query($sql_t);
35
		$res_t=$db->query($sql_t);
36
		$row_t=$res_t->fetchRow(DB_FETCHMODE_ASSOC);
36
		$row_t=$res_t->fetchRow();
37
		$anz=$row_t["anzahl"];
37
		$anz=$row_t["anzahl"];
38
		if ($hour >=0 AND $day > 0 AND $month > 0)
38
		if ($hour >=0 AND $day > 0 AND $month > 0)
39
		{
39
		{
40
			$g_date=mktime($hour, 0, 0, $month, $day, 2006);
40
			$g_date=mktime($hour, 0, 0, $month, $day, 2006);
41
		}
41
		}
Zeile 52... Zeile 52...
52
			$typ_namen[]="Bitte wählen!";
52
			$typ_namen[]="Bitte wählen!";
53
			$typ_ids[]=-1;
53
			$typ_ids[]=-1;
54
			$l_namen[]="Bitte wählen!";
54
			$l_namen[]="Bitte wählen!";
55
			$l_ids[]=-1;
55
			$l_ids[]=-1;
56
			$g_l=Gruppe::listeGruppe(0,0);
56
			$g_l=Gruppe::listeGruppe(0,0);
57
			while($row_g=$g_l->fetchRow(DB_FETCHMODE_ASSOC))
57
			while($row_g=$g_l->fetchRow())
58
			{
58
			{
59
				$g_id=$row_g["g_id"];
59
				$g_id=$row_g["g_id"];
60
				$g_name=$row_g["g_name"];
60
				$g_name=$row_g["g_name"];
61
				$t_namen[]="---------- Gruppe $g_name ----------";
61
				$t_namen[]="---------- Gruppe $g_name ----------";
62
				$t_ids[]=-1;
62
				$t_ids[]=-1;
63
				$sql_t="SELECT * FROM teams WHERE t_group=$g_id";
63
				$sql_t="SELECT * FROM teams WHERE t_group=$g_id";
64
				$t_l=$db->query($sql_t);
64
				$t_l=$db->query($sql_t);
65
				while ($row_t=$t_l->fetchRow(DB_FETCHMODE_ASSOC))
65
				while ($row_t=$t_l->fetchRow())
66
				{
66
				{
67
					$t_name=$row_t["t_name"];
67
					$t_name=$row_t["t_name"];
68
					$t_id=$row_t["t_id"];
68
					$t_id=$row_t["t_id"];
69
					$t_namen[]=$t_name;
69
					$t_namen[]=$t_name;
70
					$t_ids[]=$t_id;
70
					$t_ids[]=$t_id;
71
				}
71
				}
72
			}
72
			}
73
			$l_l=Ort::listeOrt(0,0);
73
			$l_l=Ort::listeOrt(0,0);
74
			while ($row_l=$l_l->fetchRow(DB_FETCHMODE_ASSOC))
74
			while ($row_l=$l_l->fetchRow())
75
			{
75
			{
76
				$l_name=$row_l["l_name"];
76
				$l_name=$row_l["l_name"];
77
				$l_id=$row_l["l_id"];
77
				$l_id=$row_l["l_id"];
78
				$l_namen[]=$l_name;
78
				$l_namen[]=$l_name;
79
				$l_ids[]=$l_id;
79
				$l_ids[]=$l_id;
80
			}
80
			}
81
			$typ_l=Typ::listeTyp(0,0);
81
			$typ_l=Typ::listeTyp(0,0);
82
			while ($row_typ=$typ_l->fetchRow(DB_FETCHMODE_ASSOC))
82
			while ($row_typ=$typ_l->fetchRow())
83
			{
83
			{
84
				$typ_name=$row_typ["t_name"];
84
				$typ_name=$row_typ["t_name"];
85
				$typ_id=$row_typ["t_id"];
85
				$typ_id=$row_typ["t_id"];
86
				$typ_namen[]=$typ_name;
86
				$typ_namen[]=$typ_name;
87
				$typ_ids[]=$typ_id;
87
				$typ_ids[]=$typ_id;