Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kas blogai galetu buti sitame theme.php ?

Parašė salvinas· 2009 Bal. 3 12:04:43
#1

<?php

$body_text = "#FFFFFF";
$body_bg = "#000000";
$theme_width = "980";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 0px; border-left: solid #b5b5b5 0px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   

// Start banner code / Banerio kodas
 

echo "
<table align='center' width='980' height='336' background='".THEME."images/header.jpg' cellspacing='0' cellpadding='0'>
<tr><td height=50 class='nuorodos' align=left style='padding-left:10px; padding-top:315px;'><br>";
echo "
<center> * <a href='".BASEDIR."news.php'>Namai</a> *
<a href='".BASEDIR."forum/index.php'>Forumas</a> *
<a href='".BASEDIR."downloads.php'>Siuntiniai</a> *
<a href='".BASEDIR."/serveriai/'>Serveriai</a> *
<a href='".BASEDIR."articles.php'>Pamokos</a> * ";


      
echo "</td>
      <td colspan='5' class='bnr7' width='980' height='336'></td>
      <td class='tarpas' width='123' height='146'></td>
   </tr>
   <tr>
                <td class='bnr8' width='42' height='154'></td>
                <td class='bnr9' width='207' height='154' align='center'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table width='100%' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
               <img src='".THEME."images/bullet.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'], 30)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }
   
echo "          </td>
      <td class='bnr10' width='59' height='154'></td>
      <td class='bnr11' width='202' height='154' align='center'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_count DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table width='100%' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
               <img src='".THEME."images/bullet.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'], 30)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }

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





   // End banner code / Banerio kodo pabaiga






Bandziau pasidaryti top ir naujausiu siuntiniu panele ant headerio,bet ziurekit kas gavosi kaip man tai istasyt? Virsutiniame kairajame kampe atsirado meniu nors buvo apacioj ir pasidare 2 headeriai

<img src='http://www.part.lt/img/6e4dcec234d84ec2d59d54d22b553294642.bmp'>

http://www.part.lt/img/6e4dcec23...294642.bmp

Redagavo salvinas· 2009 Bal. 3 12:04:29