From 508905cd94453b09cce02b1babace1da2b0e89e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 7 Dec 2007 09:12:14 +0000 Subject: [PATCH] add suppor for setting teletext rundown --- htmlui.c | 68 ++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 46 insertions(+), 22 deletions(-) diff --git a/htmlui.c b/htmlui.c index be72cdba..fa78a736 100644 --- a/htmlui.c +++ b/htmlui.c @@ -1433,15 +1433,21 @@ page_editchannel(http_connection_t *hc, const char *remain, void *opaque) ch->ch_tag); box_top(&tq, "box"); + tcp_qprintf(&tq, + "
%s
", + ch->ch_name); + box_bottom(&tq); + tcp_qprintf(&tq, "
"); + box_top(&tq, "box"); tcp_qprintf(&tq, "
" - "" - "
%s

" - "Channel group: " + "
" + "Channel group: " + "
" + "" ""); + + tcp_qprintf(&tq, ""); + + LIST_FOREACH(ch2, &channels, ch_global_link) { + if(ch2 == ch) + continue; + tcp_qprintf(&tq, "", ch2->ch_name); + } + tcp_qprintf(&tq, "

\r\n"); + + tcp_qprintf(&tq, + "
" + "Teletext rundown page: " + "
" + "" + "
", + ch->ch_teletext_rundown); + + tcp_qprintf(&tq, "

\r\n"); + + tcp_qprintf(&tq, "" "
Transports

" @@ -1495,23 +1532,7 @@ page_editchannel(http_connection_t *hc, const char *remain, void *opaque) } - tcp_qprintf(&tq, "

\r\n"); - - - tcp_qprintf(&tq, - "Merge with channel: " - ""); - + tcp_qprintf(&tq, "\r\n"); tcp_qprintf(&tq, "
"); box_bottom(&tq); @@ -1558,6 +1579,9 @@ page_updatechannel(http_connection_t *hc, const char *remain, void *opaque) } } + if((s = http_arg_get(&hc->hc_url_args, "ttrp")) != NULL) + ch->ch_teletext_rundown = atoi(s); + if((grp = http_arg_get(&hc->hc_url_args, "grp")) != NULL) { tcg = channel_group_find(grp, 1); channel_set_group(ch, tcg);