📄 calendar_popup.php
字号:
<?php// $Id: calendar_popup.php 10204 2006-11-26 20:46:53Z pcool $/*============================================================================== Dokeos - elearning and course management software Copyright (c) 2004-2005 Dokeos S.A. Copyright (c) Bart Mollet, Hogeschool Gent For a full list of contributors, see "credits.txt". The full license can be read in "license.txt". This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the GNU General Public License for more details. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium Mail: info@dokeos.com==============================================================================*/// including the relevant language file// name of the language file that needs to be included $language_file = 'agenda';// including the claroline global require ('../../../global.inc.php');// the variables for the days and the months// Defining the shorts for the days$DaysShort = array(get_lang("SundayShort"), get_lang("MondayShort"), get_lang("TuesdayShort"), get_lang("WednesdayShort"), get_lang("ThursdayShort"), get_lang("FridayShort"), get_lang("SaturdayShort")); // Defining the days of the week to allow translation of the days$DaysLong = array(get_lang("SundayLong"), get_lang("MondayLong"), get_lang("TuesdayLong"), get_lang("WednesdayLong"), get_lang("ThursdayLong"), get_lang("FridayLong"), get_lang("SaturdayLong")); // Defining the months of the year to allow translation of the months$MonthsLong = array(get_lang("JanuaryLong"), get_lang("FebruaryLong"), get_lang("MarchLong"), get_lang("AprilLong"), get_lang("MayLong"), get_lang("JuneLong"), get_lang("JulyLong"), get_lang("AugustLong"), get_lang("SeptemberLong"), get_lang("OctoberLong"), get_lang("NovemberLong"), get_lang("DecemberLong")); @ $iso_lang = Database :: get_language_isocode($language_interface);if (empty ($iso_lang) ){ //if there was no valid iso-code, use the english one $iso_lang = 'en';}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $iso_lang; ?>" lang="<?php echo $iso_lang; ?>"><head><title>Calendar</title><link rel="stylesheet" type="text/css" href="<?php echo api_get_path(WEB_CODE_PATH); ?>/css/default.css"/><style type="text/css">/*<![CDATA[*/table.calendar{ width: 100%; font-size: 11px; font-family: verdana, arial, helvetica, sans-serif;}table.calendar .monthyear{ background-color: #4171B5; text-align: center; color: #ffffff;}table.calendar .daynames{ background-color: #D3DFF1; text-align: center;}table.calendar td{ width: 25px; height: 25px; background-color: #f5f5f5; text-align: center;}table.calendar td.selected{ border: 1px solid #ff0000; background-color: #FFCECE;}table.calendar td a{ width: 25px; height: 25px; text-decoration: none;}table.calendar td a:hover{ background-color: #ffff00;}table.calendar .monthyear a{ text-align: center; color: #ffffff;}table.calendar .monthyear a:hover{ text-align: center; color: #ff0000; background-color: #ffff00;}/*]]>*/</style><script type="text/javascript">/* <![CDATA[ */ /* added 2004-06-10 by Michael Keck * we need this for Backwards-Compatibility and resolving problems * with non DOM browsers, which may have problems with css 2 (like NC 4) */ var isDOM = (typeof(document.getElementsByTagName) != 'undefined' && typeof(document.createElement) != 'undefined') ? 1 : 0; var isIE4 = (typeof(document.all) != 'undefined' && parseInt(navigator.appVersion) >= 4) ? 1 : 0; var isNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0; var capable = (isDOM || isIE4 || isNS4) ? 1 : 0; // Uggly fix for Opera and Konqueror 2.2 that are half DOM compliant if (capable) { if (typeof(window.opera) != 'undefined') { var browserName = ' ' + navigator.userAgent.toLowerCase(); if ((browserName.indexOf('konqueror 7') == 0)) { capable = 0; } } else if (typeof(navigator.userAgent) != 'undefined') { var browserName = ' ' + navigator.userAgent.toLowerCase(); if ((browserName.indexOf('konqueror') > 0) && (browserName.indexOf('konqueror/3') == 0)) { capable = 0; } } // end if... else if... } // end if/* ]]> */</script><script type="text/javascript" src="tbl_change.js.php"></script><script type="text/javascript">/* <![CDATA[ */var month_names = new Array(<?phpforeach($MonthsLong as $index => $month){ echo '"'.$month.'",';}?>"");var day_names = new Array(<?phpforeach($DaysShort as $index => $day){ echo '"'.$day.'",';}?>"");/* ]]> */</script></head><body onload="initCalendar();"><div id="calendar_data"></div><div id="clock_data"></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -