Subversion-Projekte lars-tiefland.em_wm

Revision

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

Revision 66 Revision 94
Zeile 1... Zeile 1...
1
<?
1
<?
2
	require("include/common.php");
2
	require("include/common.php");
3
	$game_l=Spiele::listSpiele(0,0);
-
 
4
	$start=intval(isset($_POST["start"])?$_POST["start"]:0);
3
	$start=intval(isset($_POST["start"])?$_POST["start"]:0);
-
 
4
	define("CACHE_ID", $u_loc."|".$start);
-
 
5
	if(!$smarty->is_cached("index.tpl", CACHE_ID))
-
 
6
	{
-
 
7
	$game_l=Spiele::listSpiele(0,0);
5
	if ($error)
8
	if ($error)
6
	{
9
	{
7
		$smarty->assign("error",$error);
10
		$smarty->assign("error",$error);
8
		$smarty->assign("meld", $meld);
11
		$smarty->assign("meld", $meld);
9
		$smarty->assign("db_meld", $db_meld);
12
		$smarty->assign("db_meld", $db_meld);
Zeile 34... Zeile 37...
34
			}
37
			}
35
			$spiele[$i]["s_location"]=$ort->o_name;
38
			$spiele[$i]["s_location"]=$ort->o_name;
36
			$g_date=$row["g_date"];
39
			$g_date=$row["g_date"];
37
			//if ($loc->setLocale("de_DE"))
40
			//if ($loc->setLocale("de_DE"))
38
			//{
41
			//{
39
				$spiele[$i]["s_date"]=$loc->formatDate($g_date)." ${common["at"]} ";
42
				$spiele[$i]["s_date"]=$loc->formatDate($g_date)." ".$common["at"]." ";
40
				$spiele[$i]["s_time"]=$loc->formatTime($g_date)." ${common["o_clock"]}";
43
				$spiele[$i]["s_time"]=$loc->formatTime($g_date)." ".$common["o_clock"];
41
			/*}
44
			/*}
42
			else
45
			else
43
			{
46
			{
44
				$spiele[$i]["s_date"]=date("d.m.Y",$g_date)." um ";
47
				$spiele[$i]["s_date"]=date("d.m.Y",$g_date)." um ";
45
				$spiele[$i]["s_time"]=date("H:i:s",$g_date)." Uhr";
48
				$spiele[$i]["s_time"]=date("H:i:s",$g_date)." Uhr";
Zeile 55... Zeile 58...
55
			$spiele[$i]["link_id"]=$row["g_id"];
58
			$spiele[$i]["link_id"]=$row["g_id"];
56
			$i++;
59
			$i++;
57
		}
60
		}
58
		$smarty->assign("spiele",$spiele);
61
		$smarty->assign("spiele",$spiele);
59
		$smarty->assign("title", $common["list_of_games"]);
62
		$smarty->assign("title", $common["list_of_games"]);
60
		$smarty->display("index.tpl");
63
		}
61
	}
64
	}
-
 
65
	$smarty->display("index.tpl",CACHE_ID);
62
?>
66
?>