Parašė robert· 2008 Geg. 10 23:05:36
#1
Tai vat, as noriu kad pas mane webe vietoj sitos eilutes rodytu Kiek Dabar zmoniu online. tik nezinaukiap taip padaryti :)
Screen
Theme.ph failas
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#3B3A41";
$body_bg = "#5C5C5C";
$theme_width = "62%"; // daily theme plotis procentais arba pixeliais
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td align='left' class='header'>
<img src='".THEME."logo.png' border='0'>
</td>
</tr>
</table>";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='sub-header' valign='middle'>".showsublinks("","white")."</td>
</tr>
<tr>
<td class='body_top' align='center'>
<table class='ads'>
<tr>
<td><img src='".THEME."images/ads.png'></td>
<td><img src='".stripslashes($settings['description'])."'></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='title'>".$settings['sitename']."</td></td>
</tr>
</table>\n";
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";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer-left'><a href='' target='_blank'>PHP-Fusion</a> | 2008 Mpower</td>
<td align='right' class='footer-right'><img src='".THEME."images/made_by.png'> <a href='http://emotive.in' target='_blank'><img src='".THEME."images/emotive.png' border='0'></a></td>
</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td class='news-footer'>Paraрл - <a href='profile.php?lookup=".$info['user_id']."' style='color:#8C8B8F;'>".$info['user_name']."</a> | <a href='news.php?readmore=".$info['news_id']."' style='color:#8C8B8F;'>Plaиiau!</a> ";
if (iADMIN && checkrights(N)) {
echo "| <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();' style='color:#8C8B8F;'>Redaguoti</a>";
}
echo "</td>
</form>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<form name='editarticle".$item_id."' method='post' action='".ADMIN."articles.php".$aidlink."&article_id=".$item_id."'>
<td class='news-footer'>Paraрл - <a href='profile.php?lookup=".$info['user_id']."' style='color:#8C8B8F;'>".$info['user_name']."</a> | <a href='print.php?type=A&item_id=".$info['article_id']."' style='color:#8C8B8F;'>Spausdinti</a> ";
if (iADMIN && checkrights(A)) {
echo "| <input type='hidden' name='edit' value='edit'><a href='javascript:document.editarticle".$info['articles_id'].".submit();' style='color:#8C8B8F;'>Redaguoti</a>";
}
echo "</td>
</form>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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'>
<tr>
<td class='scapmain'>$title</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'>
<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";
}
?>