Subversion-Projekte lars-tiefland.niewerth

Revision

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

Revision 4 Revision 12
Zeile 83... Zeile 83...
83
		global $smarty;
83
		global $smarty;
84
		$smarty->assign("title","Termine Schritt 2 - Kalender");
84
		$smarty->assign("title","Termine Schritt 2 - Kalender");
85
		setLocale(LC_ALL,"de_DE");
85
		setLocale(LC_ALL,"de_DE");
86
		$mode=(isset($_GET["mode"]))?$_GET["mode"]:"";
86
		$mode=(isset($_GET["mode"]))?$_GET["mode"]:"";
87
		$smarty->assign("mode",$mode);
87
		$smarty->assign("mode",$mode);
88
		$Month = new Calendar_Month_Weekdays($y, $m);
88
		$Month = new Calendar_Month_Weeks($y, $m);
89
		$m_d=new Calendar_Decorator_Textual($Month);
89
		$m_d=new Calendar_Decorator_Textual($Month);
90
		$u_d=new Calendar_Decorator_Uri($Month);
90
		$u_d=new Calendar_Decorator_Uri($Month);
91
		$u_d->setFragments("jahr", "monat", "tag");
91
		$u_d->setFragments("jahr", "monat", "tag");
92
		$Month->build();
92
		$Month->build();
93
 
93
		
94
		$cal="<table>";
94
		$cal="<table>";
95
		$cal.="<tr><th colspan=7>
95
		$cal.="<tr><th colspan=8>
96
		<form action=termine.php>
96
		<form action=termine.php>
97
			<input type='hidden' name='mode' value='calendar'>
97
			<input type='hidden' name='mode' value='calendar'>
98
			<input type='hidden' name='an_id' value='$an_id'>
98
			<input type='hidden' name='an_id' value='$an_id'>
99
			<input type='hidden' name='f_id' value='$f_id'>
99
			<input type='hidden' name='f_id' value='$f_id'>
100
			<input type='hidden' name='monat' value='$m'>
100
			<input type='hidden' name='monat' value='$m'>
Zeile 128... Zeile 128...
128
			<input type='hidden' name='jahr' value='".$u_d->nextYear()."'>
128
			<input type='hidden' name='jahr' value='".$u_d->nextYear()."'>
129
			<input class='liteoption' type='submit' value='>>'>
129
			<input class='liteoption' type='submit' value='>>'>
130
		</form>
130
		</form>
131
		</th></tr>";
131
		</th></tr>";
132
		$tage=Calendar_Decorator_Textual::weekdayNames();
132
		$tage=Calendar_Decorator_Textual::weekdayNames();
133
		$cal.="<tr>";
133
		$cal.="<tr><th>KW#</th>";
134
		for ($tag=1; $tag < 8; $tag++)
134
		for ($tag=1; $tag < 8; $tag++)
135
		{
135
		{
136
			$cal.="<th>".$tage[$tag %7]."</th>";
136
			$cal.="<th>".$tage[$tag %7]."</th>";
137
		}
137
		}
138
		$cal.="</tr>";
138
		$cal.="</tr>";
139
		while ($Day = $Month->fetch()) 
139
		while ($Week = $Month->fetch()) 
140
		{
140
		{
141
			if ($Day->isFirst()) 
141
			$kw=$Week->thisWeek('n_in_year');
142
			{
142
			$Week->build();
143
				$cal.="<tr>";
143
			$cal.="<tr><td>$kw</td>";
144
			}	
-
 
145
 
-
 
146
			if ($Day->isEmpty()) 
144
			while ($Day = $Week->fetch())
147
			{
145
			{
-
 
146
				if ($Day->isEmpty()) 
-
 
147
				{
148
				$cal.="<td>&nbsp;</td>";
148
					$cal.="<td>&nbsp;</td>";
149
			}
149
				}
150
			else
150
				else
151
			{
151
				{
152
				$cal.='<td>'."<a href='termine.php?mode=end&an_id=$an_id&f_id=$f_id&jahr=".$Month->thisYear()."&monat=".$Month->thisMonth()."&tag=".$Day->thisDay()."'>".$Day->thisDay()."</a></td>";
152
					$cal.='<td>'."<a href='termine.php?mode=end&an_id=$an_id&f_id=$f_id&jahr=".$Month->thisYear()."&monat=".$Month->thisMonth()."&tag=".$Day->thisDay()."'>".$Day->thisDay()."</a></td>";
153
			}
153
				}
Zeile 154... Zeile 154...
154
 
154
 
155
			if ($Day->isLast()) 
155
				if ($Day->isLast()) 
156
			{
156
				{
-
 
157
					$cal.="</tr>";
157
				$cal.="</tr>";
158
				}
158
			}
159
			}
Zeile 159... Zeile 160...
159
		}
160
		}
160
 
161