Beispiel #1
0
        $tblStorage->td($fsUsed);
        $tblStorage->td($fsTotal);
        $tblStorage->td($usage);
        // attached services
        $tblStorage->td('');
    }
} else {
    $tblStorage->tr();
    $tblStorage->td(_('No additional storage configured.'), 'colspan=8');
}
//
// 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')";
Beispiel #2
0
require_once 'libs-php/htmltable.class.php';
require_once 'blockdevices.lib.php';
// 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'] . '&nbsp;' . $prodInfo['buid'] . '</strong>' . '&nbsp;' . _('on') . '&nbsp;' . $g['platform'];
$verDetails = '';
if ($prodInfo['rev'] != '') {
    $verDetails .= _('source revision') . ' ' . $prodInfo['rev'] . ', ';
}
if ($prodInfo['sta'] != '') {
    $verDetails .= _('status') . ' ' . $prodInfo['sta'] . ', ';