Exemple #1
0
  &nbsp;<input type="submit" value="<?php 
echo GetMessage("SEARCH_GO");
?>
" />
</form><br />

<?php 
if ($arResult["REQUEST"]["QUERY"] != "") {
    $sc = "%" . $arResult["REQUEST"]["QUERY"] . "%";
    $items = GetIBlockElementListEx("catalogue", "furniture", array(), array("SORT" => "ASC", "NAME" => "ASC", "DATE_ACTIVE_FROM" => "DESC"), 1000000, array("NAME" => $sc));
    // цикл по всем новостям
    while ($arItem = $items->GetNext()) {
        // выведем ссылку на страницу с детальным просмотром
        echo "<a href='" . $arItem["DETAIL_PAGE_URL"] . "'>" . $arItem["NAME"] . "</a>";
        // выведем дату
        echo $arItem["DATE_ACTIVE_FROM"] . "<br>";
        // выведем картинку для анонса, с ссылкой на детальный просмотр
        echo ShowImage($arItem["PREVIEW_PICTURE"], 100, 100, "border='0'", $arItem["DETAIL_PAGE_URL"]);
        // выведем анонс
        echo $arItem["PREVIEW_TEXT"] . "<hr>";
    }
} else {
    echo "Не введено название мебели. ";
}
?>





</div>
Exemple #2
0
        } elseif ($arVote["LAMP"] == "red") {
            ?>
<br><font class="required"><?php 
            echo GetMessage("VOTE_IS_NOT_ACTIVE");
            ?>
</font><?php 
        }
        ?>
<br></font><br><font class="text">
										<?php 
        if ($arVote["IMAGE_ID"]) {
            ?>
										<table cellpadding="0" cellspacing="0" border="0" align="left">
											<tr>
												<td><?php 
            echo ShowImage($arVote["IMAGE_ID"], 253, 300, "hspace='3' vspace='3' align='left' border='0'", "", true, GetMessage("VOTE_ENLARGE"));
            ?>
</td>
												<td valign="top" width="0%"><img src="/images/1.gif" width="10" height="1"></td>
											</tr>
										</table>
										<?php 
        }
        echo $arVote["DESCRIPTION"];
        ?>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
Exemple #3
0
    die;
}
?>
<br />

                        <table width="525" height="175" border="0" cellpadding="0" cellspacing="5"  style="BACKGROUND: 

url(/bitrix/templates/avangard/images/bg_sq.gif) no-repeat left top">
                          <tr> 
                            <td rowspan="3" align="left" valign="middle" style="padding:7px 0px 7px 7px " width="300">


<?php 
$items = GetIBlockElementListEx("catalogue", "furniture", array(), array("RAND" => "RAND"), 1, array("!PROPERTY_HIT" => false));
while ($arItem = $items->GetNext()) {
    echo ShowImage($arItem["DETAIL_PICTURE"], 280, 140, "border='0'", "/catalogue/" . $arItem["IBLOCK_SECTION_ID"] . "/tov_" . $arItem["ID"] . ".html");
    ?>



                            </td>
                            <td style="padding: 0px 7px" class="hit-title-month" height="35">В этом месяце "<?php 
    echo $arItem["NAME"];
    ?>
"<br />
<span class="hit-title-hit">Хит Продаж!</span></td>
                          </tr>
                          <tr> 
                            <td class="bottext">
		<?php 
    if ($arParams["DISPLAY_PREVIEW_TEXT"] != "N" && $arItem["PREVIEW_TEXT"]) {
Exemple #4
0
            // цикл по всем новостям
            while ($arItem = $items->GetNext()) {
                ?>
   <pre>
   <?php 
                //print_r($arItem)
                ?>
</pre>



      <table cellpadding="0" cellspacing="5" border="0">
                                <tr>
                                        <td valign="top" width="160" align="left">
                                  <?php 
                echo ShowImage($arItem["PREVIEW_PICTURE"], 156, 97, "border='0'", "/catalogue/" . $arItem["IBLOCK_SECTION_ID"] . "/tov_" . $arItem["ID"] . ".html");
                ?>

                                        </td>
                                        <td valign="top" class="bottext"><small>
                                        <b><a href="/catalogue/<?php 
                echo $arItem["IBLOCK_SECTION_ID"];
                ?>
/tov_<?php 
                echo $arItem["ID"];
                ?>
.html"><?php 
                echo $arItem["NAME"];
                ?>
</a></b><br /></br>
Exemple #5
0
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="200" height="150" rowspan="3">

    <?php 
if (count($arResult["MORE_PHOTO"]) > 0) {
    reset($arResult["MORE_PHOTO"]);
    $M_PHOTO = current($arResult["MORE_PHOTO"]);
    $m_folder = str_replace($M_PHOTO["FILE_NAME"], "", $M_PHOTO["SRC"]);
    // получаем папку, где хранится картинка (убираем из пути название файла)
    $m_s_puth = $m_folder . "s_" . $M_PHOTO["FILE_NAME"];
    //получаем путь до маленькой картинки
    $m_puth = $m_folder . $M_PHOTO["FILE_NAME"];
    //получаем путь до основной картинки
    echo ShowImage($m_s_puth, 280, 200, "border='0'", "/catalogue/" . $arResult["IBLOCK_SECTION_ID"] . "/tov_" . $arResult["ID"] . ".html");
}
?>

    </td>
    <td style="padding: 0px 7px" class="hit-title-month" height="35" valign="top">В этом месяце "<?php 
echo $arResult["NAME"];
?>
"<br />
<span class="hit-title-hit">Хит Продаж!</span></td>
  </tr>
  <tr>
     <td class="bottext">
<?php 
echo $arResult["PREVIEW_TEXT"];
?>
            ?>
">
				<div title="<?php 
            echo GetMessage("LEARNING_PASS_SELF_TEST");
            ?>
" class="learn-self-test-icon float-right"></div>
			</a>
		<?php 
        }
        ?>

		<?php 
        if ($arResult["LESSON"]["DETAIL_PICTURE_ARRAY"] !== false) {
            ?>
			<?php 
            echo ShowImage($arResult["LESSON"]["DETAIL_PICTURE_ARRAY"], 250, 250, "hspace='8' vspace='1' align='left' border='0'" . ' alt="' . htmlspecialcharsbx($arResult["LESSON"]["DETAIL_PICTURE_ARRAY"]['DESCRIPTION']) . '"', "", true);
            ?>
		<?php 
        }
        ?>

		<?php 
        echo $arResult["LESSON"]["DETAIL_TEXT"];
        ?>

		<?php 
        $arParams["SHOW_RATING"] = $arResult["COURSE"]["RATING"];
        CRatingsComponentsMain::GetShowRating($arParams);
        if ($arParams["SHOW_RATING"] == 'Y') {
            ?>
		<div class="learn-rating">
Exemple #7
0
&nbsp;</div><?php 
$APPLICATION->IncludeComponent("bitrix:search.form", "flat", array("PAGE" => "search.php"), $component);
?>
<br />
<?php 
if (!empty($arResult["COURSES"])) {
    ?>
<div class="learning-course-list">
	<?php 
    foreach ($arResult["COURSES"] as $arCourse) {
        ?>
		<?php 
        if ($arCourse["PREVIEW_PICTURE_ARRAY"] !== false) {
            ?>
			<?php 
            echo ShowImage($arCourse["PREVIEW_PICTURE_ARRAY"], 200, 200, "hspace='6' vspace='6' align='left' border='0'" . ' alt="' . htmlspecialcharsbx($arCourse['PREVIEW_PICTURE_ARRAY']['DESCRIPTION']) . '"', "", true);
            ?>
		<?php 
        }
        ?>

		<a href="<?php 
        echo $arCourse["COURSE_DETAIL_URL"];
        ?>
" target="_blank"><?php 
        echo $arCourse["NAME"];
        ?>
</a>
		<?php 
        if (strlen($arCourse["PREVIEW_TEXT"]) > 0) {
            ?>
Exemple #8
0
				<?php 
                $arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y", "CHECK_PERMISSIONS" => "Y", "SECTION_ID" => $ID);
                $dbItems = CIBlockElement::GetList(array("SORT" => "ASC", "NAME" => "ASC"), $arFilter);
                $dbItems->NavStart($ITEMS_LIST_COUNT);
                ?>
				<tr><td colspan="2" valign="top"><?php 
                echo $dbItems->NavPrint(GetMessage("UNI_S_PRODUCTS"));
                ?>
</td></tr>
				<?php 
                while ($arItem = $dbItems->Fetch()) {
                    ?>
					<tr>
						<td width="0%" valign="top" align="center">
							<?php 
                    echo ShowImage($arItem["PREVIEW_PICTURE"], 100, 100, "border='0' alt='" . $arItem["NAME"] . "'", CIBlock::ReplaceDetailUrl($DETAIL_PAGE_TEMPLATE, $arItem, true));
                    ?>
						</td>
						<td width="100%">
							<?php 
                    if (CModule::IncludeModule("catalog") && CCatalog::GetByID($IBLOCK_ID)) {
                        ?>
							<div align="right">
								<table border="0" cellSpacing="1" width="150" cellPadding="0" style="border: 1px solid #C7DAE4" align="right">
									<tr>
										<td>
									<table border="0" class="tablebody" cellSpacing="0" width="100%" cellPadding="2">
										<?php 
                        $arProduct = GetCatalogProduct($arItem["ID"]);
                        $arPrice = GetCatalogProductPriceList($arItem["ID"], "SORT", "ASC");
                        //print_r($arPrice);
Exemple #9
0
<?php 
$arOutput = array("DETAIL_PAGE_URL", "PROPERTY_TOP_PHOTO", "IBLOCK_SECTION_ID", "ID", "SECTION_ID");
$items = GetIBlockElementListEx("catalogue", "furniture", array(), array("RAND" => "RAND"), 1, array("!PROPERTY_TOP" => false), $arOutput);
while ($arItem = $items->GetNext()) {
    echo ShowImage($arItem["PROPERTY_TOP_PHOTO_VALUE"], 530, 250, "border='0' style='margin-top:3px;'", "/catalogue/" . $arItem["IBLOCK_SECTION_ID"] . "/tov_" . $arItem["ID"] . ".html");
}
?>







Exemple #10
0
}
?>

<?php 
if (!empty($arResult["COURSES"])) {
    ?>
<div class="learning-course-list">

	<?php 
    foreach ($arResult["COURSES"] as $arCourse) {
        ?>
		<?php 
        if ($arCourse["PREVIEW_PICTURE_ARRAY"] !== false) {
            ?>
			<?php 
            echo ShowImage($arCourse["PREVIEW_PICTURE_ARRAY"]["SRC"], 200, 200, "hspace='6' vspace='6' align='left' border='0'", "", true);
            ?>
		<?php 
        }
        ?>

		<a href="<?php 
        echo $arCourse["COURSE_DETAIL_URL"];
        ?>
"><?php 
        echo $arCourse["NAME"];
        ?>
</a>
		<?php 
        if (strlen($arCourse["PREVIEW_TEXT"]) > 0) {
            ?>
Exemple #11
0
                                        ?>
</a></b></font></td>
																</tr>
															</table><?php 
                                    } else {
                                        ?>
<br><br><nobr><font class="smalltext"><?php 
                                        echo GetMessage("CATALOG_NOT_AVAILABLE");
                                        ?>
</font></nobr><?php 
                                    }
                                }
                                break;
                            case "PREVIEW_PICTURE":
                            case "DETAIL_PICTURE":
                                echo ShowImage($arElement[$code], 150, 150, "align='left' hspace='0' vspace='0' border='0' alt='" . $arElement["NAME"] . "'", $arElement["DETAIL_PAGE_URL"]);
                                break;
                            default:
                                echo $arElement[$code];
                                break;
                        }
                        ?>
</font></td><?php 
                    }
                    // prices
                    reset($arrPRICE_CODE);
                    foreach ($arrPRICE_CODE as $code) {
                        $value = $arElement["CATALOG_PRICE_" . $arrPrice[$code]["ID"]];
                        $currency = $arElement["CATALOG_CURRENCY_" . $arrPrice[$code]["ID"]];
                        $price_id = $arElement["CATALOG_PRICE_ID_" . $arrPrice[$code]["ID"]];
                        $can_access = $arElement["CATALOG_CAN_ACCESS_" . $arrPrice[$code]["ID"]];
Exemple #12
0
    <tr><td width="100%">
                 <div class="gray_td"><h1>Ќќ¬»Ќ » </h1></div>
           </td></tr>
  
    <tr><td>
    
<?php 
$items = GetIBlockElementListEx("catalogue", "furniture", array(), array("RAND" => "RAND"), 1, array("!PROPERTY_HIT" => false));
// цикл по всем новост¤м
while ($arItem = $items->GetNext()) {
    ?>
 <div style="height:90; width: 170; display: block; vertical-align: middle;">


 <?php 
    echo ShowImage($arItem["PREVIEW_PICTURE"], 170, 100, "class='preview'", "/catalogue/" . $arItem["IBLOCK_SECTION_ID"] . "/tov_" . $arItem["ID"] . ".html");
    ?>
</div>



<a href="/catalogue/<?php 
    echo $arItem["IBLOCK_SECTION_ID"];
    ?>
/tov_<?php 
    echo $arItem["ID"];
    ?>
.html" class="newhit"><?php 
    echo $arItem["NAME"];
    ?>
</a>
Exemple #13
0
                if ($arIBlockElement["ACTIVE_FROM"]) {
                    ?>
<font class="newsdata"><?php 
                    echo $arIBlockElement["ACTIVE_FROM"];
                    ?>
&nbsp;</font><?php 
                }
                ?>
				<font class="text">
				<?php 
                if ($arIBlockElement["DETAIL_PICTURE"]) {
                    ?>
					<table cellpadding="0" cellspacing="0" border="0" align="left">
						<tr>
							<td><?php 
                    echo ShowImage($arIBlockElement["DETAIL_PICTURE"], 250, 250, "hspace='0' vspace='2' align='left' border='0'", "", true, GetMessage("T_NEWS_DETAIL_ENLARGE_IMG"));
                    ?>
</td>
							<td valign="top" width="0%"><img src="/bitrix/images/1.gif" width="10" height="1"></td>
						</tr>
					</table>
				<?php 
                }
                ?>
				<?php 
                echo $arIBlockElement["DETAIL_TEXT"];
                ?>
				<p><a href="<?php 
                echo $arIBlockElement["LIST_PAGE_URL"];
                ?>
"><?php 
Exemple #14
0
        $items->NavPrint(GetMessage("T_NEWS_NEWS_NAVIG"));
        ?>
<table cellpadding="0" cellspacing="10" border="0"><?php 
        while ($obItem = $items->GetNextElement()) {
            $arItem = $obItem->GetFields();
            $arProp = $obItem->GetProperties();
            if (strlen(trim($DETAIL_PAGE_URL)) > 0) {
                $ItemDetailPageURL = CIBlock::ReplaceDetailUrl($DETAIL_PAGE_URL, $arItem, true);
            } else {
                $ItemDetailPageURL = $arItem["DETAIL_PAGE_URL"];
            }
            ?>
			<tr><td>
			<font class="text">
				<?php 
            echo ShowImage($arItem["PREVIEW_PICTURE"], 100, 100, "hspace='5' vspace='5' align='left' border='0'", $ItemDetailPageURL);
            ?>
				<?php 
            if (strlen($arItem["DATE_ACTIVE_FROM"]) > 0) {
                ?>
<font class="newsdata"><?php 
                echo $arItem["DATE_ACTIVE_FROM"];
                ?>
<br></font><?php 
            }
            ?>
<a href="<?php 
            echo $ItemDetailPageURL;
            ?>
"><b><?php 
            echo $arItem["NAME"];
Exemple #15
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
?>

<?php 
if (!empty($arResult["CHAPTER"])) {
    ?>

	<?php 
    if ($arResult["CHAPTER"]["DETAIL_PICTURE_ARRAY"] !== false) {
        ?>
		<?php 
        echo ShowImage($arResult["CHAPTER"]["DETAIL_PICTURE_ARRAY"]["SRC"], 250, 250, "hspace='8' vspace='1' align='left' border='0'", "", true);
        ?>
	<?php 
    }
    ?>



	<?php 
    if (strlen($arResult["CHAPTER"]["DETAIL_TEXT"]) > 0) {
        ?>
		<br /><?php 
        echo $arResult["CHAPTER"]["DETAIL_TEXT"];
        ?>
	<?php 
    }
Exemple #16
0
</a><?php 
                }
                ?>
								</font>
							<br>
						</td>
					</tr>
					<tr>
					<td valign="top" width="100%">
						<?php 
                if ($arItem["PREVIEW_PICTURE"]) {
                    ?>
						<table cellpadding="0" cellspacing="0" border="0" align="left">
							<tr>
							<td valign="top"><?php 
                    echo ShowImage($arItem["PREVIEW_PICTURE"], 100, 100, "hspace='2' vspace='2' align='left' border='0'", $arItem["DETAIL_PAGE_URL"]);
                    ?>
</td>
							<td valign="top"><img src="/bitrix/images/1.gif" width="10" height="1"></td>
							</tr>
						</table>
						<?php 
                }
                ?>
						<font class="text"><?php 
                if ($arItem["PREVIEW_TEXT"]) {
                    echo $arItem["PREVIEW_TEXT"];
                    ?>
<br><?php 
                }
                ?>
Exemple #17
0
					<?if($fType == 'SOURCE'):?>
						<a title ="<?php 
echo GetMessage("MAIN_MOD_FILE") . htmlspecialcharsbx($arFiles["NAME"]);
?>
" href="fileman_file_edit.php?lang=<?php 
echo LANG;
?>
&amp;full_src=Y&amp;path=<?php 
echo urlencode($arFiles["ABS_PATH"]);
?>
&amp;back_url=<?php 
echo urlencode($_SERVER["REQUEST_URI"]);
?>
"><?echo GetMessage("MAIN_T_EDIT_CHANGE")?></a>
					<?elseif($fType == 'IMAGE' || $fType == 'FLASH'):?>
						<?echo ShowImage($arFiles["ABS_PATH"], $iMaxW=50, $iMaxH=50, $sParams=null, $strImageUrl="", $bPopup=true, $sPopupTitle=GetMessage("template_edit_open_pic"));?>
					<?endif?>
				</td>
			</tr>
			<?endwhile;?>
			</table>
		</td>
	</tr>
	<tr>
		<td align="left" colspan="2">
			<a title="<?php 
echo GetMessage("MAIN_T_EDIT_ADD_TITLE");
?>
" href="fileman_file_edit.php?lang=<?php 
echo LANG;
?>
Exemple #18
0
}
// template for displaying pie chart
$GLOBALS["APPLICATION"]->SetTemplateCSS("vote/vote.css");
if (CModule::IncludeModule("vote")) {
    IncludeTemplateLangFile(__FILE__);
    global $arrSaveColor;
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/img.php";
    $arrAnswers = $arAnswers[$QUESTION_ID];
    ?>
<table cellspacing="0" cellpadding="10" width="100%">
	<tr>
		<?php 
    if (intval($arQuestion["IMAGE_ID"]) > 0) {
        ?>
		<td valign="center" width="0%"><?php 
        echo ShowImage($arQuestion["IMAGE_ID"], 50, 50, "hspace='0' vspace='0' align='left' border='0'", "", true, GetMessage("VOTE_ENLARGE"));
        ?>
</td>
		<?php 
    }
    ?>
		<td valign="center" width="100%" <?php 
    if (intval($arQuestion["IMAGE_ID"]) <= 0) {
        echo "colspan='2'";
    }
    ?>
><font class="text"><b><?php 
    echo $arQuestion["QUESTION"];
    ?>
</b></font></td>
	</tr>
Exemple #19
0
                echo GetMessage("PHOTO_NEXT");
                ?>
</a><font class="smalltext">&nbsp;&gt;&gt;</font><?php 
            }
            ?>
</font></p><?php 
            /****************************************************************
            									HTML form
            			****************************************************************/
            ?>

			<table width="70%" border="0" cellspacing="0" cellpadding="7">
				<tr>
					<td width="0%" valign="top" nowrap><?php 
            $image = intval($arElement["DETAIL_PICTURE"]) <= 0 ? $arElement["PREVIEW_PICTURE"] : $arElement["DETAIL_PICTURE"];
            echo ShowImage($image, 400, 400, "hspace='0' vspace='0' border='0'", "", true, GetMessage("PHOTO_ENLARGE"));
            ?>
</td>
				</tr>
			</table>
			<?php 
            if (strlen($arElement["PREVIEW_TEXT"]) > 0) {
                ?>
				<font class="text"><p><?php 
                echo $arElement["PREVIEW_TEXT"];
                ?>
</p></font>
			<?php 
            }
            ?>
			<?php