// // report all system devices // init another table object $tblDiskRep = new htmlTable('id=table02|class=report'); // fill the table caption $tblDiskRep->caption(_('Disk Report')); // table section heading $tblDiskRep->thead(); $tblDiskRep->tr(); $tblDiskRep->th(_('Free disks'), 'class=bodytitle|colspan=3'); $tblDiskRep->tr(); $tblDiskRep->th(_('Device name'), 'class=colheader'); $tblDiskRep->th(_('Size'), 'class=colheader|colspan=2'); // // 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');
// define some constants referenced in fbegin.inc define('INCLUDE_TBLSTYLE', true); define('INCLUDE_JSCRIPTS', 'dashboard.js'); //check_update(); // 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'] != '') {