Subversion-Projekte lars-tiefland.niewerth

Revision

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

Revision 12 Revision 13
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	require("include/common.php");
2
	require("include/common.php");
3
	$smarty->assign("title","Wochenübersicht");
3
	$smarty->assign("title","Wochenübersicht");
4
	$d=intval(isset($_GET["tag"]))?$_GET["tag"]:date("d");
4
	$d=intval(isset($_GET["tag"])?$_GET["tag"]:date("d"));
5
	$m=intval(isset($_GET["monat"]))?$_GET["monat"]:date("m");
5
	$m=intval(isset($_GET["monat"])?$_GET["monat"]:date("m"));
6
	$y=intval(isset($_GET["jahr"]))?$_GET["jahr"]:date("Y");
6
	$y=intval(isset($_GET["jahr"])?$_GET["jahr"]:date("Y"));
7
	$w=new Calendar_Week($y,$m,$d);
7
	$w=new Calendar_Week($y,$m,$d);
8
	$w->build();
8
	$w->build();
9
	setLocale(LC_ALL,"de_DE");
9
	setLocale(LC_ALL,"de_DE");
10
	$mode=(isset($_GET["mode"]))?$_GET["mode"]:"";
10
	$mode=(isset($_GET["mode"]))?$_GET["mode"]:"";
11
	$smarty->assign("mode",$mode);
11
	$smarty->assign("mode",$mode);
Zeile 75... Zeile 75...
75
			{
75
			{
76
				$cal.="<td>&nbsp;</td>";
76
				$cal.="<td>&nbsp;</td>";
77
			}
77
			}
78
			else
78
			else
79
			{
79
			{
80
				$cal.='<td width="14%" valign="top">'.$Day->thisDay();
80
				$cal.='<td width="14%" valign="top"><b>'.$Day->thisDay();
81
				$termine=Termin::Liste(date("Y-m-d",mktime(0,0,0,$Day->thisMonth(),$Day->thisDay(),$Day->thisYear())));
81
				$termine=Termin::Liste(date("Y-m-d",mktime(0,0,0,$Day->thisMonth(),$Day->thisDay(),$Day->thisYear())));
82
				if (is_array($termine))
82
				if (is_array($termine))
83
				{
83
				{
84
					foreach ($termine as $termin)
84
					foreach ($termine as $termin)
85
					{
85
					{
86
						$cal.="<br>".$termin["an"]." bei <br>" . $termin["firma"]."<br>";
86
						$cal.="</b><br>".$termin["an"]." bei <br>" . $termin["firma"]."
-
 
87
						<form action='del.php'>
-
 
88
							<input type='hidden' name='id' value='".$termin["t_id"]."'>
-
 
89
							<input type='image' src='images/topic_delete.gif' ondblclick='javascript:submit(this)'>
-
 
90
							<input type='hidden' name='tag' value='".$Day->thisDay()."'>
-
 
91
							<input type='hidden' name='monat' value='".$Day->thisMonth()."'>
-
 
92
							<input type='hidden' name='jahr' value='".$Day->thisYear()."'>
-
 
93
						</form>
-
 
94
						<br>";
87
					}
95
					}
88
				}
96
				}
89
				$cal.="</td>";
97
				$cal.="</td>";
90
			}
98
			}