[QUOTE] написал:
Второй вопрос решился. Однако вопрос с картинками актуален))
Кстати вот код :
[CODE] <? if (!defined( "B_PROLOG_INCLUDED" ) || B_PROLOG_INCLUDED!== true )die();?>
< div class = "news-list" >
< style type = "text/css" >
/*таблица*/
table .paritet
{
width : 90 % ;
border : 1 px solid #CED8EB ;
background-color : #DFEAF5 ;
border-collapse : collapse ;
font-size : 11 px ;
}
table .paritet th
{
background-color : #DFEAF5 ;
text-align : left ;
color : #4A75AA ;
}
/* Table cells and heads*/
table .paritet th , table .paritet td
{
border : 1 px solid #CED8EB ;
padding : 3 px 3 px ;
vertical-align : top ;
}
table .paritet td
{
background-color : #ffffff ;
text-align : left ;
color : #25639A ;
}
table .paritet td .fon
{
background-color : #FBFCFA ;
/*text-align: left;
color:#25639A;*/
}
</ style >
<?if($arParams["DISPLAY_TOP_PAGER"]):?>
<? = $arResult [ "NAV_STRING" ] ?> < br />
<?endif;?>
< p class = "news-item" >
< table width = "100%" border = "0" class = "paritet" >
< tr >
< th > Марка датчика </ th >
< th > Диапозон, < br /> °C < br /> </ th >
< th > Погрешность, < br /> °C </ th >
< th > Длина,м < br /> Высота,м < br /> Ширина,м </ th >
< th > Диаметр,м </ th >
< th > Масса,кг </ th >
< th > Среда </ th >
< th > Чувствител. < br /> элемент </ th >
< th > Шкала < br /> измерений </ th >
< th > Тип < br /> датчика </ th >
< th > Ресурс,ч </ th >
< th > Срок < br /> службы,ч </ th >
< th > Изображение </ th >
</ tr >
<? $num = 0 ; ?>
<?foreach($arResult["ITEMS"] as $arItem):?>
<? $num = $num + 1 ;
if ( $num == 2 ) { $bg = "class='fon'" ;
$num = 0 ;
}
else { $bg = "" ;
}
?>
< tr >
< td <? echo $ bg ;?> > < a href = "<?echo $arItem[" DETAIL_PAGE_URL"]? > "> <?echo $arItem["NAME"]?> </ a > </ td >
< td <? echo $ bg ;?> >от <? = $arItem [ "PROPERTIES" ][ "diapozon_ot" ][ "VALUE" ] ?> < br /> до <? = $arItem [ "PROPERTIES" ][ "diapozon_do" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "pogreshnost" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "dlina" ][ "VALUE" ] ?> х < br /> <? = $arItem [ "PROPERTIES" ][ "visota" ][ "VALUE" ] ?> х < br /> <? = $arItem [ "PROPERTIES" ][ "shirina" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "diametr" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "massa" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "sreda _dt" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "chuvstvit_dt" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "shkala_dt" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "tip_dt" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "resurs" ][ "VALUE" ] ?> </ td >
< td <? echo $ bg ;?> > <? = $arItem [ "PROPERTIES" ][ "srok" ][ "VALUE" ] ?> </ td >
<? $prev = "/bitrix/templates/two_columns/images/search.gif" ; ?>
<? $img = $arItem [ "PROPERTIES" ][ "chertezh" ][ "VALUE" ] ?>
< td <? echo $ bg ;?> > <?if($img<>""):?> <?echo CFile::Show2Images($prev, $img, 20, 20, "hspace='2' vspace='2' border='0' align='center' title='Посмотреть чертеж'", true);?> <?endif;?> </ td >
</ tr >
</ p >
<?endforeach;?>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?>
< br /> <? = $arResult [ "NAV_STRING" ] ?>
<?endif;?>
</ div > </ table > [/CODE] [/QUOTE]
Решили первый вопрос?