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

Parašė vasaju9· 2010 Sau. 17 20:01:53
#1

sveiki, parsisiuncia free tema ir nenoriu tu top siuntiniu ir pns as iejau io headeris.php faila kazka ten suredagavau nueamiau viskas ok tik:

http://www.part.lt/img/339a60a41...ca7357.JPG

kaip sujungti tas dvi dalis?

stai header.php failas:

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

// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "860";
$theme_width_l = "246";
$theme_width_r = "246";

function render_header($header_content) {

echo "<table align=center class='mainsite-border' align='left' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='860' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>

<table align='center' width='860' cellspacing='0' cellpadding='0'>

<tr align=center><td>";
include_once "headeris.php";

echo "</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='860'>
<tr>

<td background='".THEME."' height='203' width='281' align='left'>";


echo "<table cellpadding='0' cellspacing='0' width='281px'>
<tr>
<td style='padding-left:35px; padding-top:18px;'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,11");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>

     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>".trimlink($data['download_title'], 35)."</a>
</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:left'>".$locale['004']."</div>\n";
 }



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


echo "</td>
<td background='".THEME."' height='203' width='281' align='left'>";
echo "<table cellpadding='0' cellspacing='0' width='281px'>
<tr>
<td>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,11");
if (dbrows($result) != 0) {
echo "<table width='281' border='0' cellspacing='0' cellpadding='0' align='left'  style='padding-left:35px;padding-top:18px;'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 35);
echo "<tr>
<td class='small'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='hed'>$itemsubject</a>
</td>\n
</tr>\n";
}
echo "</table>";
} else {
  echo "<div style='text-align:right'>".$locale['004']."</div>\n";
}








echo"</td>

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













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


echo"</td>

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

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

}



function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style='padding-left:40px; align='left' class='footer'>";

echo"
engine: PHP-Fusion.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; motiongraphics.wu.lt
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
Paskelb&#235;: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#555;'>".$info['user_name']."</a> &nbsp; data: ".showdate("%d/%m/%y", $info['news_date'])."<img src='".THEME."images/blank.gif' width='65' height='0'>Komentarø: ".$info['news_comments']." &nbsp; <a href='news.php?readmore=".$info['news_id']."' style='color:#555;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>
</td>
</tr>
</table>\n";
tablebreak();

}

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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

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

}

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

}

function closeside() {

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

}

function kurejas() {
   global $settings;
   $res = "Varikliukas: PHP-Fusion | Dizainas: ShadoVw";
   return $res;
}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<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";

}
?>



Redagavo vasaju9· 2010 Sau. 17 20:01:24