Parašė reyon· 2010 Vas. 10 20:02:11
#1
Sveiki, tai kaip galima būtų vietoi datos įrašyti kad rodytu šį kodą:
if (checkvip($nario_id)) {
echo "Jeigu tas narys yra VIP, rodomas рis tekstas";
} else {
echo "Jeigu tas narys nлra VIP, rodomas рis tekstas";
}
Va mano
theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
//Header
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."images/logobgl.png'></td>\n";
echo "<td class='full-header' width='50%' height='120' align='left'><img src='".THEME."/images/logo.png' width='300' height='120'></td>\n";
echo "<td class='full-header' width='50%' height='120' align='right'><a href='http://www.art4fusion.com/viewpage.php?page_id=5'><img src='".THEME."/images/a4fad.png' width='500' height='120' border='0'></a></td>\n";
echo "<td align='right'><img src='".THEME."images/logobgr.png'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='90%' align='center'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.png'></td>\n";
echo "<td align='right' class='sub-header' width='50%' height='25'>".showsubdate()."</td>\n";
echo "<td class='sub-header' align='left' width='50%' height='25'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
echo "<td align='right'><img src='".THEME."/images/subheader-right.png'></td>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/footerl.png'></td>\n";
echo "<td align='center' class='bottom-footer' width='100%'>Art4FusionV3 Theme by <a href='http://art4fusion.com'>Voodoo</a><br align='center'>".showcounter()."</td>\n";
echo "<td align='right'><img src='".THEME."/images/footerr.png'></td></tr></table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td><center>Powered by <a href='http://php-fusion.co.uk'>PHP-Fusion</a> copyright 2002 - 2008 by Nick Jones.<br> Released as free software without warranties under GNU Affero GPL v3.</center></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/cap-left.png'></td>\n";
echo "<td class='capmain' width='100%'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/cap-right.png'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='sideline' width='11' height='100%' border='0'></td>\n";
echo "<td class='main-body'>".$news."</td>\n";
echo "<td class='sideliner' width='1' height='100%' border='0'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='sideline' width='11' height='100%' border='0'></td>\n";
echo "<td align='center' class='news-footer'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "<td class='sideliner' width='1' height='100%' border='0'></td>\n";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png'></td> <td align='center' class='sideb' width='100%'></td> <td align='right'><img src='".THEME."/images/sideb-right.png'></td> </tr></table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/side-left.png'></td>\n";
echo "<td class='scapmain' width='100%' align='center'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td align='right'><img src='".THEME."/images/side-right.png'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='sideline' width='11' height='100%' border='0'></td>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "
</td>\n
<td class='sideliner' width='1' height='100%' border='0'></td>\n</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png'></td>
</tr></table>\n";
}
?>
Išanksto ačių :)