Example #1
0
    echo '<a class="graybg" href="day.php?year=' . date('Y', $weekday) . '&amp;month=' . date('m', $weekday) . '&amp;day=' . date('d', $weekday) . '&amp;area=' . $areaUrlString . '&amp;room=' . $roomUrlString . '">';
    echo '<b>' . __(strftime('%A', $weekday)) . '</b>';
    echo '<br>' . date('j', $weekday) . '. ' . strtolower(__(date('F', $weekday)));
    echo '</td>' . chr(10);
    if ($daynum == 6 || $daynum == 7) {
        ?>
        <td style="background-color: #FFFFCC;">
        <?php 
    } else {
        ?>
        <td>
        <?php 
    }
    $start = mktime(0, 0, 0, date('m', $weekday), date('d', $weekday), date('Y', $weekday));
    $end = mktime(23, 59, 59, date('m', $weekday), date('d', $weekday), date('Y', $weekday));
    $events = getRoomEventList($rooms, $start, $end);
    ?>
	<table width="100%" cellspacing="0" style="border-collapse: collapse;">
	<tr>
        <td class="dayplan" style="font-weight: bold;"><?php 
    echo __('Time');
    ?>
</td>
        <td class="dayplan" style="font-weight: bold;"><?php 
    echo __('Room');
    ?>
</td>
        <td class="dayplan" style="font-weight: bold;"><?php 
    echo __('C/A');
    ?>
</td>
Example #2
0
                     $entry_placed = TRUE;
                     //echo ' (alle '.$entry['rowspan'].' plassert)';
                 }
                 if ($place != 'entry') {
                     $i++;
                 }
                 //echo '<br>'.chr(10);
             }
         }
     }
 }
 echo "<table width=\"100%\" border=\"0\" class=\"hiddenprint\"><tr><td><a href=\"" . $_SERVER['PHP_SELF'] . "?year={$yy}&month={$ym}&day={$yd}&area={$areaUrlString}&room={$roomUrlString}\">&lt;&lt; " . _h('Go to previous day') . "</a></td>\n\t<td align=center><a href=\"" . $_SERVER['PHP_SELF'] . "?area={$areaUrlString}&amp;room={$roomUrlString}\">" . _h('Go to today') . "</a></td>\n\t<td align=right><a href=\"" . $_SERVER['PHP_SELF'] . "?year={$ty}&amp;month={$tm}&amp;day={$td}&amp;area={$areaUrlString}&amp;room={$roomUrlString}\">" . _h('Go to next day') . ' &gt;&gt;</a></td></tr></table>';
 echo chr(10) . chr(10);
 $start = mktime(0, 0, 0, $month, $day, $year);
 $end = mktime(23, 59, 59, $month, $day, $year);
 $events = getRoomEventList($rooms_displayed, $start, $end);
 $entries = $events['allEntries'];
 $timed_entries = $events['timedEntries'];
 if ($dayview == 1) {
     echo '<span class="hiddenprint"><a href="day.php?day=' . $day . '&amp;month=' . $month . '&amp;year=' . $year . '&amp;area=' . $areaUrlString . '&amp;room=' . $roomUrlString . '">' . _h('Go to other dayview') . '</a><br></span>';
     /* ## START DISPLAYING! ## */
     echo '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="timetable">';
     echo '<tr><th width="1%" class="time3">&nbsp;</th>';
     $room_column_width = (int) (95 / mysql_num_rows($Q_room));
     foreach ($rooms_displayed as $room_id => $room) {
         echo '<th width="' . $room_column_width . '%" colspan="' . ($room_max_col[$room_id] + 1) . '" class="time3">' . htmlspecialchars($room['room_name']) . '</th>';
     }
     echo '</tr>' . chr(10);
     $maxstart = mktime(0, 0, 0, $month, $day, $year);
     $maxend = mktime(23, 59, 59, $month, $day, $year);
     foreach ($entries as $t => $entry) {