本文整理汇总了PHP中CTable::getNumRows方法的典型用法代码示例。如果您正苦于以下问题:PHP CTable::getNumRows方法的具体用法?PHP CTable::getNumRows怎么用?PHP CTable::getNumRows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTable
的用法示例。
在下文中一共展示了CTable::getNumRows方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CTextBox
$form->addVar('new_check_snmpv3_securityname', '');
$form->addVar('new_check_snmpv3_authpassphrase', '');
$form->addVar('new_check_snmpv3_privpassphrase', '');
$external_param->addRow(array(S_KEY, new CTextBox('new_check_key', $new_check_key), BR()));
break;
case SVC_ICMPPING:
$form->addVar('new_check_ports', '0');
default:
$form->addVar('new_check_snmp_community', '');
$form->addVar('new_check_key', '');
$form->addVar('new_check_snmpv3_securitylevel', ITEM_SNMPV3_SECURITYLEVEL_NOAUTHNOPRIV);
$form->addVar('new_check_snmpv3_securityname', '');
$form->addVar('new_check_snmpv3_authpassphrase', '');
$form->addVar('new_check_snmpv3_privpassphrase', '');
}
if ($external_param->getNumRows() == 0) {
$external_param = null;
}
$form->addRow(S_NEW_CHECK, array($cmbChkType, SPACE, new CButton('add_check', S_ADD), $external_param), 'new');
$form->addRow(S_DEVICE_UNIQUENESS_CRITERIA, $cmbUniquenessCriteria);
$cmbStatus = new CComboBox("status", $status);
foreach (array(DRULE_STATUS_ACTIVE, DRULE_STATUS_DISABLED) as $st) {
$cmbStatus->addItem($st, discovery_status2str($st));
}
$form->addRow(S_STATUS, $cmbStatus);
$form->addItemToBottomRow(new CButton("save", S_SAVE));
if (isset($_REQUEST["druleid"])) {
$form->addItemToBottomRow(SPACE);
$form->addItemToBottomRow(new CButton("clone", S_CLONE));
$form->addItemToBottomRow(SPACE);
$form->addItemToBottomRow(new CButtonDelete(S_DELETE_RULE_Q, url_param("form") . url_param("druleid")));
示例2: redirect
}
redirect($last_page['url']);
exit;
}
}
}
$msg = $bulk ? ' BULK ACKNOWLEDGE ' : array('"' . expand_trigger_description_by_data($db_data) . '"', BR(), explode_exp($db_data["expression"], 1));
show_table_header(array(S_ALARM_ACKNOWLEDGES_BIG, ' : ', $msg));
echo SBR;
if (!$bulk) {
$table = new CTable(NULL, 'ack_msgs');
$table->setAlign('center');
$db_acks = get_acknowledges_by_eventid($db_data['eventid']);
while ($db_ack = DBfetch($db_acks)) {
$db_user = get_user_by_userid($db_ack['userid']);
$table->addRow(array(new CCol($db_user['alias'], 'user'), new CCol(date('d-m-Y h:i:s A', $db_ack['clock']), 'time')), 'title');
$msgCol = new CCol(zbx_nl2br($db_ack['message']));
$msgCol->setColspan(2);
$table->addRow($msgCol, 'msg');
}
/**/
if ($table->getNumRows() > 0) {
$table->Show();
echo SBR;
}
}
insert_new_message_form($events, $bulk);
?>
<?php
include_once 'include/page_footer.php';