本文整理匯總了PHP中DialogBox::setBoxType方法的典型用法代碼示例。如果您正苦於以下問題:PHP DialogBox::setBoxType方法的具體用法?PHP DialogBox::setBoxType怎麽用?PHP DialogBox::setBoxType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DialogBox
的用法示例。
在下文中一共展示了DialogBox::setBoxType方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: urlencode
$dialogBox->info('<br /><br /><a href="' . $_SERVER['PHP_SELF'] . '?cmd=exOlderThan&date=' . urlencode($_REQUEST['date']) . '">' . get_lang('Yes') . '</a> | <a href="admin.php">' . get_lang('No') . '</a>');
$content .= '<br />' . $dialogBox->render();
}
}
if ($displayRemoveOlderThanValidated) {
$date = claro_htmlspecialchars($_REQUEST['date']);
$dialogBox = new DialogBox();
$dialogBoxMsg = get_lang('All messages older than %date% have been deleted', array('%date%' => $date)) . '<br /><br />' . '<a href="admin.php">' . get_lang('Back') . '</a>';
$dialogBox->success($dialogBoxMsg);
$content .= '<br />' . $dialogBox->render();
}
// --------------- end older than
// ------------ platform message
if ($displayRemovePlatformMessageConfirmation) {
$dialogBox = new DialogBox();
$dialogBox->setBoxType('question');
$dialogBox->question(get_lang('Are you sure to delete all platform messages?'));
$dialogBox->warning(get_lang('There is no way to restore deleted messages.'));
$dialogBox->info('<br /><br /><a href="' . $_SERVER['PHP_SELF'] . '?cmd=exPlatformMessage">' . get_lang('Yes') . '</a> | <a href="admin.php">' . get_lang('No') . '</a>');
$content .= '<br />' . $dialogBox->render();
}
if ($displayRemovePlatformMessageValidated) {
$dialogBoxMsg = get_lang('All platform messages have been deleted') . '<br /><br />' . '<a href="admin.php">' . get_lang('Back') . '</a>';
$dialogBox = new DialogBox();
$dialogBox->info($dialogBoxMsg);
$content .= '<br />' . $dialogBox->render();
}
// ------------- end platform message
// ------------------- render ----------------------------
$claroline->display->banner->breadcrumbs->append(get_lang('Administration'), get_path('rootAdminWeb'));
$claroline->display->banner->breadcrumbs->append(get_lang('Internal messaging'), 'admin.php');