本文整理汇总了PHP中CFile::ShowImage方法的典型用法代码示例。如果您正苦于以下问题:PHP CFile::ShowImage方法的具体用法?PHP CFile::ShowImage怎么用?PHP CFile::ShowImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFile
的用法示例。
在下文中一共展示了CFile::ShowImage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowStep
function ShowStep()
{
$wizard =& $this->GetWizard();
$siteLogo = $wizard->GetVar("siteLogo", true);
$this->content .= '<div class="wizard-input-form">';
$this->content .= '
<div class="wizard-upload-img-block">
<div class="wizard-catalog-title">' . GetMessage("wiz_company_name") . '</div>
' . $this->ShowInputField('text', 'siteName', array("id" => "siteName", "class" => "wizard-field")) . '
</div>';
$this->content .= '
<div class="wizard-upload-img-block">
<div class="wizard-catalog-title">' . GetMessage("wiz_company_description") . '</div>
' . $this->ShowInputField('text', 'siteDescription', array("id" => "siteDescription", "class" => "wizard-field")) . '
</div>';
if ($wizard->GetVar("templateID") == "taby") {
$this->content .= '
<div class="wizard-upload-img-block">
<div class="wizard-catalog-title">' . GetMessage("wiz_company_logo") . '</div>
' . CFile::ShowImage($siteLogo, 100, 100, "border=0 vspace=5") . '<br/>' . $this->ShowFileField("siteLogo", array("show_file_info" => "N", "id" => "siteLogo")) . '
</div>';
}
$firstStep = COption::GetOptionString("main", "wizard_first" . substr($wizard->GetID(), 7) . "_" . $wizard->GetVar("siteID"), false, $wizard->GetVar("siteID"));
$styleMeta = 'style="display:block"';
if ($firstStep == "Y") {
$styleMeta = 'style="display:none"';
}
$this->content .= '
<div id="bx_metadata" ' . $styleMeta . '><div class="wizard-input-form-block">
<div class="wizard-metadata-title">' . GetMessage("wiz_meta_data") . '</div>
<div class="wizard-upload-img-block">
<label for="siteMetaDescription" class="wizard-input-title">' . GetMessage("wiz_meta_description") . '</label>
' . $this->ShowInputField("textarea", "siteMetaDescription", array("id" => "siteMetaDescription", "class" => "wizard-field", "rows" => "3")) . '
</div>';
$this->content .= '
<div class="wizard-upload-img-block">
<label for="siteMetaKeywords" class="wizard-input-title">' . GetMessage("wiz_meta_keywords") . '</label>
' . $this->ShowInputField('text', 'siteMetaKeywords', array("id" => "siteMetaKeywords", "class" => "wizard-field")) . '
</div>
</div></div>';
if ($firstStep == "Y") {
$this->content .= '
<div class="wizard-input-form-block">' . $this->ShowCheckboxField("installDemoData", "Y", array("id" => "installDemoData", "onClick" => "if(this.checked == true){document.getElementById('bx_metadata').style.display='block';}else{document.getElementById('bx_metadata').style.display='none';}")) . '
<label for="installDemoData">' . GetMessage("wiz_structure_data") . '</label>
</div>';
} else {
$this->content .= $this->ShowHiddenField("installDemoData", "Y");
}
}
示例2: ShowStep
function ShowStep()
{
$wizard =& $this->GetWizard();
$siteLogo = $wizard->GetVar("siteLogo", true);
$this->content .= '<table width="100%" cellspacing="0" cellpadding="0">';
$this->content .= '<tr><td>';
$this->content .= '<label for="site-logo">'.GetMessage("WIZ_COMPANY_LOGO").'</label><br />';
$this->content .= CFile::ShowImage($siteLogo, 209, 61, "border=0 vspace=15");
$this->content .= "<br />".$this->ShowFileField("siteLogo", Array("show_file_info" => "N", "id" => "site-logo"));
$this->content .= '</tr></td>';
$this->content .= '<tr><td><br /><br /><br /></td></tr>';
$this->content .= '<tr><td>';
$this->content .= '<label for="site-slogan">'.GetMessage("WIZ_COMPANY_SLOGAN").'</label><br />';
$this->content .= $this->ShowInputField("textarea", "siteSlogan", Array("id" => "site-slogan", "style" => "width:100%", "rows"=>"3"));
$this->content .= '</tr></td>';
$this->content .= '<tr><td><br /></td></tr>';
$this->content .= '<tr><td>';
$this->content .= '<label for="site-copy">'.GetMessage("WIZ_COMPANY_COPY").'</label><br />';
$this->content .= $this->ShowInputField("textarea", "siteCopy", Array("id" => "site-copy", "style" => "width:100%", "rows"=>"3"));
$this->content .= '</tr></td>';
$this->content .= '<tr><td><br /></td></tr>';
$this->content .= '<tr><td style="padding-bottom:3px;">';
$this->content .= $this->ShowCheckboxField("installDemoData", "Y",
(array("id" => "install-demo-data") + ($_SERVER["PHP_SELF"] == "/index.php" && empty($siteLogo) ? array() : array("checked" => false))));
$this->content .= '<label for="install-demo-data">'.GetMessage("wiz_structure_data").'</label><br />';
$this->content .= '</td></tr>';
$this->content .= '<tr><td> </td></tr>';
$this->content .= '</table>';
$formName = $wizard->GetFormName();
$installCaption = $this->GetNextCaption();
$nextCaption = GetMessage("NEXT_BUTTON");
}
示例3: ShowStep
function ShowStep()
{
$wizard =& $this->GetWizard();
$siteLogo = $wizard->GetVar("siteLogo", true);
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_LOGO") . '</div>';
$this->content .= CFile::ShowImage($siteLogo, 190, 70, "border=0 vspace=15");
$this->content .= "<br />" . $this->ShowFileField("siteLogo", array("show_file_info" => "N", "id" => "site-logo")) . '</div>';
$siteBanner = $wizard->GetVar("siteBanner", true);
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_SITE_BANNER") . '</div>';
$this->content .= CFile::ShowImage($siteBanner, 485, 175, "border=0 vspace=15");
$this->content .= "<br />" . $this->ShowFileField("siteBanner", array("show_file_info" => "N", "id" => "site-banner")) . '</div>';
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_BANNER_TEXT") . '</div>';
$this->content .= $this->ShowInputField("textarea", "siteBannerText", array("id" => "site-text", "class" => "wizard-field", "rows" => "4"));
$this->content .= '<img src="/bitrix/wizards/bitrix/corp_services/images/' . LANGUAGE_ID . '/banner_processed.png">' . '</div>';
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_SLOGAN") . '</div>';
$this->content .= $this->ShowInputField("textarea", "siteSlogan", array("id" => "site-slogan", "class" => "wizard-field", "rows" => "3")) . '</div>';
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_COPY") . '</div>';
$this->content .= $this->ShowInputField("textarea", "siteCopy", array("id" => "site-copy", "class" => "wizard-field", "rows" => "3")) . '</div>';
$firstStep = COption::GetOptionString("main", "wizard_first" . substr($wizard->GetID(), 7) . "_" . $wizard->GetVar("siteID"), false, $wizard->GetVar("siteID"));
$styleMeta = 'style="display:block"';
if ($firstStep == "Y") {
$styleMeta = 'style="display:none"';
}
$this->content .= '
<div id="bx_metadata" ' . $styleMeta . '>
<div class="wizard-input-form-block">
<div class="wizard-metadata-title">' . GetMessage("wiz_meta_data") . '</div>
<div class="wizard-upload-img-block">
<label for="siteMetaDescription" class="wizard-input-title">' . GetMessage("wiz_meta_description") . '</label>
' . $this->ShowInputField("textarea", "siteMetaDescription", array("id" => "siteMetaDescription", "class" => "wizard-field", "rows" => "3")) . '
</div>';
$this->content .= '
<div class="wizard-upload-img-block">
<label for="siteMetaKeywords" class="wizard-input-title">' . GetMessage("wiz_meta_keywords") . '</label><br>
' . $this->ShowInputField('text', 'siteMetaKeywords', array("id" => "siteMetaKeywords", "class" => "wizard-field")) . '
</div>
</div>
</div>';
if ($firstStep == "Y") {
$this->content .= $this->ShowCheckboxField("installDemoData", "Y", array("id" => "install-demo-data", "onClick" => "if(this.checked == true){document.getElementById('bx_metadata').style.display='block';}else{document.getElementById('bx_metadata').style.display='none';}"));
$this->content .= '<label for="install-demo-data">' . GetMessage("wiz_structure_data") . '</label><br />';
} else {
$this->content .= $this->ShowHiddenField("installDemoData", "Y");
}
$formName = $wizard->GetFormName();
$installCaption = $this->GetNextCaption();
$nextCaption = GetMessage("NEXT_BUTTON");
}
示例4: executeComponent
public function executeComponent()
{
try {
$this->checkParams($this->arParams);
} catch (\Exception $e) {
ShowError($e->getMessage());
return;
}
$stores = array();
$arStoreLocation = array("yandex_scale" => 11, "PLACEMARKS" => array());
foreach ($this->arParams["STORES_LIST"] as $storeId => $storeParams) {
$stores[$storeParams["ID"]] = $storeParams;
if (intval($storeParams["IMAGE_ID"]) > 0) {
$arImage = CFile::GetFileArray($storeParams["IMAGE_ID"]);
$imgValue = CFile::ShowImage($arImage, 115, 115, "border=0", "", false);
$stores[$storeParams["ID"]]["IMAGE"] = $imgValue;
$stores[$storeParams["ID"]]["IMAGE_URL"] = $arImage["SRC"];
}
if (floatval($arStoreLocation["yandex_lat"]) <= 0) {
$arStoreLocation["yandex_lat"] = $storeParams["GPS_N"];
}
if (floatval($arStoreLocation["yandex_lon"]) <= 0) {
$arStoreLocation["yandex_lon"] = $storeParams["GPS_S"];
}
$arLocationTmp = array();
$arLocationTmp["ID"] = $storeParams["ID"];
if (strlen($storeParams["GPS_N"]) > 0) {
$arLocationTmp["LAT"] = $storeParams["GPS_N"];
}
if (strlen($storeParams["GPS_S"]) > 0) {
$arLocationTmp["LON"] = $storeParams["GPS_S"];
}
if (strlen($storeParams["TITLE"]) > 0) {
$arLocationTmp["TEXT"] = $storeParams["TITLE"] . "\r\n" . $storeParams["DESCRIPTION"];
}
$arStoreLocation["PLACEMARKS"][] = $arLocationTmp;
}
$this->arResult["LOCATION"] = serialize($arStoreLocation);
$this->arResult["SHOW_IMAGES"] = isset($_REQUEST["showImages"]) && $_REQUEST["showImages"] == "Y";
$this->arResult["STORES"] = $stores;
$this->includeComponentTemplate();
}
示例5: ShowStep
function ShowStep()
{
$wizard =& $this->GetWizard();
$siteLogo = $wizard->GetVar("siteLogo", true);
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_LOGO") . '</div>';
$this->content .= CFile::ShowImage($siteLogo, 209, 61, "border=0 vspace=15");
$this->content .= "<br />" . $this->ShowFileField("siteLogo", array("show_file_info" => "N", "id" => "site-logo")) . "</div>";
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_NUMBER") . '</div>';
$this->content .= $this->ShowInputField("textarea", "siteNumber", array("id" => "site-slogan", "class" => "wizard-field", "rows" => "3")) . "</div>";
$this->content .= '<div class="wizard-upload-img-block"><div class="wizard-catalog-title">' . GetMessage("WIZ_COMPANY_ADDRESS") . '</div>';
$this->content .= $this->ShowInputField("textarea", "siteAddress", array("id" => "site-copy", "class" => "wizard-field", "rows" => "3")) . "</div>";
$firstStep = COption::GetOptionString("main", "wizard_first" . substr($wizard->GetID(), 7) . "_" . $wizard->GetVar("siteID"), false, $wizard->GetVar("siteID"));
$styleMeta = 'style="display:block"';
if ($firstStep == "Y") {
$styleMeta = 'style="display:none"';
}
$this->content .= '
<div id="bx_metadata" ' . $styleMeta . '>
<div class="wizard-input-form-block">
<div class="wizard-metadata-title">' . GetMessage("wiz_meta_data") . '</div>
<div class="wizard-upload-img-block">
<label for="siteMetaDescription" class="wizard-input-title">' . GetMessage("wiz_meta_description") . '</label>
' . $this->ShowInputField("textarea", "siteMetaDescription", array("id" => "siteMetaDescription", "class" => "wizard-field", "rows" => "3")) . '
</div>';
$this->content .= '
<div class="wizard-upload-img-block">
<label for="siteMetaKeywords" class="wizard-input-title">' . GetMessage("wiz_meta_keywords") . '</label><br>
' . $this->ShowInputField('text', 'siteMetaKeywords', array("id" => "siteMetaKeywords", "class" => "wizard-field")) . '
</div>
</div>
</div>';
if ($firstStep == "Y") {
$this->content .= $this->ShowCheckboxField("installDemoData", "Y", array("id" => "install-demo-data", "onClick" => "if(this.checked == true){document.getElementById('bx_metadata').style.display='block';}else{document.getElementById('bx_metadata').style.display='none';}"));
$this->content .= '<label for="install-demo-data">' . GetMessage("wiz_structure_data") . '</label><br />';
} else {
$this->content .= $this->ShowHiddenField("installDemoData", "Y");
}
$formName = $wizard->GetFormName();
$installCaption = $this->GetNextCaption();
$nextCaption = GetMessage("NEXT_BUTTON");
}
示例6: foreach
$arResult['CURRENT_USER']['DEPARTMENT_TOP'] = CIntranetUtils::GetIBlockTopSection($arResult['CURRENT_USER']['UF_DEPARTMENT']);
if (intval($arResult['DEPARTMENT']) == $arResult['CURRENT_USER']['DEPARTMENT_TOP']) {
$arResult['ONLY_MINE'] = 'Y';
}
}
}
$CACHE_MANAGER->RegisterTag('bx_user_intranet_info_' . $arResult['CURRENT_USER']['ID']);
$CACHE_MANAGER->EndTagCache();
}
if ($obUserCache->StartDataCache()) {
$obUserCache->EndDataCache(array('CURRENT_USER' => $arResult['CURRENT_USER'], 'ONLY_MINE' => $arResult['ONLY_MINE']));
}
foreach ($arResult['USERS'] as $key => $arUser) {
if ($arUser['PERSONAL_PHOTO']) {
$imageFile = CFile::GetFileArray($arUser['PERSONAL_PHOTO']);
if ($imageFile !== false) {
$arFileTmp = CFile::ResizeImageGet($imageFile, array("width" => 42, "height" => 42), BX_RESIZE_IMAGE_EXACT, true);
}
if ($arFileTmp && array_key_exists("src", $arFileTmp)) {
$arUser["PERSONAL_PHOTO"] = CFile::ShowImage($arFileTmp["src"], 42, 42);
}
}
$arResult['USERS'][$key] = $arUser;
}
$arResult["arUserField"] = array();
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("USER", 0, LANGUAGE_ID);
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$arResult["arUserField"][$key] = $val;
}
}
示例7:
</tr>
<?php
}
?>
<tr><td> </td></tr>
<tr>
<td><nobr><?php
echo CSalePaySystemAction::GetParamValue("SELLER_ACC_POS", false);
?>
</nobr></td>
<td style="border-bottom: 1pt solid #000000; text-align: center; ">
<?php
if (!$blank && CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN", false)) {
?>
<span style="position: relative; "> <?php
echo CFile::ShowImage(CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN", false), 200, 50, 'style="position: absolute; margin-left: -75pt; bottom: 0pt; "');
?>
</span>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</table>
示例8: array
$COUNT = false;
}
$ids = array();
$dbPosts = CBlogPost::GetList($SORT, $arFilter, false, $COUNT, $arSelectedFields);
$p = new blogTextParser(false, $arParams["PATH_TO_SMILE"]);
$itemCnt = 0;
while ($arPost = $dbPosts->GetNext()) {
if (IntVal($arPost["ATTACH_IMG"]) <= 0) {
$dbImage = CBlogImage::GetList(array("ID" => "ASC"), array("BLOG_ID" => $arPost["BLOG_ID"], "POST_ID" => $arPost["ID"], "IS_COMMENT" => "N"));
if ($arImage = $dbImage->Fetch()) {
if ($file = CFile::ResizeImageGet($arImage["FILE_ID"], array("width" => $arParams["PREVIEW_WIDTH"], "height" => $arParams["PREVIEW_HEIGHT"]))) {
$arPost["IMG"] = CFile::ShowImage($file["src"], false, false, 'align="left" hspace="2" vspace="2"');
}
}
} else {
$arPost["IMG"] = CFile::ShowImage($arPost["ATTACH_IMG"], false, false, 'align="left" hspace="2" vspace="2"');
}
$arTmp = $arPost;
if ($arTmp["AUTHOR_ID"] == $arTmp["BLOG_OWNER_ID"]) {
$arTmp["urlToBlog"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_BLOG"], array("blog" => $arPost["BLOG_URL"], "user_id" => $arPost["AUTHOR_ID"]));
} else {
if ($arParams["USE_SOCNET"] == "Y" && IntVal($arParams["SOCNET_GROUP_ID"]) > 0) {
$arTmp["urlToBlog"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_USER"], array("user_id" => $arPost["AUTHOR_ID"]));
} else {
$arOwnerBlog = CBlog::GetByOwnerID($arTmp["AUTHOR_ID"], $arParams["GROUP_ID"]);
if (!empty($arOwnerBlog)) {
$arTmp["urlToBlog"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_BLOG"], array("blog" => $arOwnerBlog["URL"], "user_id" => $arOwnerBlog["OWNER_ID"], "group_id" => $arPost["BLOG_SOCNET_GROUP_ID"]));
} else {
$arTmp["urlToBlog"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_BLOG"], array("blog" => $arPost["BLOG_URL"], "user_id" => $arPost["AUTHOR_ID"], "group_id" => $arPost["BLOG_SOCNET_GROUP_ID"]));
}
}
示例9: ShowAnswer
function ShowAnswer($FIELD_SID)
{
global $USER;
$out = "";
$arQuestion = $this->arQuestions[$FIELD_SID];
$arrResultAnswer = $this->arrVALUES[$arQuestion["ID"]];
if (is_array($arrResultAnswer)) {
reset($arrResultAnswer);
$count = count($arrResultAnswer);
$i = 0;
foreach ($arrResultAnswer as $key => $arrA) {
$i++;
if (strlen(trim($arrA["USER_TEXT"])) > 0) {
if (intval($arrA["USER_FILE_ID"]) > 0) {
if ($arrA["USER_FILE_IS_IMAGE"] == "Y" && $USER->IsAdmin()) {
$out .= htmlspecialcharsbx($arrA["USER_TEXT"]) . "<br />";
}
} else {
$out .= TxtToHTML($arrA["USER_TEXT"], true, 50) . "<br />";
}
}
if (strlen(trim($arrA["ANSWER_TEXT"])) > 0) {
$answer = "[<span class='form-anstext'>" . TxtToHTML($arrA["ANSWER_TEXT"], true, 50) . "</span>]";
if (strlen(trim($arrA["ANSWER_VALUE"])) > 0) {
$answer .= " ";
} else {
$answer .= "<br />";
}
$out .= $answer;
}
if ($this->arParams["SHOW_ANSWER_VALUE"] == "Y") {
if (strlen(trim($arrA["ANSWER_VALUE"])) > 0) {
$out .= "(<span class='form-ansvalue'>" . TxtToHTML($arrA["ANSWER_VALUE"], true, 50) . "</span>)<br />";
}
}
if (intval($arrA["USER_FILE_ID"]) > 0) {
if ($arrA["USER_FILE_IS_IMAGE"] == "Y") {
$out .= CFile::ShowImage($arrA["USER_FILE_ID"], 0, 0, "border=0", "", true);
} else {
$file_link = "/bitrix/tools/form_show_file.php?rid=" . $this->RESULT_ID . "&hash=" . $arrA["USER_FILE_HASH"] . "&lang=" . LANGUAGE_ID;
$out .= "<a title=\"" . GetMessage("FORM_VIEW_FILE") . "\" target=\"_blank\" href=\"" . $file_link . "\">" . htmlspecialcharsbx($arrA["USER_FILE_NAME"]) . "</a><br />(";
$a = array("b", "Kb", "Mb", "Gb");
$pos = 0;
$size = $arrA["USER_FILE_SIZE"];
while ($size >= 1024) {
$size /= 1024;
$pos++;
}
$out .= round($size, 2) . " " . $a[$pos];
$out .= ")<br />[ <a title=\"" . str_replace("#FILE_NAME#", $arrA["USER_FILE_NAME"], GetMessage("FORM_DOWNLOAD_FILE")) . "\" href=\"" . $file_link . "&action=download\">" . GetMessage("FORM_DOWNLOAD") . "</a> ]";
}
//endif;
}
//endif;
}
//endforeach;
}
//endif;
return $out;
}
示例10: GetMessage
"></td>
</tr>
<tr>
<td valign="top"><?php
echo GetMessage('blog_INTERESTS');
?>
</td>
<td><textarea class="typearea" name="blog_INTERESTS" rows="3" cols="35"><?php
echo $str_blog_INTERESTS;
?>
</textarea></td>
</tr>
<tr class="adm-detail-file-row">
<td><?php
echo GetMessage("blog_AVATAR");
?>
</td>
<td><?php
echo CFile::InputFile("blog_AVATAR", 20, $str_blog_AVATAR);
if (IntVal($str_blog_AVATAR) > 0) {
?>
<div class="adm-detail-file-image"><?php
echo CFile::ShowImage($str_blog_AVATAR, 150, 150, "border=0", "", true);
?>
</div><?php
}
?>
</td>
</tr>
<?php
}
示例11: GetMessage
<td width="40%"><?php
echo GetMessage('SPS_LOGOTIP');
?>
</td>
<td width="60%">
<div><input type="file" name="LOGOTIP_<?php
echo $arPersonType["ID"];
?>
"></div>
<?php
if ($arPaySystemAction["LOGOTIP"] > 0) {
?>
<br>
<?php
$arLogotip = CFile::GetFileArray($arPaySystemAction["LOGOTIP"]);
echo CFile::ShowImage($arLogotip, 150, 150, "border=0", "", false);
?>
<div style="margin-top:10px;">
<input type="checkbox" name="LOGOTIP_<?php
echo $arPersonType["ID"];
?>
_del" value="Y" id="LOGOTIP_<?php
echo $arPersonType["ID"];
?>
_del" >
<label for="LOGOTIP_<?php
echo $arPersonType["ID"];
?>
_del"><?php
echo GetMessage("SPS_LOGOTIP_DEL");
?>
示例12: time
$bDeal = !$CCrmPerms->HavePerm('DEAL', BX_CRM_PERM_NONE, 'WRITE');
$arResult['PERM_DEAL'] = $bDeal;
$bQuote = !$CCrmContact->cPerms->HavePerm('QUOTE', BX_CRM_PERM_NONE, 'ADD');
$arResult['PERM_QUOTE'] = $bQuote;
$bInvoice = !$CCrmPerms->HavePerm('INVOICE', BX_CRM_PERM_NONE, 'ADD');
$arResult['PERM_INVOICE'] = $bInvoice;
$now = time() + CTimeZone::GetOffset();
foreach ($arResult['CONTACT'] as &$arContact) {
if (!empty($arContact['PHOTO'])) {
if ($isInExportMode) {
if ($arFile = CFile::GetFileArray($arContact['PHOTO'])) {
$arContact['PHOTO'] = CHTTP::URN2URI($arFile["SRC"]);
}
} else {
$arFileTmp = CFile::ResizeImageGet($arContact['PHOTO'], array('width' => 50, 'height' => 50), BX_RESIZE_IMAGE_PROPORTIONAL, false);
$arContact['PHOTO'] = CFile::ShowImage($arFileTmp['src'], 50, 50, 'border=0');
}
}
$arContact['PATH_TO_COMPANY_SHOW'] = CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_COMPANY_SHOW'], array('company_id' => $arContact['COMPANY_ID']));
if ($bDeal) {
$arContact['PATH_TO_DEAL_EDIT'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_DEAL_EDIT'], array('deal_id' => 0)), array('contact_id' => $arContact['ID'], 'company_id' => $arContact['COMPANY_ID']));
}
$arContact['PATH_TO_CONTACT_SHOW'] = CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_CONTACT_SHOW'], array('contact_id' => $arContact['ID']));
$arContact['PATH_TO_CONTACT_EDIT'] = CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_CONTACT_EDIT'], array('contact_id' => $arContact['ID']));
$arContact['PATH_TO_CONTACT_COPY'] = CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_CONTACT_EDIT'], array('contact_id' => $arContact['ID'])), array('copy' => 1));
$arContact['PATH_TO_CONTACT_DELETE'] = CHTTP::urlAddParams($bInternal ? $APPLICATION->GetCurPage() : $arParams['PATH_TO_CONTACT_LIST'], array('action_' . $arResult['GRID_ID'] => 'delete', 'ID' => $arContact['ID'], 'sessid' => $arResult['SESSION_ID']));
$arContact['PATH_TO_USER_PROFILE'] = CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_USER_PROFILE'], array('user_id' => $arContact['ASSIGNED_BY']));
$arContact['CONTACT_FORMATTED_NAME'] = CUser::FormatName(\Bitrix\Crm\Format\PersonNameFormatter::getFormat(), array('LOGIN' => '', 'NAME' => $arContact['NAME'], 'LAST_NAME' => $arContact['LAST_NAME'], 'SECOND_NAME' => $arContact['SECOND_NAME']), false, false);
$typeID = isset($arContact['TYPE_ID']) ? $arContact['TYPE_ID'] : '';
$arContact['CONTACT_TYPE_NAME'] = isset($arResult['TYPE_LIST'][$typeID]) ? $arResult['TYPE_LIST'][$typeID] : $typeID;
$arContact['PATH_TO_USER_CREATOR'] = CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_USER_PROFILE'], array('user_id' => $arContact['CREATED_BY']));
示例13: GetMessage
?>
"> <?php
echo $arProperty["TITLE"];
?>
</a><br />
<?php
}
?>
<?php
if (isset($arProperty["IMAGE_ID"]) && !empty($arProperty["IMAGE_ID"])) {
?>
<span class="schedule"><?php
echo GetMessage('S_IMAGE');
?>
<?php
echo CFile::ShowImage($arProperty["IMAGE_ID"], 200, 200, "border=0", "", true);
?>
</span><br />
<?php
}
?>
<?php
if (isset($arProperty["PHONE"])) {
?>
<span class="tel"><?php
echo GetMessage('S_PHONE');
?>
<?php
echo $arProperty["PHONE"];
?>
</span><br />
示例14: array
if (IntVal($arComment["AUTHOR_ID"]) > 0) {
if (empty($arResult["USER_CACHE"][$arComment["AUTHOR_ID"]])) {
$arUsrTmp = array();
$arUsrTmp["urlToAuthor"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_USER"], array("user_id" => $arComment["AUTHOR_ID"]));
$arUsrTmp["BlogUser"] = CBlogUser::GetByID($arComment["AUTHOR_ID"], BLOG_BY_USER_ID);
$arUsrTmp["BlogUser"] = CBlogTools::htmlspecialcharsExArray($arUsrTmp["BlogUser"]);
$dbUser = CUser::GetByID($arComment["AUTHOR_ID"]);
$arUsrTmp["arUser"] = $dbUser->GetNext();
$arUsrTmp["AuthorName"] = CBlogUser::GetUserName($arUsrTmp["BlogUser"]["ALIAS"], $arUsrTmp["arUser"]["NAME"], $arUsrTmp["arUser"]["LAST_NAME"], $arUsrTmp["arUser"]["LOGIN"]);
if (IntVal($arUsrTmp["BlogUser"]["AVATAR"]) > 0) {
$arUsrTmp["AVATAR_file"] = CFile::ResizeImageGet($arUsrTmp["BlogUser"]["AVATAR"], array("width" => 30, "height" => 30), BX_RESIZE_IMAGE_EXACT, false);
} elseif ($arResult["bSoNet"] && IntVal($arUsrTmp["arUser"]["PERSONAL_PHOTO"]) > 0) {
$arUsrTmp["AVATAR_file"] = CFile::ResizeImageGet($arUsrTmp["arUser"]["PERSONAL_PHOTO"], array("width" => 30, "height" => 30), BX_RESIZE_IMAGE_EXACT, false);
}
if ($arUsrTmp["AVATAR_file"] !== false) {
$arUsrTmp["AVATAR_img"] = CFile::ShowImage($arUsrTmp["AVATAR_file"]["src"], 30, 30, "border=0 align='right'");
}
$arUsrTmp["Blog"] = CBlog::GetByOwnerID(IntVal($arComment["AUTHOR_ID"]), $arParams["GROUP_ID"]);
if ($arUsrTmp["AUTHOR_ID"] == $arUsrTmp["AUTHOR_ID"]) {
$arUsrTmp["AuthorIsPostAuthor"] = "Y";
}
$arResult["USER_CACHE"][$arComment["AUTHOR_ID"]] = $arUsrTmp;
}
$arComment["urlToAuthor"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["urlToAuthor"];
$arComment["BlogUser"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["BlogUser"];
$arComment["arUser"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["arUser"];
$arComment["AuthorName"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["AuthorName"];
$arComment["AVATAR_file"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["AVATAR_file"];
$arComment["AVATAR_img"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["AVATAR_img"];
$arComment["Blog"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["Blog"];
$arComment["AuthorIsPostAuthor"] = $arResult["USER_CACHE"][$arComment["AUTHOR_ID"]]["AuthorIsPostAuthor"];
示例15: intval
:</td>
<td valign="top"><input type="text" size="10" name="bp_sort" value="<?php
echo intval($arResult["Data"]["Sort"]);
?>
"></td>
</tr>
<tr>
<td valign="top" align="right"><?php
echo GetMessage("BPWC_WNCT_ICON");
?>
:</td>
<td valign="top">
<input type="file" name="bp_image">
<?php
if ($arResult["Data"]["Image"] > 0) {
echo "<br/><br/>" . CFile::ShowImage($arResult["Data"]["Image"], 150, 150, "border=0", false, true);
}
?>
</td>
</tr>
<tr>
<td valign="top" align="right"><?php
echo GetMessage("BPWC_WNCT_EADD");
?>
:</td>
<td valign="top"><input type="text" size="40" name="bp_element_add" value="<?php
echo htmlspecialcharsbx($arResult["Data"]["ElementAdd"]);
?>
"></td>
</tr>
<tr>