123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?php
- $language_file = 'agenda';
- require_once dirname(__FILE__).'/../inc/global.inc.php';
- if(isset($_GET['id_session']))
- $_SESSION['id_session'] = Security::remove_XSS($_GET['id_session']);
- $DaysShort = api_get_week_days_short();
- $DaysLong = api_get_week_days_long();
- $MonthsLong = api_get_months_long();
- @ $iso_lang = Database :: get_language_isocode($language_interface);
- if (empty ($iso_lang) )
- {
-
- $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>
- <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>">
- <style type="text/css">
- @import "<?php echo api_get_path(WEB_CODE_PATH); ?>css/<?php echo api_get_setting('stylesheets'); ?>/default.css";
- .data_table th
- {
- font-size: 10px;
- }
- .data_table td
- {
- font-size: 10px;
- width: 25px;
- height: 25px;
- }
- table.calendar td
- {
- background-color:
- text-align: center;
- }
- .data_table td.selected
- {
- border: 1px solid
- background-color:
- }
- .data_table td a
- {
- width: 25px;
- height: 25px;
- text-decoration: none;
- }
- .data_table td a:hover
- {
- background-color:
- }
- </style>
- <script type="text/javascript">
-
- 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;
-
- 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;
- }
- }
- }
- </script>
- <script type="text/javascript" src="tbl_change.js"></script>
- <script type="text/javascript">
- var month_names = new Array(
- <?php
- foreach($MonthsLong as $index => $month)
- {
- echo '"'.$month.'",';
- }
- ?>
- "");
- var day_names = new Array(
- <?php
- foreach($DaysShort as $index => $day)
- {
- echo '"'.$day.'",';
- }
- ?>
- "");
- </script>
- </head>
- <body onLoad="javascript: initCalendar();">
- <div id="calendar_data"></div>
- <div id="clock_data"></div>
- </body>
- </html>
|