From: Andreas Ă–man Date: Wed, 16 Apr 2008 20:55:01 +0000 (+0000) Subject: Improve channel editor slightly X-Git-Tag: 2.12~1123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efdd39aa0612183cc3e894a75bc1102a56c446cf;p=thirdparty%2Ftvheadend.git Improve channel editor slightly --- diff --git a/ajaxui/ajaxui_config_channels.c b/ajaxui/ajaxui_config_channels.c index 7d8b8534e..62d5a5d40 100644 --- a/ajaxui/ajaxui_config_channels.c +++ b/ajaxui/ajaxui_config_channels.c @@ -45,8 +45,10 @@ ajax_chgroup_build(tcp_queue_t *tq, th_channel_group_t *tcg) tcp_qprintf(tq, "
" "" + "onClick=\"$('cheditortab').innerHTML=''; " + "new Ajax.Updater('groupeditortab', " + "'/ajax/chgroup_editor/%d', " + "{method: 'get', evalScripts: true})\" >" "%s
", tcg->tcg_tag, tcg->tcg_name); @@ -172,7 +174,7 @@ ajax_config_channels_tab(http_connection_t *hc, http_reply_t *hr) tcp_queue_t *tq = &hr->hr_tq; th_channel_group_t *tcg; - tcp_qprintf(tq, "
"); + tcp_qprintf(tq, "
"); ajax_box_begin(tq, AJAX_BOX_SIDEBOX, "channelgroups", NULL, "Channel groups"); @@ -200,6 +202,9 @@ ajax_config_channels_tab(http_connection_t *hc, http_reply_t *hr) /** * Add new group */ + + tcp_qprintf(tq, "
"); + ajax_box_begin(tq, AJAX_BOX_BORDER, NULL, NULL, NULL); tcp_qprintf(tq, @@ -221,10 +226,12 @@ ajax_config_channels_tab(http_connection_t *hc, http_reply_t *hr) tcp_qprintf(tq, "
"); + "style=\"overflow: auto; float: left; width: 30%\">
"); + + tcp_qprintf(tq, + "
"); - tcp_qprintf(tq, "
"); http_output_html(hc, hr); return 0; } @@ -239,38 +246,169 @@ ajax_chgroup_editor(http_connection_t *hc, http_reply_t *hr, tcp_queue_t *tq = &hr->hr_tq; th_channel_t *ch; th_channel_group_t *tcg; + int rowcol = 1; + int disprows; if(remain == NULL || (tcg = channel_group_by_tag(atoi(remain))) == NULL) return HTTP_STATUS_BAD_REQUEST; + + + tcp_qprintf(tq, "\r\n"); + + ajax_box_begin(tq, AJAX_BOX_SIDEBOX, NULL, NULL, tcg->tcg_name); - tcp_qprintf(tq, ""); + tcp_qprintf(tq, "
\r\n"); - ajax_box_end(tq, AJAX_BOX_SIDEBOX); + tcp_qprintf(tq, + "
Commercial detection:
" + "
" + "
"); + tcp_qprintf(tq, "
"); + ajax_box_end(tq, AJAX_BOX_SIDEBOX); http_output_html(hc, hr); return 0; } @@ -285,4 +423,5 @@ ajax_config_channels_init(void) http_path_add("/ajax/chgroup_del" , NULL, ajax_chgroup_del); http_path_add("/ajax/chgroup_updateorder", NULL, ajax_chgroup_updateorder); http_path_add("/ajax/chgroup_editor", NULL, ajax_chgroup_editor); + http_path_add("/ajax/cheditor", NULL, ajax_cheditor); }