コード例 #1
0
 <td bgcolor="#ffffff" align="right"><?php 
    echo $arResult["PROPERTIES"]["WIDTH"]["VALUE"][$cnt];
    ?>
</td>
 <td bgcolor="#ffffff" align="right"><?php 
    echo $arResult["PROPERTIES"]["HEIGHT"]["VALUE"][$cnt];
    ?>
</td>
 <td bgcolor="#ffffff" align="center"><?php 
    echo $arResult["PROPERTIES"]["PLACES"]["VALUE"][$cnt];
    ?>
</td>
 <td bgcolor="#ffffff" align="center">
<?php 
    $id_TRANSFORMATION = $arResult["PROPERTIES"]["TRANSFORMATION"]["VALUE"][$cnt];
    $arResTRANSFORMATION = GetIBlockElement($id_TRANSFORMATION);
    echo $arResTRANSFORMATION["NAME"];
    ?>
</td>
<?php 
    if ($cnt == 0) {
        echo '<td bgcolor="#ffffff"  align="center" rowspan="' . count($arResult["PROPERTIES"]["COMPLECT"]["VALUE"]) . '" style="border-right: solid #e8e8e8 1px;">' . $arResult["PROPERTIES"]["PRICE"]["VALUE"] . '</td>';
    }
    ?>
 </tr>


<?php 
    $cnt++;
}
?>
コード例 #2
0
ファイル: component.php プロジェクト: webgksupport/alpina
 $val["VAT_VALUE_FORMATED"] = SaleFormatCurrency($val["VAT_VALUE"], $val["CURRENCY"]);
 $val["PRICE_FORMATED"] = SaleFormatCurrency($val["PRICE"], $val["CURRENCY"]);
 $val["WEIGHT"] = DoubleVal($val["WEIGHT"]);
 $val["WEIGHT_FORMATED"] = DoubleVal($val["WEIGHT"] / $arParams["WEIGHT_KOEF"]) . " " . $arParams["WEIGHT_UNIT"];
 $val["DISCOUNT_PRICE_PERCENT"] = $val["DISCOUNT_PRICE"] * 100 / ($val["DISCOUNT_PRICE"] + $val["PRICE"]);
 $val["DISCOUNT_PRICE_PERCENT_FORMATED"] = roundEx($val["DISCOUNT_PRICE_PERCENT"], SALE_VALUE_PRECISION) . "%";
 $val["DETAIL_PAGE_URL"] = '';
 $val["CREATED_BY"] = 0;
 $val["IBLOCK_ID"] = 0;
 $val["IBLOCK_SECTION_ID"] = 0;
 $val["PREVIEW_PICTURE"] = 0;
 $val["DETAIL_PICTURE"] = 0;
 $val["PREVIEW_TEXT"] = '';
 $val["DETAIL_TEXT"] = '';
 if ($boolIBlock) {
     $arIBlockElement = GetIBlockElement($val["PRODUCT_ID"]);
     $val["DETAIL_PAGE_URL"] = $arIBlockElement["DETAIL_PAGE_URL"];
     $val["CREATED_BY"] = $arIBlockElement["CREATED_BY"];
     $val["IBLOCK_ID"] = $arIBlockElement["IBLOCK_ID"];
     $val["IBLOCK_SECTION_ID"] = $arIBlockElement["IBLOCK_SECTION_ID"];
     $val["PREVIEW_PICTURE"] = $arIBlockElement["PREVIEW_PICTURE"];
     $val["DETAIL_PICTURE"] = $arIBlockElement["DETAIL_PICTURE"];
     $val["PREVIEW_TEXT"] = $arIBlockElement["PREVIEW_TEXT"];
     $val["DETAIL_TEXT"] = $arIBlockElement["DETAIL_TEXT"];
 }
 $val["PROPS"] = array();
 if (in_array("PROPS", $arParams["COLUMNS_LIST"]) && $val["ID"] > 0) {
     $dbProp = CSaleBasket::GetPropsList(array("SORT" => "ASC", "ID" => "ASC"), array("BASKET_ID" => $val["ID"], "!CODE" => array("CATALOG.XML_ID", "PRODUCT.XML_ID")));
     while ($arProp = $dbProp->GetNext()) {
         $val["PROPS"][] = $arProp;
     }
コード例 #3
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$id = $_GET[id];
if ($id) {
    $arElement = GetIBlockElement($id);
}
$id_new = $arElement[PROPERTIES][NOVELTY][VALUE];
$id_hit = $arElement[PROPERTIES][HIT][VALUE];
$id_collection = $arElement[PROPERTIES][COLLECTION][VALUE];
$id_category = $arElement[IBLOCK_SECTION_ID];
?>

<table cellspacing="0" cellpadding="0" width="182" border="0">
  <tbody>
  	<?php 
global $USER;
if ($USER->GetId()) {
    ?>
		<tr><td width="100%">
	        <div class="gray_td">
			  <h1>КОРЗИНА</h1>
			</div>
		  </td>
		</tr>
		<tr><td width="100%"><div id="basket_text">Корзина пуста</div><br><br>
		<script language="javascript">
		$(document).ready(function(){
		   countSubject();
コード例 #4
0
              <h1>дхбюмш юййнпденм</h1>
            </a></div>

<div class="gray_td_left" width="100%">
  <h1>ухрш опндюф!</h1>
</div>

<table cellspacing="0" cellpadding="0" width="100%" border="0">
  <tbody>
      
  <?php 
$arElementSelect = array("ID", "NAME", "PROPERTY_HIT", "PROPERTY_HIT_IMG", "PROPERTY_COLLECTION", "PREVIEW_TEXT", "IBLOCK_ID");
$arElementFilter = array("IBLOCK_ID" => IntVal(5), "ACTIVE" => "Y", "!PROPERTY_HIT" => false);
$resElement = CIBlockElement::GetList(array("SORT" => "RAND", "PROPERTY_PRIORITY" => "ASC"), $arElementFilter, false, array("nPageSize" => 4), $arElementSelect);
$i = 0;
while ($obElement = $resElement->GetNextElement()) {
    $i++;
    $arElementFields = $obElement->GetFields();
    $img_path = CFile::GetPath($arElementFields['PROPERTY_HIT_IMG_VALUE']);
    $size = getimagesize($_SERVER['DOCUMENT_ROOT'] . $img_path);
    $arCollection = GetIBlockElement($arElementFields[PROPERTY_COLLECTION_VALUE]);
    echo '<tr><td class="hit_td"><table cellspacing="0" cellpadding="0"><tr><td><a href="/redesign/catalog/byid.php?id=' . $arElementFields[ID] . '"><img class="hit_img" border="0" alt="' . $arElementFields[NAME] . '" src="' . $img_path . '" {$size[3]}></a></td></tr><tr><td>';
    ?>
<div onMouseOver="this.className='scrolling_div_hit_on';"  onMouseOut="this.className='scrolling_div_hit';"  class="scrolling_div_hit"><?php 
    echo '<h3 class="divan"><a class="divan_a" href="/redesign/catalog/byid.php?id=' . $arElementFields[ID] . '">ДХБЮМ ' . $arElementFields[NAME] . '</a></h3><h3 class="collection">йНККЕЙЖХЪ <strong>' . $arCollection[NAME] . '</strong></h3>' . $arElementFields[PREVIEW_TEXT] . '</div></td></tr></table></td></tr>';
}
?>

    
  </tbody>
</table>
コード例 #5
0
                ?>
</a></b><br /></br>

                                        <!--<b>        Тип мебели: </b>-->

                                        <b><?php 
                echo $arItem["PROPERTY_F_TYPE_VALUE"];
                ?>
</b><br />


                                         <?php 
                $arResEl = GetIBlockElement($arItem["ID"]);
                $arResElU = array_unique($arResEl["PROPERTIES"]["COMPLECT"]["VALUE"]);
                foreach ($arResElU as $compl) {
                    $arResCompl = GetIBlockElement($compl);
                    echo $arResCompl["NAME"] . "<br />";
                }
                ?>


                                                </small>
                                        </td>
                                </tr>
                        </table>

<?php 
            }
        } else {
        }
    }
コード例 #6
0
    ?>
</td>
 <td bgcolor="#ffffff" align="right"><?php 
    echo $arResult["PROPERTIES"]["WIDTH"]["VALUE"][$cnt];
    ?>
</td>
 <td bgcolor="#ffffff" align="right"><?php 
    echo $arResult["PROPERTIES"]["HEIGHT"]["VALUE"][$cnt];
    ?>
</td>
 <td bgcolor="#ffffff" align="center"><?php 
    echo $arResult["PROPERTIES"]["PLACES"]["VALUE"][$cnt];
    ?>
</td>
 <?php 
    $arResTr = GetIBlockElement($arResult["PROPERTIES"]["TRANSFORMATION"]["VALUE"][$cnt]);
    ?>
 <td bgcolor="#ffffff" align="center"><?php 
    echo $arResTr["NAME"];
    ?>
</td>
 </tr>


<?php 
    $cnt++;
}
?>

   </tbody>
</table>
コード例 #7
0
}
?>

<div class="bottext">

<div class="gray_td" id="extra_controls">
<h1 class="itemtitle"><?php 
echo $arResult["PROPERTIES"]["F_TYPE"]["VALUE"];
?>
 <?php 
echo $arResult["NAME"];
?>
<font style="font-weight:normal; color: #000000; margin-left: 22px;">Коллекция:</font>
<?php 
$id_collection = $arResult["PROPERTIES"]["COLLECTION"]["VALUE"];
$arResColl = GetIBlockElement($id_collection);
echo $arResColl["NAME"];
if ($arResColl["ID"] == 5757) {
    // корпусная мебель id 5757
    $big_height = 440;
} else {
    $big_height = 330;
}
?>
</h1>
</div>

<table width="720" border="0" cellspacing="2" cellpadding="0">

 <tr>
    <td align="center" valign="top">
コード例 #8
0
    }
}
if ($bUserHaveAccess) {
    if (CModule::IncludeModule("iblock")) {
        CIBlockElement::CounterInc($ID);
    }
    $cache = new CPHPCache();
    if ($cache->InitCache($CACHE_TIME, $CACHE_ID)) {
        $vars = $cache->GetVars();
        CIBlock::ShowPanel($vars["IBLOCK_ID"], $ID);
        $APPLICATION->SetTitle($vars["NAME"]);
        $APPLICATION->AddChainItem($vars["IBLOCK_NAME"], $vars["LIST_PAGE_URL"]);
        $cache->Output();
    } else {
        if (CModule::IncludeModule("iblock")) {
            if ($arIBlockElement = GetIBlockElement($ID, $IBLOCK_TYPE)) {
                CIBlock::ShowPanel($arIBlockElement["IBLOCK_ID"], $ID, 0, $IBLOCK_TYPE);
                $APPLICATION->SetTitle($arIBlockElement["NAME"]);
                $APPLICATION->AddChainItem($arIBlockElement["IBLOCK_NAME"], $arIBlockElement["LIST_PAGE_URL"]);
                $cache->StartDataCache();
                ?>
				<?php 
                if ($arIBlockElement["ACTIVE_FROM"]) {
                    ?>
<font class="newsdata"><?php 
                    echo $arIBlockElement["ACTIVE_FROM"];
                    ?>
&nbsp;</font><?php 
                }
                ?>
				<font class="text">
コード例 #9
0
<?php 
}
?>

<br />

<?php 
$items = GetIBlockElementListEx("catalogue", "furniture", array(), array("SORT" => "ASC", "ID" => "DESC"), 1000, array("!PROPERTY_HIT" => false, "!ID" => $item));
$cnt = 0;
$arParams = 3;
while ($arItem = $items->GetNext()) {
    $arRes[$cnt] = $arItem;
    $cnt++;
}
if (count($arRes) < 3) {
    $arRes[$cnt] = GetIBlockElement($item);
}
?>




<table cellpadding="0" cellspacing="0" border="0">
		<?php 
foreach ($arRes as $cell => $arItem) {
    ?>

		<?php 
    if ($cell % $arParams == 0) {
        ?>
		<tr>