|
@@ 669-678 (lines=10) @@
|
| 666 |
|
* @param string $title |
| 667 |
|
* @param string $dsc |
| 668 |
|
*/ |
| 669 |
|
public static function getCollapsableBar($id = '', $title = '', $dsc = '') |
| 670 |
|
{ |
| 671 |
|
global $xoopsModule; |
| 672 |
|
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')\";>"; |
| 673 |
|
echo "<img id='" . $id . "_icon' src=" . SMARTOBJECT_URL . "assets/images/close12.gif alt=''></a> " . $title . '</h3>'; |
| 674 |
|
echo "<div id='" . $id . "'>"; |
| 675 |
|
if ('' !== $dsc) { |
| 676 |
|
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $dsc . '</span>'; |
| 677 |
|
} |
| 678 |
|
} |
| 679 |
|
|
| 680 |
|
/** |
| 681 |
|
* @param string $id |
|
@@ 685-696 (lines=12) @@
|
| 682 |
|
* @param string $title |
| 683 |
|
* @param string $dsc |
| 684 |
|
*/ |
| 685 |
|
public static function getAjaxCollapsableBar($id = '', $title = '', $dsc = '') |
| 686 |
|
{ |
| 687 |
|
global $xoopsModule; |
| 688 |
|
$onClick = "ajaxtogglecollapse('$id')"; |
| 689 |
|
//$onClick = "togglecollapse('$id'); toggleIcon('" . $id . "_icon')"; |
| 690 |
|
echo '<h3 style="border: 1px solid; color: #2F5376; font-weight: bold; font-size: 14px; margin: 6px 0 0 0; " onclick="' . $onClick . '">'; |
| 691 |
|
echo "<img id='" . $id . "_icon' src=" . SMARTOBJECT_URL . "assets/images/close12.gif alt=''></a> " . $title . '</h3>'; |
| 692 |
|
echo "<div id='" . $id . "'>"; |
| 693 |
|
if ('' !== $dsc) { |
| 694 |
|
echo '<span style="color: #567; margin: 3px 0 12px 0; font-size: small; display: block; ">' . $dsc . '</span>'; |
| 695 |
|
} |
| 696 |
|
} |
| 697 |
|
|
| 698 |
|
/** |
| 699 |
|
* Ajax testing...... |