Example #1
0
	public static function __PHPToString($arData)
	{
		if(is_array($arData))
		{
			if($arData == array_values($arData))
			{
				foreach($arData as $key => $value)
					$arData[$key] = CControllerGroupSettings::__PHPToString($value);

				$res = "Array(".implode(", ", $arData).")";
			}
			else
			{
				$res = "Array(";
				foreach ($arData as $key => $value)
				{
					$res .= '"'.EscapePHPString($key).'" => ';
					$res .= CControllerGroupSettings::__PHPToString($value).", ";
				}
				$res .= ")";
			}
			return $res;
		}
		else
			return '"'.EscapePHPString($arData).'"';
	}
:</td>
			</tr>
			<?php 
        } else {
            $OptionValue = $arGroupOptions[$obOption->id][$id];
            ?>
			<tr>
				<td width="40%"><label for="ACT_<?php 
            echo htmlspecialcharsbx($id);
            ?>
"><?php 
            echo htmlspecialcharsex($arOptionParams[0]);
            ?>
:</label></td>
				<td width="60%"><?php 
            echo CControllerGroupSettings::GenerateInput($id, $arOptionParams, $OptionValue, $obOption->id);
            ?>
</td>
			</tr>
		<?php 
        }
        ?>
	<?php 
    }
}
?>

<?php 
$tabControl->BeginNextTab();
?>
	<tr>