本文整理匯總了PHP中CFormTable::addClass方法的典型用法代碼示例。如果您正苦於以下問題:PHP CFormTable::addClass方法的具體用法?PHP CFormTable::addClass怎麽用?PHP CFormTable::addClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CFormTable
的用法示例。
在下文中一共展示了CFormTable::addClass方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CCol
$acknowledgesTable->addRow(new CCol(zbx_nl2br($acknowledge['message']), null, 2), 'msg');
}
$acknowledgesTable->show();
}
if ($eventAcknowledged) {
$title = _('Add comment by');
$saveLabel = _('Update');
$saveAndReturnLabel = _('Update and return');
} else {
$title = _('Acknowledge alarm by');
$saveLabel = _('Acknowledge');
$saveAndReturnLabel = _('Acknowledge and return');
}
}
$messageTable = new CFormTable($title . ' "' . getUserFullname(CWebUser::$data) . '"');
$messageTable->addClass('acknowledge-edit');
$backURL = getRequest('backurl');
$messageTable->addVar('backurl', $backURL);
if ($backURL === 'tr_events.php' || $backURL === 'events.php') {
$messageTable->addVar('triggerid', getRequest('triggerid'));
$messageTable->addVar('source', EVENT_SOURCE_TRIGGERS);
} elseif ($backURL === 'screenedit.php' || $backURL === 'screens.php') {
$messageTable->addVar('screenid', $_REQUEST['screenid']);
}
if (hasRequest('eventid')) {
$messageTable->addVar('eventid', getRequest('eventid'));
} elseif (hasRequest('triggers')) {
foreach (getRequest('triggers') as $triggerId) {
$messageTable->addVar('triggers[' . $triggerId . ']', $triggerId);
}
} elseif (hasRequest('events')) {