Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujausiu ir populiariausiu straipnsiu panel

Parašė Kashisss· 2010 Lap. 28 13:11:33
#1

kaip padaryt kad centrinej panelej naujausi straipsniai ir populiariausi butu stulpeliuose viena salia kitos?


openside("Naujausi ir populiariausi straipsniai");
 
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
   $result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_datestamp DESC LIMIT 0,6");
   if (dbrows($result) != 0) {
      echo "<table width='100%' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
               <img src='/images/newart.gif'>
               <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>".trimlink($data['article_subject'], 23)."</a>
            </td>
            <td align='right'>".$data['article_reads']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "<div style='text-align:center'>".$locale['004']."</div>\n";
   }
 
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_reads DESC LIMIT 0,6");
if (dbrows($result) != 0) {
   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   while($data = dbarray($result)) {
      echo "<tr>\n<td class='small'><img src='/images/topart.gif'> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>".trimlink($data['article_subject'], 23)."</a></td>\n
      <td align='right'>".$data['article_reads']."</td>\n</tr>\n";
   }
   echo "</table>";
} else {
   echo "<center>".$locale['004']."</center>\n";
}
 
closeside();

Redagavo Kashisss· 2010 Lap. 28 16:11:13

Parašė Kashisss· 2010 Lap. 28 17:11:29
#2

Susitvarkiau jau pats :)

Parašė Kashisss· 2010 Lap. 28 17:11:44
#3

Kashisss parašė:
Susitvarkiau jau pats :)
visdel to nesusitvarkiau :DD
galit padeti?