本文整理汇总了PHP中CAdminMessage::ShowNote方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminMessage::ShowNote方法的具体用法?PHP CAdminMessage::ShowNote怎么用?PHP CAdminMessage::ShowNote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminMessage
的用法示例。
在下文中一共展示了CAdminMessage::ShowNote方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DoInstall
public function DoInstall()
{
global $APPLICATION;
if (version_compare(SM_VERSION, '15.0.2') < 0) {
$APPLICATION->IncludeAdminFile(GetMessage('NIK_GLVRD_INSTALL_TITLE'), __DIR__ . '/old_bitrix.php');
} else {
CopyDirFiles(__DIR__ . '/images', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/images/' . $this->MODULE_ID, true, true);
CopyDirFiles(__DIR__ . '/js', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/js/' . $this->MODULE_ID, true, true);
RegisterModule('nik.glvrd');
$this->DoDependences(true);
CAdminMessage::ShowNote(GetMessage('NIK_GLVRD_INSTALL_COMPLETE_TITLE'));
}
}
示例2:
<?php
if (!check_bitrix_sessid()) {
return;
}
echo CAdminMessage::ShowNote("Модуль properties_order установлен");
示例3: array
if ($intCount > 0)
{
CAgent::AddAgent('CCatalog::PreGenerateXML("yandex");', 'catalog', 'N', (int)Option::get('catalog', 'yandex_xml_period') * 3600);
$strOK .= Loc::getMessage('CAT_AGENT_ADD_SUCCESS').'. ';
}
else
{
$strWarning .= Loc::getMessage('CAT_AGENT_ADD_NO_EXPORT').'. ';
}
}
if(!empty($strWarning))
CAdminMessage::ShowMessage($strWarning);
if(!empty($strOK))
CAdminMessage::ShowNote($strOK);
$aTabs = array(
array("DIV" => "edit5", "TAB" => Loc::getMessage("CO_TAB_5"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_5_TITLE")),
array("DIV" => "edit1", "TAB" => Loc::getMessage("CO_TAB_1"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_1_TITLE")),
array("DIV" => "edit2", "TAB" => Loc::getMessage("CO_TAB_2"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_2_TITLE"))
);
if ($USER->IsAdmin())
{
if (CBXFeatures::IsFeatureEnabled('SaleRecurring'))
{
$aTabs[] = array("DIV" => "edit3", "TAB" => Loc::getMessage("CO_TAB_3"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_SALE_GROUPS"));
}
$aTabs[] = array("DIV" => "edit4", "TAB" => Loc::getMessage("CO_TAB_RIGHTS"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_RIGHTS_TITLE"));
}
示例4: GetMessage
$arErrors = $statDB->RunSQLBatch($fname);
if (!$arErrors) {
$_SESSION["STAT_strNote"] .= GetMessage("STAT_OPT_OPTIMIZED") . "<br>";
} else {
$strError .= GetMessage("STAT_OPT_OPTIMIZE_ERRORS") . "<br>" . mydump($arErrors) . "<br>";
}
}
if ($strError == "") {
LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($mid) . "&lang=" . urlencode(LANGUAGE_ID) . "&back_url_settings=" . urlencode($_REQUEST["back_url_settings"]) . "&" . $tabControl2->ActiveTabParam());
}
}
if (strlen($strError) > 0) {
CAdminMessage::ShowMessage($strError);
}
if (strlen($_SESSION["STAT_strNote"]) > 0) {
CAdminMessage::ShowNote($_SESSION["STAT_strNote"]);
unset($_SESSION["STAT_strNote"]);
}
$tabControl->Begin();
?>
<form name="form_settings" method="POST" action="<?php
echo $APPLICATION->GetCurPage();
?>
?mid=<?php
echo htmlspecialcharsbx($mid);
?>
&lang=<?php
echo LANGUAGE_ID;
?>
">
<?php
示例5: CAdminException
if(!empty($aMsg))
{
$e = new CAdminException($aMsg);
$APPLICATION->ThrowException($e);
if($e = $APPLICATION->GetException())
{
$message = new CAdminMessage(GetMessage("SC_ERROR0"), $e);
if($message)
echo $message->Show();
}
}
if(strlen($strTicketError)>0 && !$message)
CAdminMessage::ShowMessage($strTicketError);
elseif(!$message)
CAdminMessage::ShowNote(str_replace("#EMAIL#", "", GetMessage("SC_TIK_SEND_SUCCESS")));
}
?></td>
</tr>
<script>
function SubmitToSupport()
{
var frm = document.forms.fticket;
if (frm.ticket_text.value == '')
{
alert('<?php
echo GetMessage("SC_NOT_FILLED");
?>
');
return;
示例6: ShowParamsHTMLByArray
LocalRedirect("/freetrix/admin/settings.php?lang=".LANGUAGE_ID."&mid=".urlencode($mid)."&tabControl_active_tab=".urlencode($_REQUEST["tabControl_active_tab"])."&back_url_settings=".urlencode($_REQUEST["back_url_settings"]));
}
if($SET_LICENSE_KEY == "")
$SET_LICENSE_KEY = LICENSE_KEY;
if ($_SERVER["REQUEST_METHOD"]=="POST" && $_POST["stop_site"]=="Y" && $USER->CanDoOperation('edit_other_settings') && check_freetrix_sessid())
{
COption::SetOptionString("main", "site_stopped", "Y");
CAdminMessage::ShowNote(GetMessage("MAIN_OPTION_PUBL_CLOSES"));
}
if ($_SERVER["REQUEST_METHOD"]=="POST" && $_POST["start_site"]=="Y" && $USER->CanDoOperation('edit_other_settings') && check_freetrix_sessid())
{
COption::SetOptionString("main", "site_stopped", "N");
CAdminMessage::ShowNote(GetMessage("MAIN_OPTION_PUBL_OPENED"));
}
function ShowParamsHTMLByArray($arParams)
{
foreach($arParams as $Option)
{
if($Option[0] == "templates_visual_editor" && defined("FX_DISABLE_TEMPLATE_EDITOR") && FX_DISABLE_TEMPLATE_EDITOR == true)
continue;
__AdmSettingsDrawRow("main", $Option);
}
}
?>
<form name="main_options" method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?php
echo htmlspecialcharsbx($mid);
?>
示例7: GetMessage
$lAdmin->AddAdminContextMenu($aContext);
$lAdmin->CheckListMode();
$aTables[$aTab['DIV']] = $lAdmin;
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
if (!empty($sErrorHTML)) {
CAdminMessage::ShowMessage(array('TYPE' => 'ERROR', 'MESSAGE' => $sErrorHTML, 'HTML' => true));
}
if (!empty($sError)) {
CAdminMessage::ShowMessage($sError);
}
if (!empty($sMessage)) {
CAdminMessage::ShowMessage(array('TYPE' => 'OK', 'MESSAGE' => $sMessage, 'HTML' => true));
}
if (isset($_SESSION['GEMSMESSAGE']) && $_SESSION['GEMSMESSAGE'] != null) {
CAdminMessage::ShowNote($_SESSION['GEMSMESSAGE']);
unset($_SESSION['GEMSMESSAGE']);
}
?>
<script type="text/javascript">
/*Dirty antivirushack: form_tbl_dump*/
if( typeof jQuery == 'undefined' ) document.write('<?php
echo GetMessage('JQUERY_WARNING');
?>
');
</script>
<div class="b-Gems">
<form name="form1" method="get" action="<?php
echo $APPLICATION->GetCurPage();
?>
?">
示例8: array
$APPLICATION->SetTitle($sDocTitle);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$aMenu = array(array("ICON" => "btn_list", "TEXT" => GetMessage("FLOW_RECORDS_LIST"), "LINK" => "workflow_list.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("FLOW_RECORDS_LIST")));
if (intval($ID) > 0) {
$aMenu[] = array("SEPARATOR" => "Y");
$aMenu[] = array("ICON" => "btn_new", "TEXT" => GetMessage("FLOW_NEW_DOCUMENT"), "LINK" => "workflow_edit.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("FLOW_NEW_DOCUMENT"));
if (intval($locked_by) <= 0 || intval($locked_by) == $USER->GetID()) {
$aMenu[] = array("ICON" => "btn_delete", "TEXT" => GetMessage("FLOW_DELETE_DOCUMENT"), "LINK" => "javascript:if(confirm('" . GetMessage("FLOW_DELETE_DOCUMENT_CONFIRM") . "')) window.location='workflow_edit.php?del_id=" . $ID . "&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . "';", "TITLE" => GetMessage("FLOW_DELETE_DOCUMENT"));
}
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if ($message) {
echo $message->Show();
}
CAdminMessage::ShowNote($strNote);
$tabControl->Begin();
?>
<script type="text/javascript">
function NewFileName(ob, counter)
{
var str_fname;
var fname;
var str_file = ob.value;
var num = ob.name;
num = num.substr(num.lastIndexOf("_")+1);
str_file = str_file.replace(/\\/g, '/');
fname = str_file.substr(str_file.lastIndexOf("/")+1);
document.getElementById("fname_"+num).value = fname;
if(document.getElementById("nums").value==num)
示例9:
<?
echo CAdminMessage::ShowNote('Вы удалили модуль rzn.talejade.');
示例10:
<?if(!check_bitrix_sessid()) return;?>
<?
echo CAdminMessage::ShowNote("Модуль CityFranchise установлен");
?>
示例11: GetMessage
<?php
if (!check_bitrix_sessid()) {
return;
}
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
echo CAdminMessage::ShowNote(Loc::getMessage('MODULE_INSTALL_COMPLETED'));
?>
<form action='<?echo $APPLICATION->GetCurPage()?>'>
<input type='hidden' name='lang' value='<?echo LANG?>'>
<input type='submit' name='' value='<?echo GetMessage('MOD_BACK')?>'>
<form>
示例12: IncludeModuleLangFile
<?php
if (!check_bitrix_sessid()) {
return;
}
if (CModule::IncludeModule("iblock")) {
IncludeModuleLangFile(__FILE__);
}
echo CAdminMessage::ShowNote(GetMessage("MODULE_UNINSTALL_END_TITLE"));
示例13: GetMessage
<?if(!check_bitrix_sessid()) return;?>
<?
echo CAdminMessage::ShowNote( GetMessage("MODULE_REMOVE_SUCCESS"));
?>
<form action="<?echo $APPLICATION->GetCurPage()?>">
<input type="hidden" name="lang" value="<?echo LANG?>">
<input type="submit" name="" value="<?echo GetMessage("MOD_BACK")?>">
</form>
示例14: IncludeModuleLangFile
<?
if( !check_bitrix_sessid() ){
return;
}
IncludeModuleLangFile(__FILE__);
echo CAdminMessage::ShowNote( GetMessage('PAINKILLER_UNINSTALL') );
?>
<form action="<?php
echo $APPLICATION->GetCurPage();
?>
">
<input type="hidden" name="lang" value="<?php
echo LANG;
?>
">
<input type="submit" name="" value="<?php
echo GetMessage("MOD_BACK");
?>
">
<form>
示例15: GetMessage
</div>
<div id="vars_div" style="display:none;" class="float-form">
<div id="vars_div_cont" class="data" style="font-size: 12px;">
</div>
<div style="text-align: center;">
<input type="button" value="<? echo GetMessage("CES_CLOSE"); ?>" onclick="HideVarsForm();">
</div>
</div>
<?
if (strlen($strErrorMessage) > 0)
CAdminMessage::ShowMessage(array("MESSAGE"=>GetMessage("CES_ERRORS"), "DETAILS"=>$strErrorMessage));
if ($_GET["success_import"]=="Y")
{
CAdminMessage::ShowNote(GetMessage("CES_SUCCESS"));
if (strlen($_SESSION["COMMERCEML_IMPORT_".intval($message_sess_id)]) > 0)
{
echo "<p>".$_SESSION["COMMERCEML_IMPORT_".intval($message_sess_id)]."</p>";
unset($_SESSION["COMMERCEML_IMPORT_".intval($message_sess_id)]);
}
}
?>
<script type="text/javascript">
function ShowDiv(div, shadow)
{
var obDiv = BX(div);
var obShadow = BX(shadow);
if (!!obDiv && !!obShadow)
{
var obCoord = BX.GetWindowSize();