Задача:
С генерировать символьные коды для разделов или элементов инфоблока - если они не заданы
С генерировать символьные коды для разделов или элементов инфоблока - если они не заданы
СВОЙСТВА удаляются |
overlay: { backgroundColor: 'red', opacity: '80' } |
Шевчик Игорь написал: Вопрос синхронизации данных с Битриксом оставим для следующего топика (появится после выхода обновления) |
$this->includeComponentTemplate(); ..... if(isset($this->arResult["ID"])) global $APPLICATION, $USER, $DB; if($GLOBALS['USER']->IsAuthorized()) { if( $APPLICATION->GetShowIncludeAreas() || $this->arParams["SET_TITLE"] || isset($this->arResult[$this->arParams["BROWSER_TITLE"]]) ) { $arReturnUrl = array( "add_element" => CIBlock::GetArrayByID($this->arParams["IBLOCK_ID"], "DETAIL_PAGE_URL"), "delete_element" => ( isset($this->arResult["SECTION"])? $this->arResult["SECTION_URL"]: $this->arResult["LIST_PAGE_URL"] ), ); $arButtons = CIBlock::GetPanelButtons( $this->arParams["IBLOCK_ID"], $this->arResult["ID"], $this->arResult["IBLOCK_SECTION_ID"], Array( "RETURN_URL" => $arReturnUrl, "CATALOG"=>true ) ); if($APPLICATION->GetShowIncludeAreas()) $this->addIncludeAreaIcons(CIBlock::GetComponentMenu($APPLICATION->GetPublicShowMode(), $arButtons)); if($this->arParams["SET_TITLE"] || isset($this->arResult[$this->arParams["BROWSER_TITLE"]])) { $arTitleOptions = array( 'ADMIN_EDIT_LINK' => $arButtons["submenu"]["edit_element"]["ACTION"], 'PUBLIC_EDIT_LINK' => $arButtons["edit"]["edit_element"]["ACTION"], 'COMPONENT_NAME' => $this->getName(), ); } } .... |
if($this->classOfComponent) { /** @var CBitrixComponent $component */ $component = new $this->classOfComponent($this); $component->arParams = $component->onPrepareComponentParams($arParams); $component->__prepareComponentParams($component->arParams); $component->onIncludeComponentLang(); return = $component->executeComponent(); } |
{ /** @var CBitrixComponent $component */ $component = new $this->classOfComponent($this); $component->arParams = $component->onPrepareComponentParams($arParams); $component->__prepareComponentParams($component->arParams); $component->onIncludeComponentLang(); $return = $component->executeComponent(); $this->__arIncludeAreaIcons = $component->getIncludeAreaIcons(); return $return; } |
$panel = new CComponentPanel($component, $componentName, $componentTemplate, $parentComponent, $bComponentEnabled); $arIcons = $panel->GetIcons(); |
<script type="text/javascript">$(document).ready(function(){ var fltr = $(".countQFilter"; for(var j=0; i<fltr.length; i++){ var url = $(fltr[j].attr("id"; $(fltr[j].load("/Ajx_QFilter.php?"+url, function(obj){if((obj+0) == 0){$(this).parent().parent('li').hide();}else{$(this).prepend(" (".append("";}}); }});</script> |
изначально предположив что тег <div id="index_page_result_div"> меняться от релиза к релизу не будет |
var b=window.document.body; |
if(w>b.clientWidth-10){w=b.clientWidth-10;}div.style.zIndex="10001"; |
if(b.lastChild){b.insertBefore(e,b.lastChild);}else{b.appendChild(e);}}; |
RewriteRule ^thumb/(.*)$ /bitrix/admin/studioNicka_thumb.php?/thumb/$1 [L] |
/****************************************************************** STATUS "renew" : 1 - создана - не принята "accept" : 2 - принята (если сам себе - то сразу этот статус) "start" : 3 - в работе исполняется "close" : 4 - закрыта - требует контроля "close" : 5 - закрыта "defer" : 6 - приостановлена / отложена "decline" : 7 - отклонена /******************************************************************/ |
function OnBeforeTaskUpdate($ID, &$arFields) { /******************************************************* // проверяем что задачу перевели в исполнение // и все остальные задачи переводим в паузу ******************************************************/ if(isset($arFields['STATUS']) && $arFields['STATUS'] == 3){ CModule::IncludeModule("tasks"); $MODULE_ID = basename(dirname(__FILE__)); //define("LOG_FILENAME", $_SERVER["DOCUMENT_ROOT"].'/log_'.$MODULE_ID.'.txt'); // выберем все задачи пользователя со статусом в работе, кроме текущей $res = CTasks::GetList( Array("TITLE" => "ASC"), Array( "RESPONSIBLE_ID" => $arFields['STATUS_CHANGED_BY'], '!ID' => $ID, 'STATUS' => 3 ), Array('ID', 'TITLE', 'STATUS') ); $obTask = new CTasks; while ($arTask = $res->GetNext()) { $arFieldsOld = array('STATUS' => 6); // переведем задачи в статус паузы $success = $obTask->Update($arTask['ID'], $arFieldsOld); } //AddMessage2Log(print_r(array($ID, $arFields), true), $MODULE_ID); } return true; } |
function OnBeforeTMEntryUpdate($arFields) { /******************************************************* // если закрыли или на паузу день поставили // все задачи отложились ******************************************************/ $MODULE_ID = basename(dirname(__FILE__)); //define("LOG_FILENAME", $_SERVER["DOCUMENT_ROOT"].'/log_'.$MODULE_ID.'.txt'); if(isset($arField['PAUSED']) && $arField['PAUSED'] == 'Y' || !isset($arFields['ACTIVE']) ){ //AddMessage2Log(print_r(array($arFields), true), $MODULE_ID); CModule::IncludeModule("tasks"); $res = CTasks::GetList( Array("TITLE" => "ASC"), Array( "RESPONSIBLE_ID" => $arFields['USER_ID'], 'STATUS' => 3 ), Array('ID', 'TITLE', 'STATUS') ); $obTask = new CTasks; while ($arTask = $res->GetNext()) { $arFieldsOld = array('STATUS' => 6); $success = $obTask->Update($arTask['ID'], $arFieldsOld); } } return true; } |
"STATUS" => array( array( array("TITLE" => GetMessage("TASKS_FILTER_ACTIVE"), "FILTER" => array("STATUS" => array(-2, -1, 1, 2, 3, 6)), "CLASS" => "open", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_NEW"), "FILTER" => array("STATUS" => array(-2, 1)), "CLASS" => "new", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_DELAYED"), "FILTER" => array("STATUS" => 6), "CLASS" => "new", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_IN_PROGRESS"), "FILTER" => array("STATUS" => 3), "CLASS" => "in-progress", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_ACCEPTED"), "FILTER" => array("STATUS" => 2), "CLASS" => "accepted", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_OVERDUE"), "FILTER" => array("STATUS" => -1), "CLASS" => "overdue", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_CLOSED"), "FILTER" => array("STATUS" => array(4, 5)), "CLASS" => "completed", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_ALL"), "FILTER" => array(), "CLASS" => "any", "COUNT" => "-") ), array( array("TITLE" => GetMessage("TASKS_FILTER_ACTIVE"), "FILTER" => array("STATUS" => array(-1, 1, 2, 3, 4, 7)), "CLASS" => "open", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_NOT_ACCEPTED"), "FILTER" => array("STATUS" => 1), "CLASS" => "new", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_IN_CONTROL"), "FILTER" => array("STATUS" => array(4, 7)), "CLASS" => "waiting", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_IN_PROGRESS"), "FILTER" => array("STATUS" => 3), "CLASS" => "in-progress", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_ACCEPTED"), "FILTER" => array("STATUS" => 2), "CLASS" => "accepted", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_OVERDUE"), "FILTER" => array("STATUS" => -1), "CLASS" => "overdue", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_DELAYED"), "FILTER" => array("STATUS" => 6), "CLASS" => "delayed", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_CLOSED"), "FILTER" => array("STATUS" => array(4, 5)), "CLASS" => "completed", "COUNT" => "-"), array("TITLE" => GetMessage("TASKS_FILTER_ALL"), "FILTER" => array(), "CLASS" => "any", "COUNT" => "-") ) ) |
array("TITLE" => GetMessage("TASKS_FILTER_ACTIVE"), "FILTER" => array("STATUS" => array(-2, -1, 1, 2, 3, 6)), "CLASS" => "open", "COUNT" => "-"), |
array("TITLE" => GetMessage("TASKS_FILTER_DELAYED"), "FILTER" => array("STATUS" => 6), "CLASS" => "delayed db-delayed", "COUNT" => "-"), |
Группы на сайте создаются не только сотрудниками «1С-Битрикс», но и партнерами компании. Поэтому мнения участников групп могут не совпадать с позицией компании «1С-Битрикс».