This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
/
index.phtml
77 lines (60 loc) · 2.17 KB
/
index.phtml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
*
* Barbossa - A Web-Frontend to manage Bareos
*
* @link http://github.com/fbergkemper/barbossa for the canonical source repository
* @copyright Copyright (c) 2013-2014 dass-IT GmbH (http://www.dass-it.de/)
* @license GNU Affero General Public License (http://www.gnu.org/licenses/)
* @author Frank Bergkemper
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$title = 'Storage';
$this->headTitle($title);
?>
<h3 class="text-muted"><?php echo $title; ?></h3>
<hr />
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<table class="table table-striped table-bordered" style="font-size: 9pt;">
<tr>
<th>ID</th>
<th>Name</th>
<th>Autochanger</th>
</tr>
<?php foreach($storages as $storage) : ?>
<tr>
<td><a href="<?php echo $this->url('storage', array('action'=>'details', 'id'=>$storage->storageid)); ?>"><?php echo $this->escapeHtml($storage->storageid); ?></a></td>
<td><a href="<?php echo $this->url('storage', array('action'=>'details', 'id'=>$storage->storageid)); ?>"><?php echo $this->escapeHtml($storage->name); ?></a></td>
<td>
<?php if($storage->autochanger > 0) : ?>
<span class="glyphicon glyphicon-list-alt"></span>
<a href="<?php echo $this->url('storage', array('action'=>'autochanger', 'id'=>$storage->storageid)); ?>" title="<?php echo $this->escapeHtml("View slots"); ?>">
<?php echo $this->escapeHtml("View slots"); ?>
</a>
<?php else : ?>
<?php echo $this->escapeHtml("-"); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
</div>
</div>