function ct_switch(trigger, id)
{
var object = document.getElementById(id);
if (object.style.display == "none")
{
object.style.display = "table-row-group";
trigger.firstChild.nodeValue = "▴\xa0Verstecken";
}
else
{
object.style.display = "none";
trigger.firstChild.nodeValue = "▾\xa0Anzeigen";
};
};
');
define("CT_FLAG", TRUE);
?>
▴ Verstecken
get($index, "text");
if (! CMS_TEMPLATE_EDIT) return; //not editing
//initial visibility switch
$url = CMS_ACTIVE_URL .
cms_param(array("_" . unique_id() => "1",
"range" => $index,
"type" => "text",
"value" => ! $hidden));
echo("" .
($hidden ? "□" : "■") .
"");
?>
|
|
---|---|
>
|
>
|