mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
26
apps/atlbiomed/templates/_collapsingDivContainer.php
Executable file
26
apps/atlbiomed/templates/_collapsingDivContainer.php
Executable file
@ -0,0 +1,26 @@
|
||||
<?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;
|
||||
}
|
||||
");
|
||||
?>
|
Reference in New Issue
Block a user