当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminMessage::ShowOldStyleError方法代码示例

本文整理汇总了PHP中CAdminMessage::ShowOldStyleError方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminMessage::ShowOldStyleError方法的具体用法?PHP CAdminMessage::ShowOldStyleError怎么用?PHP CAdminMessage::ShowOldStyleError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminMessage的用法示例。


在下文中一共展示了CAdminMessage::ShowOldStyleError方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: htmlspecialcharsbx

        }
        ?>
<input type="hidden" name="Update" value="Y">
<input type="hidden" name="ID" value="<?php 
        echo $ID;
        ?>
">
<?php 
        if (strlen($_REQUEST["return_url"]) > 0) {
            ?>
<input type="hidden" name="return_url" value="<?php 
            echo htmlspecialcharsbx($_REQUEST["return_url"]);
            ?>
"><?php 
        }
        CAdminMessage::ShowOldStyleError($strWarning);
        $bTab3 = $arIBTYPE["IN_RSS"] == "Y";
        $bWorkflow = CModule::IncludeModule("workflow");
        $bBizprocTab = $bBizproc && $str_BIZPROC == "Y";
        $aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("IB_E_TAB2"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB2_T")), array("DIV" => "edit10", "TAB" => GetMessage("IB_E_TAB10"), "ICON" => "iblock_iprops", "TITLE" => GetMessage("IB_E_TAB10_T")), array("DIV" => "edit6", "TAB" => GetMessage("IB_E_TAB6"), "ICON" => "iblock_fields", "TITLE" => GetMessage("IB_E_TAB6_T")), array("DIV" => "edit2", "TAB" => GetMessage("IB_E_TAB3"), "ICON" => "iblock_props", "TITLE" => GetMessage("IB_E_TAB3_T")), array("DIV" => "edit8", "TAB" => GetMessage("IB_E_TAB8"), "ICON" => "section_fields", "TITLE" => GetMessage("IB_E_TAB8_T")));
        if ($bTab3) {
            $aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("IB_E_TAB7"), "ICON" => "iblock_rss", "TITLE" => GetMessage("IB_E_TAB7_T"));
        }
        if ($bCatalog) {
            $aTabs[] = array("DIV" => "edit9", "TAB" => GetMessage("IB_E_TAB9"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB9_T"));
        }
        if (CIBlockRights::UserHasRightTo($ID, $ID, "iblock_rights_edit")) {
            $aTabs[] = array("DIV" => "edit4", "TAB" => GetMessage("IB_E_TAB4"), "ICON" => "iblock_access", "TITLE" => GetMessage("IB_E_TAB4_T"));
        }
        $aTabs[] = array("DIV" => "edit5", "TAB" => GetMessage("IB_E_TAB5"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB5_T"));
        if ($bBizprocTab) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:iblock_edit.php

示例2: array

require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
if ('L' == $arProperty['PROPERTY_TYPE']) {
    $arDefPropInfo['MULTIPLE'] = $arProperty['MULTIPLE'];
}
$arTypesList = array("S" => GetMessage("BT_ADM_IEP_PROP_TYPE_S"), "N" => GetMessage("BT_ADM_IEP_PROP_TYPE_N"), "L" => GetMessage("BT_ADM_IEP_PROP_TYPE_L"), "F" => GetMessage("BT_ADM_IEP_PROP_TYPE_F"), "G" => GetMessage("BT_ADM_IEP_PROP_TYPE_G"), "E" => GetMessage("BT_ADM_IEP_PROP_TYPE_E"));
$aMenu = array(array("TEXT" => GetMessage("BT_ADM_IEP_LIST"), "LINK" => 'iblock_property_admin.php?lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $intIBlockID . ($_REQUEST["admin"] == "Y" ? "&admin=Y" : "&admin=N"), "ICON" => "btn_list"));
if ($str_PROPERTY_ID > 0) {
    $aMenu[] = array("SEPARATOR" => "Y");
    $aMenu[] = array("TEXT" => GetMessage("BT_ADM_IEP_DELETE"), "LINK" => "javascript:jsDelete('frm_prop', '" . GetMessage("BT_ADM_IEP_CONFIRM_DEL_MESSAGE") . "')", "ICON" => "btn_delete");
}
if (!$bReload) {
    $context = new CAdminContextMenu($aMenu);
    $context->Show();
}
if ($strWarning) {
    CAdminMessage::ShowOldStyleError($strWarning . "<br>");
} elseif ($message) {
    echo $message->Show();
}
?>
	<script type="text/javascript">
	function jsDelete(form_id, message)
	{
		var _form = BX(form_id);
		var _flag = BX('action');
		if(!!_form && !!_flag)
		{
			if(confirm(message))
			{
				_flag.value = 'delete';
				_form.submit();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_edit_property.php

示例3: array

				$aMenu[] = array("SEPARATOR"=>"Y");
				$aMenu[] = array(
					"TEXT" => GetMessage('IBEL_E_ACTIONS'),
					"TITLE" => GetMessage('IBEL_E_ACTIONS_TITLE'),
					"MENU" => $arSubMenu,
					'ICON' => 'btn_new'
				);
			}
		}

		$context = new CAdminContextMenu($aMenu);
		$context->Show();
	}

	if($error)
		CAdminMessage::ShowOldStyleError($error->GetErrorText());

	$bFileman = CModule::IncludeModule("fileman");
	$arTranslit = $arIBlock["FIELDS"]["CODE"]["DEFAULT_VALUE"];
	$bLinked = (!strlen($str_TIMESTAMP_X) || $bCopy) && $_POST["linked_state"]!=='N';

if(strlen($arIBlock["EDIT_FILE_AFTER"])>0 && is_file($_SERVER["DOCUMENT_ROOT"].$arIBlock["EDIT_FILE_AFTER"])):
	include($_SERVER["DOCUMENT_ROOT"].$arIBlock["EDIT_FILE_AFTER"]);
	$_SESSION['IBLOCK_CUSTOM_FORM'] = true;
elseif(strlen($arIBTYPE["EDIT_FILE_AFTER"])>0 && is_file($_SERVER["DOCUMENT_ROOT"].$arIBTYPE["EDIT_FILE_AFTER"])):
	include($_SERVER["DOCUMENT_ROOT"].$arIBTYPE["EDIT_FILE_AFTER"]);
	$_SESSION['IBLOCK_CUSTOM_FORM'] = true;
else:
?>

<?
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php

示例4: array

####### get validators list
$arCurrentValidators = array();
if ($ID > 0)
{
	$rsCurrentValidators = CFormValidator::GetList($ID, array(), $by="C_SORT", $order="ASC");
	while ($arValidator = $rsCurrentValidators->Fetch())
	{
		$arCurrentValidators[] = $arValidator;
	}
}
#############################
if ($bWarn)
	$strError.=GetMessage("FORM_SAVE_WARN")."<br>";

if($strError)
	CAdminMessage::ShowOldStyleError($strError);

?>
<script language="JavaScript">
function FormSubmit()
{
	return jsFormValidatorSettings.PrepareToSubmit();
}
</script>
<form name="form1" method="POST" action="" enctype="multipart/form-data" onSubmit="return FormSubmit();">
<?php 
echo freetrix_sessid_post();
?>
<input type="hidden" name="ID" value=<?php 
echo $ID;
?>
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:form_field_edit_simple.php

示例5: require

				}
			</script>
			<?
			die();
		}
		if($ex = $APPLICATION->GetException())
		{
			$errorMessage .= $ex->GetString()."<br>";
		}
	}
}

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
if($errorMessage)
{
	CAdminMessage::ShowOldStyleError($errorMessage);
}
else
{
	$arCellTemplates = array();
	$arCellTemplates[] = CUtil::JSEscape(__AddCellPriceType('tmp_xxx', 'PREFIX'));
	$arCellTemplates[] = CUtil::JSEscape(__AddCellPrice('tmp_xxx', 'PREFIX'));
	$arCellTemplates[] = CUtil::JSEscape(__AddCellCurrency('tmp_xxx', 'PREFIX'));

	$aTabs = array(
		array("DIV" => "edit", "TAB" => GetMessage("IB_SEG_TAB_TITLE")),
	);

	?>
	<?CAdminMessage::ShowMessage($errorMessage);?>
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:30,代码来源:iblock_subelement_generator.php

示例6: showMessages

 /**
  * Выводит сообщения об ошибках.
  * 
  * @internal
  */
 protected function showMessages()
 {
     $allErrors = $this->getErrors();
     $notes = $this->getNotes();
     if (!empty($allErrors)) {
         $errorList[] = implode("\n", $allErrors);
     }
     if ($e = $this->getLastException()) {
         $errorList[] = trim($e->GetString());
     }
     if (!empty($errorList)) {
         $errorText = implode("\n\n", $errorList);
         \CAdminMessage::ShowOldStyleError($errorText);
     } else {
         if (!empty($notes)) {
             $noteText = implode("\n\n", $notes);
             \CAdminMessage::ShowNote($noteText);
         }
     }
 }
开发者ID:lithium-li,项目名称:digitalwand.admin_helper,代码行数:25,代码来源:AdminBaseHelper.php

示例7: GetMessage

<?php 
if ($_REQUEST["mess"] == "ok") {
    CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("PP_NEW_INVOICE"), "TYPE" => "OK"));
}
if ($_REQUEST["mess"] == "save") {
    CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("PP_SAVE_SETTINGS"), "TYPE" => "OK"));
}
?>

<form method="post" action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="find_form">
	<?php 
if ($ex = $APPLICATION->GetException()) {
    CAdminMessage::ShowOldStyleError($ex->GetString());
}
?>
	<?php 
if (strlen($_REQUEST["message"]) > 0) {
    echo CAdminMessage::ShowNote($_REQUEST["message"]);
}
?>

	<?php 
$tabControl->Begin();
?>
		<?php 
$tabControl->BeginNextTab();
?>
			<?php 
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:pickpoint_export.php


注:本文中的CAdminMessage::ShowOldStyleError方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。