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

Parašė alvydas54· 2011 Sau. 30 20:01:40
#1

Sveiki, kas galetumet perdaryti sitas paneles 2 kad jas rodytu per vidury (yterpti kazkurioj vietoj <center>)


if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
 
echo "<table width='55%'>
<tr>
<td width='12%'>";
openside("Naujausios pamokos");
echo "<table><td height='70'>";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,25"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 20);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center><br>\n";
}
echo "</td></table>";
closeside();
echo "</td>
<td width='10%'>";
openside("Naujausi Pranešimai");
echo "<table><td height='70'>";
$result = dbquery("
   SELECT * FROM ".$db_prefix."threads
   INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
   WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 25
");
if (dbrows($result) != 0) {
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['thread_subject'], 20);
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
   }
} else {
   echo "<center>".$locale['004']."</center>\n";
}
echo "</td></table>";
closeside();
echo "</td></tr></table>";