Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia išimti.

Parašė pokemonu_karalius· 2009 Geg. 1 14:05:27
#1

Sveiki,

man reikia išimti šitą dalykėlį kurį matote paveikslėlį.


Štai theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#555555";
$body_bg = "#eae3d1";
$theme_width = "940";
$theme_width_l = "205";
$theme_width_r = "205";
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
function render_header($header_content) {

global $theme_width,$userdata,$data,$db_prefix,$lookup,$msg_count,$aidlink,$locale,$settings;

echo "<table align='center' cellspacing='0' cellpadding='0' width='900'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' height='135' background='".THEME."images/header.gif'>
<tr>
<td>";

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

echo "<table cellpadding='0' cellspacing='0' width='900'>\n<tr>
<td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/nuorodos/namai.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/nuorodos/forumas.gif' border='0'></a></td>
<td><a href='".BASEDIR."search.php'><img src='".THEME."images/nuorodos/paieska.gif' border='0'></a></td>
<td><a href='".BASEDIR."muzika.php'><img src='".THEME."images/nuorodos/muzika.gif' border='0'></a></td>
<td><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/nuorodos/galerija.gif' border='0'></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/nuorodos/siustis.gif' border='0'></a></td>

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

echo "<table cellpadding='0' cellspacing='0' width='960' align='center' height='120' background='".THEME."images/headerio_paneliu.gif'>\n<tr>
<td style='padding-left: 40px; padding-top: 10px;'>";
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
 if (dbrows($result) != 0) {
  echo "<table width='80%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='".THEME."images/naujausios.gif'>
     <a href='".BASEDIR."muzika.php?d_id=".$data['download_id']."' title='Žiūrėti failą' style=''>".trimlink($data['download_title'], 28)."</a>
    </td>
    <td align='right'>".$data['download_count']."</td>
      </tr>";
  }
  echo "</table><center></center>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }
   
   echo "</td><td></td><td style='padding-top: 12px; padding-left: 0px;'>";
   
   //Populiariausi siuntiniai
   $a = dbquery("SELECT rating_item_id, SUM(rating_vote) / COUNT(rating_item_id) as a, 10 * COUNT(rating_item_id) * SUM(rating_vote) + COUNT(rating_item_id) as b FROM ".DB_PREFIX."ratings WHERE rating_type='D' GROUP BY rating_item_id ORDER BY b DESC LIMIT 5");

$nr=1;

echo "<table width='90%' cellpadding='0' cellspacing='0'>";
while($b = dbarray($a)){
   $c = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_id='".$b['rating_item_id']."'");
   $d = dbarray($c);
   $vert = dbcount("(rating_id)", "ratings", "rating_item_id='".$d['download_id']."'");
   if ($vert == "") { echo "<tr><td class='tbl2' width='100%' colspan='4' align='center'>Topas yra tuscias.</td></tr>"; } else {
echo "<tr>\n<td class='small'><img src='".THEME."images/star.gif'> <a href='".BASEDIR."muzika.php?d_id=".$d['download_id']."'>".trimlink($d['download_title'], 18)."<a/></td>\n
<td align='right'>".$b['a']."  (".$vert.")</td>\n</tr>\n";
}
}

   echo "</table>";


      echo "</td><td></td><td  style=' padding-top: 10px; padding-left: 10px;'> ";




$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 5
");
if (dbrows($result) != 0) {
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['thread_subject'], 25);
      echo "<img src='".THEME."images/forum_bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'><span style='color:#f0d015'><b>$itemsubject</b></span></a><br>\n";
   }
} else {
   echo "<center>".$locale['004']."</center>\n";
}

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



echo "<table cellpadding='0' align='center' cellspacing='0' width='945'><center><img src='".THEME."images/top.gif' border='0'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<center><img src='".THEME."images/bottom.gif' border='0'>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>

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

}

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

echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='100%' class='news-cellpic' align='center'>$subject</td>
</tr>
</table>
<table>
<tr>
<td align='left'><span style='font-size: 8px; padding-left: 20px;'><font FACE='Tahoma'><b>".showdate("shortdate", $info['news_date'])." - <a href='profile.php?lookup=".$info['user_id']."'><span style='color:#99cc33;'>".$info['user_name']."<span></a></td>
<td align='right' style='padding-right: 20px;'><a href='news.php?readmore=".$info['news_id']."' style='color:#99cc33; font-size:9px;'><img src='".THEME."images/readmore.gif' border='0'></a></td>
</tr>
</table>
<table>
<tr>
<td class='news-body'>$news</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td class='opentable_left'><img src='".THEME."images/blank.gif' width='18' height='30' alt='' style='display:block'></td>
<td width='100%' class='opentable_center' align='left'>$title</td>
<td class='opentable_right'><img src='".THEME."images/blank.gif' width='216' height='30' alt='' style='display:block'></td>
</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'>";

}

function closetable() {

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

}


function openside($title) {

global $p_data;

if ($p_data['panel_side'] == 1) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain-left'>$title</td>
</tr>
<tr>
<td class='side-body-left'>\n";



} else {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain-right'>$title</td>
</tr>
<tr>
<td class='side-body-right'>\n";


}
}

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


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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

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

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>




Ačiū..