Bug 8215 - Course Reserves
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-course-reserves.tt
1 [% USE AuthorisedValues %]
2
3 [% INCLUDE 'doc-head-open.inc' %]
4 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="opac-main">
8 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
9    <div id="bd">
10 [% INCLUDE 'masthead.inc' %]
11
12
13 <div id="doc2" class="yui-t7">
14         <div id="yui-main">
15             <div class="yui-b">
16                 <div class="yui-g">
17
18                     <div id="search-toolbar">
19                         <form id="search_courses_form">
20                             <input type="text" name="search_on" id="search_on" />
21                             <input type="submit" value="Search" />
22                         </form>
23                     </div><!-- /toolbar -->
24
25                     <h1>Courses</h1>
26                     <table id="course_reserves_table">
27                         <thead>
28                             <tr>
29                                 <th>Name</th>
30                                 <th>Dept.</th>
31                                 <th>Course #</th>
32                                 <th>Section</th>
33                                 <th>Term</th>
34                                 <th>Instructors</th>
35                                 <th>Notes</th>
36                             </tr>
37                         </thead>
38
39                         <tbody>
40                             [% FOREACH c IN courses %]
41                                 <tr>
42                                     <td><a href="opac-course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
43                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) %]</td>
44                                     <td>[% c.course_number %]</td>
45                                     <td>[% c.section %]</td>
46                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
47                                     <td>
48                                       [% FOREACH i IN c.instructors %]
49                                           <div class="instructor">[% i.firstname %] [% i.surname %]</div>
50                                       [% END %]
51                                     </td>
52                                     <td>[% c.public_note %]</td>
53                             [% END %]
54                         </tbody>
55                     </table>
56                 </div>
57             </div>
58         </div>
59 </div>
60
61
62 [% INCLUDE 'opac-bottom.inc' %]