Files
portal-legacy/apps/atlbiomed/templates/_collapsingDivContainer.php
Chris Sewell cf140a2e97 initial commit
2012-11-28 03:55:08 -05:00

27 lines
670 B
PHP
Executable File

<?php use_helper('Javascript') ?>
<div id="<?php echo $uniqueId; ?>Header" class="collapsingPanelHeader">
<?php echo $title; ?>
</div>
<div id="<?php echo $uniqueId; ?>Content" class="collapsingPanelContent">
<?php echo $content; ?>
</div>
<?php
echo javascript_tag("
Event.observe($('" . $uniqueId . "Header'), 'click', show" . $uniqueId . ", true);
var is" . $uniqueId . "Showing = 1;
function show" . $uniqueId . "(e)
{
if (is" . $uniqueId . "Showing)
" . visual_effect('blindUp', $uniqueId . 'Content') . "
else
" . visual_effect('blindDown', $uniqueId . 'Content') . "
is" . $uniqueId . "Showing = !is" . $uniqueId . "Showing;
}
");
?>