Parašė deiviux159· 2011 Lie. 4 17:07:45
#1
Labas turiu prasyma ar galetumete iterpti koda i theme.php ant headerio "neeevo_10.png" desinejia puseje "TOP naujausi" ir "TOP 10" dainos stai mano theme.php
Stai paveiklelis parodytas kurioj vietoj reikia ideti koda.Prasau pagelbekit.
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#bababa";
$body_bg = "#fff";
$theme_width = "924";
$theme_width_l = "190";
$theme_width_r = "190";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='924' style='padding-top: 10px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='924'>
<tr>
<td align='center'>
<table width='924' align='center' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<img src='".THEME."images/neeevo_03.jpg' width='631' height='32' alt=''></td>
<td rowspan='2' background='".THEME."images/neeevo_04.jpg' width='293' height='77' alt='' style='padding-left: 22px; padding-top: 4px;'>
<form name='search' action='search.php?stype=d' method='post'><input type='text' name='stext' class='search-textbox' value='Dainos pavadinimas...' onfocus=\"if(this.value=='Dainos pavadinimas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Dainos pavadinimas...';}\"> <input type='submit' value='' name='option' class='search-button'></form>
</td>
</tr>
<tr>
<td background='".THEME."images/neeevo_06.jpg' width='631' height='45' alt='' class='nav'>
<ul>
<li><a href='".BASEDIR."muzika.php'>Pagrindinis</a></li>
<li><a href='".BASEDIR."downloads.php'>Muzika</a></li>
<li><a href='".BASEDIR."forum/index.php'>Forumas</a></li>
<li><a href='".BASEDIR."pagalba.html'>Pagalba</a></li>
<li><a href='".BASEDIR."viewpage.php?page_id=6'>Reklama</a></li>
<li><a href='".BASEDIR."contact.php'>Kontaktai</a></li>
</ul>
</td>
</tr>
</table>
<table width='924' align='center' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='3' background='".THEME."images/neeevo_10.png' width='924' height='150' alt='' align='right' style='padding-right: 50px;'><a href='#' border='0'></td>
</tr>
<tr>
<td colspan='3' background='".THEME."images/neeevo_11.jpg' width='924' height='39' alt='' class='cat'>
<ul>
<li><a href='".BASEDIR."downloads.php?cat_id=2'>Angliška</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=1'>Lietuviška</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=3'>Rusiška</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=5'>Eurovizija</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=25'>Hardstyle/Hardjump/Jumpstyle</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=26'>Rap/R'n'B/Hip-Hop</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=27'>Rock/Punk/Metal</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=7'>House/Trance/Techno/Club</a></li>
<li><a href='".BASEDIR."downloads.php?cat_id=28'>Tecktonik/Electro</a></li>
</ul>
</td>
</tr>
</table>\n";
echo "</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='924' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='924' height='50' align='center'>
<td align='center'><font color='#bababa'>cms: php-fusion</font></td>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/centr-side.png' width='50' height='30' alt=''></td>
<td class='capmain' width='100%'>» $subject</td>
<td><img src='".THEME."images/centr-side2.png' width='82' height='30' alt=''></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>$news</td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='closetable' width='100%'></td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/centr-side.png' width='50' height='30' alt=''></td>
<td class='capmain' width='100%'>» $subject</td>
<td><img src='".THEME."images/centr-side2.png' width='82' height='30' alt=''></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='closetable' width='100%'></td>
</tr>
</table>";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/centr-side.png' width='50' height='30' alt=''></td>
<td class='capmain' width='100%'>» $title</td>
<td>
<img src='".THEME."images/centr-side2.png' width='82' height='30' alt=''></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='closetable' width='100%'></td>
</tr>
</table>\n";
}
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 opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>» $title <font style='padding-left: 50px;'>".panelbutton($state,$boxname)."</font></td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</td>
</tr>
<tr>
<td class='closeside2'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex2($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain2'>» $title <font style='padding-left: 50px;'>".panelbutton($state,$boxname)."</font></td>
</tr>
<tr>
<td colspan='2' class='side-body2'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex2() {
echo "</td>
</tr>
<tr>
<td class='closeside2'></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";
}
?>
Prasau pagelbekit
Redagavo deiviux159· 2011 Lie. 4 19:07:44
Parašė marqs· 2011 Lie. 5 02:07:50
#3
Tai pala. Populiariausios ir siunčiamiausios ne tas pats? Gal geriau norėjai "Naujausios" ir "Siunčiamiausios" ?
Parašė deiviux159· 2011 Lie. 5 07:07:04
#4
joa tiesa sakai:] "Naujiausias" ir "Siunciamiausios" man reikia:]na tai kas nors galite imesti ta koda i theme.php?|