sasunokas
Narys
Žalias
Pranešimai: 17
Įstojęs: 2008 Lie. 28 16:07:38
Sveiki kas gali padet su kodavimu man riekia kad paspaudus ant paveiksliuko header_01.jpg atidaritu news.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#444444";
$body_bg = "#ffffff";
$theme_width = "767";
$theme_width_l = "210";
$theme_width_r = "210";
function render_header($header_content) {
global $theme_width;
echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='755' height='279' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='4'>
<img src='".THEME."images/header_01.jpg' width='755' height='9' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_02.jpg' width='513' height='72' alt=''></td>
<td>
<img src='".THEME."images/header_03.jpg' width='242' height='72' alt=''></td>
</tr>
<tr>
<td rowspan='7'>
<img src='".THEME."images/header_04.jpg' width='50' height='197' alt=''></td>
<td>
<img src='".THEME."images/header_05.jpg' width='186' height='36' alt=''></td>
<td colspan='2' rowspan='7'>
<img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_07.jpg' width='186' height='25' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_08.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_09.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_10.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_11.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_12.jpg' width='186' height='26' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='186' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='277' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='242' height='1' alt=''></td>
</tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
tablebreak();
echo "<table colspan='3' cellpadding='0' cellspacing='0' width='100%'>
<tr><td><img src='".THEME."images/footer.gif' alt='' width='764' height='8'></td></tr>
<tr><td class='footer' width='100%' align='center'><br><a href='".BASEDIR."index.php' class='side'>Pradinis</a> | <a href='".BASEDIR."downloads.php' class='side'>Muzika</a> | <a href='".BASEDIR."forum/' class='side'>Forumas</a> | <a href='".BASEDIR."about.php' class='side'>Apie mus</a> | <a href='".BASEDIR."contact.php' class='side'>Kontaktai</a> | <a href='".BASEDIR."friends.php' class='side'>Draugai</a> | <a href='".BASEDIR."advertisiment.php' class='side'>Reklama</a><br><br>
Dizainas: <a href='skype:mantiz_14?chat'>frix</a> | Sistema: <a href='http://php-fusion.co.uk'>PHP-Fusion</a><br></td></tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
$news
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td align='right' class='news-footer'>\n";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti daugiau</a>";
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td width='100%' align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_1.png'></td>
<td class='scapmain' height='37' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_3.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='side-body'>
\n";
}
function closeside() {
echo "
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
WyPuk
VIP narys
Ekspertas
Pranešimai: 3494
Įstojęs: 2008 Rugp. 7 08:08:39
<?php
if (!defined("IN_FUSION"merkia akį) { header("Location: ../../index.php"merkia akį; exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#444444";
$body_bg = "#ffffff";
$theme_width = "767";
$theme_width_l = "210";
$theme_width_r = "210";
function render_header($header_content) {
global $theme_width;
echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='755' height='279' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='4'>
<td><a href='index.php'><<img src='".THEME."images/header_01.jpg' width='755' height='9' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_02.jpg' width='513' height='72' alt=''></td>
<td>
<img src='".THEME."images/header_03.jpg' width='242' height='72' alt=''></td>
</tr>
<tr>
<td rowspan='7'>
<img src='".THEME."images/header_04.jpg' width='50' height='197' alt=''></td>
<td>
<img src='".THEME."images/header_05.jpg' width='186' height='36' alt=''></td>
<td colspan='2' rowspan='7'>
<img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_07.jpg' width='186' height='25' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_08.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_09.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_10.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_11.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_12.jpg' width='186' height='26' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='186' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='277' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='242' height='1' alt=''></td>
</tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
tablebreak();
echo "<table colspan='3' cellpadding='0' cellspacing='0' width='100%'>
<tr><td><img src='".THEME."images/footer.gif' alt='' width='764' height='8'></td></tr>
<tr><td class='footer' width='100%' align='center'><br><a href='".BASEDIR."index.php' class='side'>Pradinis</a> | <a href='".BASEDIR."downloads.php' class='side'>Muzika</a> | <a href='".BASEDIR."forum/' class='side'>Forumas</a> | <a href='".BASEDIR."about.php' class='side'>Apie mus</a> | <a href='".BASEDIR."contact.php' class='side'>Kontaktai</a> | <a href='".BASEDIR."friends.php' class='side'>Draugai</a> | <a href='".BASEDIR."advertisiment.php' class='side'>Reklama</a><br><br>
Dizainas: <a href='skype:mantiz_14?chat'>frix</a> | Sistema: <a href='http://php-fusion.co.uk'>PHP-Fusion</a><br></td></tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
$news
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td align='right' class='news-footer'>\n";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti daugiau</a>";
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$subject</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td width='100%' align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>"merkia akį.articleopts($info,"·"merkia akį.closeform("A",$info['article_id']);
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr><td><img src='".THEME."images/table_06.png'></td><td background='".THEME."images/table_07.png' width='100%'></td><td><img src='".THEME."images/table_08.png'></td></tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_01.png'></td>
<td class='capmain' height='3' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_03.png' ></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/table_1.png'></td>
<td class='scapmain' height='37' align='left' valign='middle' width='100%'>$title</td>
<td><img src='".THEME."images/table_3.png' ></td>
</tr>
<tr>
<td background='".THEME."images/table_04.png'></td>
<td class='side-body'>
\n";
}
function closeside() {
echo "
</td>
<td background='".THEME."images/table_05.png'></td>
</tr>
<tr>
<td><img src='".THEME."images/table_06.png'></td>
<td background='".THEME."images/table_07.png' width='100%'></td>
<td><img src='".THEME."images/table_08.png'></td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
sasunokas
Narys
Žalias
Pranešimai: 17
Įstojęs: 2008 Lie. 28 16:07:38
Error ismeta dbr padeikit kam nesunku kad be erorou ir atidarinetu kai paspaudi news:?
Parse error: syntax error, unexpected T_STRING in /home/aisek/coreboy.xz.lt/themes/Music/theme.php on line 2
deivukx
Narys
Spalvotas
Pranešimai: 55
Įstojęs: 2007 Gru. 22 11:12:21
if (!defined("IN_FUSION"merkia akį) { header("Location: ../../index.php"merkia akį; exit; }
Smailus atjungt reikėjo..
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Jūsų saitai
Dalinuosi, dovanoju!
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!