HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/modules/calendar/testing.php
<?php

?><!DOCTYPE html PUBLIC "-//Interspire//ITE XHTML Extension//EN" "http://www.anonym.to/?http://www.interspire.com/DTDs/ITEv1.1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title class='tplWebsiteTitle'>IWP5</title>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<script type="text/javascript" src="../../javascript/jquery/jquery.js"></script>
		<script type="text/javascript" src="javascript/calendar.js"></script>
		<script type="text/javascript" src="javascript/calendar.views.month.js"></script>
		<link rel="stylesheet" type="text/css" href="templates/styles.css" />
		<script type="text/javascript">//<!--
			calendar = null;
			jQuery(function($){
				$('#module-calendar-test').load('http://10.1.1.138/iwp5_branch/calendar-remote/template/view_month.html', function(){
					new IWP_Module_Calendar('test', {
							onOccurrenceClick: function (event, occurrence) {
								alert(occurrence.start.format('yyyy mm dd'));
							}
						});
				});

				return;
				calendar = IWP_Module_Calendar.instances[0];
				//calendar.setDate(new Date(2009, 2, 1));

				$('#test-today-plus').click(function(){
					var now = calendar.getToday();
					now.addDate(1);
					calendar.setToday(now);
					return false;
				});

				$('#test-today-minus').click(function(){
					var now = calendar.getToday();
					now.addDate(-1);
					calendar.setToday(now);
					return false;
				});

				$('#test-date-plus').click(function(){
					var now = calendar.getDate();
					now.setMonth(now.getMonth() + 1);
					calendar.setDate(now);
					return false;
				});

				$('#test-date-minus').click(function(){
					var now = calendar.getDate();
					now.setMonth(now.getMonth() - 1);
					calendar.setDate(now);
					return false;
				});

				$('.test-fdow-click').click(function(){
					var fdow = calendar.getFirstDayOfWeek();
					if ($(this).text() == '+') {
						fdow += 1;
					} else {
						fdow -= 1;
					}

					fdow = fdow % 7;
					if (fdow < 0) {
						fdow = 6;
					}
					calendar.setFirstDayOfWeek(fdow);
				});

				window.setInterval(function(){
					$('#test-today').text(calendar.getToday().format('yyyy-mm-dd'));
					$('#test-date').text(calendar.getDate().format('yyyy-mm-dd'));
					$('#test-fdow').text(calendar.getFirstDayOfWeek());
				}, 200);
			});
		//--></script>
		<style type="text/css">/*<!--*/
		/*-->*/</style>
	</head>
	<body>
		<ul>
			<li>Today <a href="#" id="test-today-plus">+</a> <a href="#" id="test-today-minus">-</a> 1 day: <span id="test-today"></span></li>
			<li>View Date <a href="#" id="test-date-plus">+</a> <a href="#" id="test-date-minus">-</a>: <span id="test-date"></span></li>
			<li>First Day of Week <a href="#" class="test-fdow-click">+</a> <a href="#" class="test-fdow-click">-</a>: <span id="test-fdow"></span> (view only, does not affect weekly byday / yearly byweek recurrences)</li>
		</ul>
		<div id="module-calendar-test">

		</div>
	</body>
</html>