]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/pages/main.ttk
more webby goodness
[Evergreen.git] / Open-ILS / src / templates / opac / pages / main.ttk
1 [% PROCESS opac/pages/chunks/javascript.ttk %] 
2 [%# PROCESS gives us the blocks defined in javascript.ttk %]
3
4 <html>
5         <head>
6                 <title>Evergreen</title>
7
8                 [% INCLUDE ALL_JS; %]
9
10                 [% 
11                         top_target      = cgi.param("top_target"); 
12                         sub_frame       = cgi.param("sub_frame");
13                         location                = cgi.param("location");
14                 %]
15
16                 <frameset cols='100%'>
17
18                         <frame
19                                 style                   = "border:0px; overflow:auto" 
20                                 frameborder     = '0' 
21                                 scrolling       = 'yes'
22                                 name                    = 'appframe' 
23                                 id                              = 'appframe' 
24
25                                 [% 
26                                         # if sub_frame is specified, we copy over all cgi params to the target frame
27
28                                         IF sub_frame;
29                                                 "src='/opac/?";
30                                                 a1 = [];
31
32                                                 FOR p IN cgi.param;
33                                                         IF p != "sub_frame"; 
34                                                                 v = p _ "=" _ cgi.param(p);
35                                                                 a1.push(v);
36                                                         END;
37                                                 END;
38                                                 a1.join("&");
39                                                 "'";
40
41                                         ELSE; 
42                                 %]
43
44                                 src                     = '/opac/?target=[%- IF top_target; top_target; ELSE; "start";END; %]
45                                                                                 [%- IF location; "&location=" _ location; END %]'
46
47                                 [% END; %] 
48                         />      
49
50                 </frameset>
51         
52         
53         </head>
54
55
56 </html>
57