Parašė T-Boy· 2010 Kov. 16 15:03:03
#1
Puslapio viršuje yra navigacija, bet kai paspaudi ant kokio nors mygtuko pvz "Muzika" ar "Kontaktai" niekas nevyksta. Tiesiog išmeta home page. Jei galit padarykit ar pasakykit kur įvesti nuorodas į paveiksliukus. Beje, jei ką tų paveiksliukų pavadinimai yra nuo header_07.png iki header_14.png
<?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 = "934";
$theme_width_l = "221";
$theme_width_r = "221";
function render_header($header_content) {
global $theme_width, $db_prefix;
echo "<table id='Table_01' width='934' height='298' border='0' cellpadding='0' cellspacing='0' align='center' >
<tr>
<td colspan='10'>
<img src='".THEME."images/header_01.png' width='934' height='14' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_02.png' width='404' height='183' alt=''></td>
<td colspan='3' background='".THEME."images/header_03.png' width='219' height='183' alt=''>";
$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' >";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr><td class='small'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='up'>$itemsubject</a></td>
<td align='right'><span style='color: #B1D333'>[".$data['download_count']."]</span></td></tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td>";
echo "<td colspan='3' background='".THEME."images/header_04.png' width='218' height='183'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,12");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr><td class='small'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='up'>$itemsubject</a></td>
<td align='right' style='padding-right: 15px;'><span style='color: #B1D333'>[".$data['download_count']."]</span></td></tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center' border='0' style='border: 0px;'>".$locale['004']."</div>\n";
}
echo "</td>";
echo "<td>
<img src='".THEME."images/header_05.png' width='93' height='183' alt=''></td>
</tr>
<tr>
<td colspan='10'>
<img src='".THEME."images/header_06.png' width='934' height='32' alt=''></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_07.png' width='158' height='68' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_08.png' width='142' height='68' border='0' alt=''></a></td>
<td colspan='2'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_09.png' width='118' height='68' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_10.png' width='98' height='68' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_11.png' width='107' height='68' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_12.png' width='111' height='68' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_13.png' width='76' height='68' border='0' alt=''></a></td>
<td colspan='2'>
<a href='".BASEDIR."index.php'><img src='".THEME."images/header_14.png' width='124' height='68' border='0' alt=''></a></td>
</tr>
<tr>
<td>
<img src='spacer.gif' width='158' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='142' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='104' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='14' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='98' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='107' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='111' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='76' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='31' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='93' height='1' alt=''></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' align='center'>\n<tr>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' 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='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
Dizainas: <a href='http://edizainas.lt'>eDizainas.lt</a><br>
Porgramavimas: nevo
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td class='capmain'><center>$subject</center></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
if (!isset($_GET['readmore'])) { echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' style='text-decoration: none'>Siustis/Placiau</a></td>";
} else {
echo "<a href='".BASEDIR."news.php' style='text-decoration: none'>Sugrižti atgal</a>";
}
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td class='capmain'><center>$subject</center></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," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<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' align='center'>
<tr>
<td class='scapmain' style='padding-top: 10px;'><center>$title</center></td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border' align='center'>
<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 WyPuk· 2010 Kov. 16 15:03:55