Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-search-history.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7         var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
8          $(document).ready(function() {
9                 // We show table ordered by descending dates by default
10                 // (so that the more recent query is shown first)
11                 $.tablesorter.defaults.sortList = [[0,1]];
12                 $(".historyt").tablesorter({
13                                                 widgets : ['zebra'],<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
14                         dateFormat: 'uk'<!-- /TMPL_IF -->
15                 });
16             });
17 //]]>
18
19 </script>
20 </head>
21 <body id="opac-search-history">
22 <!-- TMPL_IF NAME="OpacNav" -->
23 <div id="doc3" class="yui-t1">
24 <!-- TMPL_ELSIF NAME="loggedinusername" -->
25 <div id="doc3" class="yui-t1">
26 <!-- TMPL_ELSE -->
27 <div id="doc3" class="yui-t7">
28 <!-- /TMPL_IF -->
29    <div id="bd">
30 <!--TMPL_INCLUDE NAME="masthead.inc" -->
31
32         <div id="yui-main">
33 <div class="yui-b"><div class="yui-g">
34         <div id="searchhistory" class="container">
35         <h1>Search history</h1>
36         <!-- TMPL_IF NAME="recentSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form><!-- /TMPL_IF --><!-- /TMPL_IF -->
37
38             <!-- TMPL_IF NAME="recentSearches" -->
39             <table class="historyt">
40             <!-- TMPL_IF NAME="previousSearches" -->
41             <caption>Current session</caption>
42             <!-- /TMPL_IF -->
43                 <thead>
44                     <tr><th>Date</th><th>Search</th><th>Results</th></tr>
45                 </thead>
46                 <tbody>
47                     <!-- TMPL_LOOP NAME="recentSearches" -->
48                     <tr>
49                         <td><!-- TMPL_VAR NAME="time" --></td>
50                         <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" ESCAPE="html" -->"><!-- TMPL_VAR NAME="query_desc" ESCAPE="html" --></a></td>
51                         <td><!-- TMPL_VAR NAME="total" --></td>
52                     </tr>
53                     <!-- /TMPL_LOOP -->
54                 </tbody>
55             </table>
56             <!-- /TMPL_IF -->
57
58             <!-- TMPL_IF NAME="previousSearches" -->
59             <table class="historyt">
60             <caption>Previous sessions</caption>
61                 <thead>
62                     <tr><th>Date</th><th>Search</th><th>Results</th></tr>
63                 </thead>
64                 <tbody>
65                     <!-- TMPL_LOOP NAME="previousSearches" -->
66                     <tr>
67                         <td><!-- TMPL_VAR NAME="time" --></td>
68                         <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" ESCAPE="html" -->"><!-- TMPL_VAR NAME="query_desc" ESCAPE="html" --></a></td>
69                         <td><!-- TMPL_VAR NAME="total" --></td>
70                     </tr>
71                     <!-- /TMPL_LOOP -->
72                 </tbody>
73             </table>
74             <!-- /TMPL_IF -->
75
76 <!-- TMPL_IF NAME="recentSearches" --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><!-- TMPL_ELSE --><p>Your search history is empty.</p><!-- /TMPL_IF --><!-- /TMPL_IF -->
77
78      </div>
79      </div>
80      </div>
81      </div>
82
83 <!-- TMPL_IF NAME="OpacNav" -->
84 <div class="yui-b"><div id="leftmenus" class="container">
85 <!--TMPL_INCLUDE NAME="navigation.inc" -->
86 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
87 </div></div>
88 <!-- TMPL_ELSIF NAME="loggedinusername" -->
89 <div class="yui-b"><div id="leftmenus" class="container">
90 <!--TMPL_INCLUDE NAME="navigation.inc" -->
91 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
92 </div></div>
93 <!-- TMPL_ELSE -->
94 <!-- /TMPL_IF -->
95
96
97 </div>
98 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->