本文整理汇总了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');