




<br />
<b>Deprecated</b>:  Creation of dynamic property Google\Site_Kit\Core\Authentication\Setup::$proxy_support_link_url is deprecated in <b>/sys-data/WebData/projects/epsilon/wp-content/plugins/google-site-kit/includes/Core/Authentication/Setup.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>:  Undefined variable $projectid in <b>/sys-data/WebData/projects/epsilon/wp-content/plugins/bi-toolkit-addEvent/bi-toolkit-addEvent.php</b> on line <b>34</b><br />
	
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Event</title>
</head>
<body>
<h2>Create Event</h2>
<form id="eventForm">
    <label for="title">Event Title:</label>
    <input type="text" id="title"  style="width:60%" required><br><br>
    <label for="start">Start Date:</label>
    <input type="datetime-local" id="start" required><br><br>
    <label for="end">End Date:</label>
    <input type="datetime-local" id="end" required><br><br>
    <label for="info">Info:</label>
    <textarea id="info" rows="4" cols="50"></textarea><br><br>
    <label for="link" >Link:</label>
    <input type="text" id="link"  style="width:60%"><br><br>
    <label for="recurrence">Recurrence Pattern:</label>
    <select id="recurrence">
        <option value="none">None</option>
        <option value="daily">Daily</option>
        <option value="weekly">Weekly</option>
        <option value="monthly">Monthly</option>
        <!-- Add more recurrence options as needed -->
    </select><br><br>
    <input type="hidden" id="projectid" value="<br />
<b>Warning</b>:  Undefined variable $projectid in <b>/sys-data/WebData/projects/epsilon/wp-content/plugins/bi-toolkit-addEvent/bi-toolkit-addEvent.php</b> on line <b>84</b><br />
">
    <button class="button" type="button" onclick="createEventForCalendar()">Create Event</button>
</form>

<script>
function createEventForCalendar() {
    const title = document.getElementById("title").value;
    const start = document.getElementById("start").value;
    const end = document.getElementById("end").value;
    const info = document.getElementById("info").value;
    const link = document.getElementById("link").value;
    const recurrence = document.getElementById("recurrence").value;
    const projectid = document.getElementById("projectid").value;

    // Construct the event object
    const eventData = {
        title: title,
        start: start,
        end: end,
        info: info,
        link: link,
        recurrence_pattern: recurrence,
        project_id : projectid
    };

    // Send the event data to the backend for storage
    const xhr = new XMLHttpRequest();
    xhr.open('POST', 'https://epsilon.cs.ucy.ac.cy/wp-content/plugins/bi-toolkit-addEvent/storeEvent.php', true);
    xhr.setRequestHeader('Content-Type', 'application/json');
    xhr.onreadystatechange = function() {
        if (xhr.readyState === XMLHttpRequest.DONE) {
            if (xhr.status === 200) {
                console.log('Event stored successfully:', xhr.responseText);
                window.location.href = "https://epsilon.cs.ucy.ac.cy/index.php/bi-toolkit-project-kick-off/?projectid=" + projectid;
            } else {
                console.error('Failed to store event:', xhr.responseText);
            }
        }
    };
    xhr.send(JSON.stringify(eventData));
}
</script>
</body>
</html>



	{"id":496,"date":"2024-03-29T09:43:57","date_gmt":"2024-03-29T09:43:57","guid":{"rendered":"https:\/\/epsilon.cs.ucy.ac.cy\/?page_id=496"},"modified":"2024-03-29T15:06:25","modified_gmt":"2024-03-29T15:06:25","slug":"bi-toolkit-arrange-meetings","status":"publish","type":"page","link":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/bi-toolkit-arrange-meetings\/","title":{"rendered":"BI Toolkit-Arrange Meetings"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"_links":{"self":[{"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/pages\/496"}],"collection":[{"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":3,"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/pages\/496\/revisions"}],"predecessor-version":[{"id":510,"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/pages\/496\/revisions\/510"}],"wp:attachment":[{"href":"https:\/\/epsilon.cs.ucy.ac.cy\/index.php\/wp-json\/wp\/v2\/media?parent=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}