$sum += $mt[$inst]; echo "({$inst}) <b>" . nf($mt[$inst]) . "</b> msgs<br />\n"; } echo "<hr size=1>\n"; echo "(all) <b>" . nf($sum) . "</b> msgs<br />\n"; ?> </td><td valign=top align=right class=text> <?php $sum = 0; foreach ($configs as $inst => $config) { $out[$inst] = XPathValue("gateway/sms/outbound", $status[$inst]); $sum += $out[$inst]; echo "({$inst}) <b>" . nfd($out[$inst]) . "</b> msgs/s<br />\n"; } echo "<hr size=1>\n"; echo "(all) <b>" . nfd($sum) . "</b> msgs/s<br />\n"; ?> </td><td valign=top align=right class=text> <?php $sum = 0; foreach ($configs as $inst => $config) { $mo_q[$inst] = XPathValue("gateway/sms/received/queued", $status[$inst]); $sum += $mo_q[$inst]; echo "({$inst}) " . nf($mo_q[$inst]) . " msgs<br />\n"; } echo "<hr size=1>\n"; echo "(all) "; if ($sum > $CONST_QUEUE_ERROR) { echo "<span class=red>" . nf($sum) . " msgs</span>"; } else { echo nf($sum) . " msgs";
?> </td> <td><?php echo nf($sums[4]); ?> </td> <td><?php echo nf($sums[5]); ?> </td> <td><?php echo nfd($sums[6]); ?> </td> <td><?php echo nfd($sums[7]); ?> </td> <td><?php echo nf($sums[8]); ?> </td> <td><?php echo nf($sums[9]); ?> </td> </tr> </table> </p> <h4>Box connections</h4>