Wyciokazz

Funkcija Globali

Aug 11th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. function openside($title, $collapse = false, $state = "on") {
  2.  
  3.     global $panel_collapse; $panel_collapse = $collapse;
  4.    
  5.     echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  6.     echo "<td class='scapmain-left'></td>\n";
  7.     echo "<td class='scapmain'>$title</td>\n";
  8.     if ($collapse == true) {
  9.         $boxname = str_replace(" ", "", $title);
  10.         echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
  11.     }
  12.     echo "<td class='scapmain-right'></td>\n";
  13.     echo "</tr>\n</table>\n";
  14.     echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
  15.     echo "<td class='scapmain-center-left'></td>\n";
  16.     echo "<td class='side-body'>\n";   
  17.     if ($collapse == true) { echo panelstate($state, $boxname); }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment