]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
show number of entries found, and the number entries displayed (if we cut)
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 13 Feb 2008 07:37:39 +0000 (07:37 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 13 Feb 2008 07:37:39 +0000 (07:37 +0000)
htmlui.c

index 0d3639e9c34f708e119aaf0a6177475425b4ce0c..e7ceec27c739f1f0df80d2c980ff24420948b281 100644 (file)
--- a/htmlui.c
+++ b/htmlui.c
@@ -1787,7 +1787,7 @@ page_search(http_connection_t *hc, const char *remain, void *opaque)
 
   tcp_qprintf(&tq, "</div>");
   box_bottom(&tq);
-  tcp_qprintf(&tq, "</form><br>");
+  tcp_qprintf(&tq, "<br>");
 
 
   /* output search result, if we've done a query */
@@ -1813,15 +1813,26 @@ page_search(http_connection_t *hc, const char *remain, void *opaque)
                  "<b></center>");
     } else {
     
+      tcp_qprintf(&tq,
+                 "<div>"
+                 "<span style=\"text-align: left; width: 630px; "
+                 "float: left;font-weight:bold\"> %d entries found", c);
+
       ev = alloca(c * sizeof(event_t *));
       c = 0;
       LIST_FOREACH(e, &events, e_tmp_link)
        ev[c++] = e;
       qsort(ev, c, sizeof(event_t *), eventcmp);
 
-      if(c > 100)
+      if(c > 100) {
        c = 100;
-  
+       tcp_qprintf(&tq,
+                   ", %d entries shown", c);
+      }
+
+      tcp_qprintf(&tq,
+                 "</span></div>");
+
       memset(&day, -1, sizeof(struct tm));
       for(k = 0; k < c; k++) {
        e = ev[k];
@@ -1841,6 +1852,7 @@ page_search(http_connection_t *hc, const char *remain, void *opaque)
     epg_unlock();
     tcp_qprintf(&tq, "</div>");
     box_bottom(&tq);
+    tcp_qprintf(&tq, "</form>");
   }