function ct_switch(trigger, id) { var object = document.getElementById(id); if (object.style.display == "none") { object.style.display = "table-row-group"; trigger.firstChild.nodeValue = "▴"; } else { object.style.display = "none"; trigger.firstChild.nodeValue = "▾"; }; }; '); define("CT_FLAG", TRUE); ?> > ?
>
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" => ! $flag)); echo("" . ($flag ? "□" : "■") . ""); ?>