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

Parašė 123456788999999999· 2009 Kov. 2 15:03:52
#1

Sveiki ;) turiu tokia problemą radau gerą dizainą bet kažkur yra jame klaida
Visas headeris išsidarkes čia šita tema demo
http://eurolyga.kar.lt/news.php

kas galit pataisykit šitą klaidą:s:s ačiu;) 10+ duosiu
ARBA KAS JĄ TURI BE KLAIDŲ ŠITĄ TEMĄ PRISEGIT;)
Čia themes code
<?php
/*******************************/
/*
Need For Speed Gaming design by Gotnix
 */
/*****************************/
$body_text = "#D7DCE9";
$body_bg = "#000";
$theme_width = "905";
$theme_width_l = "195";
$theme_width_r = "195";

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

   // echo "<table><tr><td height='24'></tr></table>";
   echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0' align='center' >";
   echo "</td><tr><td align='center' valign='top'>";
   echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
   echo "<tr><td align='center' valign='top'>";
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<tr><td background='".THEME."header/header.jpg'>
   <table border='0' cellspacing='0' cellpadding='0' height='262'>
    <tr><td width='200' align='right' style='padding-left: 650px; padding-bottom: 100px;'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' height='70' style='border:1px solid #404040'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.gif' width='70' height='70' style='border:1px solid #404040'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {

   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
        <tr><td align='right' style'padding-left:20px;'><a href=".BASEDIR."register.php>Registruotis &nbsp;</a></td>
      <td>|&nbsp; <a href=".BASEDIR."lostpassword.php>Slaptažodis</a></td></tr><p>
      <tr><td></td></tr>
      <tr><td></td></tr>
      <tr>
    <td align='right'>Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox' style='width:100px; height:20px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>".$locale['062'].": </td>
    <td>&nbsp;<input type='password' name='user_pass' class='textbox' style='width:100px;height:20px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'><input type='checkbox' name='remember_me' value='y'></td>
    <td>&nbsp;<input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
  </form>\n";
}

   echo "</td>
   <td><img src='".THEME."images/blank.gif'></FONT></td>
  </tr>
</table>
</td>";


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

   


echo "<table align=left width=905 height=122 background='".THEME."header/header2.jpg' border=0 cellspacing=0 cellpadding=0>";
echo "</div>
</td>
<td>
<div style=\"padding-bottom: 0px; padding-top: 0px;  padding-left: 10px; padding-right: 0px;\">";

$result2 = dbquery("SELECT * FROM ".$db_prefix."news  ORDER BY news_datestamp DESC LIMIT 7");
         while ($data2 = dbarray($result2)) {
          echo"<table cellpadding='0' cellspacing='0'>\n";
   $result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data2['news_cat']."'  ");
$data = dbarray($result);
 $itemsubject = trimlink($data2['news_subject'], 30);
      echo "<tr><td align='left' style='padding-left: 20px;'><span class='small'><b> - <a href='".BASEDIR."news.php?readmore=".$data2['news_id']."'>$itemsubject</a></td></tr>";

         }
       echo "</table>\n";   
              echo "</td><td width=0></td><td>";



$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($result) != 1) {
         $data = dbarray($result);
         $panel_name = $data['panel_name'];
      }



$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 1");
if (dbrows($result) != 4) {
   while($data = dbarray($result)) {
    echo"<table cellpadding='0' cellspacing='0' align='left'>\n";
      $itemsubject =trimlink($data['photo_id'], 40);
      $itemdescription = trimlink($data['photo_title'], 40);
      echo "<tr><td  style='padding-left: 30px;'><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'>
<img src='".BASEDIR."images/photoalbum/".$data['photo_thumb1']."' border='0' width='170' height='80' ></a>\n";
   }

} else {

   echo $locale['004'];
}

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

 echo "</td><td width=0></td><td>";
 
 
 echo"<table width='290'><tr><td style='padding-right:0px;'>
<a href='http://www.nfsgaming.net/viewpage.php?page_id=105'><img src='http://www.nfsgaming.net/images/tuningshowbegins.gif' border='0'></a></td></tr>";
         
echo "</table>";

echo "</td><td width=0></td><td>";
 
echo"<table width='177'><tr><td style='padding-right:30px;'><center>
<a href='".BASEDIR."viewpage.php?page_id=66'>Reklama</a><br>
<a href='".BASEDIR."contact.php'>Kontaktai</a><br>";
 
if (iMEMBER) {
 echo "
<hr>
<a href='".BASEDIR."submit.php?stype=p'>Pateikti Foto</a><br>
<a href='".BASEDIR."submit.php?stype=n'>Pateikti Naujieną</a><br>
<a href='".BASEDIR."submit.php?stype=v'>Pateikti Video</a><br>
<a href='".BASEDIR."submit.php?stype=a'>Pateikti Straipsnių</a><br>
<a href='".BASEDIR."infusions/error_reports/error_reports.php'>Pranešti apie klaidą</a><br>";
 
 } else {
 echo "<br><hr><br>
<b>Pilnas meniu tik prisijungus</b>";

 
 }
echo "</table>";





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

   
    echo "</td></tr></table>";
   
echo "<table align=center width=900 height=30  border=0 cellspacing=0 cellpadding=0 style='padding-bottom:10px;'>";
echo "<tr><td style='padding-bottom: 0px; padding-top: 0px;  padding-left: 0px; padding-right: 0px;'>
<td><a href=".BASEDIR."pagrindinis><img src='".THEME."links/namai.gif' border=0></a></td>
<td><a href=".BASEDIR."forum/index.php><img src='".THEME."links/diskusijos.gif' border=0></a></td>
<td><a href=".BASEDIR."articles.php><img src='".THEME."links/straipsniai.gif' border=0></a></td>
<td><a href=".BASEDIR."Need_For_Speed_galerija><img src='".THEME."links/galerija.gif' border=0></a></td>
<td><a href=".BASEDIR."infusions/the_kroax/kroax.php?category=1><img src='".THEME."links/video.gif' border=0></a></td>
<td><img src='".THEME."links/back.gif' border=0></td>";
echo "</td></tr></table>";
   
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";





}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table width='100%'height='150' border='0' cellpadding='0' cellspacing='0'><tr><td class='footer' align='center'  style='padding-left:100px; padding-bottom: 60px;'>
<span style='padding-right:100px; padding-bottom: 100px;'>".stripslashes($settings['footer'])."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {
global $aidlink,$item_type,$locale;

echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>
<br><td><span style='font-size: 10px; padding-left: 30px;'><b> $subject </b><a href='news.php?readmore=".$info['news_id']."' style='color:#cc00000;'>[Plačiau]</a></td>
<td align='right'><span style='font-size: 8px; padding-right: 20px;'><font FACE='Tahoma'><b>".showdate("shortdate", $info['news_date'])." - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='news-left'><img src='".THEME."images/blank.gif' width='45' height='15' alt='' style='display:block'></td>
<td width='100%' class='news-main' align='center'></td>
<td class='news-right'><img src='".THEME."images/blank.gif' width='45' height='15' alt='' style='display:block'></td>
</tr></table>
<table>
<tr>
<td class='news-body'>
</span>$news</td>
</tr>
<br>

</tr>
</table><br>\n";

}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic4.gif' height='24'><font class='block-title'>$subject</font></td>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']."  ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='40' height='32' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main' align='left'>$title</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='40' height='32' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
    echo "<td class='main-body'>";
}
// Close table end
function closetable() {
   echo "</td></tr></table>";
   echo "<table  style='padding-bottom:0px;'><tr><td></td></tr></table>";

}

function opendownloads($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='downloads-left'><img src='".THEME."images/blank.gif' width='78' height='60' alt='' style='display:block'></td>";
   echo "<td width='100%' class='downloads-main' align='left'>$title</td>";
   echo "<td class='downloads-right'><img src='".THEME."images/blank.gif' width='205' height='60' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
    echo "<td class='downloads-body'>";
}
// Close table end
function closedownloads() {
   echo "</td></tr></table>";
   echo "<table cellspacing='0' width='100%' cellpadding='0' style='padding-bottom:0px;'><tr>";
   echo "<td height='40' width='100%' background='".THEME."images/closedownloads.gi'></td>
  </tr>
</table>";

}

function openside($title) {

   echo "<table style='border: 0px solid #191928' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='33' width='100%' background='".THEME."images/cellpic4.gif'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></table>";
   echo "<table cellspacing='0' width='100%' cellpadding='0' style='padding-bottom:10px;'><tr>";
   echo "<td height='30' width='100%' background='".THEME."images/closeside.gif'></td>
  </tr>
</table>";
   tablebreak();
}

function openspeed($title) {

   echo "<table style='border: 0px solid #191928' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='45' width='100%' background='".THEME."images/openspeed.gif'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='speed-body' width='100%'>";
}

function closespeed() {
   echo "</td></tr></table>";
   echo "<table cellspacing='0' width='100%' cellpadding='0' style='padding-bottom:10px;'><tr>";
   echo "<td height='25' width='100%' background='".THEME."images/speed_close.gif'></td>
  </tr>
</table>";
   tablebreak();
}

function openpafp($title) {

   echo "<table  cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='75' width='100%' background='".THEME."images/openpafp.gif'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='pafp' width='100%'>";
}

function closepafp() {
   echo "</td></tr></table>";
   echo "<table cellspacing='0' width='100%' cellpadding='0' style='padding-bottom:10px;'><tr>";
   echo "<td height='25' width='100%' background='".THEME."images/closepafp.gif'></td>
  </tr>
</table>";
   tablebreak();
}

function openreklama($title) {

   echo "<table cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='35' width='100%' background='".THEME."images/reklamaopenside.gif'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='reklama-body' width='100%'>";
}

function closereklama() {
   echo "</td></tr></table>";
   echo "<table cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='35' width='100%' background='".THEME."images/closereklama.gif'></td>
  </tr>
</table>";
   tablebreak();
}

function openright($title) {

   echo "<table cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='30' width='100%' background='".THEME."images/cellpic_right.gif'>";
   echo "<font class='block-title'><center>$title</center></font>";
   echo "</td></tr>";
   echo "<tr><td class='side-body_right' width='100%'>";
}

function closeright() {
   echo "</td></tr></table>";
   tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

   echo "<table border='0' style='border: 1px solid #191928' cellspacing='0' width='100%' cellpadding='3'><tr>";
   echo "<td height='24' width='100%' background='".THEME."images/cellpic4.gif'>";
   echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
   echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}


function closesidex() {

   echo "</div></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='0'></td></tr></table>\n";
}
?>



Redagavo ---· 2009 Kov. 2 15:03:16