skolplattformen-backup/libs/api-hjarntorget/lib/fake/calendars.ts

35 lines
34 KiB
TypeScript

import { Response } from '@skolplattformen/api';
/* eslint-disable no-useless-escape */
export const calendars = () => ({
"url": "https://hjarntorget.goteborg.se/pp/system/calendar/cal_events.jsp",
"headers": {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
"cookie": "REMOVED"
},
"status": 200,
"statusText": "200",
"text": () => Promise.resolve("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">\n<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n<title>The PING PONG Calendar</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/pp/ppstyle.css?release/21.10.5\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/pp/lookAndFeel/standard/css/tooltip.css?release/21.10.5\" >\n<link rel=\"stylesheet\" media='print' type=\"text/css\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/print.css?release/21.10.5\">\n\n\n<script type=\"text/javascript\">function setupNav() {\n if(top.ppfnav && top.ppfnav.loaded) {\n top.ppfnav.document.nav.pointerButton(5, 'active', '/pp/system/calendar/calendar.jsp', 'ppfmain');\n top.ppfnav.document.nav.pointerButton(6, 'blocked', '', '');\n top.ppfnav.document.nav.pointerButton(7, 'blocked', '', '');\n top.ppfnav.document.nav.pointerButton(8, 'blocked', '', '');\n top.ppfnav.document.nav.cleanAdditionalPanel();\n top.ppfnav.document.nav.additionalButton(19, 'active', 'helpid=calendar_events', '_self', 5)\n } else {\n setTimeout(\"setupNav()\", 250);\n }\n}\nsetupNav();\n</script>\n<base href=\"https://hjarntorget.goteborg.se:443/\" />\n\n<script type=\"text/javascript\" src=\"/pp/core/js/prototype.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/scriptaculous/effects.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/core.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/startScripts.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/core_ext.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/speling.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/autoresize-text-element.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/lazyload.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/lookAndFeel/skins/hjarntorget/js/custom.js?release/21.10.5\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/standard/css/tooltip.css?release/21.10.5\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/images.jsp?release/21.10.5&amp;hash=-703407216\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/style.css?release/21.10.5\" />\n<!--[if lte IE 8]><link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/standard/css/ie_fixes.css?release/21.10.5\" />\n<![endif]--><!--[if IE 7]><style type=\"text/css\" media=\"screen, speech\">@import url(\"/pp/lookAndFeel/standard/css/IE7xFixes.css?release/21.10.5\");</style>\n<![endif]--><!--[if lte IE 6]><style type=\"text/css\" media=\"screen, speech\">@import url(\"/pp/lookAndFeel/standard/css/IE6xFixes.css?release/21.10.5\");</style>\n<![endif]--><link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/print.css?release/21.10.5\" />\n\n<script type=\"text/javascript\" src=\"/pp/system/ppcore.js?release/21.10.5\"></script>\n<script type=\"text/javascript\">\n\t\tfunction goBack() {\n\t\t\tlocation.href = '/pp/system/calendar/calendar.jsp';\n\t\t}\n\t\tfunction doShow() {\n\t\t\tdocument.forms.events.submit();\n\t\t}\n\t\tfunction sort_by(order_by) {\n\t\t\tvar form = document.forms.events;\n\t\t\tform.order_by.value = order_by;\n\t\t\tform.submit();\n\t\t}\n\t\tfunction viewEvent(uniqueEventId) {\n\t\t\tPP.util.Dialog.open({\n\t\t\t\turl : '/calendarEventView.do?eventId=' + uniqueEventId\n\t\t\t\t\t\t+ '&tile=true&view=list'\n\t\t\t\t, dimensions : {width: '600px', height: null} });\nreturn false;\n}\n\t\taddStartupFunction(function() {\n\t\t\tif (top == window && $(\"theRSButton\")) {\n\t\t\t\t$(\"theRSButton\").removeClassName(\"hide\");\n\t\t\t\t$(\"theRSButton\").show();\n\t\t\t}\n\t\t});\n\t\tdocument.observe(\"dom:loaded\", function() {\n\t\t\t$$('input.datePicker[type=text]').each(function (field) {\n\t\t\t\tPE.Ui.Dp.create(field, { lang: 'en'});\n\t\t\t});\n\t\t});\n</script>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n</head>\n<body onload=\"defaultOnLoad()\" class=\"calendar-events-body\">\n\t<div id=\"calendar\">\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\n\t\n\n\n\n\t\t<ul class=\"calendarTabContainer\"><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=day\" class=\"tabLink\">Day view</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=week\" class=\"tabLink\">Week view</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=month\" class=\"tabLink\">Month view</a></li><li class=\"tab activeTab\"><a href=\"/pp/system/calendar/cal_events.jsp\" class=\"tabLink\">Events</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/cal_todos.jsp\" class=\"tabLink\">Tasks</a></li></ul>\n\n\t\t<form action=\"/pp/system/calendar/cal_events.jsp\" method=\"post\" name=\"events\">\n\t\t\t<input type=\"hidden\" name=\"order_by\" value=\"start_date\" />\n\t\t\t<div class=\"calendarPageContainer\">\n\t\t\t\t<h1>Make a selection</h1>\n\n\t\t\t\t<p>Here you get an overview of your calendars. Choose from which calendars you wish to see events. Choose if you want to search for a word. Click <i>Show</i> to see the result.</p>\n\t\t\t\t<table cellpadding=\"4\" class=\"cal-cellpadding-3\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign=\"top\">Show calendar events for the checked calendars<br />\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle=\"width: 300px; height: 100px; overflow: auto; border: 1px solid #666;\">\n\t\t\t\t\t\t\t\t<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td><input type=\"checkbox\" class=\"checkbox\" name=\"show_cal_ids\" value=\"14241345\" id=\"cb0\"></td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb0\"><span class=\"dynamic-data\">138JÄTS Provschema år 8</span></label></td>\n</tr></table>\n<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td>removed checkbox</td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb1\"><span class=\"dynamic-data\">removed</span></label></td>\n</tr></table>\n<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td>removed checkbox</td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb2\"><span class=\"dynamic-data\">PARENT NAME</span></label></td>\n</tr></table>\n\n\t\t\t\t\t\t\t</div></td>\n\t\t\t\t\t\t<td valign=\"top\">\n\n\t\t\t\t\t\t\t<table cellpadding=\"3\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><input type=\"radio\" class=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"mode\" value=\"separate\" id=\"mode_sep\"\n\t\t\t\t\t\t\t\t\t\t\tchecked /> <label\n\t\t\t\t\t\t\t\t\t\tfor=\"mode_sep\">Group the events per calendar</label>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><input type=\"radio\" class=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"mode\" value=\"combined\" id=\"mode_comb\"\n\t\t\t\t\t\t\t\t\t\t\t /> <label\n\t\t\t\t\t\t\t\t\t\tfor=\"mode_comb\">Don't group</label>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td align=\"right\">From - to:</td>\n\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"datePicker\" name=\"filter_start_date\" size=\"10\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"2021-11-09\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"datePicker\" name=\"filter_end_date\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"10\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"2021-12-09\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td align=\"right\">Search for</td>\n\t\t\t\t\t\t\t\t\t<td><input type=\"text\" name=\"search_for\" size=\"30\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"\"></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"button-set\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"doShow()\" value=\"Show\" />\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"goBack()\" value=\"Back\" />\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"openHelp('calendar_events')\" value=\"Help\" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</div>\n\n\t\t\t<div class=\"box\" aria-labelledby=\"b10466b5-b215-4ffe-a20f-1d0d7962872b\"><div class=\"box-header clearfix\"><div class=\"box-header-inner\"><h2 id=b10466b5-b215-4ffe-a20f-1d0d7962872b> Calendar events</h2></div></div><div class=\"box-body clearfix\" role=\"group\">\n\n\t\t\t\t\n\t\t\t\t<p>\n\t\t\t\t\t<i> No events was found \n\t\t\t\t\t</i>\n\t\t\t\t</p>\n\t\t\t\t\n\n\t\t\t</div><div class=\"box-foot-image\"></div></div>\n\t\t</form>\n\t</div>\n</body>\n</html>\n\n\n")
}) as any as Response
export const calendar_14241345 = () => ({
"url": "https://hjarntorget.goteborg.se/pp/system/calendar/cal_events.jsp?order_by=start_date&show_cal_ids=14241345&mode=separate&filter_start_date=2021-11-09&filter_end_date=2021-12-09&search_for=",
"headers": {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
"cookie": "REMOVED"
},
"status": 200,
"statusText": "200",
"json": null,
"ok": true,
"text": () => {
const now = new Date()
const dateYearMonth = `${now.getFullYear()}-${now.getMonth() + 1}`
const nextMonthDate = new Date(now.getFullYear(), now.getMonth() + 1, 1) // Should roll over to new year...
const nextMonth = `${nextMonthDate.getFullYear()}-${nextMonthDate.getMonth() + 1}`
const result = `
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">\n<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n<title>The PING PONG Calendar</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/pp/ppstyle.css?release/21.10.5\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/pp/lookAndFeel/standard/css/tooltip.css?release/21.10.5\" >\n<link rel=\"stylesheet\" media='print' type=\"text/css\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/print.css?release/21.10.5\">\n\n\n<script type=\"text/javascript\">function setupNav() {\n if(top.ppfnav && top.ppfnav.loaded) {\n top.ppfnav.document.nav.pointerButton(5, 'active', '/pp/system/calendar/calendar.jsp', 'ppfmain');\n top.ppfnav.document.nav.pointerButton(6, 'blocked', '', '');\n top.ppfnav.document.nav.pointerButton(7, 'blocked', '', '');\n top.ppfnav.document.nav.pointerButton(8, 'blocked', '', '');\n top.ppfnav.document.nav.cleanAdditionalPanel();\n top.ppfnav.document.nav.additionalButton(19, 'active', 'helpid=calendar_events', '_self', 5)\n } else {\n setTimeout(\"setupNav()\", 250);\n }\n}\nsetupNav();\n</script>\n<base href=\"https://hjarntorget.goteborg.se:443/\" />\n\n<script type=\"text/javascript\" src=\"/pp/core/js/prototype.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/scriptaculous/effects.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/core.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/startScripts.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/core_ext.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/speling.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/autoresize-text-element.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/core/js/lazyload.js?release/21.10.5\"></script>\n<script type=\"text/javascript\" src=\"/pp/lookAndFeel/skins/hjarntorget/js/custom.js?release/21.10.5\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/standard/css/tooltip.css?release/21.10.5\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/images.jsp?release/21.10.5&amp;hash=-703407216\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/style.css?release/21.10.5\" />\n<!--[if lte IE 8]><link rel=\"stylesheet\" type=\"text/css\" media=\"screen, speech\" href=\"/pp/lookAndFeel/standard/css/ie_fixes.css?release/21.10.5\" />\n<![endif]--><!--[if IE 7]><style type=\"text/css\" media=\"screen, speech\">@import url(\"/pp/lookAndFeel/standard/css/IE7xFixes.css?release/21.10.5\");</style>\n<![endif]--><!--[if lte IE 6]><style type=\"text/css\" media=\"screen, speech\">@import url(\"/pp/lookAndFeel/standard/css/IE6xFixes.css?release/21.10.5\");</style>\n<![endif]--><link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"/pp/lookAndFeel/skins/hjarntorget/css/print.css?release/21.10.5\" />\n\n<script type=\"text/javascript\" src=\"/pp/system/ppcore.js?release/21.10.5\"></script>\n<script type=\"text/javascript\">\n\t\tfunction goBack() {\n\t\t\tlocation.href = '/pp/system/calendar/calendar.jsp';\n\t\t}\n\t\tfunction doShow() {\n\t\t\tdocument.forms.events.submit();\n\t\t}\n\t\tfunction sort_by(order_by) {\n\t\t\tvar form = document.forms.events;\n\t\t\tform.order_by.value = order_by;\n\t\t\tform.submit();\n\t\t}\n\t\tfunction viewEvent(uniqueEventId) {\n\t\t\tPP.util.Dialog.open({\n\t\t\t\turl : '/calendarEventView.do?eventId=' + uniqueEventId\n\t\t\t\t\t\t+ '&tile=true&view=list'\n\t\t\t\t, dimensions : {width: '600px', height: null} });\nreturn false;\n}\n\t\taddStartupFunction(function() {\n\t\t\tif (top == window && $(\"theRSButton\")) {\n\t\t\t\t$(\"theRSButton\").removeClassName(\"hide\");\n\t\t\t\t$(\"theRSButton\").show();\n\t\t\t}\n\t\t});\n\t\tdocument.observe(\"dom:loaded\", function() {\n\t\t\t$$('input.datePicker[type=text]').each(function (field) {\n\t\t\t\tPE.Ui.Dp.create(field, { lang: 'en'});\n\t\t\t});\n\t\t});\n</script>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n</head>\n<body onload=\"defaultOnLoad()\" class=\"calendar-events-body\">\n\t<div id=\"calendar\">\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\n\t\n\n\n\n\t\t<ul class=\"calendarTabContainer\"><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=day\" class=\"tabLink\">Day view</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=week\" class=\"tabLink\">Week view</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/calendar.jsp?view=month\" class=\"tabLink\">Month view</a></li><li class=\"tab activeTab\"><a href=\"/pp/system/calendar/cal_events.jsp\" class=\"tabLink\">Events</a></li><li class=\"tab\"><a href=\"/pp/system/calendar/cal_todos.jsp\" class=\"tabLink\">Tasks</a></li></ul>\n\n\t\t<form action=\"/pp/system/calendar/cal_events.jsp\" method=\"post\" name=\"events\">\n\t\t\t<input type=\"hidden\" name=\"order_by\" value=\"start_date\" />\n\t\t\t<div class=\"calendarPageContainer\">\n\t\t\t\t<h1>Make a selection</h1>\n\n\t\t\t\t<p>Here you get an overview of your calendars. Choose from which calendars you wish to see events. Choose if you want to search for a word. Click <i>Show</i> to see the result.</p>\n\t\t\t\t<table cellpadding=\"4\" class=\"cal-cellpadding-3\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign=\"top\">Show calendar events for the checked calendars<br />\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle=\"width: 300px; height: 100px; overflow: auto; border: 1px solid #666;\">\n\t\t\t\t\t\t\t\t<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td>removed checkbox</td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb0\"><span class=\"dynamic-data\">138JÄTS Provschema år 8</span></label></td>\n</tr></table>\n<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td>removed checkbox</td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb1\"><span class=\"dynamic-data\">139SS27F Avdelning Gul</span></label></td>\n</tr></table>\n<table cellpadding=\"1\" cellspacing=\"0\"><tr>\n<td>removed checkbox</td><td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td><label for=\"cb2\"><span class=\"dynamic-data\">PARENT NAME</span></label></td>\n</tr></table>\n\n\t\t\t\t\t\t\t</div></td>\n\t\t\t\t\t\t<td valign=\"top\">\n\n\t\t\t\t\t\t\t<table cellpadding=\"3\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><input type=\"radio\" class=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"mode\" value=\"separate\" id=\"mode_sep\"\n\t\t\t\t\t\t\t\t\t\t\tchecked /> <label\n\t\t\t\t\t\t\t\t\t\tfor=\"mode_sep\">Group the events per calendar</label>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><input type=\"radio\" class=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"mode\" value=\"combined\" id=\"mode_comb\"\n\t\t\t\t\t\t\t\t\t\t\t /> <label\n\t\t\t\t\t\t\t\t\t\tfor=\"mode_comb\">Don't group</label>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td align=\"right\">From - to:</td>\n\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"datePicker\" name=\"filter_start_date\" size=\"10\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"${dateYearMonth}-09\">\n\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"datePicker\" name=\"filter_end_date\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"10\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"${dateYearMonth}-09\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td align=\"right\">Search for</td>\n\t\t\t\t\t\t\t\t\t<td><input type=\"text\" name=\"search_for\" size=\"30\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"\"></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"button-set\">\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"doShow()\" value=\"Show\" />\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"goBack()\" value=\"Back\" />\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button\" onclick=\"openHelp('calendar_events')\" value=\"Help\" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</div>\n\n\t\t\t<div class=\"box\" aria-labelledby=\"c2c444d2-e24b-4e08-81a6-83215007128c\"><div class=\"box-header clearfix\"><div class=\"box-header-inner\"><h2 id=c2c444d2-e24b-4e08-81a6-83215007128c> Calendar events</h2></div></div><div class=\"box-body clearfix\" role=\"group\">\n\n\t\t\t\t\n\n\t\t\t\t<table cellpadding=\"3\" cellspacing=\"0\" class=\"default-table\">\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t<a class=\"underlined\" href=\"javascript:sort_by('title')\">Title</a>\n\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t<b>Dates</b>\n\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t<b>Times</b>\n\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t<tr style=\"\"><td style=\"\" colspan=\"7\"><b style=\"color:#333\">138JÄTS Provschema år 8</b></td></tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37919464:1');\"><span class=\"dynamic-data\">Prov/komplettering franska </span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37919464:1');\">${dateYearMonth}-01</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37919464:1');\">13:00-14:00</a></td>\n<td nowrap align=\"right\"></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37919464:1')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:11');\"><span class=\"dynamic-data\">Tyska läxförhör</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:11');\">${dateYearMonth}-01</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:11');\">13:00-13:30</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37145372:11')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:10');\"><span class=\"dynamic-data\">Läxa i franska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:10');\">${dateYearMonth}-03</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:10');\">09:40-10:20</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37216111:10')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37212375:1');\"><span class=\"dynamic-data\">Spanskaprov Repasamos 1- 4</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37212375:1');\">${dateYearMonth}-03</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37212375:1');\">10:00-11:00</a></td>\n<td nowrap align=\"right\"></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37212375:1')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:12');\"><span class=\"dynamic-data\">Tyska läxförhör</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:12');\">${dateYearMonth}-08</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:12');\">13:00-13:30</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37145372:12')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:11');\"><span class=\"dynamic-data\">Läxa i franska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:11');\">${dateYearMonth}-10</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:11');\">09:40-10:20</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37216111:11')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37917470:1');\"><span class=\"dynamic-data\">Deadline engelska - Postcard from Great Britain</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37917470:1');\">${dateYearMonth}-11</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37917470:1');\">15:00-16:00</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_alarm.gif\" width=\"13\" height=\"13\" alt=\"The event has alarm\" class=\"icon-alarm\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37917470:1')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:13');\"><span class=\"dynamic-data\">Läxa engelska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:13');\">${dateYearMonth}-14</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:13');\">08:00-09:00</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('36966167:13')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:13');\"><span class=\"dynamic-data\">Tyska läxförhör</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:13');\">${dateYearMonth}-15</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37145372:13');\">13:00-13:30</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37145372:13')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:12');\"><span class=\"dynamic-data\">Läxa i franska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:12');\">${dateYearMonth}-17</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:12');\">09:40-10:20</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37216111:12')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:14');\"><span class=\"dynamic-data\">Läxa engelska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:14');\">${dateYearMonth}-19</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:14');\">08:00-09:00</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('36966167:14')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37769442:1');\"><span class=\"dynamic-data\">Prov franska åk 7</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37769442:1');\">${dateYearMonth}-20</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37769442:1');\">12:00-13:00</a></td>\n<td nowrap align=\"right\"></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37769442:1')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"odd\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:13');\"><span class=\"dynamic-data\">Läxa i franska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:13');\">${dateYearMonth}-22</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('37216111:13');\">09:40-10:20</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('37216111:13')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n<tr class=\"even\">\n<td><div style=\"border: 1px solid #666; margin-left:3px; margin-right:3px; background-color: #94ea7b; width:10px; height:10px;\"><img src=\"/nill.png\" width=\"10\" height=\"10\" border=\"0\" alt=\"\" /></div></td>\n<td>\n</td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:15');\"><span class=\"dynamic-data\">Läxa engelska</span></a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:15');\">${nextMonth}-01</a></td>\n<td><a href=\"#\" onclick=\"return viewEvent('36966167:15');\">08:00-09:00</a></td>\n<td nowrap align=\"right\"><img src=\"/pp/lookAndFeel/standard/../../system/images/icon_repeat.gif\" width=\"11\" height=\"11\" alt=\"The event is repeated\" class=\"icon-repeat\" /></td>\n<td nowrap align=\"right\"><a href=\"#\" onclick=\"return viewEvent('36966167:15')\"><img src=\"/pp/lookAndFeel/skins/hjarntorget/icons/info.png\" border=\"0\" hspace=\"3\" style=\"margin:0 3px\" /></a></td>\n</tr>\n\n\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\n\t\t\t\t\n\n\t\t\t</div><div class=\"box-foot-image\"></div></div>\n\t\t</form>\n\t</div>\n</body>\n</html>\n\n\n
`
return Promise.resolve(result)
}
}) as any as Response