add channel groups at tail

This commit is contained in:
Andreas Öman 2007-12-02 16:33:36 +00:00
parent ce7bad8bba
commit ec373fe163
2 changed files with 15 additions and 14 deletions

View file

@ -69,7 +69,7 @@ channel_group_find(const char *name, int create)
TAILQ_INIT(&tcg->tcg_channels);
TAILQ_INSERT_HEAD(&all_channel_groups, tcg, tcg_global_link);
TAILQ_INSERT_TAIL(&all_channel_groups, tcg, tcg_global_link);
return tcg;
}

View file

@ -1255,19 +1255,6 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque)
top_menu(hc, &tq);
tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
box_top(&tq, "box");
tcp_qprintf(&tq, "<div class=\"content3\">"
"<input type=\"text\" name=\"newgrpname\"> "
"<input type=\"submit\" name=\"newgrp\""
" value=\"Add new group\">"
"</div>");
box_bottom(&tq);
tcp_qprintf(&tq, "</form><br>\r\n");
TAILQ_FOREACH(tcg, &all_channel_groups, tcg_global_link) {
tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
@ -1295,6 +1282,20 @@ page_chgroups(http_connection_t *hc, const char *remain, void *opaque)
}
tcp_qprintf(&tq, "<form method=\"get\" action=\"/chgrp\">");
box_top(&tq, "box");
tcp_qprintf(&tq, "<div class=\"content3\">"
"<input type=\"text\" name=\"newgrpname\"> "
"<input type=\"submit\" name=\"newgrp\""
" value=\"Add new group\">"
"</div>");
box_bottom(&tq);
tcp_qprintf(&tq, "</form><br>\r\n");
http_output_queue(hc, &tq, "text/html; charset=UTF-8");
return 0;
}