Example #1
0
        echo $LDNextWeek;
        break;
    case 3:
        echo $LD3rdWeek;
        break;
}
?>
</font>
</td>
  </tr>
  <tr bgcolor="#ccffff">
  
<?php 
for ($i = 0, $acttag = $day, $dyidx = $daytag - 1; $i < 7; $i++, $acttag++, $dyidx++) {
    $spot = 0;
    aligndate($acttag, $month, $year);
    if ((int) $mday == (int) $acttag) {
        $spot = 1;
    }
    echo '
    <td class="v18_b" ';
    if ($spot) {
        echo ' bgcolor="yellow">';
    } else {
        echo ' bgcolor="#ccffff">';
    }
    echo '<a href="';
    if ($spot) {
        echo '#"';
    } else {
        echo 'cafenews-edit-menu.php' . URL_APPEND . '&week=' . $week . '&myear=' . $year . '&mmonth=' . $month . '&mday=' . $acttag . '" ';
    }
    echo '
			</td></tr>';
    echo "\n";
    $toggle = !$toggle;
}
echo '</table>
</td>
  </tr>
</table>';
echo '</td>';
// ************** iv zugang dailydose ************************
$actmonat = $kmonat;
$actjahr = $jahr;
for ($i = $tag, $acttag = $tag, $d = 0; $i < $tag + 7; $i++, $d++, $acttag++) {
    aligndate(&$acttag, &$actmonat, &$actjahr);
    // function to align the date
    $r =& getdata($daily_iv, $i, $kmonat, $jahr, 1);
    echo '
	<td valign="bottom" ';
    if ($r) {
        echo "bgcolor=#ff99cc";
    } else {
        echo "bgcolor=white";
    }
    echo '><font face="verdana,arial" size="1" color="#000000">';
    if ($edit) {
        echo '<a href="javascript:popgetdailyinfo(\'iv_needle\',\'' . $pn . '\',\'' . $actjahr . '\',\'' . $actmonat . '\',\'' . $acttag . '\',\'' . ($d + $tagnamebuf) . '\',\'' . $jahr . '\',\'' . $kmonat . '\',\'' . $tag . '\',\'' . $tagname . '\')" title="' . str_replace("~tagword~", $LDIvPort, $LDClk2EnterDaily) . '">';
    }
    if ($r) {
        echo substr($r, 0, 13);