]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/pages/opac_start.ttk
d71cd3c9813054cc1a43c92c3826fd1103784217
[Evergreen.git] / Open-ILS / src / templates / opac / pages / opac_start.ttk
1
2 [%
3         WRAPPER html/html;
4
5                 WRAPPER html/head title='Evergreen';
6                         INCLUDE opac/pages/chunks/css_includes.ttk;
7                 END;
8
9                 WRAPPER html/body id='body'  onload='pageInit();';
10
11                         WRAPPER html/center; 
12                                 lines(2);
13                                 img( src='/images/main_logo.jpg');      
14                                 lines(4);
15                                 PROCESS front_search; 
16                         END;
17
18                         INCLUDE opac/pages/chunks/org_tree.ttk;
19
20                 END; 
21         END; 
22
23         # ---------------------------------------------------------------------------
24         # main search form
25         # ---------------------------------------------------------------------------
26         BLOCK front_search;
27
28                 WRAPPER html/div id='front_search_form';
29
30                         "Now searching ";
31                         lines(1);
32 #WRAPPER html/div;
33                                 span(id='now_searching_cell', class='front_now_searching');
34 #                       END;
35
36                         lines(2);
37
38                         input( type='hidden', name='target', value='mr_result');
39                         input( type='hidden', name='page', value='0');
40         
41                         input(id='mr_search_query',  name='mr_search_query',  
42                                         type='textarea', size='54');
43                 
44                         space(1);
45                         PROCESS stype_selector;
46
47                         lines(2);
48                         input(type='submit', id='mr_search_button', 
49                                         value="Search", onclick='alert("help");' );
50
51
52                         space(3);
53                         PROCESS location_input;
54
55                         space(3);
56                         PROCESS search_range;
57                         
58                 
59                 END;
60         END;
61
62
63         # ---------------------------------------------------------------------------
64         # search type
65         # ---------------------------------------------------------------------------
66         BLOCK stype_selector;
67                 WRAPPER html/select name='mr_search_type' id='mr_search_type';
68                         option(value='title',   selected='selected', content="Title");
69                         option(value='author',  content='Author');
70                         option(value='subject', content='Subject');
71                         option(value='keyword', content='Keyword');
72                 END;
73         END;
74
75
76         # ---------------------------------------------------------------------------
77         # location button
78         # ---------------------------------------------------------------------------
79         BLOCK location_input;
80                 input( type='submit', name='tree_button', value="Location", id='location_select_button'); 
81         END;
82
83
84         # ---------------------------------------------------------------------------
85         # search range
86         # ---------------------------------------------------------------------------
87         BLOCK search_range;
88                 "Search Range";
89                 space(2);
90                 WRAPPER html/select 
91                         name='search_range_select' 
92                         id='search_range_select'
93                         onchange='logicNode.globalSearchDepth = this.options[this.selectedIndex].value;';
94                 END;
95         END;
96
97 %]
98
99 <script language='javascript'>
100         var obj = document.getElementById("location_select_button");
101         obj.onclick = function(evt) {
102                 evt = (evt) ? evt : ((window.event) ? event : null);
103                 var target = (evt.target) ? evt.target : evt.srcElement;
104                 if(evt)
105                         globalPage.locationTree.toggle(target);
106         }
107 </script>
108
109
110
111
112         
113
114