Merge remote branch 'kc/new/bug_3072' into kcmaster
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-main.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="opac-main">
6 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
7    <div id="bd">
8 [% INCLUDE 'masthead.inc' %]
9
10         <div id="yui-main">
11
12         <div class="yui-b">
13                 [% IF ( opacuserlogin ) %]
14             [% IF ( loggedinusername ) %]
15                         <div class="yui-g">
16                         <div>
17                         [% ELSE %]
18                 <div class="yui-ge">
19                 <div class="yui-u first">
20     [% END %]
21         [% ELSE %]
22                 <div class="yui-g">
23                 <div>
24         [% END %]
25         
26         [% IF ( koha_news_count ) %]
27 <div id="news" class="container">
28     <table>
29     [% FOREACH koha_new IN koha_news %]
30     <tr><th>[% koha_new.title %]</th></tr>
31     <tr><td><p>[% koha_new.new %]</p>
32                 <p><i>(published on [% koha_new.newdate %])</i></p></td></tr>
33     [% END %]
34     </table>
35 </div>
36 [% END %]
37
38         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock" class="container">[% OpacMainUserBlock %]</div>[% END %]
39
40 </div>
41                 
42         [% IF ( opacuserlogin ) %]
43     [% UNLESS ( loggedinusername ) %]
44     [% UNLESS ( casAuthentication ) %]
45     <div class="yui-u">
46         <div id="login" class="container">
47         <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
48     <input type="hidden" name="koha_login_context" value="opac" />
49         <fieldset class="brief">
50                 <legend>Log in to Your Account:</legend>
51                 <ol>
52                 <li><label for="userid">Login:</label><input type="text" id="userid" size="10" name="userid" /></li>
53                 <li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
54                 </ol>    <fieldset class="action">
55          <input type="submit" value="Log In" class="submit" />
56          </fieldset></fieldset>
57         </form>
58         </div>
59          </div>
60     [% END %]
61     [% END %]
62         
63 [% END %]
64 </div>
65 </div>
66 </div>
67 [% IF ( OpacNav ) %]<div class="yui-b">
68 <div id="opacnav" class="container">
69 [% INCLUDE 'navigation.inc' %]
70 </div>
71 </div>[% END %]
72 </div>
73
74 [% INCLUDE 'opac-bottom.inc' %]