function editConfigLayout($sLinkRefresh, $aaConfigurableComponents, $sHtmlContent) { $HTML = <<<EOF \t<div id="listconfigurables"> \t\t<div id="refreshcomponentslist"><a href="{$this->xQuote($sLinkRefresh)}">{$this->t_("refreshcomponents_redirect_link")}</a></div> \t\t \t\t<ul> EOF; foreach ($aaConfigurableComponents as $mComponentType => $asComponents) { $HTML .= <<<EOF \t\t<li><label>{$this->xText($mComponentType)}</label> \t\t\t<ul> EOF; $asComponentsEnabled = array(); $asComponentsDisabled = array(); foreach ($asComponents as $sComponent) { if (AnwComponent::isComponentEnabled($sComponent, $mComponentType)) { $asComponentsEnabled[] = $sComponent; } else { $asComponentsDisabled[] = $sComponent; } } foreach ($asComponentsEnabled as $sComponent) { $sLink = AnwUtils::aLink("editconfig", array("c" => $sComponent, "t" => $mComponentType)); $HTML .= <<<EOF \t\t\t<li class="active"><a href="{$this->xQuote($sLink)}">{$this->xText($sComponent)}</a></li> EOF; } foreach ($asComponentsDisabled as $sComponent) { $sLink = AnwUtils::aLink("editconfig", array("c" => $sComponent, "t" => $mComponentType)); $HTML .= <<<EOF \t\t\t<li class="inactive"><a href="{$this->xQuote($sLink)}">{$this->xText($sComponent)}</a></li> EOF; } $HTML .= <<<EOF \t\t\t</ul> EOF; } $HTML .= <<<EOF \t \t\t</ul> \t</div> \t<div id="editconfigurable"> \t\t{$sHtmlContent} \t</div> EOF; return $HTML; }