本文整理匯總了PHP中CFormTable::Destroy方法的典型用法代碼示例。如果您正苦於以下問題:PHP CFormTable::Destroy方法的具體用法?PHP CFormTable::Destroy怎麽用?PHP CFormTable::Destroy使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CFormTable
的用法示例。
在下文中一共展示了CFormTable::Destroy方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: insert_new_message_form
function insert_new_message_form($events, $bulk)
{
global $USER_DETAILS;
if ($bulk) {
$title = S_ACKNOWLEDGE_ALARM_BY;
$btn_txt2 = S_ACKNOWLEDGE . ' ' . S_AND_SYMB . ' ' . S_RETURN;
} else {
$temp = get_acknowledges_by_eventid(get_request('eventid', 0));
if (!DBfetch($temp)) {
$title = S_ACKNOWLEDGE_ALARM_BY;
$btn_txt = S_ACKNOWLEDGE;
$btn_txt2 = S_ACKNOWLEDGE . ' ' . S_AND_SYMB . ' ' . S_RETURN;
} else {
$title = S_ADD_COMMENT_BY;
$btn_txt = S_SAVE;
$btn_txt2 = S_SAVE . ' ' . S_AND_SYMB . ' ' . S_RETURN;
}
}
$frmMsg = new CFormTable($title . ' "' . $USER_DETAILS["alias"] . '"');
$frmMsg->SetHelp("manual.php");
if ($bulk) {
$frmMsg->addVar('bulkacknowledge', 1);
}
foreach ($events as $id => $eventid) {
$frmMsg->addVar('events[' . $eventid . ']', $eventid);
}
$frmMsg->addRow(S_MESSAGE, new CTextArea("message", "", 80, 6));
$frmMsg->addItemToBottomRow(new CButton("saveandreturn", $btn_txt2));
isset($btn_txt) ? $frmMsg->addItemToBottomRow(new CButton("save", $btn_txt)) : '';
$frmMsg->addItemToBottomRow(new CButtonCancel(url_param('eventid')));
$frmMsg->Show(false);
SetFocus($frmMsg->GetName(), 'message');
$frmMsg->Destroy();
}