-
Notifications
You must be signed in to change notification settings - Fork 6
/
sopac-user-holds-list.tpl.php
61 lines (61 loc) · 1.65 KB
/
sopac-user-holds-list.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php print $required_hidden_fields ?>
<table cellspacing="0" class="sticky-enabled sticky-table" id="patroninfo">
<thead class="tableHeader-processed">
<tr>
<th>Cancel</th>
<th>Title</th>
<th class="hide-narrow">Format</th>
<th class="hide-narrow">Author</th>
<th>Status</th>
<th class="hide-narrow">Pickup Location</th>
<?php if ($freezes_enabled) { ?>
<th>Freeze</th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php
$zebra = 'even';
foreach ($holds as $hold) {
$zebra = $zebra == 'odd' ? 'even' : 'odd';
?>
<tr class="<?php print $zebra ?>">
<td><?php print $hold['cancel'] ?></td>
<td><?php print $hold['title_link'] ?></td>
<td class="hide-narrow"><?php print $hold['format'] ?></td>
<td class="hide-narrow"><?php print $hold['author'] ?></td>
<td class="<?php print $hold['ready'] ?>"><?php print $hold['status'] ?></td>
<td class="hide-narrow"><?php print $hold['pickup'] ?></td>
<?php if ($freezes_enabled) { ?>
<td><?php print $hold['freeze'] ?></td>
<?php } ?>
</tr>
<?php
}
if ($see_all) {
?>
<tr class="odd">
<?php if ($freezes_enabled) { ?>
<td colspan="7" align="right">
<?php } else { ?>
<td colspan="6" align="right">
<?php } ?>
<?php print $see_all['#value']; ?>
</td>
</tr>
<?php
}
?>
<tr class="profile_button <?php print $zebra; ?>">
<?php if ($freezes_enabled) { ?>
<td colspan="7">
<?php } else { ?>
<td colspan="6">
<?php } ?>
<?php print $submit; ?>
<?php print $towish; ?>
</td>
</tr>
</tbody>
</table>
<p><?php print $lockers['#value']; ?></p>