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

Parašė VainYzZ· 2009 Vas. 26 19:02:27
#17

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

// theme settings
$body_text = "#555555";
$theme_width = "1003";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$locale,$aidlink,$userdata;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header' height='167'>
<table height='167'><tr><td><img src='".THEME."images/login.png' alt='' style='padding-left:100px;padding-top:45px;position:relative;'></td></tr><tr><td style='padding-left:70px;padding-bottom:30px;'>";
if(!iMEMBER) {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>Vardas: <input type='text' name='user_name' class='textbox' style='width:100px'> Slaptažodis: <input type='password' name='user_pass' class='textbox' style='width:100px'> <input type='submit' name='login' value='Prisijungti' class='button'><br><br>
<center><a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Slaptažodis</a><center>
</form>";
} else {
echo "<table><tr><td width='50'>";
if($userdata['user_avatar']) {
echo "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='' width='50' height='50' style='border:1px solid #c1c1c1'>";
} else {
echo "<img src='http://www.simplyfm.net/forums/style_avatars/noavatar.png' alt='' width='50' height='50' style='border:1px solid #c1c1c1'>";
}
echo "</td><td width='150'><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>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a></td><td width='150'>\n";


   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<script type=\"text/javascript\">
function showlayer(layer){
var myLayer = document.getElementById(layer).style.display;
if(myLayer=='none'){
document.getElementById(layer).style.display='block';
} else {
document.getElementById(layer).style.display='none';
}
}
</script><a href=\"#\" onclick=\"javascript:showlayer('myName')\" valign='top'>".$locale['083']."</a>

<div id=\"myName\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br></div>\n";

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

echo "<table width='1003' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td colspan='11'>
         <img src='".THEME."images/nav_01.png' width='1003' height='5' alt='' /></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/nav_02.png' width='7' height='53' alt='' /></td>
      <td>
         <a href='".BASEDIR."index.php'><img src='".THEME."images/nav_03.png' width='97' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_03.png'\" onmouseout=\"this.src='".THEME."images/nav_03.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."forum/index.php'><img src='".THEME."images/nav_04.png' width='97' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_04.png'\" onmouseout=\"this.src='".THEME."images/nav_04.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."viewpage.php?page_id=8'><img src='".THEME."images/nav_05.png' width='100' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_05.png'\" onmouseout=\"this.src='".THEME."images/nav_05.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."viewpage.php?page_id=5
'><img src='".THEME."images/nav_06.png' width='88' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_06.png'\" onmouseout=\"this.src='".THEME."images/nav_06.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."contact.php'><img src='".THEME."images/nav_07.png' width='94' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_07.png'\" onmouseout=\"this.src='".THEME."images/nav_07.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."viewpage.php?page_id=16'><img src='".THEME."images/nav_08.png' width='103' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_08.png'\" onmouseout=\"this.src='".THEME."images/nav_08.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."articles.php?cat_id=1'><img src='".THEME."images/nav_09.png' width='168' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_09.png'\" onmouseout=\"this.src='".THEME."images/nav_09.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."photogallery.php'><img src='".THEME."images/nav_10.png' width='117' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_10.png'\" onmouseout=\"this.src='".THEME."images/nav_10.png'\" /></a></td>
      <td>
         <a href='".BASEDIR."viewpage.php?page_id=12'><img src='".THEME."images/nav_11.png' width='124' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_11.png'\" onmouseout=\"this.src='".THEME."images/nav_11.png'\" /></a></td>
      <td rowspan='2'>
         <img src='".THEME."images/nav_12.png' width='8' height='57' alt='' /></td>
   </tr>
   <tr>
      <td colspan='10'>
         <img src='".THEME."images/nav_13.png' width='995' height='4' alt='' /></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='953'>
<tr>
<td align='left' class='footer' height='27'><table width='100%'><tr><td align='left' width='70%' style='font-family: Arial;font-size: 11px;color: #000000;'>".stripslashes($settings['footer'])."</td><td align='right' width='20%' style='font-family: Arial;font-size: 11px;color: #000000;'>Web dizainas by <a href='http://moby.lt' class='bold'>Moby.lt</a></td></tr></table></td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table width='450' border='0' cellpadding='0' cellspacing='0' align='center'>
   <tr>
      <td colspan='3' background='".THEME."images/main_01.png' width='450' height='26' style='padding-left:20px;font-family:Arial;font-size:11px;font-weight:bold;color:#676767;'>$subject</td>
   </tr>
   <tr>
      <td class='left'></td>
      <td background='".THEME."images/main_03.png'>$news<br><br><a href='".BASEDIR."news.php?readmore=".$info['news_id']."' style='padding-left:20px;'><img src='".THEME."images/bullet3.gif' alt=''> Skaityti daugiau</a><br><br></td>
      <td class='right'></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/main_05.png' width='4' height='4' alt='' /></td>
      <td>
         <img src='".THEME."images/main_06.png' width='442' height='4' alt='' /></td>
      <td>
         <img src='".THEME."images/main_07.png' width='4' height='4' alt='' /></td>
   </tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table width='450' border='0' cellpadding='0' cellspacing='0' align='center'>
   <tr>
      <td colspan='3' background='".THEME."images/main_01.png' width='450' height='26' style='padding-left:11px;font-family:Arial;font-size:13px;font-weight:bold;color:#95b921;'>$title</td>
   </tr>
   <tr>
      <td class='left'></td>
      <td background='".THEME."images/main_03.png'>\n";

}

function closetable() {

echo "<br></td>
      <td class='right'></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/main_05.png' width='4' height='4' alt='' /></td>
      <td>
         <img src='".THEME."images/main_06.png' width='442' height='4' alt='' /></td>
      <td>
         <img src='".THEME."images/main_07.png' width='4' height='4' alt='' /></td>
   </tr>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='257'>
<tr>
<td class='scapmain' height='42'>$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";

}
?>



Redagavo bad_user· 2009 Vas. 26 19:02:04