aboutsummaryrefslogtreecommitdiffstats
path: root/functions/event.js
blob: 012a32cd39e02d40e58cec44ea76fbacffecbfa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<script language="JavaScript" type="text/javascript">
<!--
function openEventWindow(num) {
	// populate the hidden form
	var data = document.popup_data[num];
	var form = document.forms.eventPopupForm;
	form.elements.date.value = data.date;
	form.elements.time.value = data.time;
	form.elements.uid.value = data.uid;
	form.elements.cpath.value = data.cpath;
	form.elements.event_data.value = data.event_data;
	
	// open a new window
	var w = window.open('', 'Popup', 'scrollbars=yes,width=550,height=350');
	form.target = 'Popup';
	form.submit();
}

function EventData(date, time, uid, cpath, event_data) {
	this.date = date;
	this.time = time;
	this.uid = uid;
	this.cpath = cpath;
	this.event_data = event_data;
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--

function openTodoInfo(num) {	
	// populate the hidden form
	var data = document.todo_popup_data[num];
	var form = document.forms.todoPopupForm;

	form.elements.todo_data.value = data.todo_data;

	// open a new window
	var w = window.open('', 'Popup', 'scrollbars=yes,width=550,height=350');
	form.target = 'Popup';
	form.submit();
}
function TodoData(todo_data,todo_text) {
	this.todo_data = todo_data;
	this.todo_text = todo_text;
}

document.popup_data = new Array();
document.todo_popup_data = new Array();
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--

function submitform(form, value) {
	// Parse value.
	var values = decodeURI(value).split("&");
	var temp = values[0].split("?", 2);
	var action = temp[0];
	values[0] = temp[1];

	form.setAttribute("action", action);

	// Stuff the hidden form fields.
	for (var i = 0; i < values.length; i++) {
		temp = values[i].split("=", 2);
		form.elements.namedItem(temp[0]).value = temp[1];
	}

	// Clear the select+option value.
	var select = form.elements.namedItem("action")
	select.options[select.selectedIndex].value = "";

	form.submit();
}
//-->
</script>

© 2014-2024 Faster IT GmbH | imprint | privacy policy