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>
				</tr>
				<?$geoHeadingShown = true;?>
			<?endif?>
Ejemplo n.º 2
0
	<?php 
    $columns = Helper::getColumns('detail');
    ?>
	<?php 
    foreach ($columns as $code => $field) {
        ?>

		<?php 
        if ($code == 'ID' && !$id) {
            continue;
        }
        // new node or copied
        ?>
		<?php 
        if (Helper::checkIsNameField($code)) {
            continue;
        }
        // we`ll output names in a different manner
        ?>

		<?php 
        $value = Helper::makeSafeDisplay($formData[$code], $code);
        ?>

		<?php 
        $tabControl->BeginCustomField($code, $field['title']);
        ?>

			<?php 
        if (!$geoHeadingShown && ($code == 'LATITUDE' || $code == 'LONGITUDE')) {