Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: panel_side

Parašė Žmogus· 2009 Rugs. 13 19:09:41
#6

//paneles



//kaire
function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse, $p_data, $panel_id; $panel_collapse = $collapse;
   
   if ($p_data['panel_side'] == 1) {
   
   //kaire
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='kaire' align='center'>".$panel_id." ".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }
   //pabaiga
   
   }else{
   
   //desine
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='desine' align='center'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }
   //pabaiga
   }
   

}

function closeside($collapse = false) {

   global $panel_collapse, $p_data;
   
   if ($p_data['panel_side'] == 1) {
   
   //kaire closeside
   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
   //pabaiga
   
   }else{
   
   //desine closeside
   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";
   //pabaiga
   }



Redagavo Žmogus· 2009 Rugs. 13 19:09:25