// section body $tblDiskRep->tbody(); $freeDisks = getFreeDisks($config, $disksInfo); if (!empty($freeDisks)) { foreach (array_keys($freeDisks) as $key) { $diskEditTool = _('Click here to configure this disk'); $actionCall = "doClickAction('new', '{$key}', '1', '1')"; $diskEditLabel = '<a class="doedit" href="#" OnClick="' . $actionCall . '" title="' . $diskEditTool . '">' . '<img src="img/add.png" alt="+">' . $disksInfo[$key]['sizelabel'] . '</a>'; $noticeLabel = ''; if ($freeDisks[$key] > 0) { // this disk is already partitioned, notify the user $noticeLabel = sprintf(" Notice: this disk already has %s partition(s)", $freeDisks[$key]); $noticeLabel .= ' <img src="img/alert.png" alt="!">'; } $tblDiskRep->tr(); $tblDiskRep->td($key); $tblDiskRep->td($diskEditLabel . $noticeLabel, 'colspan=2'); // } } else { $tblDiskRep->tr(); $tblDiskRep->td(_('No free disk devices.'), 'colspan=3'); } // show system disk summary // section heading $tblDiskRep->tr(); $tblDiskRep->th(_('System disk status'), 'class=bodytitle|colspan=3'); $tblDiskRep->tr(); $tblDiskRep->th(_('Label'), 'class=colheader'); $tblDiskRep->th(_('Mount Point'), 'class=colheader'); $tblDiskRep->th(_('Size'), 'class=colheader');
// check if some important applications running $statusMsg = null; if (pbx_exec("core show version") == 1) { // TODO: display this info somewere... $statusMsg = _("Asterisk hasn't started yet. Please wait for a few minutes. If it won't start you need to reboot TeeBX."); } // init a table object $tbl = new htmlTable('id=table01|class=home'); // fill the table caption $tbl->caption(_('System Information')); // a tbody is mandatory $tbl->tbody(); // show system informations // name $tbl->tr(); $tbl->td(_('Name'), 'class=tblrowlabel'); $tbl->td($config['system']['hostname'] . '.' . $config['system']['domain']); // version information $verInfo = '<strong>' . $prodInfo['prod'] . ' ' . $prodInfo['buid'] . '</strong>' . ' ' . _('on') . ' ' . $g['platform']; $verDetails = ''; if ($prodInfo['rev'] != '') { $verDetails .= _('source revision') . ' ' . $prodInfo['rev'] . ', '; } if ($prodInfo['sta'] != '') { $verDetails .= _('status') . ' ' . $prodInfo['sta'] . ', '; } if ($prodInfo['codename'] != '') { $verDetails .= _('alias') . ' ' . $prodInfo['codename'] . ', '; } if ($verDetails != '') { $verDetails = ' (' . rtrim($verDetails, ' ,') . ')';