Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pagalbos del dizaino reikia

Parašė iSound· 2010 Kov. 19 21:03:05
#4

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

// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "975";
$theme_width_l = "175";
$theme_width_r = "175";

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

echo "<br>
<table align='center'><tr><td><td><a href='".BASEDIR."news.php'><img src='".THEME."images/header_01.png' width='100' height='37' border='0'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/header_02.png' width='143' height='37' border='0'><a href='".BASEDIR."contact.php'><img src='".THEME."images/header_03.png' width='94' height='37' border='0'><a href='".BASEDIR."articles.php'><img src='".THEME."images/header_04.png' width='95' height='37' border='0'><a href='".BASEDIR."ikelk.php'><img src='".THEME."images/header_05.png' width='105' height='37' border='0'><a href='".BASEDIR."prasyk.php'><img src='".THEME."images/header_06.png' width='120' height='37' border='0'><img src='".THEME."images/header_07.png' width='42' height='37' border='0'><a href='".BASEDIR."kaipikelt.php'><img src='".THEME."images/header_08.png' width='131' height='37' border='0'><a href='".BASEDIR."kaipsiustis.php'><img src='".THEME."images/header_09.png' width='145' height='37' border='0'></td></tr></table></td></tr>
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' background='".THEME."images/headeris.png' height='155'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr valign='top'>
<td>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' style='padding-right:420px; padding-top:3px;' height='155'>";


echo"<table width='420' align='center'>
<tr>
<td width='45%'>";

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


echo "</td>
<td width='80%'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,16");
 if (dbrows($result) != 0) {
  echo "<table width='83%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='".THEME."images/bullet.gif'>
     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
    </td>
    <td align='center'>".$data['download_count']."</td>
      </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }



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

echo "<table cellpadding='0' cellspacing='0' width='$theme_width'>";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center'><a href='http://G-Design.xz.lt/'><img src='".THEME."images/footer.gif' border='0'><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}


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

echo "<table align='center' cellpadding='0' cellspacing='0' width='575'>
<tr>
<td class='capmain' height='40' align='left' >$subject</td>
</tr>
<tr>
<td background='".THEME."images/vidurys1.gif' class='main-body'>$news</td>
</tr>
<tr>
<td height='5' background='".THEME."images/apacia1.gif' align='center' class='news-footer' align='right'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='575' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain' height='40' align='left' >$subject</td>
</tr>
<tr>
<td background='".THEME."images/vidurys1.gif' class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td height='5' background='".THEME."images/apacia1.gif' 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 align='center' cellpadding='0' cellspacing='0' width='575'>
<tr>
<td class='capmain' height='40' align='left' >$title</td>
</tr>
<tr>
<td background='".THEME."images/vidurys1.gif' class='main-body'>\n";

}

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

}

function closeside_header() {

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

}

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

}

function closeside_panel() {

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

}

function closetable() {

echo "</td>
</tr>
<td height='5' background='".THEME."images/apacia1.gif' </td>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td height='44' class='scapmain'>$title</td>
</tr>
<tr>
<td background='".THEME."images/vidurys.gif' class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<td height='5' background='".THEME."images/apacia.gif'</td>
</table>\n";
tablebreak();

}

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 iSound· 2010 Kov. 19 21:03:16