From 080e5f36b5e23ec08a66b9fd0a4ba2cc9ca9a64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 21 Nov 2007 11:02:51 +0000 Subject: [PATCH] add subscribers list --- htmlui.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/htmlui.c b/htmlui.c index a0d6219f..ad7e6922 100644 --- a/htmlui.c +++ b/htmlui.c @@ -785,6 +785,7 @@ page_status(http_connection_t *hc, const char *remain, void *opaque) tcp_queue_t tq; int simple = is_client_simple(hc); th_dvb_adapter_t *tda; + th_subscription_t *s; th_transport_t *t; th_dvb_mux_instance_t *tdmi; const char *txt; @@ -892,7 +893,7 @@ page_status(http_connection_t *hc, const char *remain, void *opaque) tcp_qprintf(&tq, "
"); box_top(&tq, "box"); tcp_qprintf(&tq, "
"); - tcp_qprintf(&tq, "space for a rent"); + tcp_qprintf(&tq, "Active transports"); tcp_qprintf(&tq, "
"); box_bottom(&tq); tcp_qprintf(&tq, "
"); @@ -901,7 +902,34 @@ page_status(http_connection_t *hc, const char *remain, void *opaque) tcp_qprintf(&tq, "
"); box_top(&tq, "box"); tcp_qprintf(&tq, "
"); - tcp_qprintf(&tq, "space for a rent"); + tcp_qprintf(&tq, "Subscriptions
"); + + LIST_FOREACH(s, &subscriptions, ths_global_link) { + tcp_qprintf(&tq, + "
" + "%s" + "", + s->ths_title); + + tcp_qprintf(&tq, + "" + "%s" + "
", + s->ths_channel->ch_name); + + if((t = s->ths_transport) == NULL) { + tcp_qprintf(&tq, + "No transport available
"); + } else { + tcp_qprintf(&tq, + "Using transport \"%s\"
", + t->tht_name); + } + } + + tcp_qprintf(&tq, "
"); box_bottom(&tq); tcp_qprintf(&tq, "
");