コード例 #1
0
ファイル: sys_storage.php プロジェクト: carriercomm/teebx
        // 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')";
        $diskEditLabel = '<a class="doedit" href="#" OnClick="' . $actionCall . '" title="' . $diskEditTool . '">' . '<img  src="img/add.png" alt="+">' . $disksInfo[$key]['sizelabel'] . '</a>';
        $noticeLabel = '';
        if ($freeDisks[$key] > 0) {
コード例 #2
0
ファイル: index.php プロジェクト: carriercomm/teebx
//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'] . ', ';
}
if ($prodInfo['codename'] != '') {
    $verDetails .= _('alias') . ' ' . $prodInfo['codename'] . ', ';
}
if ($verDetails != '') {