Merge remote-tracking branch 'origin/new/bug_6858'
[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 id="loggedin" class="yui-g">
16              <div>
17          [% ELSE %]
18              <div id="notloggedin" class="yui-ge">
19              <div class="yui-u first">
20          [% END %]
21      [% ELSE %]
22          <div id="notloggedin" 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 ( display_daily_quote && daily_quote ) %]
39     <div id="daily-quote" class="container"><h1>Quote of the Day</h1><div><span id="daily-quote-text">[% daily_quote.text %]</span><span id="daily-quote-sep"> ~ </span><span id="daily-quote-source">[% daily_quote.source %]</span></div></div>
40 [% END %]
41
42         [% IF ( OpacMainUserBlock ) %]<div id="opacmainuserblock" class="container">[% OpacMainUserBlock %]</div>[% END %]
43
44 </div>
45                 
46         [% IF ( opacuserlogin ) %]
47     [% UNLESS ( loggedinusername ) %]
48     [% UNLESS ( casAuthentication ) %]
49     <div class="yui-u">
50         <div id="login" class="container">
51         <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth">
52     <input type="hidden" name="koha_login_context" value="opac" />
53         <fieldset class="brief">
54         <legend>Log in to your account:</legend>
55                 <ol>
56                 <li><label for="userid">Login:</label><input type="text" id="userid" size="10" name="userid" /></li>
57                 <li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
58                 </ol>    <fieldset class="action">
59          <input type="submit" value="Log In" class="submit" />
60          </fieldset></fieldset>
61         </form>
62         </div>
63          </div>
64     [% END %]
65     [% END %]
66         
67 [% END %]
68 </div>
69 </div>
70 </div>
71 [% IF ( OpacNav ) %]<div class="yui-b">
72 <div id="opacnav" class="container">
73 [% INCLUDE 'navigation.inc' %]
74 </div>
75 </div>[% END %]
76 </div>
77
78 [% INCLUDE 'opac-bottom.inc' %]