Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Abiejų pusių panelės

Parašė Nesąmonė.· 2010 Gru. 30 20:12:18
#1

Sveiki,

Nemoku padaryti, kad šitam dizaine būtų abejose pusėse panelės, nes dizas sukodintas, kad būtų dešinėj.
Štai kodas, kas galit perdarykit, kad būtų kairėj ir dešinėj panelės vienoj kolonoj:


<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
 
define("THEME_WIDTH", "1050");
define("THEME_BULLET", "<strong>&middot;</strong>");
 
function render_page($license=false) {
 
global $settings, $main_style, $locale, $userdata, $aidlink;
 
	//Header
	echo "<div class='outer-border $main_style' style='background-color:#fff;width:".THEME_WIDTH.";'>\n";
	echo "<div class='floatfix'>\n";
	echo "<div class='top floatfix'><div style='float:left;'><b>Statistika</b> ".showcounter()." ".THEME_BULLET." Narių: ".number_format(dbcount("(user_id)", DB_USERS, "user_status<='1'"))."</div>
	<div style='float:right;padding:0 5px 0 0;'>";
	if (iMEMBER) {
	$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
	echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a>\n";
	echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a>\n";
	echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a>\n";
	if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
		echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a>\n";
	}
	echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
	if ($msg_count) { echo "<br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n"; }
    } else {
	echo "<div style='text-align:center'>\n";
	echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
	echo $locale['global_101']."\n<input type='text' name='user_name' class='textbox' style='width:100px' />\n";
	echo $locale['global_102']."\n<input type='password' name='user_pass' class='textbox' style='width:100px' />\n";
	echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
	echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' />\n";
	echo "</form>\n\n";
	if ($settings['enable_registration']) {
		echo "".$locale['global_105']."\n";
	}
	echo $locale['global_106']."\n</div>\n";
    }
	echo "</div>";
	echo "</div>";
	echo "<div class='full-header floatfix'>\n\n".showbanners()."</div>\n";
	echo "<div class='sub-header floatfix'>\n";
	echo "<div style='float:left;'>".showsublinks(" <span class='bullet'>&middot;</span> ","white")."</div>\n";
	echo "<div style='float:right;'>".showsubdate()."</div>\n";
	echo "</div></div>\n";
 
	//Content
	if (LEFT) { echo "<div id='side-border-left'>".LEFT."</div>\n"; }
	if (RIGHT) { echo "<div id='side-border-right'>".RIGHT."</div>\n"; }
	echo "<div id='main-bg' class='clearfix'><div id='container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
 
 
	//Footer
	echo "<div class='footer clear' style='text-align:center;'>".stripslashes($settings['footer'])."<br />\n";
	if ($license == false) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />\n";
	echo "</div>\n</div>\n";
 
}
 
function render_news($subject, $news, $info) {
 
	echo "<div class='capmain'>$subject</div>\n";
	echo "<div class='main-body floatfix'>".$news."</div>\n";
	echo "<div class='news-footer'>\n";
	echo newsposter($info,"&middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
	echo "</div>\n";
 
}
 
function render_article($subject, $article, $info) {
 
	echo "<div class='capmain'>$subject</div>\n";
	echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
	echo "<div class='news-footer'>\n";
	echo articleposter($info,"&middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
	echo "</div>\n";
 
}
 
function opentable($title) {
 
	echo "<div class='capmain'>$title</div>\n";
	echo "<div class='main-body floatfix'>\n";
 
}
 
function closetable() {
 
	echo "</div>\n";
 
}
 
function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<div class='border'>\n";
	echo "<div class='scapmain'>";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
	}
	echo $title."</div>\n<div class='side-body floatfix'>\n";
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
}
 
function closeside($collapse = false) {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div>\n"; }
	echo "</div>\n</div>\n";
 
}
?>

Redagavo Nesąmonė.· 2010 Gru. 30 20:12:04