~cyrenity/zivios/devel

« back to all changes in this revision

Viewing changes to application/modules/openafs/views/scripts/service/managerdashboard.phtml

  • Committer: Faraz Khan
  • Date: 2008-09-15 13:29:33 UTC
  • Revision ID: fkhan@zivios.org-20080915132933-d27jml5l29xw4gsr
Initial release to bazaar, code in sync with 0.5.0-release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Copyright (c) 2008 Zivios, LLC.
 
4
 *
 
5
 * This file is part of Zivios.
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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/>.
 
19
 *
 
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: managerdashboard.phtml 919 2008-08-25 11:45:23Z fkhan $
 
24
 * @lastchangeddate $LastChangedDate: 2008-08-25 17:45:23 +0600 (Mon, 25 Aug 2008) $
 
25
 **/
 
26
 
 
27
?>
 
28
<script language="javascript">
 
29
new Ajax.Autocompleter("searchVol", "srhresult", "/openafs/server/searchVolume",
 
30
        {
 
31
                parameters: "operate_dn=<?=urlencode($this->obj->getdn())?>",
 
32
                afterUpdateElement : redirectToVol
 
33
        }
 
34
);
 
35
 
 
36
function redirectToVol(text, li)
 
37
{
 
38
        getVolDetails('/openafs/server/getvoldetails','pgupdate', li.id);
 
39
}
 
40
</script>
 
41
 
 
42
<table>
 
43
<tr>
 
44
        <td valign="top">
 
45
        <table class="plugindash" width="300">
 
46
                <th>Search for a Volume: </th>
 
47
        <tr>
 
48
                <td NOWRAP valign="top">
 
49
                <?php
 
50
                /**
 
51
                 * Autocomplete form here for searching volumes by name or ID.
 
52
                 */
 
53
                ?>
 
54
                <form>
 
55
                <img src="<?php echo $this->imgBase; ?>/icons/magglass.png" />
 
56
                <input type="text" id="searchVol" name="volsearch" size=30 value="Search..." onmousedown="javascript:document.getElementById('searchVol').value='';"/>
 
57
                </form>
 
58
                </div>
 
59
                <div id="srhresult" class="autocomplete"></div>
 
60
                </td>
 
61
        </tr>
 
62
        </table>
 
63
        </td>
 
64
        <td valign="top">
 
65
 
 
66
        <table class="plugindash" width="300">
 
67
                <th>Partition Details</th>
 
68
        <tr>
 
69
                <td NOWRAP>
 
70
                <?php
 
71
                /**
 
72
                 * Show partition listing as well as total space, used space
 
73
                 * and obviously available space.
 
74
                 */
 
75
                ?>
 
76
                </td>
 
77
        </tr>
 
78
        </table>
 
79
        </td>
 
80
</tr>
 
81
</table>