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


PHP CJSPopup::ShowValidationError方法代码示例

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


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

示例1: GetMessage

        $arGlobalProperties[$propertyCode] = $arDirProperties[$propertyCode];
    } else {
        $arGlobalProperties[$propertyCode] = "";
    }
    unset($arDirProperties[$propertyCode]);
    unset($arInheritProperties[strtoupper($propertyCode)]);
}
foreach ($arDirProperties as $propertyCode => $propertyValue) {
    unset($arInheritProperties[strtoupper($propertyCode)]);
}
$bPropertyExists = !empty($arGlobalProperties) || !empty($arDirProperties) || !empty($arInheritProperties);
//HTML Output
$popupWindow->ShowTitlebar(GetMessage("PAGE_NEW_WINDOW_TITLE"));
$popupWindow->StartDescription($createNewFolder ? "bx-create-new-folder" : "bx-create-new-page");
if (isset($strWarning) && $strWarning != "") {
    $popupWindow->ShowValidationError($strWarning);
}
?>

<p><?php 
echo GetMessage("PAGE_NEW_SUB_TITLE");
?>
 <b><?php 
echo htmlspecialcharsbx($path);
?>
</b></p>

<?php 
if (IsModuleInstalled("fileman")) {
    ?>
	<?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:file_new.php

示例2: GetMessage

echo GetMessage("comp_prop_path");
?>
"><a href="/bitrix/admin/fileman_admin.php?lang=<?php 
echo LANGUAGE_ID;
?>
&amp;path=<?php 
echo urlencode($localPath);
?>
"><?php 
echo htmlspecialcharsbx($_GET["component_name"]);
?>
</a></p>
<?php 
if ($strWarning != "") {
    //ShowError($strWarning);
    $obJSPopup->ShowValidationError($strWarning);
    //echo '<script>jsPopup.AdjustShadow()</script>';
}
if (!empty($arComponentTemplates) || !empty($arComponentParameters["PARAMETERS"]) || !empty($arTemplateParameters)) {
    $obJSPopup->StartContent();
    $sSectArr = "";
    $aClosedSections = array();
    if (isset($_POST["__closed_sections"]) && $_POST["__closed_sections"] != "") {
        $sections = preg_replace("/[^a-z0-9_,]/i", "", $_POST["__closed_sections"]);
        $aClosedSections = explode(",", $sections);
        $sSectArr = "'" . implode("','", $aClosedSections) . "'";
    }
    ?>
<script>
window.__closed_sections = [<?php 
    echo $sSectArr;
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:component_props2.php

示例3: str_replace

$popupWindow = new CJSPopup('', '');
//HTML output
$sTitle = GetMessage("WD_EDIT_SECTION");
$sDescription = GetMessage("WD_EDIT_SECTION_DESCRIPTION");
$sTheme = "bx-property-folder";
if ($arParams["ACTION"] == "ADD") {
    $sTitle = GetMessage("WD_ADD_SECTION");
    $sDescription = GetMessage("WD_ADD_SECTION_DESCRIPTION");
    $sTheme = "bx-create-new-folder";
} elseif ($arParams["ACTION"] == "DROP") {
    $sTitle = GetMessage("WD_DROP_SECTION");
    $sDescription = GetMessage("WD_DROP_SECTION_DESCRIPTION");
    $sTheme = "bx-delete-page";
}
if (!empty($arResult["ERROR_MESSAGE"])) {
    $popupWindow->ShowValidationError($arResult["ERROR_MESSAGE"]);
    die;
}
$popupWindow->ShowTitlebar($sTitle);
$popupWindow->StartDescription();
?>
<p><?php 
echo str_replace("#PATH#", "/" . implode("/", $arResult["NAV_CHAIN"]), $sDescription);
?>
</p><?php 
$popupWindow->EndDescription();
$popupWindow->StartContent();
?>
	<input type="hidden" name="SECTION_ID" value="<?php 
echo $arParams["SECTION_ID"];
?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例4: elseif

     if (!$errorMessage) {
         $obJSPopup->Close();
     } else {
         $obJSPopup->ShowValidationError($errorMessage);
         $obJSPopup->Close(false);
         die;
     }
 } elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && array_key_exists("sm_action", $_REQUEST) && $_REQUEST["sm_action"] == "clear_settings" && check_bitrix_sessid()) {
     CUserOptions::DeleteOption("socialnetwork", "~menu_" . $arParams["ENTITY_TYPE"] . "_" . $arParams["ENTITY_ID"], false, 0);
     $APPLICATION->RestartBuffer();
     require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/interface/admin_lib.php';
     $obJSPopup = new CJSPopup();
     if (!$errorMessage) {
         $obJSPopup->Close();
     } else {
         $obJSPopup->ShowValidationError($errorMessage);
         die;
     }
 } elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && array_key_exists("sm_action", $_REQUEST) && $_REQUEST["sm_action"] == "delete" && strlen($_REQUEST["feature"]) > 0 && check_bitrix_sessid()) {
     if (!$errorMessage) {
         $dbResultTmp = CSocNetFeatures::GetList(array(), array("ENTITY_ID" => $arParams['ENTITY_ID'], "ENTITY_TYPE" => $arParams['ENTITY_TYPE'], "FEATURE" => $_REQUEST['feature']));
         $arResultTmp = $dbResultTmp->Fetch();
         if ($arResultTmp) {
             $FeatureName = $arResultTmp["FEATURE_NAME"];
         } else {
             $FeatureName = '';
         }
         $idTmp = CSocNetFeatures::SetFeature($arParams['ENTITY_TYPE'], $arParams['ENTITY_ID'], $_REQUEST["feature"], false, $FeatureName);
         if (!$idTmp && ($e = $APPLICATION->GetException())) {
             $errorMessage = $e->GetString();
         }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php

示例5: addslashes

$arIncLang = $form->getIncMessages();

$arRequestLang = $form->getRequestLang();
if (is_array($arRequestLang) && !empty($arRequestLang))
{
	$form->prepareRequestLang();
	$arError = $form->getError();

	if (!count($arError))
	{
		$obJSPopup->Close(true, "");
		die();
	}
	else
	{
		$obJSPopup->ShowValidationError(implode("<br>", $arError));
	}
}

if (count($arIncLang))
{
	?>
	<table class="bx-width100" id="bx_folder_properties">
		<input type="hidden" name="arLangFiles" value='<?php 
echo addslashes(serialize($arLangsFiles));
?>
'>
		<input type="hidden" name="langForm" value="Y">
		<?
		foreach ($arIncLang as $file => $arFileLang)
		{
开发者ID:HotPiN,项目名称:bitrix.lang,代码行数:31,代码来源:public_lang_edit.php


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