blob: 3dae4995fda1a1c06621ef4c0501561cd42f9ab8 (
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
101
102
103
104
105
106
107
108
|
{* --------------------------------------------------------------------- *}
{* Start Options *}
{* --------------------------------------------------------------------- *}
{if $pgpoolIsRunning == false}
<h3>{$message.strStartOption|escape}</h3>
<form action="status.php" name="startPgpoolForm" method="post">
<table>
<thead><tr><th colspan="2">{$message.strStartOption|escape}</th></tr></thead>
<tbody>
{include file="elements/status_start_option.tpl"}
</tbody>
<tfoot><tr>
<td colspan="2">
<input type="button" name="command" onclick="execStartPgpool()"
value="{$message.strStartPgpool|escape}" />
</td>
</tr></tfoot>
</table>
<input type="hidden" name="action" value="startPgpool" />
<input type="hidden" name="nodeNumber" value="" />
</form>
{else}
{* --------------------------------------------------------------------- *}
{* Command Buttons *}
{* --------------------------------------------------------------------- *}
<div id="commandButtonsDiv" style="visibility: visible">
<input type="button" name="command" onclick="stopPgpoolButtonHandler()"
value="{$message.strStopPgpool|escape}" />
<input type="button" name="command" onclick="restartPgpoolButtonHandler()"
value="{$message.strRestartPgpool|escape}" />
<input type="button" name="command" onclick="execReloadPgpool()"
value="{$message.strReloadPgpool|escape}" />
</div>
{* --------------------------------------------------------------------- *}
{* Stop Options *}
{* --------------------------------------------------------------------- *}
<div id="stopPgpoolOptionDiv" style="visibility: hidden; position: absolute">
<h3>{$message.strStopOption|escape}</h3>
<form action="status.php" name="stopPgpoolForm" method="post">
<table>
<thead><tr><th colspan="2">{$message.strStopOption|escape}</th></tr></thead>
<tfoot><tr>
<td colspan="2">
<input type="button" name="command" onclick="execStopPgpool()"
value="{$message.strExecute|escape}" />
<input type="button" name="command" onclick="cancelPgpoolButtonHandler()"
value="{$message.strCancel|escape}" />
</td>
</tr></tfoot>
<tbody>
{include file="elements/status_stop_option.tpl"}
</tbody>
</table>
<input type="hidden" name="action" value="stopPgpool" />
<input type="hidden" name="nodeNumber" value="" />
</form>
</div>
{* --------------------------------------------------------------------- *}
{* Restart Options *}
{* --------------------------------------------------------------------- *}
<div id="restartPgpoolOptionDiv" style="visibility: hidden; position: absolute">
<h3>{$message.strRestartOption|escape}</h3>
<form action="status.php" name="restartPgpoolForm" method="post">
<table>
<thead><tr><th colspan="2">{$message.strRestartOption|escape}</th></tr></thead>
<tfoot><tr>
<td colspan="2">
<input type="button" name="command" onclick="execRestartPgpool()"
value="{$message.strExecute|escape}" />
<input type="button" name="command" onclick="cancelPgpoolButtonHandler()"
value="{$message.strCancel|escape}" />
</td>
</tr></tfoot>
<tbody>
{include file="elements/status_stop_option.tpl"}
{include file="elements/status_start_option.tpl"}
</tbody>
</table>
<input type="hidden" name="action" value="restartPgpool" />
<input type="hidden" name="nodeNumber" value="" />
</form>
</div>
{/if}
{* --------------------------------------------------------------------- *}
{* Start/Stop/Restart messages */
{* --------------------------------------------------------------------- *}
{if isset($pgpoolStatus)}
<div class="message">
<h3>Messages</h3>
<p>{$pgpoolStatus|escape}</p>
<p>
{foreach from=$pgpoolMessage item=lines}
{$lines|escape}<br />
{/foreach}
</p>
</div>
{/if}
|