Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: log

Parašė Paul McCartney· 2007 Spa. 29 18:10:36
#5

<?php

if (iADMIN) {
 define("iAUTH", substr($userdata['user_password'],16,32));
 $aidlink = "?aid=".iAUTH;
}

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "820";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$locale,$userdata;

echo "<table align=center class='mainsite-border' align='left' width='".$theme_width."' cellspacing='0' cellpadding='0' valign='top'>
<tr><td class='outer-border' valign='top'>
<table align='center' width='100%' cellspacing='0' cellpadding='0' valign='top'>
<tr><td class='inner-border' valign='top'>";
echo "<table width=70>";
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
echo "</table>";

echo "<td class='nav-login' width='260px' align='center' valign='top'>";



echo "</td>
</tr>
<tr>
<td height=38 align=right valign=middle>
</td>
</tr>
<tr>
<td height=2 align=right></td>
</tr>
</table>
</td></tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td valign='top' class='side-border-left'>
<table width='100%' cellpadding='0' cellspacing='0'>\n";

}

function render_footer() {
   global $settings;
   echo "</tr></table>\n";
   // copyrighted line must stay intact and visible.
   echo "<table cellpadding='0' cellspacing='0' id='footer' width='100%'><tr><td nowrap='nowrap' valign='top'>Varikliukas: <a href='http://www.php-fusion.co.uk/' target='_blank' onmousedown='return false;'>PHP Fusion</a></td><td align='center' width='100%' style='padding-left:20px;padding-right:20px;'>".$settings['footer'].showcounter()."</td><td align='right' nowrap='nowrap' valign='top'> Dizainas: mXt & mckenzie</td></tr></table>\n";
   echo "</td><td class='pageRight'></td></tr>\n</table>\n";
}

function render_news($subject, $news, $info) {
   global $locale;
   opentable($subject);
   echo $locale['040'].newsposter($info)."\n"
   ."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
   .openform("N",$info['news_id']).newsopts($info," &middot;").closeform("N",$info['news_id'])."\n";
   closetable();
}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain' width=70%><img src=".THEME."media/aut.png border=0 align=left>$subject</td><td class='capmain' align=right width=30%>".showdate("shortdate",$info['article_date'])."</td>
</tr>
<tr><td align=left height=1 width=100% background=".THEME."media/dotted.gif colspan=2></td>
<tr>
<td class='main-body' colspan=2>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='right' class='news-footer' colspan=2>\n";
echo openform("A",$info['article_id'])."<a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$info['article_comments']." komentarai ".$info['article_reads']." Skaityta <a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif'></a> ".closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'> $title</td>
</tr>
<tr><td align=left height=1 width=100% background=".THEME."media/dotted.gif></td>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='200' valign='top' class='side-border-left'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align=left height=20 width=176 class='scapmain'>$title</td>
</tr>

<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='200' valign='top' class='side-border-left'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align=left height=20 width=176 class='scapmain'>$title</td><td align=right>".panelbutton($state,$boxname)."</td>
</tr>

<tr>
<td class='side-body' colspan=2>
<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";

}
?>




Štai mano theme.php Rytis jai gali padaryk kaip tu kad sakei...

Redagavo Paul McCartney· 2007 Spa. 29 18:10:01