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: dashboard.phtml 915 2008-08-25 11:32:48Z fkhan $
24
* @lastchangeddate $LastChangedDate: 2008-08-25 17:32:48 +0600 (Mon, 25 Aug 2008) $
29
<ul id="pluginnavmenu" style="padding-left: 10px;">
30
<li><a href="#" onclick="javascript:callAction('/ntp/computer/dashview/', 'ntppgupdate','<?php
31
echo $this->obj->getdn(); ?>');">Dashboard</a></li>
32
<li><a href="#" onclick="javascript:callAction('/ntp/computer/serviceconfig/','ntppgupdate','<?php
33
echo $this->obj->getdn(); ?>');">Service Configuration</a></li>
37
<?php echo $this->render("computer/dashview.phtml"); ?>
38
<script language="javascript">
39
serviceAction = function(act, dn)
43
var call = '/ntp/computer/startservice';
47
var call = '/ntp/computer/stopservice';
51
var div = 'ntppgupdate';
52
var data = {operate_dn: "<?php echo $this->obj->getdn(); ?>"};
53
rpc = Object.toJSON(data);
55
var ma = new Ajax.Updater (
60
parameters: 'mr='+escape(rpc),
62
onLoading: function(request) {
65
onComplete: function(request) {
72
updateClientConfig = function()
74
var call = '/ntp/computer/updateConfig';
76
var data = {operate_dn: "<?php echo $this->obj->getdn(); ?>"};
77
rpc = Object.toJSON(data);
79
var ma = new Ajax.Updater (
84
parameters: 'mr='+escape(rpc),
86
onLoading: function(request) {
88
Element.hide('upclconf'),
89
Element.show('upclprg')
91
onComplete: function(request) {
93
Element.hide('upclprg'),
94
Element.show('upclconf')
b'\\ No newline at end of file'