3
* Copyright (c) 2008 Zivios, LLC.
5
* This file is part of Zivios.
7
* Zivios is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
12
* Zivios is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with Zivios. If not, see <http://www.gnu.org/licenses/>.
20
* @package mod_openafs
21
* @copyright Copyright (c) 2008 Zivios, LLC. (http://www.zivios.org)
22
* @license http://www.zivios.org/legal/license
23
* @version $Id: listvolumes.phtml 919 2008-08-25 11:45:23Z fkhan $
24
* @lastchangeddate $LastChangedDate: 2008-08-25 17:45:23 +0600 (Mon, 25 Aug 2008) $
28
<style type="text/css">
39
font: 10px/22px Verdana, Arial, Helvetica, sans-serif;
41
background-color: #fafafa;
42
border: 1px #ccc solid;
43
border-collapse: collapse;
47
table.afsvols td.header {
48
border-bottom: 2px solid #ccc;
49
border-left: 1px solid #ccc;
50
background-color: #e5e5e5;
52
font: 10px/22px Verdana, Arial, Helvetica, sans-serif;
59
border-bottom: 1px solid #ccc;
60
font: 10px/22px Verdana, Arial, Helvetica, sans-serif;
62
background-color: #f5f5f5;
67
table.afsvols td.switch {
68
background-color: #e7e7e7;
69
border-left: 1px solid #ccc;
71
table.afsvols td.default {
72
border-left: 1px solid #ccc;
77
<div class="voltable">
78
<table class="afsvols">
79
<tr><td colspan="6" class="header"> | <a href="#" onClick="javascript:resyncVolListing();">Resync Volume Listing</a></td></tr>
90
foreach ($this->vols as $vol) {
98
echo '<td bgcolor="#F5FFFA"><a href="#" onClick="javascript:getVolDetails(\'/openafs/server/getvoldetails\',\'pgupdate\', \''. $vol->getdn() . '\');">' . $vol->getProperty('emsafsvolid') . '</td>';
99
echo '<td class="'.$tdbg.'">' . $vol->getProperty("cn") . '</td>';
100
echo '<td class="'.$tdbg.'">';
102
// Display Green if status is okay, otherwise red.
103
if ($vol->getProperty('emsafsvolstatus') == "OK")
104
echo '<font color="green">';
106
echo '<font color="red">';
108
echo $vol->getProperty('emsafsvolstatus') . '</font></td>';
109
echo '<td class="'.$tdbg.'">' . $vol->getProperty('emsafsvolinuse') . '</td>';
110
echo '<td class="'.$tdbg.'">' . Ecl_Util::formatSize(($vol->getProperty('emsafsvolmaxquota') * 1024), null, '%01.0f (%s)', true) . '</td>';
111
echo '<td class="'.$tdbg.'">' . $vol->getProperty('emsafsvolpartition') . '</td>';
b'\\ No newline at end of file'