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

Parašė Todamach· 2011 Vas. 3 01:02:47
#5

taip. Dabar, su tuo panelės kodu, kurį parašiau viršuj atrodo taip:



Man reikia, taip gražiai įsiformintų kaip čia:



Ir šitos Forumo Top panelės kodas, jeigu padės:

<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: new_infusion_panel.php
| Author: INSERT NAME HERE
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
if (file_exists(INFUSIONS."top_shouters_panel/locale/".$settings['locale'].".php")) {
	include INFUSIONS."top_shouters_panel/locale/".$settings['locale'].".php";
} else {
	include INFUSIONS."top_shouters_panel/locale/English.php";
}
 
$shoutQuery = dbquery("SELECT shout_name, count(*) FROM ".DB_SHOUTBOX." GROUP BY shout_name ORDER BY `count(*)` DESC LIMIT 0 , 10");
openside($locale['tsp_001']);
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n<tr class='tbl2' align='center'>\n";
echo "<td width='10'><span class='small'><strong>".$locale['tsp_002']."</strong></span></td>\n";
echo "<td width='50'><span class='small'><strong>".$locale['tsp_003']."</strong></span></td>\n";
echo "<td width='50'><span class='small'><strong>".$locale['tsp_004']."</strong></span></td>\n";
echo "</tr>\n";
$count = 1;
$i = 0;
while($shoutData = dbarray($shoutQuery)) {
	if ($shoutData['shout_name'] != '0') {
		$shoutuserQuery = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$shoutData['shout_name']."'");
		while ($shoutuserData=dbarray($shoutuserQuery)) {
			$i % 2 == 0 ? $rowclass="tbl1" : $rowclass="tbl2";
			echo "<tr class='".$rowclass."'>\n";
			echo "<td><span class='small'><strong>".$count."</strong></span></td>\n";
			echo "<td>&nbsp;<span class='small'><a href='".BASEDIR."profile.php?lookup=".$shoutuserData['user_id']."'>".$shoutuserData['user_name']."</a></span></td>\n";
			echo "<td><center><span class='small'>".$shoutData['count(*)']."</center></span></td>\n";
			echo "</tr>\n";
			$i++;
			$count++;
		}//while ($user=db
	} else {
		echo "<tr class='tbl1'>\n";
		echo "<td colspan='3'><span class='small'><strong>".$locale['tsp_005']."</strong></span></td>\n";
		echo "</tr>\n";
	}
 
}
echo "</table>\n";
closeside();
?>