Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Žilo klausimai

Parašė Kandžiulnikas· 2009 Rugs. 27 16:09:02
#1

Taigi,kaip padaryti tinkamai headerį ir,kad ant jo būtų siuntiniai...

Theme php kodas:

echo "<table cellpadding='0' cellspacing='0' width='$theme_width' align='center' background='".THEME."header.png' alt='' style='border:0' />
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='80%'>
<tr valign='top'>
<td>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td align=center style='padding-right:430px; padding-top:20px;' height='200'>";


echo"<table width='410' align='right'>
<tr>
<td width='45%'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,13");
 if (dbrows($result) != 0) {
  echo "<table width='86%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='".THEME."images/bulletai.gif'>
     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
    </td>
    <td align='right'>".$data['download_count']."</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }


echo "</td>
<td width='40%'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,13");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bulletai.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}



echo"
</td>
</tr>
</table>
</td>
</tr>
</table>\n";


echo "<table cellpadding='0' cellspacing='0' width='100%'>
      <tr>
         <td class='left_top'></td>
         <td style='border-top: 1px solid #CDCEBB; height: 9px; background: #FFF;'></td>
         <td class='right_top'></td>
      </tr>
      <tr>
         <td style='border-left: 1px solid #CDCEBB; width: 9px; background: #FFF;'></td>
         <td>
         <table>\n";


echo "<table cellpadding='0' cellspacing='0' width='100%' class=''>\n<tr>\n";

}





O atrodo: www.fragzone.lt/web

Prašau padėkit