<?php 
echo Loc::getMessage('SALE_LOCATION_E_NO_SERVICES');
?>
 <a href="<?php 
echo ExternalServiceHelper::getListUrl();
?>
" target="blank_"><?php 
echo Loc::getMessage('SALE_LOCATION_E_NO_SERVICES_LIST_PAGE');
?>
</a>

				<?else:?>

					<?$randTag = rand(99, 999);?>
					<?$externalMap = Helper::getExternalMap();?>
					<div id="ib_external_values_<?php 
echo $randTag;
?>
">

						<table class="internal" style="margin: 0 auto">
							<tbody class="bx-ui-dynamiclist-container">
								<tr class="heading">
									<?foreach($externalMap as $code => $field):?>
										<td><?php 
echo $field['title'];
?>
</td>
									<?endforeach?>
									<td><?php 
Ejemplo n.º 2
0
 /**
  * Move data read from database to a specially formatted $arResult
  * @return void
  */
 protected function formatResult()
 {
     $this->arResult =& $this->dbResult;
     $this->arResult['ERRORS'] =& $this->errors;
     $this->arResult['FORM_ID'] = 'CRM_LOC_EDIT_FORM';
     $this->arResult['GRID_ID'] = 'CRM_LOC_EDIT_GRID';
     foreach ($this->componentData['FORM_ROWS'] as $code => $row) {
         $this->arResult['FIELDS'][] = array('id' => $code, 'name' => $row['title'], 'value' => Helper::makeSafeDisplay($this->arResult['FORM_DATA'][$code], $code), 'required' => $row['required'], 'type' => 'text');
     }
     if ($this->checkIsNonemptyArray($this->arResult['EXTERNAL_SERVICES'])) {
         $this->arResult['FIELDS'][] = array('id' => 'EXTERNAL', 'required' => false);
     }
     $this->arResult['EXTERNAL_TABLE_COLUMNS'] = Helper::getExternalMap();
     unset($this->componentData);
 }