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

Parašė gremlinaz· 2009 Rugp. 28 19:08:10
#1

padekit nuimt Top siuntinius ir Naujausius siuntinius is themes.php. visalaik istrinu arba per daug arba per mazai....

<?php

/*******************************/
/*
Empe3.lt dizainas kurtas traskis
Lithuanian PHP-fusion support www.webdnd.com
 */
/*****************************/

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

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "1024";
$theme_width_l = "223";
$theme_width_r = "223";

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

echo "<br>
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' background='".THEME."images/header.jpg' height='281'>
<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:417px; padding-top:47px;' height='281'>";


echo"<table width='530' align='center'>
<tr>
<td width='48%'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,16");
 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/bulletai.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>
<td width='40%'>";

$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/bulletai.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>
</tr>
</table>
</td>
</tr>
</table>\n";

echo"<table background='http://www.jillkgregory.com/images/blank.jpg' width='1024'>
<tr>
<td><center><img src='http://empe3.lt/images/empe3_02_01.gif' /></center>
<center><a href='http://mp3miestelis.lt' target='_blank'><img border='0' src='http://ebaze.lt/baners/baners/mp3miestelis_468x60.gif' </a> <img src='http://empe3.lt/images/empe3_02_05.gif' /><a target='_blank' href='http://Www.MainGames.Net'><img width=468 height=60 border=0 src='http://www.maingames.net/reklamos/reklama460x60.gif'></a></center>
<center><img src='http://empe3.lt/images/empe3_02_01.gif' /></center></td><br />
</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%' class='footer'>
<tr>
<td width='1024' align='center'><span style='font-size : 10px;font-weight : normal;color:#fff;padding-right:20px;'>Varikliukas: <a href='https://webdnd.com' target='_blank'>PHP-Fusion</a> | Empe3.Lt 2008 | Sprendimas: <a href='https://webdnd.com' target='_blank'>traskis</a> </a></span></td>
</tr>
</table>";

}

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

echo "
<table cellpadding='0' cellspacing='0' width='540'>
<tr>
<td class='newsmain'><span style='font-size : 10px;font-weight : normal;color:#000;'>".showdate("longdate", $info['news_date'])."</span><br><a name='news_1' id='news_1'></a>$subject</td>

</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='naujienos.php?readmore=".$info['news_id']."'>Pla&#1080;iau</a> | Siuntesi: ".$info['news_reads']." | Komentar&#1096;: ".$info['news_comments']."</td>
</form>

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

}

function render_article($subject, $article, $info) {
global $aidlink,$item_type,$locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='newsmain' algin='center'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='left'>
<span style='font-size: 10px; padding-left: 20px;'>".showdate("shortdate", $info['article_date'])."  - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo"<td align='center'><span style='font-size: 11px; padding-right: 20px;'> <a href='print.php?type=A&amp;item_id=".$info['article_id']."'' style='color:#d00602;'>Spausdinti</a>";
echo"</td></td>
</tr>
</table>
<hr>
<table>
<tr>";
echo "<span style='padding-left: 20px;'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</form>
</tr>
</table><br>\n";

}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='60' height='46' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-center-main' align='center'>$title</td>";
   echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='85' height='46' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";

   echo "<td class='main-body'>\n";
}

function closetable() {

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

}

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

}

function closeside() {

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

}


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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='right'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='center' alt='' style='padding-left:11px;' onclick=\"javascript:flipBox('$boxname')\">$title</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

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

}


function tablebreak() {

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



Redagavo gremlinaz· 2009 Rugp. 28 19:08:02

Parašė botanik· 2009 Rugp. 28 19:08:18
#2

<?php

/*******************************/
/*
Empe3.lt dizainas kurtas traskis
Lithuanian PHP-fusion support www.webdnd.com
*/
/*****************************/

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

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "1024";
$theme_width_l = "223";
$theme_width_r = "223";

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

echo "<br>
<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' background='".THEME."images/header.jpg' height='281'>
<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:417px; padding-top:47px;' height='281'>";

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

echo"<table background='http://www.jillkgregory.com/images/blank.jpg' width='1024'>
<tr>
<td><center><img src='http://empe3.lt/images/empe3_02_01.gif' /></center>
<center><a href='http://mp3miestelis.lt' target='_blank'><img border='0' src='http://ebaze.lt/baners/baners/mp3miestelis_468x60.gif' </a> <img src='http://empe3.lt/images/empe3_02_05.gif' /><a target='_blank' href='http://Www.MainGames.Net'><img width=468 height=60 border=0 src='http://www.maingames.net/reklamos/reklama460x60.gif'></a></center>
<center><img src='http://empe3.lt/images/empe3_02_01.gif' /></center></td><br />
</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%' class='footer'>
<tr>
<td width='1024' align='center'><span style='font-size : 10px;font-weight : normal;color:#fff;padding-right:20px;'>Varikliukas: <a href='https://webdnd.com' target='_blank'>PHP-Fusion</a> | Empe3.Lt 2008 | Sprendimas: <a href='https://webdnd.com' target='_blank'>traskis</a> </a></span></td>
</tr>
</table>";

}

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

echo "
<table cellpadding='0' cellspacing='0' width='540'>
<tr>
<td class='newsmain'><span style='font-size : 10px;font-weight : normal;color:#000;'>".showdate("longdate", $info['news_date'])."</span><br><a name='news_1' id='news_1'></a>$subject</td>

</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='naujienos.php?readmore=".$info['news_id']."'>Pla&#1080;iau</a> | Siuntesi: ".$info['news_reads']." | Komentar&#1096;: ".$info['news_comments']."</td>
</form>

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

}

function render_article($subject, $article, $info) {
global $aidlink,$item_type,$locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='newsmain' algin='center'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td algin='left'>
<span style='font-size: 10px; padding-left: 20px;'>".showdate("shortdate", $info['article_date'])." - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>";
echo"<td align='center'><span style='font-size: 11px; padding-right: 20px;'> <a href='print.php?type=A&amp;item_id=".$info['article_id']."'' style='color:#d00602;'>Spausdinti</a>";
echo"</td></td>
</tr>
</table>
<hr>
<table>
<tr>";
echo "<span style='padding-left: 20px;'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</form>
</tr>
</table><br>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-center-left'><img src='".THEME."images/blank.gif' width='60' height='46' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-center-main' align='center'>$title</td>";
echo "<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='85' height='46' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";

echo "<td class='main-body'>\n";
}

function closetable() {

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

}

function openside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td align='center' height='34' background='".THEME."images/vidus-virsus.gif' class='scapmain'>$title</td>
</tr>
<tr>
<td background='".THEME."images/vidus-body.gif' class='side-body'>\n";

}

function closeside() {

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

}


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

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain' align='right'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='center' alt='' style='padding-left:11px;' onclick=\"javascript:flipBox('$boxname')\">$title</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

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

}


function tablebreak() {

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