if($APPLICATION->GetGroupRight("sale") < "W") $APPLICATION->AuthForm(Loc::getMessage('SALE_MODULE_ACCES_DENIED')); $userIsAdmin = $APPLICATION->GetGroupRight("sale") >= "W"; ##################################### #### Data prepare ##################################### try { $itemId = intval($_REQUEST[Helper::URL_PARAM_PARENT_ID]) ? intval($_REQUEST[Helper::URL_PARAM_PARENT_ID]) : false; $nameToDisplay = Helper::getNameToDisplay($itemId); // get entity fields for columns & filter $columns = Helper::getColumns('list'); $arFilterFields = array(); $arFilterTitles = array(); foreach($columns as $code => $fld) { $arFilterFields[] = 'find_'.$code; $arFilterTitles[] = $fld['title']; } $sTableID = "tbl_location_node_list"; // spike for filter if($_REQUEST['del_filter'] != 'Y') { if(isset($_SESSION['SESS_ADMIN'][$sTableID][Helper::URL_PARAM_PARENT_ID]) && isset($_REQUEST[Helper::URL_PARAM_PARENT_ID]) && ($_SESSION['SESS_ADMIN'][$sTableID][Helper::URL_PARAM_PARENT_ID] != $_REQUEST[Helper::URL_PARAM_PARENT_ID]))
<? $topMenu->Show(); $args = array(); if(intval($_REQUEST['parent_id'])) $args['parent_id'] = intval($_REQUEST['parent_id']); $tabControl->Begin(array( "FORM_ACTION" => Helper::getEditUrl(intval($_REQUEST[Helper::URL_PARAM_ID]) ? intval($_REQUEST[Helper::URL_PARAM_ID]) : false, $args) // generally, it is not safe to leave action empty )); $tabControl->BeginNextFormTab(); ?> <?$requiredFld = ' class="adm-detail-required-field"';?> <?$columns = Helper::getColumns('detail');?> <?foreach($columns as $code => $field):?> <?if($code == 'ID' && !$id) continue; // new node or copied ?> <?if(Helper::checkIsNameField($code)) continue; // we`ll output names in a different manner ?> <?$value = Helper::makeSafeDisplay($formData[$code], $code);?> <?$tabControl->BeginCustomField($code, $field['title']);?> <?if(!$geoHeadingShown && ($code == 'LATITUDE' || $code == 'LONGITUDE')):?> <tr class="heading"> <td colspan="2"><?php echo Loc::getMessage('SALE_LOCATION_E_GEODATA'); ?> </td>