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

Parašė Ultriukas· 2009 Lap. 25 17:11:03
#5

<?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 = "952";
$theme_width_l = "272";
$theme_width_r = "200";

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='$theme_width' style='margin-top:-8px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>

<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='281' class='header1'></td>
<td width='258' class='header2'>";

   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,12");
   if (dbrows($result) != 0) {
      echo "<table width='100%' cellspacing='0' cellpadding='0'  align='left'>";
      while ($data = dbarray($result)) {
            $itemsubject = trimlink($data['download_title'], 30);
         echo "<tr><td class='small' align='left' style='padding-left: 10px;'>
               <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='downloads'><b>$itemsubject</b></a>
            </td>
         </tr>";
      }
      echo "</table>";

   }

echo" </td>
<td width='416' class='header3'>";

   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,12");
if (dbrows($result) != 0) {
   echo "<table width='100%' cellpadding='0' cellspacing='0' align='left'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr><td class='small'  style='padding-left: 20px;'>
      <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='downloads'><b>$itemsubject</b></a>
      </td>
      </tr>\n";
   }
   echo "</table>";
}


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

<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='header4'>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/links/1.gif' border='0'></a></td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/links/11.gif' border='0'></a></td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/links/2.gif' border='0'></a></td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/links/11.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/links/3.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/links/4.gif' border='0'></a></td>
<td><a href='".BASEDIR."pamokos.php'><img src='".THEME."images/links/5.gif' border='0'></a></td>
<td><a href='".BASEDIR."vip.php'><img src='".THEME."images/links/6.gif' border='0'></a></td>
<td><a href='".BASEDIR."serveriai.php'><img src='".THEME."images/links/7.gif' border='0'></a></td>



</td>
</tr>
</table>

<table cellpadding='0' cellspacing='0' width='100%'>
<tr>";
if (iMEMBER) {
echo" <td width='218' class='header5logged'>";
}else{
echo"<td width='218' class='header5'>";
}
echo "</td>




<td width='736' class='header6'>";
include_once "reklama.php";
echo" </td>
</tr>
</table>

</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%' class='footer'>
<tr>

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

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%' class='news-capmain'>
<tr>

<td>
<table cellpadding='0' cellspacing='0' width='100%'><tr>

</tr>
<tr>

</td>
</tr>
</table>
</td>
<td>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td align='right' class='news-subject'><a href='news.php?readmore=".$info['news_id']."'></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='news-body'>$news</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").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='top-left'><img src='".THEME."images/blank.gif' width='135' height='36' alt='' style='display:block'></td>
<td class='top-center' width='100%'>$title</td>
<td class='top-right'><img src='".THEME."images/blank.gif' width='147' height='36' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='bottom-left'><img src='".THEME."images/blank.gif' width='13' height='13' alt='' style='display:block'></td>
<td class='bottom-center' width='100%'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='bottom-right'><img src='".THEME."images/blank.gif' width='13' height='13' alt='' style='display:block'></td>
</tr>
</table>";

}

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>
<tr>
<td class='closeside'></td>
</tr>
</table>\n";
tablebreak();

}

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

}

function closeside2() {

echo "</td>
</tr>
<tr>
<td class='closeside2'></td>
</tr>
</table>\n";
tablebreak();

}

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

}

function closeside3() {

echo "</td>
</tr>
<tr>
<td class='closeside3'></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 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";

}
?>