Revision 3b370abf
Added by Jim Pingle almost 15 years ago
usr/local/www/status_lb_pool.php | ||
---|---|---|
131 | 131 |
default: |
132 | 132 |
$bgcolor = "lightcoral"; |
133 | 133 |
} |
134 |
PRINT "<tr>";
|
|
134 |
echo "<tr>";
|
|
135 | 135 |
switch ($vipent['mode']) { |
136 | 136 |
case 'loadbalance': |
137 |
if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."' checked></td>"; |
|
137 |
if($svr[0]!="") |
|
138 |
echo "<td><input type='checkbox' name='{$vipent['name']}_{$svr[0]}' checked></td>"; |
|
138 | 139 |
break; |
139 | 140 |
case 'failover': |
140 |
if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."' checked></td>"; |
|
141 |
if($svr[0]!="") |
|
142 |
echo "<td><input type='radio' name='{$vipent['name']}' checked></td>"; |
|
141 | 143 |
break; |
142 | 144 |
} |
143 |
PRINT "<td bgcolor=".$bgcolor."> {$svr[0]}:{$vipent['port']} </td></tr>";
|
|
145 |
echo "<td bgcolor={$bgcolor}> {$svr[0]}:{$vipent['port']} </td></tr>";
|
|
144 | 146 |
} |
145 | 147 |
} |
146 | 148 |
foreach ((array) $vipent['serversdisabled'] as $server) { |
147 | 149 |
$svr = split("\|", $server); |
148 |
PRINT "<tr>";
|
|
150 |
echo "<tr>";
|
|
149 | 151 |
switch ($vipent['mode']) { |
150 | 152 |
case 'loadbalance': |
151 |
if($svr[0]!="") PRINT "<td><input type='checkbox' name='".$vipent['name']."_".$svr[0]."'></td>"; |
|
153 |
if($svr[0]!="") |
|
154 |
echo "<td><input type='checkbox' name='{$vipent['name']}_{$svr[0]}'></td>"; |
|
152 | 155 |
break; |
153 | 156 |
case 'failover': |
154 |
if($svr[0]!="") PRINT "<td><input type='radio' name='".$vipent['name']."'></td>"; |
|
157 |
if($svr[0]!="") |
|
158 |
echo "<td><input type='radio' name='{$vipent['name']}'></td>"; |
|
155 | 159 |
break; |
156 | 160 |
} |
157 |
PRINT "<td> {$svr[0]}:{$vipent['port']} </td></tr>";
|
|
161 |
echo "<td> {$svr[0]}:{$vipent['port']} </td></tr>";
|
|
158 | 162 |
} |
159 | 163 |
?> |
160 | 164 |
</table> |
Also available in: Unified diff
Change these PRINTs to echo for consistency, and reformat a little. Wrap vars inside strings in {}.