rmdl
Neophyte-
Posts
1 -
Joined
-
Last visited
rmdl's Achievements
Explorer (1/14)
0
Reputation
-
Здравствуйте!!! Возникла проблема при редактировании дизайна главной странички! сайт на битриксе. при перемещении блока на главной странице, (discount-block ) данный блок перемещается во всех других страницах. Как сделать так что бы этот блок поменялся только на главной странице, а на остальных оставался как и был? Помогите плиз! <? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle(""); ?> <script type="text/javascript">var showmarker =0;</script> <? if (isset($_POST['pcoord'])){ CModule::IncludeModule("iblock"); $el = new CIBlockElement; $exp_str = explode(",", $_POST['pcoord']); $PROP = array(); $PROP[lib::getProperyId(1,'posX')] = $exp_str[0]; $PROP[lib::getProperyId(1,'posY')] = $exp_str[1]; $PROP[lib::getProperyId(1,'map')] = $exp_str[1].",".$exp_str[0]; $arArray = Array( "IBLOCK_SECTION_ID" => $_POST['cat'], // элемент лежит в корне раздела "IBLOCK_ID" => 1, "PROPERTY_VALUES"=> $PROP, "NAME" => $_POST['name'], "ACTIVE" => "Y", // активен "PREVIEW_TEXT" => $_POST['descriptpoint'], "DETAIL_TEXT" => $_POST['descriptpoint'] ); if (!empty($_FILES['marker-img']['tmp_name']))$arArray['PREVIEW_PICTURE']=$_FILES['marker-img']; if (!empty($_FILES['logo-img']['tmp_name']))$arArray['DETAIL_PICTURE']=$_FILES['logo-img']; if($ID = $el->Add($arArray)){ ?> <script type="text/javascript"> var showmarker = <img id="bxid_686295" src="/bitrix/images/fileman/htmledit2/php.gif" border="0" />; </script> <? } } ?> <link rel="stylesheet" href="/css/nyroModal.css" type="text/css" media="screen"></link> <script type="text/javascript" src="/js/jquery.nyroModal.custom.min.js"></script> <!--[if IE 6]> <img id="bxid_636905" src="/bitrix/images/fileman/htmledit2/script.gif" /> <![endif]--> <div id="deals-list-in-index" class="discount-block"> <?$APPLICATION->IncludeComponent( "dev:mixed.list", "action-list-bottom", Array( "IBLOCK_TYPE" => "content", "IBLOCK_ID" => "2", "ELEMENT_COUNT" => "4", "SORT_BY1" => "SORT", "SORT_ORDER1" => "DESC", "SORT_BY2" => "ID", "SORT_ORDER2" => "DESC", "FILTER_NAME" => "arFilter", "PROPERTY_CODE" => array(0=>"isbonus",1=>"dateEnd",2=>"discount",3=>"",), "AJAX_MODE" => "N", "AJAX_OPTION_SHADOW" => "Y", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "SET_TITLE" => "N", "SET_STATUS_404" => "N", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "Y", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "Y", "PAGER_TEMPLATE" => "", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "Y", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "AJAX_OPTION_ADDITIONAL" => "" ) );?> </div> <script src="http://api-maps.yandex.ru/1.1/index.xml?key=ANoBoE4BAAAA--a7ZgIARWJrSufNSfy5FdzEhbcxyaxfQMkAAAAAAAAAAADMAifT7LejwV-Jf7Sr23Zdj0kLHQ==" type="text/javascript"></script> <script src="/js/jquery-ui.min.js"></script> <script type="text/javascript" src="/js/index.js"></script> <div id="top-index-banner" style="display: none;"></div> <a href="#top-index-banner" class="nStartBanner" ></a> <div id="left-block"> <div class="title-block"> <input type="hidden" id="current-cat" /> <!--generates = <div class="show_company_list scrollbar"> </div>--> <b class="l"></b>Карта Астаны<b class="r"></b> <div class="right"><a class="button companies-list" href="/" >Список компаний</a></div> </div> <div id="addMarkerInfo">Чтобы добавить метку кликните мышкой на необходимую точку на карте! <br /> <input type="button" class="addMarkerInfoCansel" value="Отменить" /></div> <div class="block-map" id="YMapsBT"> <img src="/images/ya-maps.jpg" /> </div> <div class="banner-center banner-top2"> <?$APPLICATION->IncludeComponent("bitrix:advertising.banner", "", array( "TYPE" => "top2", "NOINDEX" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "0" ), false, array( "ACTIVE_COMPONENT" => "Y" ) );?> </div> <div class="events-block dblock"> <?$APPLICATION->IncludeComponent( "bitrix:news.list", "events-index", Array( "IBLOCK_TYPE" => "content", "IBLOCK_ID" => "5", "NEWS_COUNT" => "2", "SORT_BY1" => "ACTIVE_FROM", "SORT_ORDER1" => "DESC", "SORT_BY2" => "SORT", "SORT_ORDER2" => "ASC", "FILTER_NAME" => "", "FIELD_CODE" => array(0=>"",1=>"",), "PROPERTY_CODE" => array(0=>"",1=>"",), "CHECK_DATES" => "Y", "DETAIL_URL" => "", "AJAX_MODE" => "N", "AJAX_OPTION_SHADOW" => "Y", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "d.m.Y", "SET_TITLE" => "N", "SET_STATUS_404" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "N", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "N", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => "", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "N", "DISPLAY_PREVIEW_TEXT" => "N", "AJAX_OPTION_ADDITIONAL" => "" ) );?> </div> <div class="news-block dblock"> <?$APPLICATION->IncludeComponent( "bitrix:news.list", "news-index", Array( "IBLOCK_TYPE" => "content", "IBLOCK_ID" => "4", "NEWS_COUNT" => "3", "SORT_BY1" => "ACTIVE_FROM", "SORT_ORDER1" => "DESC", "SORT_BY2" => "SORT", "SORT_ORDER2" => "ASC", "FILTER_NAME" => "", "FIELD_CODE" => array(0=>"",1=>"",), "PROPERTY_CODE" => array(0=>"",1=>"",), "CHECK_DATES" => "Y", "DETAIL_URL" => "", "AJAX_MODE" => "N", "AJAX_OPTION_SHADOW" => "Y", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "d.m.Y", "SET_TITLE" => "N", "SET_STATUS_404" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "N", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "N", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => "", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "N", "DISPLAY_PREVIEW_TEXT" => "N", "AJAX_OPTION_ADDITIONAL" => "" ) );?> </div> </div> <div id="right-block"> <div class="search-block"> <div class="title-search"> <b>Найти компанию</b> <div class="forms"> <form action="" method="post" id="company-search-form"> <input type="text" name="q" value="" placeholder="Поиск" /> <input type="submit" value=" " id="search-company" /> </form> </div> </div> <div class="bg"></div> <div class="section"> <div class="p_content"> <div id="page_content" class="scroll-pane"> <?$APPLICATION->IncludeComponent( "bitrix:catalog.section.list", "company-catalog", Array( "IBLOCK_TYPE" => "content", "IBLOCK_ID" => "1", "SECTION_ID" => "", "SECTION_CODE" => "", "COUNT_ELEMENTS" => "Y", "TOP_DEPTH" => "2", "SECTION_FIELDS" => array(0=>"",1=>"",), "SECTION_USER_FIELDS" => array(0=>"",1=>"",), "SECTION_URL" => "", "CACHE_TYPE" => "N", "CACHE_TIME" => "36000000", "CACHE_GROUPS" => "Y", "ADD_SECTIONS_CHAIN" => "Y" ) );?> </div> <!--<div id="page_content_search" class="scroll-pane" style="display:none"></div>--> </div> <div id="_addPoint" style="display: none;"> <form action="" method="POST" enctype="multipart/form-data"> <table width="100%"> <tbody> <tr><td>Категория<span class="star">*</span>:</td><td><?=cat_select('cat')?></td></tr> <tr><td>Изображене маркера:</td><td><input type="file" name="marker-img" /></td></tr> <tr><td>Изображене логотипа:</td><td><input type="file" name="logo-img" /></td></tr> <tr><td>Название<span class="star">*</span>:</td><td><input type="text" name="name" class="text" style="width: 100%;" /></td></tr> <tr><td>Адрес<span class="star">*</span>:</td><td><input type="text" name="addr" class="text" style="width: 100%;" /></td></tr> <tr><td colspan="2">Описание<span class="star">*</span>:</td></tr> <tr><td colspan="2"><textarea name="descriptpoint" style="width: 100%;"></textarea></td></tr> <tr><td align="right" colspan="2"><input type="button" value="Отменить" class="addMarkerInfoCansel" /> <input type="button" value="Сохранить" class="save" /></td></tr> </tbody> </table> </form> </div> </div> </div> <div class="banner-center banner-right"> <? $APPLICATION->IncludeFile("/bitrix/templates/.default/inc/_social.php", Array(), Array("MODE" => "html", "NAME" => "Редактирование включаемой области" )); ?> </div> <div class="tag-cloud"> <?$APPLICATION->IncludeComponent( "bitrix:search.tags.cloud", "tags1.v2.utf8", Array( "SORT" => "NAME", "PAGE_ELEMENTS" => "150", "PERIOD" => "", "URL_SEARCH" => "/search/index.php", "TAGS_INHERIT" => "Y", "CHECK_DATES" => "N", "FILTER_NAME" => "", "arrFILTER" => array(0=>"iblock_content",), "arrFILTER_iblock_content" => array(0=>"all",), "CACHE_TYPE" => "A", "CACHE_TIME" => "3600", "FONT_MAX" => "15", "FONT_MIN" => "10", "COLOR" => "715521", "COLOR2" => "303437", "COLORHI" => "303437", "BG" => "ffffff", "WIDTH2" => "238", "HEIGHT" => "215", "SPEED" => "100", "TRANS" => "Y", "DISTR" => "N", "CALLMETHOD" => "N" ) );?> </div> </div> <br clear="all"/> <?$APPLICATION->IncludeComponent( "bitrix:menu", "middle", Array( "ROOT_MENU_TYPE" => "middle", "MENU_CACHE_TYPE" => "A", "MENU_CACHE_TIME" => "3600", "MENU_CACHE_USE_GROUPS" => "Y", "MENU_CACHE_GET_VARS" => array(), "MAX_LEVEL" => "1", "CHILD_MENU_TYPE" => "left", "USE_EXT" => "N", "DELAY" => "N", "ALLOW_MULTI_SELECT" => "N" ) );?> <? global $arFilter; $arFilter = array('>PROPERTY_dateEnd'=>ConvertDateTime(date("d.m.Y H:i:s"), "YYYY-MM-DD HH:MI:SS")); ?> <b class="sb"></b> <br clear="all" /> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>