summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--index.html25
-rwxr-xr-xlistshows.cgi (renamed from listdrobpoxes.cgi)0
3 files changed, 19 insertions, 8 deletions
diff --git a/README b/README
index 3cd567e..91173dd 100644
--- a/README
+++ b/README
@@ -31,7 +31,7 @@ add the following to the virtualhost config:
Include /etc/rivendell/apache.conf
- <Location /listdrobpoxes.cgi>
+ <Location /listshows.cgi>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
diff --git a/index.html b/index.html
index 5b3d00d..5e7fbaf 100644
--- a/index.html
+++ b/index.html
@@ -42,6 +42,17 @@
$('#alertbox').html('<div class="alert alert-info"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
}
+ function updateShowsList(data, status, req) {
+ alert(data);
+ }
+
+ var shows_list = [];
+ function app_shows_init() {
+ shows_list = [];
+ data = { LOGIN_NAME: username, PASSWORD: token };
+ $.post("/listshows.cgi", data, updateShowsList, "xml")
+ }
+
function selectApp(app) {
switch(app) {
case "musicpools":
@@ -56,6 +67,7 @@
$('#app-musicpools').hide();
$('#nav-btn-musicpools').removeClass('active');
app = 'shows';
+ app_shows_init();
}
sessionStorage.setItem("app", app);
}
@@ -178,8 +190,7 @@
<div class="span10">
<form class="well form-inline">
<label class="control-label" for="select-dropbox"><h3>Sendung auswählen</h3></label>&nbsp;&nbsp;
- <select id="select-dropbox">
- <option>Democracy Now!</option>
+ <select id="show-selector">
</select>
</form>
</div>
@@ -192,22 +203,22 @@
</div>
<div class="row-fluid">
<div class="span12">
- <h2 id="show-title">Democracy Now!</h2>
+ <h2 id="show-title"></h2>
</div>
</div>
<div class="row-fluid" id="show-details">
<div class="span2">&nbsp;</div>
<div class="span2">
- <strong>Tag:</strong> <span id="show-day">Dienstag</span>
+ <strong>Tag:</strong> <span id="show-dow"></span>
</div>
<div class="span2">
- <strong>Rythmus:</strong> <span id="show-rhythm">wöchentlich</span>
+ <strong>Rythmus:</strong> <span id="show-rhythm"></span>
</div>
<div class="span2">
- <strong>Startzeit:</strong> <span id="show-starttime">00:00</span>
+ <strong>Startzeit:</strong> <span id="show-starttime"></span>
</div>
<div class="span2">
- <strong>Dauer:</strong> <span id="show-length">30 Minuten</span>
+ <strong>Dauer:</strong> <span id="show-length"></span>
</div>
<div class="span2">&nbsp;</div>
</div>
diff --git a/listdrobpoxes.cgi b/listshows.cgi
index 7ef0bcf..7ef0bcf 100755
--- a/listdrobpoxes.cgi
+++ b/listshows.cgi