Parašė MartynasČ· 2010 Kov. 29 12:03:06
#1
Kaip man padaryti naujausius ir top siuntinius headerije v7 niekaip neiseina
zekit cia panele
echo "<table width='100%'>
<tr>
<td width='50%'>";
openside("Naujausia Muzika");
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>Nėra Muzikos</center>\n";
}
closeside();
echo "</td>
<td width='50%'>";
openside("Populiariausia");
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>Nėra Muzikos</center>\n";
}
closeside();
echo "</tr>
</table>";
o cia theme
php
<?php
/*-----------------------------------------------------------------------------+
| PHP-Fusion Content Management System |
| Copyright (C) 2002 - 2008 Nick Jones |
| http://www.php-fusion.co.uk/ |
+------------------------------------------------------------------------------+
| Soubor: theme.php |
| Autorius: GodLikeLT* Bustine.ql.lt |
| Copyright Linas Brazauskas |
+-----------------------------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>×</span>");
//--------------------------------- INCLUDES -----------------------------------
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false)
{
global $settings, $main_style, $locale, $userdata, $aidlink;
//-------------------------------- HEADER ------------------------------------
echo "<table width='920' border='0' cellpadding='0' cellspacing='0' align='center'>\n";
echo "<tr>\n";
echo "<td align='center' class='header'><img src='".THEME."/images/header.png'></td>\n";
//-------------------------------- REKLAMA -----------------------------------
//echo "<img src='".IMAGES."banner.png' border='0' title='".$settings['Bustine.ql.lt']."' alt='".$settings['bustine.ql.lt']."'>"; //REKLAMA
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table width='100%' border='0' cellpadding='0' cellpadding='0' class='sub-header'>\n";
echo "<ul id='nav'>";
//------------------------------- SUBHEADER ----------------------------------
echo "</tr>\n";
echo "</table>\n";
//--------------------------------- OBSAH ------------------------------------
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'>\n";
echo "<tr>\n";
if(LEFT)
{
echo "<td class='Panel_levy' valign='top'>".LEFT."</td>";
}
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if(RIGHT)
{
echo "<td class='Panel_pravy' valign='top'>".RIGHT."</td>";
}
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
//--------------------------------- FOOTER -----------------------------------
echo "<tr>\n";
echo "<td align='center' class='footer'>| CMS: <a href='http://php-fusion.co.uk' target=''>PHP-Fusion</a> | Autorius: <a href='http://bustine.ql.lt' target=''>Bustine</a> | Lietuva | Lietuva |\n";
echo "</tr>\n";
echo "</table>\n";
}
/*----------------------------------- NOVINKY --------------------------------*/
function render_news($subject, $news, $info)
{
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='Novinka'>".$subject."</td>\n";
echo "<td class='Novinka_pravo'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='3' class='main-body'>".$news."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' colspan='3' class='news-footer'>\n";
echo newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='bottom'> </td>\n";
echo "</tr>\n";
echo "</table>\n";
}
/*------------------------------------- CLANKY -------------------------------*/
function render_article($subject, $article, $info)
{
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='Novinka'>".$subject."</td>\n";
echo "<td class='Novinka_pravo'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='3' class='main-body'>\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' colspan='3' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='bottom'> </td>\n";
echo "</tr>\n";
echo "</table>\n";
}
/*----------------------------------------------------------------------------*/
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='Admin'>".$title."</td>\n";
echo "<td class='Admin_pravo'></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='main-body' colspan='2'>\n";
}
/*----------------------------------------------------------------------------*/
function closetable()
{
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='bottom'> </td>\n";
echo "</tr>\n";
echo "</table>\n";
}
/*----------------------------------------------------------------------------*/
function openside($title, $collapse = false, $state = "on")
{
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='Menu'>".$title."</td>\n";
if($collapse == true)
{
$boxname = str_replace(" ", "", $title);
echo "<td class='Menu' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='Menu_pravo'></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
echo "<td class='side-body' colspan='3'>\n";
if($collapse == true)
{
echo panelstate($state, $boxname);
}
}
/*----------------------------------------------------------------------------*/
function closeside()
{
global $panel_collapse;
if($panel_collapse == true)
{
echo "</div>\n";
}
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='bottom'> </td>\n";
echo "</tr>\n";
echo "</table>\n";
}
/*-----------------------------------------------------------------------------+
|
+-----------------------------------------------------------------------------*/
?>
prasau padekit kas galit lbj reikia
Redagavo MartynasČ· 2010 Kov. 29 13:03:23