From: Dobrica Pavlinusic Date: Mon, 17 Nov 2003 20:46:18 +0000 (+0000) Subject: added template example (which include do_checkbox JavaScript) X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=6735c37a296c3d532f425b66a266c9d5321e9d73;hp=57928dbcf700561cfe9249435199dbdcedce58c2;p=webpac added template example (which include do_checkbox JavaScript) added select all/none/toggle at results page (usage of do_checkbox.js) git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@156 13eb9ef6-21d5-0310-b721-a9d68796d827 --- diff --git a/TODO b/TODO index 0ca09e3..b62a889 100644 --- a/TODO +++ b/TODO @@ -49,3 +49,6 @@ should be better way...) - implement "master" template in which all other pages will be included. Good for integration of webpac into existing portal design + +- drop index tables which are not used anymore (at end of indexing) + e.g. webpac-hidra link_900 diff --git a/public_html/do_checkbox.js b/public_html/do_checkbox.js new file mode 100644 index 0000000..607fe8d --- /dev/null +++ b/public_html/do_checkbox.js @@ -0,0 +1,13 @@ +// usage: onClick="return do_checkbox('name',[1|0|-1];") +// 1 = select all, 0 = select none, -1 = toggle selection +function do_checkbox(name,what) { + var boxes = document.getElementsByName(name); + for (var i = 0; boxes && i < boxes.length; i++) { + switch (what) { + case 1: boxes[i].checked = true; break; + case 0: boxes[i].checked = false; break; + case -1: boxes[i].checked = !boxes[i].checked; break; + } + } + return false; // don't scroll +} diff --git a/public_html/template.html b/public_html/template.html new file mode 100644 index 0000000..d7aabe0 --- /dev/null +++ b/public_html/template.html @@ -0,0 +1,13 @@ + + +FF WebPAC + + + + + + +##webpac## + + + diff --git a/template_html/index_res.html b/template_html/index_res.html index 660a881..516eee2 100644 --- a/template_html/index_res.html +++ b/template_html/index_res.html @@ -1,12 +1,4 @@ - - -FF WebPAC - - - - -

Knji¾nice FF-a

@@ -47,7 +39,3 @@ - - - - diff --git a/template_html/results.html b/template_html/results.html index 29f3f7b..6eadfd6 100644 --- a/template_html/results.html +++ b/template_html/results.html @@ -1,12 +1,4 @@ - - -FF WebPAC - - - - -

Knji¾nice FF-a

@@ -65,6 +57,9 @@ PAGER_offset: + + + @@ -89,6 +84,9 @@ PAGER_offset: + + + @@ -100,7 +98,3 @@ PAGER_offset: - - - - diff --git a/template_html/search.html b/template_html/search.html index ba7c0a1..567c1e5 100644 --- a/template_html/search.html +++ b/template_html/search.html @@ -1,10 +1,3 @@ - - -FF WebPAC - - - - @@ -189,6 +182,10 @@ dragocjene va @@ -289,6 +286,3 @@ dragocjene va - - -
Knji¾nice FF-a
Vrsta graðe:   +
+ + + - + ±
@@ -220,7 +217,7 @@ dragocjene va + Psihologija or Sociologija or Sredi¹nja"> sve knji¾nice dru¹tvenih znanosti