summaryrefslogtreecommitdiff
path: root/templates/nodeServerStatus.tpl
blob: 363929062c6b30fb2f30a3cb456c3880d7037519 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$message.strNodeStatus|escape}</title>
<link href="screen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
{literal}
function load()
{
    var xmlhttp = false;

    if (typeof XMLHttpRequest!='undefined') {
        xmlhttp = new XMLHttpRequest();
    } else {
        xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
    }

    if (!xmlhttp) {
        alert('Sorry, cannot use XMLHttpRequest');
        return;
    }

    xmlhttp.onreadystatechange = function()
    {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            var content = document.getElementById('status');
            var ret = xmlhttp.responseText;

            content.innerHTML  = ret;
        }
    }
    xmlhttp.open('GET', 'innerNodeServerStatus.php', true);
    xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
    xmlhttp.send("");
}

function showDetail(num)
{
    var catalog = "pg_settings";
    var xmlhttp = false;
    var url = "";

    if (typeof XMLHttpRequest!='undefined')
        xmlhttp = new XMLHttpRequest();
    else
        xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");

    if (!xmlhttp) {
        alert('Sorry, cannot use XMLHttpRequest');
        return;
    }

    xmlhttp.onreadystatechange = function()
    {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            var content = document.getElementById('detailInfo');
            var ret = xmlhttp.responseText;

            content.innerHTML  = ret;
        }
    }
    url = "innerSystemCatalog.php?num=" + num + "&catalog=" + catalog;
    xmlhttp.open('GET', url, true);
    xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
    xmlhttp.send("");
}

// -->
</script>
{/literal}
</head>

<body onload="load()">
<div id="header">
  <h1><img src="images/logo.gif" alt="pgpoolAdmin" /></h1>
</div>

<div id="menu">
{include file="menu.tpl"}
</div>

<div id="content">
<div id="help"><a href="help.php?help={$help|escape}"><img src="images/question.gif" alt="help"/>{$message.strHelp|escape}</a></div>

<h2>{$message.strNodeStatus|escape}
{if $pgpoolIsRunning == false}[{$message.strStoppingNow}]{/if}
</h2>
  <div id="status">{$message.strPleaseWait|escape}</div>
<p>
  <div id="detailInfo"></div>
</p>
</div>

<div id="footer">
{include file='footer.tpl'}
</div>
</body>
</html>