public function getCalendar($year = false, $month = false, $user = false) { $system = System::getInstance(); if (!$year) { $year = $this->year; } if (!$month) { $month = $this->month; } if (!$user) { $user = $this->user; } $first_of_month = gmmktime(0, 0, 0, $month, 1, $year); list($year, $month_name) = explode(',', gmstrftime('%Y,%B', $first_of_month)); $html = "<h1 class='title'>" . __(strtoupper(htmlentities(ucfirst($month_name)))) . " " . $year . "</h1>"; $html .= generate_work_calendar($year, $month, array(), 1, NULL, $system->getConfig('first_day_week'), "", $user); return $html; }
$params['input_id'] = 'text-id_username'; $params['input_name'] = 'id'; $params['return'] = false; $params['return_help'] = false; $params['input_value'] = $id; user_print_autocomplete_input($params); echo " "; print_submit_button (__('Show'), 'show_btn', false, 'class="next sub"'); echo "</form>"; echo "</td>"; } echo "</tr><tr><td colspan=3 style='padding-bottom: 20px;'>"; // Generate calendar echo generate_work_calendar ($year, $month, $days_f, 3, NULL, 1, "", $id); echo "</td></tr>"; echo "</table>"; ?> <script type="text/javascript" src="include/languages/date_<?php echo $config['language_code']; ?>.js"></script> <script type="text/javascript" src="include/js/jquery.ui.autocomplete.js"></script> <script type="text/javascript" src="include/js/integria_date.js"></script> <script type="text/javascript"> // Datepicker add_datepicker ("#text-start_date", null); $(document).ready (function () {