@@ 680-689 (lines=10) @@ | ||
677 | * @param string $title |
|
678 | * @param string $dsc |
|
679 | */ |
|
680 | function smart_collapsableBar($id = '', $title = '', $dsc = '') |
|
681 | { |
|
682 | global $xoopsModule; |
|
683 | echo "<h3 style=\"color: #2F5376; font-weight: bold; font-size: 14px; margin: 6px 0 0 0; \"><a href='javascript:;' onclick=\"togglecollapse('" . $id . "'); toggleIcon('" . $id . "_icon')\";>"; |
|
684 | echo "<img id='" . $id . "_icon' src=" . SMARTOBJECT_URL . "assets/images/close12.gif alt='' /></a> " . $title . '</h3>'; |
|
685 | echo "<div id='" . $id . "'>"; |
|
686 | if ($dsc !== '') { |
|
687 | echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . $dsc . '</span>'; |
|
688 | } |
|
689 | } |
|
690 | ||
691 | /** |
|
692 | * @param string $id |
|
@@ 696-707 (lines=12) @@ | ||
693 | * @param string $title |
|
694 | * @param string $dsc |
|
695 | */ |
|
696 | function smart_ajaxCollapsableBar($id = '', $title = '', $dsc = '') |
|
697 | { |
|
698 | global $xoopsModule; |
|
699 | $onClick = "ajaxtogglecollapse('$id')"; |
|
700 | //$onClick = "togglecollapse('$id'); toggleIcon('" . $id . "_icon')"; |
|
701 | echo '<h3 style="border: 1px solid; color: #2F5376; font-weight: bold; font-size: 14px; margin: 6px 0 0 0; " onclick="' . $onClick . '">'; |
|
702 | echo "<img id='" . $id . "_icon' src=" . SMARTOBJECT_URL . "assets/images/close12.gif alt='' /></a> " . $title . '</h3>'; |
|
703 | echo "<div id='" . $id . "'>"; |
|
704 | if ($dsc !== '') { |
|
705 | echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . $dsc . '</span>'; |
|
706 | } |
|
707 | } |
|
708 | ||
709 | /** |
|
710 | * Ajax testing...... |