-
Notifications
You must be signed in to change notification settings - Fork 0
/
liveagenda.php
125 lines (115 loc) · 4.3 KB
/
liveagenda.php
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PFS Meeting Broadcaster - Live Agenda Editor</title>
<link rel="stylesheet" type="text/css" href="css/view.css" media="all">
<script language="javascript" type="text/javascript">
<!--
var httpObject = null;
var link = "";
var timerID = 0;
// Get the HTTP Object
function getHTTPObject(){
if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
else if (window.XMLHttpRequest) return new XMLHttpRequest();
else {
alert("Your browser does not support AJAX.");
return null;
}
}
function setOutput(){
if(httpObject.readyState == 4){
var response = httpObject.responseText;
var objDiv = document.getElementById("result");
objDiv.innerHTML = response;
objDiv.scrollTop = objDiv.scrollHeight;
}
}
function setAll(){
if(httpObject.readyState == 4){
var response = httpObject.responseText;
var objDiv = document.getElementById("result");
objDiv.innerHTML = response;
objDiv.scrollTop = objDiv.scrollHeight;
}
}
function doAddItem(){
httpObject = getHTTPObject();
if (httpObject != null) {
link = "liveagenda_msg.php?mediaid=0&cmd=add&text="+encodeURIComponent(document.getElementById('newagendaitem').value);
httpObject.open("GET", link , true);
httpObject.onreadystatechange = setOutput;
httpObject.send(null);
document.getElementById('newagendaitem').value = "";
}
}
function doEdiItem(id,text){
document.getElementById('newagendaitem').value = text;
doDelItem(id);
}
function doDelItem(id){
httpObject = getHTTPObject();
if (httpObject != null) {
link = "liveagenda_msg.php?mediaid=0&cmd=del&textid="+id;
httpObject.open("GET", link , true);
httpObject.onreadystatechange = setOutput;
httpObject.send(null);
}
}
function doMarkItem(id){
httpObject = getHTTPObject();
if (httpObject != null) {
link = "liveagenda_msg.php?mediaid=0&cmd=mrk&textid="+id;
httpObject.open("GET", link , true);
httpObject.onreadystatechange = setOutput;
httpObject.send(null);
}
}
function doReload(){
httpObject = getHTTPObject();
if (httpObject != null) {
link = "liveagenda_msg.php?mediaid=0&cmd=get";
httpObject.open("GET", link , true);
httpObject.onreadystatechange = setOutput;
httpObject.send(null);
}
}
function UpdateTimer() {
doReload();
timerID = setTimeout("UpdateTimer()", 5000);
}
//-->
</script>
</head>
<body class="firefox" id="main_body" onload="UpdateTimer();">
<img id="top" src="images/top.png" alt="">
<div id="div_container">
<h1><a>Live Agenda Editor</a></h1>
<div class="appnitro">
<div class="div_description">
<h2>Live Agenda Editor</h2>
<p>Add/Delete Agenda Items for a Live Meeting Broadcast</p>
<p>Click "Mark" during a live broadcast to timestamp the agenda item and broadcast to the viewers</p>
</div>
<ul>
<div id="result" ></div>
<li id="li_4">
<label class="description" for="element_4">Enter New Agenda Item</label>
<div>
<textarea id="newagendaitem" name="newagendaitem" class="element textarea small"></textarea>
</div>
<p class="guidelines" id="guide_4"><small>Copy and Paste the agenda item into the box the click on the Add Item button</small></p>
</li>
<li class="buttons">
<button class="button_text" onclick="doAddItem();" >Add Item</button>
</li>
</ul>
</div>
<div id="footer">
<a href="http://www.playfullscreen.com/" >PlayFullScreen Internet Broadcasting Ltd.</a>
</div>
</div>
<img id="bottom" src="images/bottom.png" alt="">
</body>
</html>