Parašė Tomcis· 2009 Vas. 20 16:02:45
#11
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/* Theme Settings */
$body_text = "#555555";
$body_bg = "#343434";
$theme_width = "1000";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td width='25' nowrap='nowrap' class='lefttd'></td><td>";
// Start banner code
echo "<table width='1000' border='0' cellpadding='0' cellspacing='0'><tr>";
echo "<td background='".THEME."images/02.gif' height='185'> </td></tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td background='".THEME."images/09.gif' height='31' align='center'> <img border='0' src='".THEME."images/bullet.gif'>".showsublinks("<img border='0' src='".THEME."images/bullet.gif'>")."</td>\n";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='2' bgcolor='#9A978E' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='1000' height='31'><tr><td align='center' class='footer'<span style='color:black'><b>Varikliukas:</b></span> <a href='http://www.php-fusion.co.uk/' targer='_blank'><b>PHP-Fusion</b></a> <span style='color:black'><b>Sprendimas:</b></span> <a href=''><b>Gyciagas</b></a></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'><tr>";
echo "<td class='capmain'><center>$subject</center></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer' align='center'> ".newsposter($info)."</td>";
echo "<td align='center' class='news-footer'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='capmain'><center>$subject</center></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer' align='center'>".articleposter($info)."</td>";
echo "<td align='center' class='news-footer'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'><tr>";
echo "<td class='scapmain'>$title</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='side-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'><tr>";
echo "<td class='scapmain'>$title</td></tr>";
echo "<tr><td class='side-body'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table bgcolor='#ABA8A0' border='0' style='border: 1px solid #8A8573' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td class='scapmain'>$title</td>";
echo "<td class='scapmain' align='right'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "</tr>";
echo "<tr><td colspan='2' class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
VA tau.
Sprendimas: Gyciagas, bet tema netavo. Kame reikalz?