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

Parašė MaFetas· 2009 Bal. 16 15:04:34
#2

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

// theme settings
$body_text = "#ffffff";
$body_bg = "#FFFFFF";
$theme_width = "911";
$theme_width_l = "200";
$theme_width_r = "200";

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

echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>

   <tr>
      <td colspan='11'
         background='".THEME."images/headeris.jpg' width='911' height='152' alt=''></td>
   </tr>
   <tr>

   </tr>
   <tr>
      <td colspan='11'
         background='".THEME."images/informacine.jpg' width='911' height='129' alt=''>
         <table align='left' width='240px' cellpadding='0' cellspacing='0'>";
         
         echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='150'>";
         
   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
   if (dbrows($result) != 0) {
      echo "<table style='padding-left: 15px;' width='260' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
                     $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";

   }

echo "</table>

<table align='left' width='222px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 35px;' align='right' width='120'>";

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

<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 36px;' align='left' width='0'>";
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_reads DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 35);
echo "» <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}




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

echo "<table align='center' cellpadding='0' cellspacing='0' width='911px'>\n<tr>\n";

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='911px' class='footer'>
<tr>
<td align='center' class='footer'>Varikliukas: <a href='http://www.php-fusion.co.uk' style='color:#cecece;'>PHP-Fusion</a> &nbsp;&nbsp; Sprendimas: <a href='http://www.tracklist.lt' style='color:#cecece;'>TrackList.LT</a></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'>
<br>&#193;d&#235;jo: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#cecece;'><b>".$info['user_name']."</b></a> &nbsp; Data: ".showdate("%y.%m.%d", $info['news_date'])."<img src='".THEME."images/blank.gif' width='15' height='0'><a href='news.php?readmore=".$info['news_id']."' style='color:#9a9a9a;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>";if ($info['news_allow_comments'])   echo "&nbsp; Komentar&#371;:&nbsp;<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Skait&#279;:&nbsp; ";   echo "".$info['news_reads'].$locale['044']."
</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='474' 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_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

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

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0' width='200'>
<tr>
<td class='side-body-panel'>\n";

}

function closeside_panel() {

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

}

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

}

function closeside() {

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

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td 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 MaFetas· 2009 Bal. 16 15:04:18