if ($time = mktime()) {
echo '<td class="date" style="border:1px solid red" ' . $colspan . '>' . $new_date_format . '</td>';
}
else {
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
}
if ($time == mktime()) {
echo '<td class="date" style="border:1px solid red" ' . $colspan . '>' . $new_date_format . '</td>';
}
else {
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
}
if (date('Y-m-d,$time) == date('Y-m-d') ) {
echo '<td class="date" style="border:1px solid red" ' . $colspan . '>' . $new_date_format . '</td>';
}
else {
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
}
if (date('Y-m-d',$time) == date('Y-m-d') ) {
echo '<td class="date" style="border:1px solid red" ' . $colspan . '>' . $new_date_format . '</td>';
}
else {
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
}
$timestamp = mktime(); // 1235995650
$date_today = date('d.m.Y', mktime()); // 02.03.2009
$day = date('d', mktime()); // 02
$month = date('m', mktime()); // 03
$year = date('Y', mktime()); // 2009
if ($i <= 6 and $show_weekday[$wday] == "yes") {
// echo ("<td bgcolor=\"".$datum_color."\" align=\"center\"><span style=\"color:".$datum_font_color."; \">".$this_day3."</span></td>");
$new_date_format = str_replace("{weekday}", $weekday[$wday], $date_format);
$new_date_format = str_replace("{day}", $mday, $new_date_format);
$new_date_format = str_replace("{month}", $month, $new_date_format);
$new_date_format = str_replace("{year}", $year, $new_date_format);
//Make this red for today only
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
//End
// Build date row
$new_app_data_merged = $app_data_merged;
for ($i = 0; $i <= 6; $i++) {
$weekday_timestamp = mktime(0, 0, 0, $selected_month_begin, $selected_day_begin - $weekstart + $hom + $i + $woche, $selected_year_begin);
list($wday, $mday, $month_1, $month_01, $year) = split("( )", date("w d n m Y", $weekday_timestamp));
$month_1 -= 1;
if ($year_length == "short") {
$year = substr ($year, -2);
}
switch ($month_length) {
case "short":
$month = $months_short[$month_1];
break;
case "long":
$month = $months_long[$month_1];
break;
case "number":
$month = $month_01;
}
switch ($weekday_length) {
case "short":
$weekday = $weekday_short;
break;
case "long":
$weekday = $weekday_long;
}
$this_day3 = $weekday[$wday] . "<br>" . $mday . "." . $month . $year;
if ($i <= 6 and $show_weekday[$wday] == "yes") {
// echo ("<td bgcolor=\"".$datum_color."\" align=\"center\"><span style=\"color:".$datum_font_color."; \">".$this_day3."</span></td>");
$new_date_format = str_replace("{weekday}", $weekday[$wday], $date_format);
$new_date_format = str_replace("{day}", $mday, $new_date_format);
$new_date_format = str_replace("{month}", $month, $new_date_format);
$new_date_format = str_replace("{year}", $year, $new_date_format);
//Make this red for today only
echo '<td class="date" ' . $colspan . '>' . $new_date_format . '</td>';
//End