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/>.
21
* @copyright Copyright (c) 2008 Zivios, LLC. (http://www.zivios.org)
22
* @license http://www.zivios.org/legal/license
23
* @version $Id: serverentry.phtml 890 2008-08-22 11:52:49Z mhashmi $
26
<p><b>Viewing Entry for: <?php echo $this->obj->getproperty("cn"); ?> </b></p>
28
<ul style="width:550px;">
29
<li><a href="#" onClick="toggle_display('system');
30
return false;" title=""><span>System Details</span></a></li>
32
<li><a href="#" onClick="toggle_display('package');
33
return false;" title=""><span>Package Management</span></a></li>
35
<li><a href="#" onClick="toggle_display('availableservices');
36
return false;" title=""><span>Service Management</span></a></li>
38
<li><a href="#" onClick="toggle_display('audit');
39
return false;" title=""><span>Audit Reports</span></a></li>
41
<li><a href="#" onClick="toggle_display('log');
42
return false;" title=""><span>Log Viewer</span></a></li>
45
<li><a href="#" onClick="toggle_display('delete');
46
return false;" title=""><span>Delete</span></a></li>
51
if (!empty($this->existingModules)) {
53
<div id="tabsI" style="width: 542px;">
56
foreach ($this->existingModules as $module => $pluginConfig) {
58
* Lookup and display the plugin name. Redirection
61
echo '<li><a href="#" onClick="togglePluginDisplay(\''.$module
62
.'\', \''.$this->obj->getdn().'\', \'computer\'); return false;"><span>'.
63
$pluginConfig->general->displayname.'</span></a></li>';
73
<div class="tabbed" id="system" style="display: block;">
75
<table class="general" width="100%" border="0">
77
<th width="100">Hostname</th>
78
<td><?php echo $this->obj->getProperty("cn");?></td>
82
<td><?php echo $this->obj->getProperty("emscomputervendorclass") . " " .
83
$this->obj->getproperty("emscomputervendormodel") . " " .
84
$this->obj->getproperty("emscomputervendorname") . " " .
85
$this->obj->getproperty("emscomputercpumhz") . " MHz"; ?></td>
89
<td><?php echo $this->obj->getproperty("emscomputersystem") . " " .
90
$this->obj->getproperty("emscomputertype"); ?></td>
94
<td><?php echo $this->obj->getproperty("emscomputerdistro") . " " .
95
$this->obj->getproperty("emscomputerdistrorelease"); ?></td>
98
<th>Local Storage</th>
99
<td>.. coming soon</td>
104
<div class="tabbed" id="package" style="display: none;">
109
<div class="tabbed" id="availableservices" style="display: none;">
112
echo $this->render("server/availableservices.phtml");
116
<div class="tabbed" id="audit" style="display: none;">
121
<div class="tabbed" id="log" style="display: none;">
127
<div class="tabbed" id="delete" style="display: none;">
130
<legend><B>Server Delete</b></legend>
133
<p>Deleting a Server will cause all relevant plugins to be deleted, certificates and keytabs revoked
137
<p>This action is currently irreversible
141
<input type="submit" onclick="javascript:callAction('/server/delete/','entry','<?php
142
echo $this->obj->getdn(); ?>'); return false;" value="Delete Server" />
149
* Load all plugin divs
151
if (!empty($this->existingModules)) {
152
foreach ($this->existingModules as $module => $pluginConfig) {
153
echo '<div class="tabbed" id="'.$module.'" style="display: none;"></div>';
161
<script language="javascript">
162
compServiceAction = function(action)
164
if (action == 'sub') {
165
var f = $('serviceSelect').serialize(true);
166
var url = '/server/subService/';
168
var f = $('serviceDeselect').serialize(true);
169
var url = '/server/unsubService/';
172
var div = 'availableservices';
173
var json = Object.toJSON(f);
175
var ma = new Ajax.Updater (
180
parameters: 'mr='+escape(json),
182
onLoading: function(request) {
185
onComplete: function(request) {
b'\\ No newline at end of file'