Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <div class="catalog-element" style="height:330px;"> <table width="100%" style="height:330px;" border="0" cellspacing="0" cellpadding="0"> <tr style="height:330px;"> <?if(is_array($arResult["PREVIEW_PICTURE"]) || is_array($arResult["DETAIL_PICTURE"])):?> <td width="220" valign="top" style="height:50px;padding-top:10px;width:220px;"> <span style="color:rgb(151, 198, 20);font:23px Georgia;text-decoration:underline;"><?=$arResult["NAME"]?><br /><br /></span> <?if(is_array($arResult["PREVIEW_PICTURE"]) && is_array($arResult["DETAIL_PICTURE"])):?> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" id="image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>" style="display:block;cursor:pointer;cursor: hand;" OnClick="document.getElementById('image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>').style.display='none';document.getElementById('image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>').style.display='block'" /> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" id="image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>" style="display:none;cursor:pointer; cursor: hand;" OnClick="document.getElementById('image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>').style.display='none';document.getElementById('image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>').style.display='block'" /> <?elseif(is_array($arResult["DETAIL_PICTURE"])):?> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" /> <?elseif(is_array($arResult["PREVIEW_PICTURE"])):?> <img border="0" src="<?=$arResult["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arResult["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arResult["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" /> <?endif?> <?if(count($arResult["MORE_PHOTO"])>0):?> <br /><a href="#more_photo"><?=GetMessage("CATALOG_MORE_PHOTO")?></a> <?endif;?> <?endif;?> <!-- <?foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?> <?=$arProperty["NAME"]?>:<b> <? if(is_array($arProperty["DISPLAY_VALUE"])): echo implode(" / ", $arProperty["DISPLAY_VALUE"]); elseif($pid=="MANUAL"): ?><a href="<?=$arProperty["VALUE"]?>"><?=GetMessage("CATALOG_DOWNLOAD")?></a><? else: echo $arProperty["DISPLAY_VALUE"];?> <?endif?></b><br /> <?endforeach?> --> </td> <td valign="top" style="padding-left:25px;text-align:left;" align="left"> <?if($arResult["DETAIL_TEXT"]):?> <br /><?=$arResult["DETAIL_TEXT"]?><br /> <?elseif($arResult["PREVIEW_TEXT"]):?> <br /><?=$arResult["PREVIEW_TEXT"]?><br /> <?endif;?> <script type="text/javascript"> /*! jQuery v1.7.1 jquery.com | jquery.org/license */ </script> <script type="text/javascript"> jQuery(document).ready(function($) |
Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <div class="catalog-element" style="height:330px;"> <table width="100%" style="height:330px;" border="0" cellspacing="0" cellpadding="0"> <tr style="height:330px;"> <?if(is_array($arResult["PREVIEW_PICTURE"]) || is_array($arResult["DETAIL_PICTURE"])):?> <td width="220" valign="top" style="height:50px;padding-top:10px;width:220px;"> <span style="color:rgb(151, 198, 20);font:23px Georgia;text-decoration:underline;"><?=$arResult["NAME"]?><br /><br /></span> <?if(is_array($arResult["PREVIEW_PICTURE"]) && is_array($arResult["DETAIL_PICTURE"])):?> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" id="image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>" style="display:block;cursor:pointer;cursor: hand;" OnClick="document.getElementById('image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>').style.display='none';document.getElementById('image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>').style.display='block'" /> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" id="image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>" style="display:none;cursor:pointer; cursor: hand;" OnClick="document.getElementById('image_<?=$arResult["DETAIL_PICTURE"]["ID"]?>').style.display='none';document.getElementById('image_<?=$arResult["PREVIEW_PICTURE"]["ID"]?>').style.display='block'" /> <?elseif(is_array($arResult["DETAIL_PICTURE"])):?> <img border="0" src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" /> <?elseif(is_array($arResult["PREVIEW_PICTURE"])):?> <img border="0" src="<?=$arResult["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arResult["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arResult["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" /> <?endif?> <?if(count($arResult["MORE_PHOTO"])>0):?> <br /><a href="#more_photo"><?=GetMessage("CATALOG_MORE_PHOTO")?></a> <?endif;?> <?endif;?> <!-- <?foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?> <?=$arProperty["NAME"]?>:<b> <? if(is_array($arProperty["DISPLAY_VALUE"])): echo implode(" / ", $arProperty["DISPLAY_VALUE"]); elseif($pid=="MANUAL"): ?><a href="<?=$arProperty["VALUE"]?>"><?=GetMessage("CATALOG_DOWNLOAD")?></a><? else: echo $arProperty["DISPLAY_VALUE"];?> <?endif?></b><br /> <?endforeach?> --> </td> <td valign="top" style="padding-left:25px;text-align:left;" align="left"> <?if($arResult["DETAIL_TEXT"]):?> <br /><?=$arResult["DETAIL_TEXT"]?><br /> <?elseif($arResult["PREVIEW_TEXT"]):?> <br /><?=$arResult["PREVIEW_TEXT"]?><br /> <?endif;?> <script type="text/javascript"> /*! jQuery v1.7.1 jquery.com | jquery.org/license */ </script> <script type="text/javascript"> jQuery(document).ready(function($) { $.fn.jqGalScroll = function(options){ return this.each(function(i){ &nb |
Код |
---|
<script> function showContent(link) { var cont = document.getElementById('contentBody'); var loading = document.getElementById('loading'); cont.innerHTML = loading.innerHTML; var http = createRequestObject(); if( http ) { http.open('get', link); http.onreadystatechange = function () { if(http.readyState == 4) { cont.innerHTML = http.responseText; } } http.send(null); } else { document.location = link; } } // создание ajax объекта function createRequestObject() { try { return new XMLHttpRequest() } catch(e) { try { return new ActiveXObject('Msxml2.XMLHTTP') } catch(e) { try { return new ActiveXObject('Microsoft.XMLHTTP') } catch(e) { return null; } } } } </script> |