]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/pages/main.ttk
5ce1ad7ac340ed3e9cb46e013144c072ccab17cd
[working/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                 %]
14
15                 <frameset cols='100%'>
16
17                         <frame
18                                 style                   = "border:0px; overflow:auto" 
19                                 frameborder     = '0' 
20                                 scrolling       = 'yes'
21                                 name                    = 'appframe' 
22                                 id                              = 'appframe' 
23
24                                 [% 
25                                         # if sub_frame is specified, we copy over all cgi params to the target frame
26
27                                         IF sub_frame;
28                                                 "src='/opac/?";
29                                                 a1 = [];
30
31                                                 FOR p IN cgi.param;
32                                                         IF p != "sub_frame"; 
33                                                                 v = p _ "=" _ cgi.param(p);
34                                                                 a1.push(v);
35                                                         END;
36                                                 END;
37                                                 a1.join("&");
38                                                 "'";
39
40                                         ELSE; 
41                                 %]
42
43                                 src                     = '/opac/?target=[%- IF top_target; top_target; ELSE; "start";END; %]'
44
45                                 [% END; %] 
46                         />      
47
48                 </frameset>
49         
50         
51         </head>
52
53
54 </html>
55