| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Mail Enable/Bin/NETWebMail/Mondo/lang/sys/Forms/CAL/ |
Upload File : |
<html>
<head>
<script src='../../../../../plugins/jquery/v3.6.0/jquery.min.js'></script>
<script src='../../../../../plugins/jquery/v3.6.0/jquery-ui.min.js'></script>
<link href='../../../../../plugins/fullcalendar-3.10.5/fullcalendar.min.css' rel='stylesheet' />
<script src='../../../../../plugins/fullcalendar-3.10.5/lib/moment.min.js'></script>
<script src='../../../../../plugins/fullcalendar-3.10.5/fullcalendar.min.js'></script>
<link href='../../../../../plugins/jquery/v3.6.0/themes/jquery-ui.min.css' rel='stylesheet' />
<style>
body {
margin: 0;
padding: 0;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;
}
#top, #calendar.fc-unthemed {
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#top {
background: #eee;
border-bottom: 1px solid #ddd;
padding: 0 10px;
line-height: 40px;
font-size: 12px;
color: #000;
}
#top select {
font: inherit; /* mock what Boostrap does, don't compete */
}
#top .selector {
display: inline-block;
margin-right: 10px;
}
#script-warning {
display: none;
background: #eee;
border-bottom: 1px solid #ddd;
padding: 0 10px;
line-height: 40px;
text-align: center;
font-weight: bold;
font-size: 12px;
color: red;
}
#loading {
/*display: none;*/
position: absolute;
top: 10px;
right: 10px;
}
#calendar {
margin: 9px auto;
padding: 0 10px;
}
td {
font-size: 12px;
font-family: Verdana,Arial,SansSerif;
text-align: justify;
}
.fc-event, .fc-event:hover {
color: black;
}
.fc-scroller {
-ms-scroll-chaining: none;
}
a, a:link, a:visited {
text-decoration: none;
}
.left {
float: left
}
.right {
float: right
}
.clear {
clear: both
}
.fc-view-container {
/*overflow-y:scroll;*/
}
.calApp_shell_table {
width: 100%;
}
.calApp_shell_table_inner {
width: 100%;
}
.selectedEvent {
background-color: blue;
}
</style>
</head>
<body>
<div id="calendar" style="margin:2px;"></div>
<script>
var libdoc = parent.window.parent;
//try to get the css style from the parent*/
var parentTheme = libdoc.getTopAppWindow().getThemeCSS($('body', parent.document));
$('body').css(parentTheme);
function getEventsURL() {
return '../../../../servlet/request.aspx?Cmd=LIST-EVENTS' + '&ShowMine=1' + '&ME_SID=' + libdoc.getTopAppWindow().readCookie('MailEnable-SessionId') + '&ME_VALIDATIONTOKEN=' + libdoc.getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'];
}
document.addEventListener('DOMContentLoaded', function () {
try {
var sDate = libdoc.getTopAppWindow().getParameterByName('Start', window.location.href);
var sEnd = libdoc.getTopAppWindow().getParameterByName('End', window.location.href);
var sLangId = libdoc.getTopAppWindow().getParameterByName('LocaleId', window.location.href);
var sallDay = libdoc.getTopAppWindow().getParameterByName('AllDay', window.location.href);
if (sLangId.length == 0) {
sLangId = 'en';
}
let m = moment(sDate, 'YYYYMMDDTHHmmssZ')
if (!m.isValid()) {
m = moment.utc();
}
var jqCal = $(document.getElementById('calendar'));
if (jqCal.length > 0) {
jqCal.fullCalendar({
defaultView: 'agendaDay', contentHeight: 200, events: getEventsURL(), defaultDate: m.format("YYYY-MM-DD"),
locale: sLangId,
scrollTime: m.format("HH:mm:ss")
});
let m2 = moment(sEnd, 'YYYYMMDDTHHmmssZ')
if (m.isValid() && m2.isValid()) {
jqCal.fullCalendar('renderEvent',{
title: 'Appointment Invite',
start: m.format("YYYY-MM-DDTHH:mm:ss"),
end: m2.format("YYYY-MM-DDTHH:mm:ss"),
allDay: ((sallDay=="1")?true:false)
},true);
}
else {
}
}
} catch (ex) { alert('exception:' + ex.message) }
});
</script>
</body>
</html>