/[webpac]/trunk/template_html/results.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/template_html/results.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 659 - (show annotations)
Tue Feb 15 21:48:16 2005 UTC (17 years, 4 months ago) by dpavlin
File MIME type: text/html
File size: 3513 byte(s)
added sort by any combination of swish-e fields which are defined by
PropertyNames in swish_isis.conf. This allowed adition of links which show
search results sorted by time, author and title then author or autor than
titme combination.

Any combination of fields for sorting can be specified (separated by spaces),
with optional asc(ending) or desc(ending) order.

1 <TMPL_VAR NAME="PAGER_JAVASCRIPT">
2
3 <form method=post>
4 <input type=submit value="Natrag na pretra¾ivanje" class="navigacijaDISABLED">
5
6 <!--
7 <input type=submit value="Prija¹nja pretra¾ivanja" class="navigacija">
8 <input type=submit value="Korisnièke mape" class="navigacija" >
9 <input type=submit value="Korisnièke postavke" class="navigacija">
10
11 -->
12
13 </form>
14
15
16 <h2>Rezultati pretra¾ivanja</h2>
17
18 <form>
19
20 <TMPL_IF NAME="hits">
21 <p>Na upit <TMPL_VAR search> pronaðeno je <TMPL_VAR hits> rezultata ...
22 </p>
23
24 <p>Sortiraj prema:
25 <a href="<TMPL_VAR NAME="url_params">&sortby=personalname_swish">autoru</a>,
26 <a href="<TMPL_VAR NAME="url_params">&sortby=titleandresponsibility_swish">naslovu</a>,
27 <a href="<TMPL_VAR NAME="url_params">&sortby=personalname_swish titleandresponsibility_swish">autoru i naslovu</a>,
28 <a href="<TMPL_VAR NAME="url_params">&sortby=titleandresponsibility_swish personalname_swish">naslovu i autoru</a>
29 </p>
30
31 <TABLE BORDER=1 WIDTH="100%">
32 <TR><TD class="results" colspan=2>
33
34 <!-- FIXME
35 <pre>
36 last_PAGER_offset: <TMPL_VAR last_PAGER_offset>
37 PAGER_offset: <TMPL_VAR PAGER_offset>
38 </pre>
39 -->
40
41 <TMPL_IF NAME="full">
42
43 <input type=submit value="Natrag na listu rezultata">
44 <input type="hidden" name="PAGER_offset" value="<TMPL_VAR last_PAGER_offset>" />
45
46 </td></tr>
47
48 <TMPL_LOOP NAME="PAGER_DATA_LIST">
49 <TR>
50 <td class="results"><TMPL_VAR NAME="nr"></td>
51 <td class="results">
52 <!--
53 <TMPL_VAR NAME="headline">
54 <i><TMPL_VAR NAME="path"></i>
55 <b><TMPL_VAR NAME="rank"></b>
56 -->
57 </td>
58 </tr>
59 <tr>
60 <td colspan="2">
61 <table class="results" border=0> <TMPL_VAR NAME="html"> </table>
62 </td>
63 </TR>
64 </TMPL_LOOP>
65
66 <TMPL_ELSE>
67
68 <input nowrap type=button value="+" onClick="do_checkbox('path',1)">
69 <input nowrap type=button value="-" onClick="do_checkbox('path',0)">
70 <input nowrap type=button value="&#177;" onClick="do_checkbox('path',-1)">
71 <input nowrap type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(<TMPL_VAR PAGER_offset>);">
72 <input type="hidden" name="last_PAGER_offset" value="<TMPL_VAR PAGER_offset>" />
73
74 </td></tr>
75
76 <TMPL_LOOP NAME="PAGER_DATA_LIST">
77 <TR>
78 <td class="results" nowrap width="1%"><input type=checkbox name="path" value="<TMPL_VAR NAME="path">"><TMPL_VAR NAME="nr"></td>
79 <td class="results" width="99%">
80 <a href="<TMPL_VAR NAME="url_params">&path=<TMPL_VAR NAME="path" escape="URL">" class="headline"><TMPL_VAR NAME="headline"></a>
81 <!--
82 <i><TMPL_VAR NAME="path"></i>
83 <b><TMPL_VAR NAME="rank"></b>
84 -->
85 </td>
86 </TR>
87 </TMPL_LOOP>
88
89 </TMPL_IF>
90
91 <tr><td colspan=2>
92 <TMPL_IF NAME="full">
93 <input type=submit value="Natrag na listu rezultata">
94 <TMPL_ELSE>
95 <input nowrap type=button value="+" onClick="do_checkbox('path',1)">
96 <input nowrap type=button value="-" onClick="do_checkbox('path',0)">
97 <input nowrap type=button value="&#177;" onClick="do_checkbox('path',-1)">
98 <input type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(<TMPL_VAR last_PAGER_offset>);">
99 </TMPL_IF>
100 </td></tr>
101 <TR><TD COLSPAN=2 ALIGN=CENTER class="navigacija">
102 <TMPL_VAR NAME="PAGER_PREV">
103 <TMPL_VAR NAME="PAGER_JUMP">
104 <TMPL_VAR NAME="PAGER_NEXT">
105 </TD></TR>
106 </TABLE>
107 <TMPL_VAR NAME="PAGER_HIDDEN">
108 </FORM>
109
110 <TMPL_ELSE>
111 <!-- no results -->
112 <p>Na upit <TMPL_VAR search> nema rezultata ...</p>
113 </TMPL_IF>

Properties

Name Value
cvs2svn:cvs-rev 1.15

  ViewVC Help
Powered by ViewVC 1.1.26