etranslate("Next"); ?> " /></a> <div class="title"> <span class="date"><?php printf("%s, %s %d, %d", weekday_name($wday), month_name($thismonth - 1), $thisday, $thisyear); ?> </span><br /> <span class="viewname"><?php echo $view_name; ?> </span> </div></div> <?php daily_matrix($date, $participants); ?> <br /> <!-- Hidden form for booking events --> <form action="edit_entry.php" method="post" name="schedule"> <input type="hidden" name="date" value=" <?php echo $thisyear . $thismonth . $thisday; ?> " /> <input type="hidden" name="defusers" value=" <?php echo implode(",", $participants); ?> " />
} elseif (empty($month)) { echo str_replace('XXX', translate('month'), $noXStr); exit; } elseif (empty($day)) { echo str_replace('XXX', translate('day'), $noXStr); exit; } print_header(array('js/availability.php/false/' . "{$month}/{$day}/{$year}/" . getGetValue('form')), '', 'onload="focus();"', true, false, true); $next_url = $prev_url = '?users=' . $users; $time = mktime(0, 0, 0, $month, $day, $year); $date = date('Ymd', $time); $next_url .= strftime('&year=%Y&month=%m&day=%d', $time + 86400); $prev_url .= strftime('&year=%Y&month=%m&day=%d', $time - 86400); $span = ($WORK_DAY_END_HOUR - $WORK_DAY_START_HOUR) * 3 + 1; $users = explode(',', $users); $nextStr = translate('Next'); $prevStr = translate('Previous'); echo ' <div style="width:99%;"> <a title="' . $prevStr . '" class="prev" href="' . $prev_url . '"><img src="images/leftarrow.gif" class="prev" alt="' . $prevStr . '" /></a> <a title="' . $nextStr . '" class="next" href="' . $next_url . '"><img src="images/rightarrow.gif" class="next" alt="' . $nextStr . '" /></a> <div class="title"> <span class="date">'; printf("%s, %s %d, %d", weekday_name(strftime("%w", $time)), month_name($month - 1), $day, $year); echo '</span><br /> </div> </div><br /> <form action="availability.php" method="post"> ' . daily_matrix($date, $users) . ' </form> ' . print_trailer(false, true, true);