Sveiki,
Mhm... man prireike prisijungimo panelės.Štai kodas į kurį norių įterpti:
<?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 = "748";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px solid #999999; margin-top:-10px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='25' background='".THEME."images/jou.jpg' align='center' valign='middle'>
<table width='95%' border='0' cellspacing='0' cellpadding='0'><tr>
<td width='95%' align='center'style='padding-right: 0px; padding-top: 0px;'>";
echo "<center><img src='".THEME."images/headeris.png'></center>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' bgcolor='#141414'' style='padding-left: 0px;'><tr><td height='20' class='white' align='center'><b><center>Dizainas pagal:42studio | Varikliukas PHP-Fusion</center></b></td></tr></table>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
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>
<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%'>
<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";
}
?>
Va šitak oda įterpti:
echo "<table cellpadding='0' cellspacing='0' width='982' >
<tr>
<td>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='982' border='0' cellspacing='0' cellpadding='0' align='center' style='padding-left:px;'>
<tr>";
echo "<td align='center' class='login'>";
echo"Labas, <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='small2' >".$userdata['user_name']."</a> <img src='".THEME."images/sub-div.gif' border='0'> ";
echo"<a href='".BASEDIR."messages.php' class='small2'>Žinutės (naujų: <b><span style='color:#000000'>".sprintf($msg_count)."</span></b>)</a>";if ($msg_count) echo " <a href='".BASEDIR."messages.php?folder=inbox' class='side'><img src='".IMAGES."newpm.gif' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."'></a>\n";
echo" <img src='".THEME."images/sub-div.gif' border='0'> <a href='".BASEDIR."members.php' class='small2'>Nariai</a> <img src='".THEME."images/sub-div.gif' border='0'> <a href='".BASEDIR."edit_profile.php' class='small2'>Aprašymas</a> <img src='".THEME."images/sub-div.gif' border='0'> ";
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='small2'>Atsijungti</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " <img src='".THEME."images/sub-div.gif' border='0'> <a href='".ADMIN."index.php".$aidlink."' class='small2'>Administracija</a>\n";
}
Pastaba:Jei dėsit tia dėkit po headeriu tik.
///
Redagavo E01 2009 Rugs. 24 19:09:38 |