本文整理汇总了PHP中htmlspecialcharsEx函数的典型用法代码示例。如果您正苦于以下问题:PHP htmlspecialcharsEx函数的具体用法?PHP htmlspecialcharsEx怎么用?PHP htmlspecialcharsEx使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了htmlspecialcharsEx函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: fancy_output
function fancy_output($content)
{
if (isTextMode()) {
return sprintf('<pre>%s</pre>', htmlspecialcharsEx($content));
}
return sprintf('<p>%s</e>', $content);
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:7,代码来源:php_command_line.php
示例2: mfi_format_line
function mfi_format_line($arValue, $uid, $controlNameFull)
{
$result = '';
if (is_array($arValue) && sizeof($arValue) > 0)
{
ob_start();
foreach ($arValue as $arElement)
{
$elementID = intval($arElement['ID']);
?>
<tr class="file-inline-file" id="wd-doc<?php
echo $elementID;
?>
">
<td class="files-name">
<span class="files-text">
<span class="f-wrap"><?php
echo htmlspecialcharsEx($arElement['ORIGINAL_NAME']);
?>
</span>
</span>
</td>
<td class="files-size"><?php
echo CFile::FormatSize($arElement["FILE_SIZE"]);
?>
</td>
<td class="files-storage">
<div class="files-storage-block">
<span class='del-but' onclick="BfileFD<?php
echo $uid;
?>
.agent.StopUpload(BX('wd-doc<?php
echo $elementID;
?>
'));"></span>
<span class="files-placement"><?/*=htmlspecialcharsEx($title)*/?></span>
<input id="file-doc<?php
echo $elementID;
?>
" type="hidden" name="<?php
echo htmlspecialcharsbx($controlNameFull);
?>
" value="<?php
echo $elementID;
?>
" />
</div>
</td>
</tr>
<?
}
$result = ob_get_clean();
}
return $result;
}
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:57,代码来源:template.php
示例3: __forum_chapter_menu_gen
function __forum_chapter_menu_gen()
{
$Dict = array("W" => array(), "T" => array());
CModule::IncludeModule("forum");
$db_res = CFilterDictionary::GetList();
while ($res = $db_res->Fetch()) {
$Dict[$res["TYPE"]][] = array("text" => htmlspecialcharsEx($res["TITLE"]), "url" => "/bitrix/admin/forum_" . ($res["TYPE"] == "T" ? "letter" : "words") . ".php?DICTIONARY_ID=" . $res["ID"] . "&lang=" . LANG, "more_url" => array("/bitrix/admin/forum_" . ($res["TYPE"] == "T" ? "letter" : "words") . ".php?DICTIONARY_ID=" . $res["ID"] . "&lang=" . LANG, "/bitrix/admin/forum_dictionary_edit.php?DICTIONARY_ID=" . $res["ID"] . "&lang=" . LANG, "/bitrix/admin/forum_" . ($res["TYPE"] == "T" ? "letter" : "words") . "_edit.php?DICTIONARY_ID=" . $res["ID"] . "&lang=" . LANG), "title" => htmlspecialcharsEx($res["TITLE"]));
}
return $Dict;
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:10,代码来源:menu.php
示例4: __ConvertData
function __ConvertData(&$item, $key)
{
static $search = array("\");
static $replace = array("&#92;");
if (is_array($item)) {
array_walk($item, "__ConvertData");
} else {
$item = htmlspecialcharsEx($item);
$item = str_replace($search, $replace, $item);
}
}
开发者ID:rasuldev,项目名称:torino,代码行数:11,代码来源:template.php
示例5: ShowMessage
static function ShowMessage($message, $error = false)
{
$background = $error ? '#ffcccc' : '#ccffcc';
?>
<div style='background-color:<?php
echo $background;
?>
; border: 1px solid #ff8888; padding: 10px; margin: 5px 0; font-size:80%;'>
<?php
echo htmlspecialcharsEx($message);
?>
</div>
<?php
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:14,代码来源:dbtools.php
示例6: handleFile
function handleFile($hash, $file, &$package, &$upload)
{
global $APPLICATION;
$name = $file["name"];
$pattern = defined('BX_UTF') ? "/[^\\p{L}L0-9!\\p{Z}\$&\\(\\)\\[\\]\\{\\}\\-\\.;=@\\^_\\~]/uis" : "/[^A-Za-zÀ-ߨà-ÿ¸0-9!\\s\$&\\(\\)\\[\\]\\{\\}\\-\\.;=@\\^_\\~]/is";
$name = trim(preg_replace($pattern, "", $name));
if (strlen(trim(substr($name, 0, strpos($name, '.')))) <= 0) {
$name = substr(md5(uniqid(rand(), true)), 0, 8) . trim($name);
}
$res = CMedialibItem::Edit(array('file' => array_key_exists("files", $file) ? $file["files"]["default"] : $file, 'arFields' => array('NAME' => $name, 'DESCRIPTION' => $file['description'], 'KEYWORDS' => ''), 'arCollections' => array($package["collectionId"])));
if (!array_key_exists("redirectUrl", $upload) && $res && $res['ID'] > 0) {
$upload["redirectUrlPart"] = "action=redirect&" . bitrix_sessid_get() . "&first_id=" . $res["ID"] . "&col_id=" . $package["collectionId"] . "&ml_type=" . htmlspecialcharsEx($package["ml_type"]);
$upload["redirectUrl"] = $APPLICATION->GetCurPageParam($upload["redirectUrlPart"], array("action", "ml_type", "first_id", "col_id", "sessid"));
}
return $res;
}
开发者ID:Satariall,项目名称:izurit,代码行数:16,代码来源:fileman_medialib_upload.php
示例7: GetAdminListViewHTML
public static function GetAdminListViewHTML($arProperty, $value, $strHTMLControlName)
{
static $cache = array();
if (CModule::IncludeModule("forum")) {
$value["VALUE"] = intval($value["VALUE"]);
if ($value["VALUE"] <= 0) {
$value["VALUE"] = '';
$res = '';
} else {
if (!array_key_exists($value["VALUE"], $cache)) {
$cache[$value["VALUE"]] = CForumTopic::GetByID($value["VALUE"]);
}
$arTopic = $cache[$value["VALUE"]];
$res = !empty($arTopic) ? "[" . $value["VALUE"] . "] (" . htmlspecialcharsEx($arTopic["TITLE"]) . ")" : $value["VALUE"];
}
return $res;
}
return '';
}
开发者ID:rasuldev,项目名称:torino,代码行数:19,代码来源:prop_topicid.php
示例8: GetPropertyFieldHtml
function GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
{
global $APPLICATION;
if (strLen(trim($strHTMLControlName["FORM_NAME"])) <= 0) {
$strHTMLControlName["FORM_NAME"] = "form_element";
}
$name = preg_replace("/[^a-zA-Z0-9_]/i", "x", htmlspecialcharsbx($strHTMLControlName["VALUE"]));
if (is_array($value["VALUE"])) {
$value["VALUE"] = $value["VALUE"]["VALUE"];
$value["DESCRIPTION"] = $value["DESCRIPTION"]["VALUE"];
}
if ($strHTMLControlName["MODE"] == "FORM_FILL" && CModule::IncludeModule('fileman')) {
return CFileInput::Show($strHTMLControlName["VALUE"], $value["VALUE"], array("PATH" => "Y", "IMAGE" => "N", "MAX_SIZE" => array("W" => COption::GetOptionString("iblock", "detail_image_size"), "H" => COption::GetOptionString("iblock", "detail_image_size"))), array('upload' => false, 'medialib' => true, 'file_dialog' => true, 'cloud' => true, 'del' => true, 'description' => $arProperty["WITH_DESCRIPTION"] == "Y" ? array("VALUE" => $value["DESCRIPTION"], "NAME" => $strHTMLControlName["DESCRIPTION"]) : false));
} else {
$return = '<input type="text" name="' . htmlspecialcharsbx($strHTMLControlName["VALUE"]) . '" id="' . $name . '" size="' . $arProperty["COL_COUNT"] . '" value="' . htmlspecialcharsEx($value["VALUE"]) . '">';
if ($arProperty["WITH_DESCRIPTION"] == "Y" && '' != trim($strHTMLControlName["DESCRIPTION"])) {
$return .= ' <span title="' . GetMessage("IBLOCK_PROP_FILEMAN_DESCRIPTION_TITLE") . '">' . GetMessage("IBLOCK_PROP_FILEMAN_DESCRIPTION_LABEL") . ':<input name="' . htmlspecialcharsEx($strHTMLControlName["DESCRIPTION"]) . '" value="' . htmlspecialcharsEx($value["DESCRIPTION"]) . '" size="18" type="text"></span>';
}
return $return;
}
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:21,代码来源:prop_fileman.php
示例9: GetUserName
function GetUserName($USER_ID, $nameTemplate = "")
{
$ar_res = false;
if (IntVal($USER_ID) > 0) {
$db_res = CUser::GetByID(IntVal($USER_ID));
$ar_res = $db_res->Fetch();
}
if (!$ar_res) {
$db_res = CUser::GetByLogin($USER_ID);
$ar_res = $db_res->Fetch();
}
$USER_ID = IntVal($ar_res["ID"]);
$f_LOGIN = htmlspecialcharsex($ar_res["LOGIN"]);
$forum_user = CForumUser::GetByUSER_ID($USER_ID);
if ($forum_user["SHOW_NAME"] == "Y" && (strlen(trim($ar_res["NAME"])) > 0 || strlen(trim($ar_res["LAST_NAME"])) > 0)) {
$nameTemplate = trim(empty($nameTemplate)) ? CSite::GetNameFormat() : $nameTemplate;
return trim(CUser::FormatName($nameTemplate, array("NAME" => htmlspecialcharsEx($ar_res["NAME"]), "LAST_NAME" => htmlspecialcharsEx($ar_res["LAST_NAME"]), "SECOND_NAME" => htmlspecialcharsEx($ar_res["SECOND_NAME"]))));
} else {
return $f_LOGIN;
}
}
开发者ID:Satariall,项目名称:izurit,代码行数:21,代码来源:component.php
示例10: getDefaultMeasure
public static function getDefaultMeasure($getStub = false, $getExt = false)
{
$getStub = $getStub === true;
$getExt = $getExt === true;
if (self::$defaultMeasure === null) {
$measureRes = CCatalogMeasure::getList(array(), array('IS_DEFAULT' => 'Y'), false, false, array());
if ($measure = $measureRes->GetNext(true, $getExt)) {
$measure['ID'] = (int) $measure['ID'];
$measure['CODE'] = (int) $measure['CODE'];
self::$defaultMeasure = $measure;
}
}
if (self::$defaultMeasure === null) {
$measureRes = CCatalogMeasure::getList(array(), array('CODE' => self::DEFAULT_MEASURE_CODE), false, false, array());
if ($measure = $measureRes->GetNext(true, $getExt)) {
$measure['ID'] = (int) $measure['ID'];
$measure['CODE'] = (int) $measure['CODE'];
self::$defaultMeasure = $measure;
}
}
if (self::$defaultMeasure === null) {
if ($getStub) {
$defaultMeasureDescription = CCatalogMeasureClassifier::getMeasureInfoByCode(self::DEFAULT_MEASURE_CODE);
if ($defaultMeasureDescription !== null) {
self::$defaultMeasure = array('ID' => 0, 'CODE' => self::DEFAULT_MEASURE_CODE, 'MEASURE_TITLE' => htmlspecialcharsEx($defaultMeasureDescription['MEASURE_TITLE']), 'SYMBOL_RUS' => htmlspecialcharsEx($defaultMeasureDescription['SYMBOL_RUS']), 'SYMBOL_INTL' => htmlspecialcharsEx($defaultMeasureDescription['SYMBOL_INTL']), 'SYMBOL_LETTER_INTL' => htmlspecialcharsEx($defaultMeasureDescription['SYMBOL_LETTER_INTL']), 'IS_DEFAULT' => 'Y');
if ($getExt) {
self::$defaultMeasure['~ID'] = '0';
self::$defaultMeasure['~CODE'] = (string) self::DEFAULT_MEASURE_CODE;
self::$defaultMeasure['~MEASURE_TITLE'] = self::$defaultMeasure['MEASURE_TITLE'];
self::$defaultMeasure['~SYMBOL_RUS'] = self::$defaultMeasure['SYMBOL_RUS'];
self::$defaultMeasure['~SYMBOL_INTL'] = self::$defaultMeasure['SYMBOL_INTL'];
self::$defaultMeasure['~SYMBOL_LETTER_INTL'] = self::$defaultMeasure['SYMBOL_LETTER_INTL'];
self::$defaultMeasure['~IS_DEFAULT'] = 'Y';
}
}
}
}
return self::$defaultMeasure;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:39,代码来源:measure.php
示例11: GetChainString
function GetChainString($items = false, $templates = false)
{
$arItemLast = array();
$arItems = array();
if (!is_array($items)) {
return false;
}
if (!is_set($templates, "T_SEPARATOR")) {
$templates["T_SEPARATOR"] = "<font class=\"forum-chain-separator\"> / </font>";
}
if (!is_set($templates, "T_ALL_ITEMS")) {
$templates["T_ALL_ITEMS"] = "<a href=\"#LINK#\" class=\"forum-chain-item\">#TITLE#</a>";
}
if (!is_set($templates, "T_LAST_ITEM")) {
$templates["T_LAST_ITEM"] = "<font class=\"forum-chain-last\">#TITLE#</font>";
}
$arItemLast = array_pop($items);
foreach ($items as $res) {
$arItems[] = str_replace(array("#LINK#", "#TITLE#"), array(htmlspecialcharsEx($res["LINK"]), htmlspecialcharsEx($res["TITLE"])), $templates["T_ALL_ITEMS"]);
}
$arItems[] = str_replace(array("#LINK#", "#TITLE#"), array(htmlspecialcharsEx($arItemLast["LINK"]), htmlspecialcharsEx($arItemLast["TITLE"])), $templates["T_LAST_ITEM"]);
return implode($templates["T_SEPARATOR"], $arItems);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:23,代码来源:interface.php
示例12: OnPostForm
function OnPostForm()
{
$wizard =& $this->GetWizard();
$templateID = $wizard->GetSiteTemplateID();
$templatePath = BX_PERSONAL_ROOT . "/templates/" . $templateID;
$arReplace = array("COMPANY_NAME" => $wizard->GetVar("company_name"), "COMPANY_SLOGAN" => $wizard->GetVar("company_slogan"));
CWizardUtil::ReplaceMacros($_SERVER["DOCUMENT_ROOT"] . $templatePath . "/include_areas/company_name.php", $arReplace);
$server_name = $_SERVER["HTTP_HOST"] != '' ? $_SERVER["HTTP_HOST"] : $_SERVER["SERVER_NAME"];
if ($_SERVER["SERVER_PORT"] != 80 && $_SERVER["SERVER_PORT"] != 443 && $_SERVER["SERVER_PORT"] > 0 && strpos($_SERVER["HTTP_HOST"], ":") === false) {
$server_name .= ":" . $_SERVER["SERVER_PORT"];
}
COption::SetOptionString("main", "server_name", $server_name);
COption::SetOptionString("main", "site_name", htmlspecialcharsEx($wizard->GetVar("company_name")));
COption::SetOptionString("main", "wizard_company_slogan", $wizard->GetVar("company_slogan"));
$themeVarName = $templateID . "_themeID";
$themeID = $wizard->GetVar($themeVarName);
$themeID = Rel2Abs("/", $themeID);
$themePath = $_SERVER["DOCUMENT_ROOT"] . DemoSiteUtil::GetTemplatesPath($wizard->GetPath()) . "/" . $templateID . "/themes/" . $themeID;
CopyDirFiles($themePath, $_SERVER["DOCUMENT_ROOT"] . $templatePath, $rewrite = true, $recursive = true, $delete_after_copy = false, $exclude = "description.php");
$companyLogo = $wizard->GetVar("company_logo");
CWizardUtil::CopyFile($companyLogo, $templatePath . "/images/logo.gif", false);
COption::SetOptionString("main", "wizard_site_logo", $companyLogo);
}
开发者ID:Satariall,项目名称:izurit,代码行数:23,代码来源:install_steps.php
示例13: foreach
<span id="feed-add-post-destination-item"></span>
<span class="feed-add-destination-input-box" id="feed-add-post-destination-input-box">
<input type="text" value="" class="feed-add-destination-inp" id="feed-add-post-destination-input">
</span>
<a href="#" class="feed-add-destination-link" id="bx-destination-tag"></a>
</div>
</li>
<?php
}
if (!empty($arParams["TAGS"])) {
$tags = "";
$tagsInput = "";
foreach ($arParams["TAGS"]["VALUE"] as $val) {
$val = trim($val);
if (strlen($val) > 0) {
$tags .= '<span class="feed-add-post-tags" data-tag="' . htmlspecialcharsbx($val) . '">' . htmlspecialcharsEx($val);
$tags .= '<span class="feed-add-post-del-but"></span></span>';
if ($tagsInput != "") {
$tagsInput .= ",";
}
$tagsInput .= htmlspecialcharsbx($val);
}
}
?>
<li id="post-tags-block-<?php
echo $arParams["FORM_ID"];
?>
" class="feed-add-post-tags-block"<?php
if ($tags !== "") {
?>
style="display:block"<?php
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php
示例14: explode
if ($strVal != '')
$arVal = explode(',', $strVal);
$dbUserGroups = CGroup::GetList(($b="c_sort"), ($o="asc"), array("ANONYMOUS" => "N"));
while ($arUserGroups = $dbUserGroups->Fetch())
{
$arUserGroups["ID"] = (int)$arUserGroups["ID"];
if ($arUserGroups["ID"] == 2)
continue;
?>
<tr>
<td width="40%"><label for="user_group_<?php
echo $arUserGroups["ID"];
?>
"><?php
echo htmlspecialcharsEx($arUserGroups["NAME"]);
?>
</label> [<a href="group_edit.php?ID=<?php
echo $arUserGroups["ID"];
?>
&lang=<?php
echo LANGUAGE_ID;
?>
" title="<?php
echo Loc::getMessage("CO_USER_GROUP_ALT");
?>
"><?php
echo $arUserGroups["ID"];
?>
</a>]:</td>
<td width="60%"><input type="checkbox" id="user_group_<?php
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:options.php
示例15: GetMessage
<div class="blog-comment-fields">
<?php
if (empty($arResult["User"])) {
?>
<div class="blog-comment-field blog-comment-field-user">
<div class="blog-comment-field blog-comment-field-author"><div class="blog-comment-field-text"><label for="user_name"><?php
echo GetMessage("B_B_MS_NAME");
?>
</label><span class="blog-required-field">*</span></div><span><input maxlength="255" size="30" tabindex="3" type="text" name="user_name" id="user_name" value="<?php
echo htmlspecialcharsEx($_SESSION["blog_user_name"]);
?>
"></span></div>
<div class="blog-comment-field-user-sep"> </div>
<div class="blog-comment-field blog-comment-field-email"><div class="blog-comment-field-text"><label for="">E-mail</label></div><span><input maxlength="255" size="30" tabindex="4" type="text" name="user_email" id="user_email" value="<?php
echo htmlspecialcharsEx($_SESSION["blog_user_email"]);
?>
"></span></div>
<div class="blog-clear-float"></div>
</div>
<?php
}
include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/lhe.php";
if (strlen($arResult["NoCommentReason"]) > 0) {
?>
<div id="nocommentreason" style="display:none;"><?php
echo $arResult["NoCommentReason"];
?>
</div>
<?php
}
开发者ID:Satariall,项目名称:izurit,代码行数:30,代码来源:template.php
示例16: elseif
} elseif ($val2 == $arResult[$key2]) {
continue;
} elseif (!is_array($arResult[$key2])) {
$arResult[$key2] = array($arResult[$key2]);
}
$arResult[$key2] = __array_merge($arResult[$key2], $val2);
}
return $arResult;
}
}
/********************************************************************
Input params
********************************************************************/
/***************** BASE ********************************************/
$q = trim($_REQUEST["q"]);
$arResult["q"] = htmlspecialcharsEx($q);
$arParams["FID"] = !empty($_REQUEST["FID"]) ? $_REQUEST["FID"] : $_REQUEST["FORUM_ID"];
$arParams["FID"] = !empty($arParams["FID"]) ? $arParams["FID"] : $_REQUEST["find_forum"];
$arParams["FID"] = is_array($arParams["FID"]) ? $arParams["FID"] : array($arParams["FID"]);
/***************** URL *********************************************/
$URL_NAME_DEFAULT = array("index" => "", "read" => "PAGE_NAME=read&FID=#FID#&TID=#TID#", "message" => "PAGE_NAME=message&FID=#FID#&TID=#TID#&MID=#MID#");
foreach ($URL_NAME_DEFAULT as $URL => $URL_VALUE) {
if (strLen(trim($arParams["URL_TEMPLATES_" . strToUpper($URL)])) <= 0) {
$arParams["URL_TEMPLATES_" . strToUpper($URL)] = $APPLICATION->GetCurPage() . "?" . $URL_VALUE;
}
$arParams["~URL_TEMPLATES_" . strToUpper($URL)] = $arParams["URL_TEMPLATES_" . strToUpper($URL)];
$arParams["URL_TEMPLATES_" . strToUpper($URL)] = htmlspecialcharsbx($arParams["~URL_TEMPLATES_" . strToUpper($URL)]);
}
/***************** ADDITIONAL **************************************/
$arParams["SHOW_FORUM_ANOTHER_SITE"] = $arParams["SHOW_FORUM_ANOTHER_SITE"] == "Y" ? "Y" : "N";
$arParams["FID_RANGE"] = is_array($arParams["FID_RANGE"]) && !empty($arParams["FID_RANGE"]) ? $arParams["FID_RANGE"] : array();
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php
示例17: array
$arResult['FIELDS']['tab_params'][] = array('id' => 'CITY_NAME', 'name' => GetMessage('CRM_LOC_FIELD_NAME'), 'value' => htmlspecialcharsEx($arLoc['CITY_NAME_ORIG']), 'required' => true, 'type' => 'text');
$arResult['FIELDS']['tab_params'][] = array('id' => 'CITY_SHORT_NAME', 'name' => GetMessage('CRM_LOC_FIELD_SHORT_NAME'), 'value' => htmlspecialcharsEx($arLoc['CITY_SHORT_NAME']), 'type' => 'text');
for ($i = 0; $i < $countLang; $i++) {
$arCity = CSaleLocation::GetCityLangByID($arLoc['CITY_ID'], $arSysLangs[$i]);
/*
$arResult['FIELDS']['tab_params'][] = array(
'id' => 'CI_LANG_'.$arSysLangs[$i],
'value' => '<b>['.$arSysLangs[$i].'] '.$arSysLangNames[$i].'</b>',
'colspan' => true,
'type' => 'label'
);
*/
$arResult['FIELDS']['tab_params'][] = array('id' => 'CITY_NAME_' . $arSysLangs[$i], 'name' => GetMessage('CRM_LOC_FIELD_NAME'), 'value' => htmlspecialcharsEx($arCity["NAME"]), 'required' => true, 'type' => 'text');
$arResult['FIELDS']['tab_params'][] = array('id' => 'CITY_SHORT_NAME_' . $arSysLangs[$i], 'name' => GetMessage('CRM_LOC_FIELD_SHORT_NAME'), 'value' => htmlspecialcharsEx($arCity["SHORT_NAME"]), 'type' => 'text');
}
/*ZIP TAB*/
$arResult['FIELDS']['tab_zip'][] = array('id' => 'loc_zip', 'name' => GetMessage('CRM_LOC_SECTION_ZIP'), 'type' => 'section');
$zipHtml = '<div id="zip_list">';
$arZipList = array();
$rsZipList = CSaleLocation::GetLocationZIP($locID);
while ($arZip = $rsZipList->Fetch()) {
$arZipList[] = $arZip;
}
foreach ($arZipList as $key => $zip) {
$zipHtml .= '<input type="text" name="ZIP[]" value="' . htmlspecialcharsEx($zip["ZIP"]) . '" size="10" /><span class="bx-crm-location-zip-delete" onclick="BX.crmLocationZip.delete(this);">' . GetMessage("CRM_DEL_ZIP") . '</span><br />';
}
$zipHtml .= '<input type="text" name="ZIP[]" value="" size="10" /><br />
</div>
<button onClick="return BX.crmLocationZip.add();">' . GetMessage("CRM_ADD_ZIP") . '</button>';
$arResult['FIELDS']['tab_zip'][] = array('id' => 'ZIP_INPUTS', 'name' => GetMessage('CRM_LOC_FIELD_LOC_ZIP'), 'value' => $zipHtml, 'type' => 'custom');
$this->IncludeComponentTemplate();
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php
示例18: executeComponent
/**
* Function implements all the life cycle of the component
* @return void
*/
public function executeComponent()
{
try {
$this->checkRequiredModules();
$this->checkAuthorized();
$this->loadOptions();
$this->processRequest();
$this->obtainData();
$this->formatResult();
$this->setTitle();
} catch (Exception $e) {
$this->errorsFatal[htmlspecialcharsEx($e->getCode())] = htmlspecialcharsEx($e->getMessage());
}
$this->formatResultErrors();
$this->includeComponentTemplate();
}
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:20,代码来源:class.php
示例19: htmlspecialcharsbx
if(!$bInitVars)
$arResult = $arUserProps;
else
{
foreach($_POST as $k => $v)
{
$arResult[$k] = htmlspecialcharsbx($v);
$arResult['~'.$k] = $v;
}
}
$arResult["ERROR_MESSAGE"] = $errorMessage;
$arResult["TITLE"] = str_replace("#ID#", $arUserProps["ID"], GetMessage("SPPD_PROFILE_NO"));
$arResult["PERSON_TYPE"] = CSalePersonType::GetByID($arUserProps["PERSON_TYPE_ID"]);
$arResult["PERSON_TYPE"]["NAME"] = htmlspecialcharsEx($arResult["PERSON_TYPE"]["NAME"]);
// get prop description
$arrayTmp = Array();
$propsOfTypeLocation = array();
$dbOrderPropsGroup = CSaleOrderPropsGroup::GetList(
array("SORT" => "ASC", "NAME" => "ASC"),
array("PERSON_TYPE_ID" => $arUserProps["PERSON_TYPE_ID"]),
false,
false,
array("ID", "PERSON_TYPE_ID", "NAME", "SORT")
);
while ($arOrderPropsGroup = $dbOrderPropsGroup->GetNext())
{
$arrayTmp[$arOrderPropsGroup["ID"]] = $arOrderPropsGroup;
$dbOrderProps = CSaleOrderProps::GetList(
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:component.php
示例20: GetMessage
<?
}
else
{
?><?php
echo GetMessage("F_EDIT_FORM");
?>
<?php
echo GetMessage("F_IN_TOPIC");
?>
:
<a href="<?php
echo $arResult["URL"]["READ"];
?>
"><?php
echo htmlspecialcharsEx($arResult["TOPIC_FILTER"]["TITLE"]);
?>
</a>, <?php
echo GetMessage("F_IN_FORUM");
?>
:
<a href="<?php
echo $arResult["URL"]["LIST"];
?>
"><?php
echo $arResult["FORUM"]["NAME"];
?>
</a><?
};
?></span></div>
</div>
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:template.php
注:本文中的htmlspecialcharsEx函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论