Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panelės apačia, padėkyt.

Parašė klaude· 2012 Sau. 22 05:01:51
#1

Sveiki, taigi kuodoju dizainą savo saitui ir susiduriau su problema.:( Noriu šoninėse panelėse padaryti kad butu apačia manau čia kažkas negerai su tuom kodu.
Štai jis:

function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<table cellpadding='0' cellspacing='0' width='211' class='border'>\n<tr>\n";
	echo "<td background='".THEME."images/panel_01.png' height='37' 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 "</tr>\n<tr>\n";
	echo "<td".($collapse == true ? " colspan='2'" : "")." background='".THEME."images/panel_02.png' class='side-body'>\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
                echo "</tr>\n<tr>\n";
}

O čia kodas kur bandžiau įdėi apačią:

function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<table cellpadding='0' cellspacing='0' width='211' class='border'>\n<tr>\n";
	echo "<td background='".THEME."images/panel_01.png' height='37' 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 background='".THEME."images/panel_03.png' height='20'></td>\n"; 
                                echo "</td>\n</tr>\n</table>\n";
	}
                echo "</tr>\n<tr>\n";
	echo "<td".($collapse == true ? " colspan='2'" : "")." background='".THEME."images/panel_02.png' class='side-body'>\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
                echo "</tr>\n<tr>\n";
}



Taigi, padėkyt, būsiu labai dėkingas :) Ir dar duosiu +11 vid įvertinimą. :)

Parašė marqs· 2012 Sau. 22 14:01:08
#2


function openside($title, $collapse = false, $state = "on") {
 
 
 
	global $panel_collapse; $panel_collapse = $collapse;
 
 
 
	echo "<table cellpadding='0' cellspacing='0' width='211' class='border'>\n<tr>\n";
 
	echo "<td background='".THEME."images/panel_01.png' height='37' 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 "</tr>\n<tr>\n";
 
	echo "<td".($collapse == true ? " colspan='2'" : "")." background='".THEME."images/panel_02.png' class='side-body'>\n";	
 
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
                echo "</tr>\n<tr>\n";
                echo"<td background='".THEME."images/panel_03.png' height='20'></td>\n"; 
                echo "</td>\n</tr>\n</table>\n";
 
}

Parašė klaude· 2012 Sau. 22 17:01:49
#3

Nepadeda, isitampo visas dizainas ir tiek :/. Padėkyt kas nors.... :/

Parašė klaude· 2012 Sau. 24 14:01:13
#4

Tai padėsit kasnors? Labai prašau.:?:?:?:?:?:?:?:?:?:?:?:?:?