Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: PHP-Fusion help su locale

Parašė Noyz· 2010 Lap. 6 16:11:29
#4

chipass parašė:
Lite.php

ka cia nusisnekejai? sviesta patepiai sviestu...




sprendimas klaidos
dizaine po function .. .

GLOBAL $locale;



function openside($title, $collapse = false, $state = "on") {
	GLOBAL $locale;
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
	echo "<td class='scapmain'>".$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); }
 
}
 
function closeside() {
 
GLOBAL $locale;
 
echo "</td>
</tr>
<tr><td><img src='".THEME."images/span_down.gif' alt='panele'></td></tr>
</table>\n";
tablebreak();
 
}


Gal ne čia sudėjau?