forked from extern/egroupware
45 lines
2.0 KiB
HTML
Executable File
45 lines
2.0 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 6.0::19990601::extensions to HTML 4.0//EN" "hmpro6.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Calendar Window</TITLE>
|
|
<link rel="stylesheet" type="text/css" media="all" href="../modules/calendar/calendar-blue.css" title="winter" />
|
|
<script type="text/javascript" src="../modules/calendar/calendar.js"></script>
|
|
<SCRIPT>
|
|
var xDT = parent.xDT;
|
|
var ppath = "../../";
|
|
if (xDT.resPath().match(/:\/\//)) ppath = "";
|
|
document.write('<link rel="stylesheet" type="text/css" href="' + ppath + xDT.resPath() + 'skins/' + xDT.dSkin() + '/' + xDT.dSkin() + '.css' + '">');
|
|
document.onselectstart=document.ondragstart=function(){return false;}
|
|
if (xDT.language() == "de") document.write('<sc' + 'ript type="text/javascript" src="../modules/calendar/calendar-de.js"></scr' + 'ipt>');
|
|
else document.write('<sc' + 'ript type="text/javascript" src="../modules/calendar/calendar-us.js"></scr' + 'ipt>');
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" background="../modules/calendar/xdtlogo.jpg">
|
|
<!--<div id="calspace" style="position: absolute; left: 0px; top: 0px;></div>-->
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
|
|
<tr>
|
|
<td id="calspace" style="border: 1px inset #000000" width="100%" height="100%" align="left" valign="top">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script>
|
|
function onCalDate(cal,date) {
|
|
if (! cal.dateClicked) return;
|
|
if (xDT.dateFormat()) { // us date
|
|
var df = date.split(".");
|
|
if (df.length == 3) {var tmp = df[1]; df[1] = df[0]; df[0] = tmp; date = df.join('/'); }
|
|
}
|
|
date = date.replace(/^0+/,"");
|
|
xDT.quit('cDate',date);
|
|
setTimeout("xDT.closeWindow('" + xDT.window.name(window.name) + "')",100);
|
|
}
|
|
function onCalClose(cal) {
|
|
cal.hide();
|
|
setTimeout("xDT.closeWindow('" + xDT.window.name(window.name) + "')",100);
|
|
}
|
|
var cal = new Calendar(1,'',onCalDate,onCalClose);
|
|
cal.create(document.getElementById('calspace'));
|
|
cal.show();
|
|
</script>
|
|
</BODY>
|
|
</HTML> |