本文整理汇总了PHP中GetMEssage函数的典型用法代码示例。如果您正苦于以下问题:PHP GetMEssage函数的具体用法?PHP GetMEssage怎么用?PHP GetMEssage使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetMEssage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMEssage
<div class="row">
<input type="text" class="text" name="email" value="" placeholder="<?php
echo GetMEssage('EMAIL');
?>
" />
</div>
<div class="row">
<input type="text" class="text" name="phone" value="" placeholder="<?php
echo GetMEssage('PHONE');
?>
" />
</div>
<div class="row">
<select name="country">
<option value=""><?php
echo GetMEssage("PROFILE_COUNTRY");
?>
</option>
<?php
$db_vars = CSaleLocation::GetCountryList(array("NAME_LANG" => "ASC"));
while ($vars = $db_vars->Fetch()) {
?>
<option value="<?php
echo $vars["ID"];
?>
" ><?php
echo $vars["NAME"];
?>
</option>
<?php
}
示例2: GetMEssage
<td class="beono-basket-item-weight"><?if($_GET['tab']==''):?><?php
echo $arResult["allWeight_FORMATED"];
?>
<?endif;?></td>
<?endif;?>
<?if (in_array("QUANTITY", $arParams["COLUMNS_LIST"])):?>
<td> </td>
<?endif;?>
<?if ($arParams["AJAX_ACTIONS"]=="Y"):?>
<td> </td>
<?endif;?>
<?if (in_array("PRICE", $arParams["COLUMNS_LIST"])):?>
<td class="beono-basket-item-price">
<?if($_GET['tab']==''):?>
<b title="<?php
echo GetMEssage('BEONO_BASKET_ITOGO');
?>
"><?php
echo $arResult["allSum_FORMATED"];
?>
</b>
<?if($arResult['DISCOUNT_VALUE_FORMATED']):?>
<br/><small><?php
echo GetMessage('BEONO_BASKET_DISCOUNT');
?>
: <?php
echo $arResult['DISCOUNT_VALUE_FORMATED'];
?>
</small>
<?endif;?>
<?if ($arParams['PRICE_VAT_SHOW_VALUE'] == 'Y'):?>
示例3: array
$arParams = array('id' => $arItems["ID"], 'quantity' => $QUANTITY, 'type' => $arCatalogProduct["TYPE"], 'barcode' => $arCatalogProduct["BARCODE"], 'name' => $arItems['NAME']);
if ($boolSubscribe) {
$arParams['url'] = $arItems['DETAIL_PAGE_URL'];
}
$arParams = CUtil::PhpToJSObject($arParams);
foreach (GetModuleEvents("sale", "OnProductSearchForm", true) as $arEvent) {
$arParams = ExecuteModuleEventEx($arEvent, array($arItems["ID"], $arParams));
}
$arParams = "var el" . $arItems["ID"] . " = " . $arParams;
$act = '<script type="text/javascript">' . $arParams . '</script><input class="addBtn" type="button" onClick="SelEl(el' . $arItems["ID"] . ', ' . $arItems["ID"] . ')" name="btn_select_' . $arItems["ID"] . '" id="btn_select_' . $arItems["ID"] . '" value="' . GetMessage("SPS_SELECT") . '">';
$countField = '<input type="text" name="quantity_' . $arItems["ID"] . '" id="quantity_' . $arItems["ID"] . '" value="1" size="3">';
} else {
$act = GetMessage("SPS_CAN_BUY_NOT_PRODUCT");
$countField = " ";
}
$active = $arItems["ACTIVE"] == 'Y' ? GetMEssage('SPS_PRODUCT_ACTIVE') : GetMEssage('SPS_PRODUCT_NO_ACTIVE');
$row->AddField("ACT", $act);
$row->AddField("QUANTITY", $countField);
$row->AddField("ACTIVE", $active);
$arProperties = array();
if (!empty($arSelectedProps)) {
$rsProperties = CIBlockElement::GetProperty($iblockId, $arItems["ID"]);
while ($ar = $rsProperties->Fetch()) {
if (!array_key_exists($ar["ID"], $arProperties)) {
$arProperties[$ar["ID"]] = array();
}
if ($ar["PROPERTY_TYPE"] === "L") {
$arProperties[$ar["ID"]][$ar["PROPERTY_VALUE_ID"]] = $ar["VALUE_ENUM"];
} else {
$arProperties[$ar["ID"]][$ar["PROPERTY_VALUE_ID"]] = $ar["VALUE"];
}
示例4: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$arComponentDescription = array("NAME" => GetMessage("FORUM_USER_LIST"), "DESCRIPTION" => GetMessage("FORUM_USER_LIST_DESCRIPTION"), "ICON" => "/images/icon.gif", "CACHE_PATH" => "Y", "PATH" => array("ID" => "communication", "CHILD" => array("ID" => "forum", "NAME" => GetMEssage("FORUM"))));
示例5: GetMEssage
<div class="cell cell-4">
<?php
if ($val["ORDER"]["STATUS_ID"] == 'P') {
?>
<span class="red"><?php
echo GetMEssage('SPOL_T_F_NONPAYED');
?>
</span>
<a href="" onclick="window.open('<?php
echo $arParams['PATH_TO_PAYMENT'];
?>
?ORDER_ID=<?php
echo urlencode(urlencode($val["ORDER"]["ID"]));
?>
');" class="pay-now"><?php
echo GetMEssage('SPOL_T_F_PAYED');
?>
</a>
<?php
} else {
?>
<span class="<?php
echo $colorClass;
?>
">
<?php
echo $arResult["INFO"]["STATUS"][$val["ORDER"]["STATUS_ID"]]["NAME"];
?>
</span>
<?php
}
示例6: DoubleVal
$arParams = "{'id' : '" . $arItems["ID"] . "',\n\t\t\t\t'name' : '" . CUtil::JSEscape($arItems["NAME"]) . "',\n\t\t\t\t'url' : '" . CUtil::JSEscape($URL) . "',\n\t\t\t\t'urlEdit' : '" . CUtil::JSEscape($urlEdit) . "',\n\t\t\t\t'urlImg' : '" . CUtil::JSEscape($ImgUrl) . "',\n\t\t\t\t'price' : '" . CUtil::JSEscape($currentPrice) . "',\n\t\t\t\t'priceFormated' : '" . CUtil::JSEscape(CurrencyFormatNumber($currentPrice, $arPrice["PRICE"]["CURRENCY"])) . "',\n\t\t\t\t'valutaFormat' : '" . CUtil::JSEscape($priceValutaFormat) . "',\n\t\t\t\t'priceDiscount' : '" . CUtil::JSEscape($currentDiscount) . "',\n\t\t\t\t'priceBase' : '" . CUtil::JSEscape($currentBasePrice) . "',\n\t\t\t\t'priceBaseFormat' : '" . CUtil::JSEscape(CurrencyFormatNumber($currentBasePrice, $arPrice["PRICE"]["CURRENCY"])) . "',\n\t\t\t\t'discountPercent' : '" . CUtil::JSEscape($discountPercent) . "',\n\t\t\t\t'summaFormated' : '" . CUtil::JSEscape($summaFormated) . "',\n\t\t\t\t'quantity' : '" . CUtil::JSEscape($QUANTITY) . "',\n\t\t\t\t'module' : 'catalog',\n\t\t\t\t'currency' : '" . CUtil::JSEscape($arPrice["PRICE"]["CURRENCY"]) . "',\n\t\t\t\t'weight' : '" . DoubleVal($arCatalogProduct["WEIGHT"]) . "',\n\t\t\t\t'vatRate' : '" . DoubleVal($vatRate) . "',\n\t\t\t\t'priceType' : '" . CUtil::JSEscape($PriceType) . "',\n\t\t\t\t'balance' : '" . CUtil::JSEscape($balance) . "',\n\t\t\t\t'catalogXmlID' : '" . CUtil::JSEscape($arIBlock["XML_ID"]) . "',\n\t\t\t\t'productXmlID' : '" . CUtil::JSEscape($arItems["XML_ID"]) . "',\n\t\t\t\t'barcodeMulti' : '" . CUtil::JSEscape($arCatalogProduct["BARCODE_MULTI"]) . "',\n\t\t\t\t'stores' : '" . CUtil::JSEscape(CUtil::PhpToJSObject($arStores)) . "',\n\t\t\t\t'orderCallback' : '', 'cancelCallback' : '', 'payCallback' : '', 'callback' : '','productProviderClass' : 'CCatalogProductProvider'}";
// 'callback' : 'CatalogBasketCallback',
// 'orderCallback' : 'CatalogBasketOrderCallback',
// 'cancelCallback' : 'CatalogBasketCancelCallback',
// 'payCallback' : 'CatalogPayOrderCallback',
foreach (GetModuleEvents("sale", "OnProductSearchForm", true) as $arEvent) {
$arParams = ExecuteModuleEventEx($arEvent, array($arItems["ID"], $arParams));
}
$arParams = "var el" . $arItems["ID"] . " = " . $arParams;
$act = "<script>" . $arParams . "</script><input type='button' onClick=\"SelEl(el" . $arItems["ID"] . ", " . $arItems["ID"] . ")\" name='btn_select_" . $arItems["ID"] . "' id='btn_select_" . $arItems["ID"] . "' value='" . GetMessage("SPS_SELECT") . "' >";
$countField = "<input type=\"text\" name=\"quantity_" . $arItems["ID"] . "\" id=\"quantity_" . $arItems["ID"] . "\" value=\"1\" size=\"3\" >";
$active = GetMEssage('SPS_PRODUCT_ACTIVE');
} else {
$act = GetMessage("SPS_CAN_BUY_NOT_PRODUCT");
$countField = " ";
$active = GetMEssage('SPS_PRODUCT_NO_ACTIVE');
}
$row->AddField("ACT", $act);
$row->AddField("QUANTITY", $countField);
$row->AddField("ACTIVE", $active);
}
}
$lAdmin->BeginEpilogContent();
echo "<script type=\"text/javascript\" src=\"/bitrix/js/main/core/core.js\"></script>";
echo "<script type=\"text/javascript\">BX.InitializeAdmin();</script>";
?>
<script>
<?php
if (!empty($arSku)) {
foreach ($arSku as $k => $v) {
?>
示例7: CGridOptions
$gridOptions = new CGridOptions($arResult['TABLE_ID']);
$arSort = $gridOptions->GetSorting(array('sort' => array('name' => 'asc'), 'vars' => array('by' => 'by', 'order' => 'order')));
$arResult['SORT'] = $arSort['sort'];
$arResult['SORT_VARS'] = $arSort['SORT']['vars'];
unset($arSort);
$arResult['ROWS_COUNT'] = $arResult['DB_RESULT_LIST'] instanceof \CDBResult ? $arResult['DB_RESULT_LIST']->SelectedRowsCount() : 0;
$arResult['GRID_DATA'] = array();
foreach ($arResult['PRODUCTS'] as $productId => $arItems) {
$arActions = array();
if ($arItems['TYPE'] === 'S') {
$arActions[] = array('ICONCLASS' => 'select', 'TEXT' => GetMessage('SPS_SELECT'), 'ONCLICK' => $tableId . '_helper.onSectionChange(' . $arItems['ID'] . ',"' . CUtil::JSEscape($arItems['NAME']) . '");', 'DEFAULT' => true);
} else {
$params = array('id' => $productId, 'type' => $arItems['TYPE']);
$arActions[] = array('TEXT' => GetMessage('SPS_SELECT'), 'ONCLICK' => $tableId . '_helper.SelEl(' . CUtil::PhpToJSObject($params) . ', this);', 'DEFAULT' => true);
}
$gridDataRecord = array('id' => $arItems['TYPE'] . $arItems['ID'], 'actions' => $arActions, 'data' => $arItems, 'editable' => false, 'columns' => array('NAME' => '<a class="crm-gds-item' . ($arItems['TYPE'] === 'S' ? ' crm-gds-item-section' : ' crm-gds-item-gds') . '">' . $arItems['NAME'] . '</a>', 'ACTIVE' => $arItems['ACTIVE'] === 'Y' ? GetMEssage('SPS_PRODUCT_ACTIVE') : GetMEssage('SPS_PRODUCT_NO_ACTIVE'), 'PREVIEW_PICTURE' => getImageField('NO_FIELDS[' . $arItems['ID'] . '][PREVIEW_PICTURE]', $arItems['PREVIEW_PICTURE']), 'DETAIL_PICTURE' => getImageField('NO_FIELDS[' . $arItems['ID'] . '][DETAIL_PICTURE]', $arItems['DETAIL_PICTURE'])));
// Product properties
if (is_array($arResult['PUBLIC_PROPS']) && is_array($arItems['PROPERTIES'])) {
foreach ($arItems['PROPERTIES'] as $propId => $propVal) {
if (isset($arResult['PUBLIC_PROPS'][intval($propId)])) {
$gridDataRecord['columns']['PROPERTY_' . $propId] = $propVal;
}
}
}
$arResult['GRID_DATA'][] = $gridDataRecord;
}
?>
<!-- START HTML -->
<div id="<?php
echo htmlspecialcharsbx($leftContainerId);
?>
示例8: GetMEssage
echo $arItem["PROPERTIES"]["SEX"]["VALUE_ENUM_ID"];
?>
<?php
if (!$arItem["CAN_BUY"] || empty($arItem['MIN_PRICE']) || $arItem['CATALOG_QUANTITY'] <= 0) {
?>
disable unavailable<?php
}
?>
">
<div class="holder">
<?php
if (!empty($arItem["PROPERTIES"]["DAY_ITEM"]["VALUE"])) {
?>
<div class="strong-box">
<strong><?php
echo GetMEssage('CATALOG_OFFERDAY');
?>
</strong>
</div>
<?php
}
?>
<?php
if (!empty($arItem['MIN_PRICE']) && $arItem['CAN_BUY'] && empty($productLabel)) {
if ($arItem['MIN_PRICE']['DISCOUNT_VALUE'] < $arItem['MIN_PRICE']['VALUE']) {
?>
<span class="discount">-<?php
echo $arItem["MIN_PRICE"]["DISCOUNT_DIFF_PERCENT"];
?>
%</span><?php
}
示例9: FloatVal
$balance = FloatVal($val["BALANCE"]);
$arParams = array();
$arParams['id'] = $val["ID"];
$arParams['type'] = $val["TYPE"];
$arParams['name'] = $val['NAME'];
$active = GetMEssage('SPS_PRODUCT_ACTIVE');
$arSkuActions[] = array(
"TEXT" => GetMessage("SPS_SELECT"),
"DEFAULT" => "Y",
"ACTION" => $tableId . '_helper.SelEl(' . CUtil::PhpToJSObject($arParams) . ', this);'
);
$active = ($val["ACTIVE"] == 'Y' ? GetMEssage('SPS_PRODUCT_ACTIVE') : GetMEssage('SPS_PRODUCT_NO_ACTIVE'));
$rowSku->AddActions($arSkuActions);
$rowSku->AddField("BALANCE", $balance);
$rowSku->AddField("ACTIVE", $active);
addPropsCell($rowSku, $arSelectedProps, $val);
}
}
else
{
if ($arItems['TYPE'] == 'S')
{
$icon = 'folder';
}
elseif (!empty($arCatalogProduct['IS_GROUP']))
$icon = 'f4';
示例10: fGetFormatedProduct
function fGetFormatedProduct($USER_ID, $LID, $arData, $CNT, $currency, $type, $crmMode = false)
{
$result = "";
if (!is_array($arData) || count($arData) <= 0) {
return $result;
}
$result = "<table width=\"100%\">";
if (CModule::IncludeModule('catalog') && CModule::IncludeModule('iblock')) {
$arProductId = array();
$arDataTab = array();
$arSkuParentChildren = array();
$arSkuParentId = array();
$arSkuParent = array();
foreach ($arData as $items) {
if ($items["MODULE"] == 'catalog') {
$arProductId[] = $items["PRODUCT_ID"];
$arDataTab[$items["PRODUCT_ID"]] = $items;
$arParent = CCatalogSku::GetProductInfo($items["PRODUCT_ID"]);
if ($arParent) {
$arSkuParentChildren[$items["PRODUCT_ID"]] = $arParent["ID"];
$arSkuParentId[$arParent["ID"]] = $arParent["ID"];
}
}
}
if (!empty($arSkuParentId)) {
$res = CIBlockElement::GetList(array(), array("ID" => $arSkuParentId), false, false, array("ID", "IBLOCK_ID", "IBLOCK_SECTION_ID", "PREVIEW_PICTURE", "DETAIL_PICTURE", "NAME", "DETAIL_PAGE_URL"));
while ($arItems = $res->GetNext()) {
$arSkuParent[$arItems["ID"]] = $arItems;
}
}
if (!empty($arProductId)) {
$dbProduct = CIBlockElement::GetList(array(), array("ID" => $arProductId), false, false, array('ID', 'IBLOCK_ID', 'IBLOCK_SECTION_ID', 'DETAIL_PICTURE', 'PREVIEW_PICTURE', 'IBLOCK_TYPE_ID'));
while ($arProduct = $dbProduct->GetNext()) {
$imgCode = "";
$arDataTab[$arProduct['ID']]['IBLOCK_ID'] = $arProduct['IBLOCK_ID'];
$arDataTab[$arProduct['ID']]['IBLOCK_SECTION_ID'] = $arProduct['IBLOCK_SECTION_ID'];
$arDataTab[$arProduct['ID']]['DETAIL_PICTURE'] = $arProduct['DETAIL_PICTURE'];
$arDataTab[$arProduct['ID']]['PREVIEW_PICTURE'] = $arProduct['PREVIEW_PICTURE'];
$arDataTab[$arProduct['ID']]['IBLOCK_TYPE_ID'] = $arProduct['IBLOCK_TYPE_ID'];
$arProduct = $arDataTab[$arProduct['ID']];
if ($arProduct["PREVIEW_PICTURE"] == "" && $arProduct["DETAIL_PICTURE"] == "" && is_set($arSkuParentChildren[$arProduct["PRODUCT_ID"]])) {
$idTmp = $arSkuParentChildren[$arProduct["PRODUCT_ID"]];
$arProduct["DETAIL_PICTURE"] = $arSkuParent[$idTmp]["DETAIL_PICTURE"];
$arProduct["PREVIEW_PICTURE"] = $arSkuParent[$idTmp]["PREVIEW_PICTURE"];
}
if ($arProduct["IBLOCK_ID"] > 0) {
$arProduct["EDIT_PAGE_URL"] = "/bitrix/admin/iblock_element_edit.php?ID=" . $arProduct["PRODUCT_ID"] . "&type=" . $arProduct["IBLOCK_TYPE_ID"] . "&lang=" . LANG . "&IBLOCK_ID=" . $arProduct["IBLOCK_ID"] . "&find_section_section=" . intval($arProduct["IBLOCK_SECTION_ID"]);
}
if ($arProduct["DETAIL_PICTURE"] > 0) {
$imgCode = $arProduct["DETAIL_PICTURE"];
} elseif ($arProduct["PREVIEW_PICTURE"] > 0) {
$imgCode = $arProduct["PREVIEW_PICTURE"];
}
$arProduct["NAME"] = htmlspecialcharsex($arProduct["NAME"]);
$arProduct["DETAIL_PAGE_URL"] = htmlspecialcharsex($arProduct["DETAIL_PAGE_URL"]);
$arProduct["CURRENCY"] = htmlspecialcharsex($arProduct["CURRENCY"]);
if ($imgCode > 0) {
$arFile = CFile::GetFileArray($imgCode);
$arImgProduct = CFile::ResizeImageGet($arFile, array('width' => 80, 'height' => 80), BX_RESIZE_IMAGE_PROPORTIONAL, false, false);
if (is_array($arImgProduct)) {
$imgUrl = $arImgProduct["src"];
$imgProduct = "<a href=\"" . $arProduct["EDIT_PAGE_URL"] . "\" target=\"_blank\"><img src=\"" . $arImgProduct["src"] . "\" alt=\"\" title=\"" . $arProduct["NAME"] . "\" ></a>";
}
} else {
$imgProduct = "<div class='no_foto'>" . GetMessage('SOD_NO_FOTO') . "</div>";
}
$result .= "<tr>\n\t\t\t\t\t\t\t\t<td class=\"tab_img\">" . $imgProduct . "</td>\n\t\t\t\t\t\t\t\t<td class=\"tab_text\">\n\t\t\t\t\t\t\t\t\t<div class=\"order_name\"><a href=\"" . $arProduct["EDIT_PAGE_URL"] . "\" target=\"_blank\" title=\"" . $arProduct["NAME"] . "\">" . $arProduct["NAME"] . "</a></div>\n\t\t\t\t\t\t\t\t\t<div class=\"order_price\">\n\t\t\t\t\t\t\t\t\t\t" . GetMessage('SOD_ORDER_RECOM_PRICE') . ": <b>" . SaleFormatCurrency($arProduct["PRICE"], $currency) . "</b>\n\t\t\t\t\t\t\t\t\t</div>";
$arResult = CSaleProduct::GetProductSku($USER_ID, $LID, $arProduct["PRODUCT_ID"], $arProduct["NAME"]);
$arResult["POPUP_MESSAGE"] = array("PRODUCT_ADD" => GetMEssage('SOD_POPUP_TO_BUSKET'), "PRODUCT_NOT_ADD" => GetMEssage('SOD_POPUP_TO_BUSKET_NOT'), "PRODUCT_PRICE_FROM" => GetMessage('SOD_POPUP_FROM'));
if (!$crmMode) {
if (count($arResult["SKU_ELEMENTS"]) > 0) {
$result .= "<a href=\"javascript:void(0);\" class=\"get_new_order\" onClick=\"fAddToBusketMoreProductSku(" . CUtil::PhpToJsObject($arResult['SKU_ELEMENTS']) . ", " . CUtil::PhpToJsObject($arResult['SKU_PROPERTIES']) . ", '', " . CUtil::PhpToJsObject($arResult["POPUP_MESSAGE"]) . " );\"><span></span>" . GetMessage('SOD_SUBTAB_ADD_ORDER') . "</a>";
} else {
$cntProd = floatval($arProduct["QUANTITY"]) > 0 ? floatval($arProduct["QUANTITY"]) : 1;
$url = "/bitrix/admin/sale_order_new.php?lang=" . LANG . "&user_id=" . $USER_ID . "&LID=" . $LID . "&product[" . $arProduct["PRODUCT_ID"] . "]=" . $cntProd;
$result .= "<a href=\"" . $url . "\" target=\"_blank\" class=\"get_new_order\"><span></span>" . GetMessage('SOD_SUBTAB_ADD_ORDER') . "</a>";
}
}
$result .= "</td></tr>";
}
}
}
//end if
$result .= "<tr><td colspan='2' align='right' class=\"more_product\">";
if ($CNT > 2) {
$result .= "<a href='javascript:void(0);' onClick=\"fGetMoreProduct('" . $type . "');\" class=\"get_more\">" . GetMessage('SOD_SUBTAB_MORE') . "<span></span></a>";
}
$result .= "</td></tr>";
$result .= "</table>";
return $result;
}
示例11: SaleFormatCurrency
$QUANTITY = " ";
if ($arViews["MODULE"] == "catalog" && CModule::IncludeModule('catalog')) {
$arRes = CCatalogProduct::GetByID($arViews["PRODUCT_ID"]);
$QUANTITY = $arRes["QUANTITY"];
}
$row->AddField("QUANTITY", $QUANTITY);
$price = " ";
if (floatval($arViews["PRICE"]) > 0) {
$price = SaleFormatCurrency($arViews["PRICE"], $arViews["CURRENCY"]);
}
$row->AddField("PRICE", $price);
if (count($arSites) > 1) {
$row->AddField("LID", "[" . $arViews["LID"] . "] " . htmlspecialcharsbx($arSites[$arViews["LID"]]["NAME"]) . "");
}
$arResult = CSaleProduct::GetProductSku($ID, $arViews['LID'], $arViews["PRODUCT_ID"], $arViews["NAME"]);
$arResult["POPUP_MESSAGE"] = array("PRODUCT_ADD_TO_ORDER" => GetMEssage('BUYER_PD_ORDER'), "PRODUCT_ADD_TO_BUSKET" => GetMEssage('BUYER_PD_DELAY_N'), "PRODUCT_NOT_TO_ORDER" => GetMEssage('BUYER_DONT_CAN_BUY'), "PRODUCT_PRICE_FROM" => GetMessage('BUYERS_FROM'));
if (count($arResult["SKU_ELEMENTS"]) > 0) {
$linkOrder = "showOfferPopup(" . CUtil::PhpToJsObject($arResult['SKU_ELEMENTS']) . ", " . CUtil::PhpToJsObject($arResult['SKU_PROPERTIES']) . ", 'order', " . CUtil::PhpToJsObject($arResult["POPUP_MESSAGE"]) . ");";
$linkBusket = "showOfferPopup(" . CUtil::PhpToJsObject($arResult['SKU_ELEMENTS']) . ", " . CUtil::PhpToJsObject($arResult['SKU_PROPERTIES']) . ", 'busket', " . CUtil::PhpToJsObject($arResult["POPUP_MESSAGE"]) . ");";
} else {
$linkOrder = 'BX.adminPanel.Redirect([], \'/bitrix/admin/sale_order_new.php?user_id=' . $ID . '&lang=' . LANG . '&LID=' . $arViews["LID"] . '&product[' . $arViews["PRODUCT_ID"] . ']=1\', event);';
$linkBusket = 'fAddToBusketViewed(' . $arViews["PRODUCT_ID"] . ', \'' . $arViews["LID"] . '\')';
}
$arActions = array();
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("BUYER_PD_ORDER"), "ACTION" => $linkOrder, "DEFAULT" => true);
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("BUYER_PD_DELAY_N"), "ACTION" => $linkBusket);
if (floatval($arViews["PRICE"]) > 0) {
$row->AddActions($arActions);
}
}
if ($_REQUEST["table_id"] == $sTableID_tab5) {
示例12: GetMEssage
</a>
</li>
<?php
}
?>
</ul>
<input type="hidden" name="SERVER_AVATAR" value="" />
</div>
</div>
<input type="hidden" name="ELEMENT_ID" value="<?php
echo $arParams["ELEMENT_ID"];
?>
" />
<input type="hidden" name="REPLY_ID" value="" />
<input type="submit" class="button" name="submit" value="<?php
echo GetMEssage('ADD_REV_REVBUT');
?>
">
</fieldset>
</form>
</div>
<?php
$strObName = "rating_form_vote";
$arJSParams = array("progressId" => $strObName . "_progr", "ratingId" => $strObName . "_rating", "starsId" => $strObName . "_stars", "inputId" => "rating_form_vote_inputId", "voteId" => 0, "voteSum" => 0, "voteCount" => 0, "voteRating" => 0, "voteValue" => 0);
$templateData = array('JS_OBJ' => $strObName, 'ELEMENT_ID' => $arParams["ELEMENT_ID"]);
?>
<script type="text/javascript">
BX.ready(function(){
window.<?php
示例13: CAdminResult
"ID" => $find_id,
"AUTHOR_NAME" => $find_author_name,
"EMAIL" => $find_email,
"IP" => $find_ip,
"COMMENT" => $find_comment,
"OBJECT_ID" => $find_object_id,
"DATE" => $find_date,
"SITE_ID" => $find_site_id,
"ACTIVATED" => $find_activated,
"DATE_MODIFY" => $find_date_modify
);
$result = $OComments->GetList(Array($by=>$order), $arFilter, "", false, true);
$result = new CAdminResult($result, $sTableID);
$result->NavStart();
$lAdmin->NavText($result->GetNavPrint(GetMEssage("TC_PAGES")));
CModule::IncludeModule("iblock");
while($myrow = $result->NavNext(true, "f_"))
{
$iblock_element = '';
$res = CIBlockElement::GetByID($myrow['OBJECT_ID']);
if($ar_res = $res->GetNext())
{
$iblock_element_name = $ar_res['NAME'];
$iblock_element_iblock_id = $ar_res['IBLOCK_ID'];
$res_iblock_type = CIBlock::GetByID($ar_res['IBLOCK_ID']);
示例14: GetMEssage
</div>
<div class="text">
<div class="holder">
<h3><?php
echo $arItem["NAME"];
?>
</h3>
<?php
echo $arItem["PREVIEW_TEXT"];
?>
</div>
</div>
<div class="link">
<a href="<?php
echo $arItem["DETAIL_PAGE_URL"];
?>
?AJAX=Y"><?php
echo GetMEssage('DETAIL');
?>
</a>
</div>
</div>
<?php
}
?>
</div>
<?php
/*else:?>
<p>Ќа данный момент у нас нет открытых вакансий</p>
<?*/
}
示例15: DrawTable2
function DrawTable2( $TOdata ){
$arWokrTypes = GetWorkTypes();
$tableData = array();
$row = array();
foreach( $TOdata["TO"] as $TOName => $TOData ){
if( empty ( $row )){
$row[] = "";
}
$row[] = $TOData["NAME"] ;
}
array_push( $tableData, $row);
$row_f[] = GetMEssage("TITLE_TOTAL_TO_COST");
foreach ( $arWokrTypes as $id => $arWDatas ){
$row = array();
foreach( $TOdata["TO"] as $TOName => $TOData ){
if( empty ( $row ) ){
$row[] = $arWDatas;
}
$row[] = $TOData["TYPE_COST"][$id]["COST"];
}
array_push( $tableData, $row);
}
foreach( $TOdata["TO"] as $TOName => $TOData ){
$row_f[] = $TOData["COST"];
}
array_push( $tableData, $row_f);
$result .= '<table class="result-table">';
for( $i=0;$i< count( $tableData );$i++){
$result.="<tr>";
for( $j=0; $j< count( $tableData[$i] );$j++){
$result .= "<td>". ((is_float( $tableData[$i][$j])) ? sprintf("%1.2f", $tableData[$i][$j]) : $tableData[$i][$j]) ."</td>";
}
$result.="<tr>";
}
$result .= '</table>';
return $result;
/**/
}