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

Parašė Žmogus· 2009 Lie. 21 12:07:40
#2

<?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 = "900";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' style='margin-top:-8px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='980' background='".THEME."images/header.gif' height='145'  align='center'>
<tr>
<td>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='$theme_width' align='center'>
<td background=''>
<td><a href='".BASEDIR."index.php'><img src='".THEME."images/links/namai.gif' border='0'></a></td>
<td><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/links/galerija.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/links/siuntiniai.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/links/diskusijos.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/contact.php'><img src='".THEME."images/links/reklama.gif' border='0'></a></td>
<td><img src='".THEME."images/links/back.gif' border='0'></td>

<table cellpadding='0' cellspacing='0' width='980' background='".THEME."images/panels_logged.gif' height='185' align='center'>

<td><table width='243' cellpadding='0' cellspacing='0'>";

if (iMEMBER) {

$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count != 0) {
echo"<tr><center><a href='".BASEDIR."messages.php' class='side'><b><blink>J&#251;s gavote nauj&#224; &#254;inutæ</blink></b></a><br><br>";
}
echo"<td style='padding-left: 10px;'>";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #404040'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.gif' width='50' height='50' style='border:1px solid #404040'></center>\n";
   }
   echo "</td>
    <td>
   <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Tavo profilis</a><br>
   <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti apra&#240;ym&#224;</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s</span></b></a><br>";



   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
   </td>";


} else {

  echo "
       <form name='loginform' method='post' action='".FUSION_SELF."'>

      <tr>
    <td></td>
   <td align='center' style='padding-left:20px; padding-top: 25px;'>Vardas: &nbsp;<input type='text' name='user_name' class='textbox' style='width:120px; height:16px;'></td>
  </tr>
        <tr><td></td></tr>
  <tr>
    <td></td>
    <td align='center' style='padding-left:0px; padding-bottom: 6px;'>Slapta&#382;odis:&nbsp;<input type='password' name='user_pass' class='textbox' style='width:120px;height:16px;'></td>
  </tr>
 
  <tr>
      <td></td>
    <td align='center'><input type='checkbox' name='remember_me' value='y'>&nbsp;<input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
        <tr><td height='15'></td></tr>
   <tr>
      <td></td>
      <td align='center' style'padding-left:50px;' class='small'><b>Dar ne narys? </b><a href=".BASEDIR."register.php>Registruokis &nbsp;</a>&nbsp; <br><b>Pamir&#240;ai slapta&#254;od&#225;?</b><br><a href=".BASEDIR."lostpassword.php>Papra&#240;yk naujo</a></td>
   </tr>

  </form>";
}

echo"</table>";
     
echo "</td><td></td><td style='padding-top: 10px; padding-left: 100px;'>";
          $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
   echo "<table width='272' cellpadding='0' cellspacing='0'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr><td class='small3' align='left'>
      <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><b><span style='color:#FFF;'>$itemsubject</span></b></a>
      </td>
          <td align='right'><span style='color:#FFF;'>".$data['download_count']."</span></td>
     
      </tr>\n";
   }
   echo "</table>";
} else {
   echo "<center>".$locale['004']."</center>\n";
}
     
echo "</td><td></td><td style='padding-top: 10px; padding-left: 0px;'>";
     
     
echo"<iframe src='http://monitors.cancel.lt/info2.php?ip=78.58.13.83&port=27015&g=css' scrolling='no' frameborder='0' width='190' height='130'></iframe>";
   
echo"</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='990'><tr><center><img src='".THEME."images/top.gif' height='14' width='990' border='0'></center>";

}

function render_footer($license=false) {

global $theme_width,$settings;


echo "</tr>\n</table>\n";
echo "<center><img src='".THEME."images/footer.gif' alt='' style='display:block'>
</td>
</tr>
</table>
</td>
</tr>
</table></center>\n";

}


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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel-center-left'><img src='".THEME."images/blank.gif' width='10' height='25' alt='' style='display:block'></td>
<td class='panel-center-center1' width='100%'>$subject</td>
<td class='panel-center-center2'><img src='".THEME."images/blank.gif' width='140' height='25' alt='' style='display:block'></td>
<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='10' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel-left-side'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
<td class='main-body'>$news<br><br><br><b>".showdate("shortdate", $info['news_date'])."</b> - <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
<a href='news.php?readmore=".$info['news_id']."' style='padding-left: 5px;'>Skaityti toliau...</a></td>
<td class='panel-right-side'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
</tr>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='panel-bottom-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>
<td class='panel-bottom-center' width='100%'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='panel-bottom-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></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," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel-center-left'><img src='".THEME."images/blank.gif' width='10' height='25' alt='' style='display:block'></td>
<td class='panel-center-center1' width='100%'>$title</td>
<td class='panel-center-center2'><img src='".THEME."images/blank.gif' width='140' height='25' alt='' style='display:block'></td>
<td class='panel-center-right'><img src='".THEME."images/blank.gif' width='10' height='25' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel-left-side'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
<td class='panel-right-side'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='panel-bottom-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>
<td class='panel-bottom-center' width='100%'><img src='".THEME."images/blank.gif' width='1' height='10' alt='' style='display:block'></td>
<td class='panel-bottom-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>
</tr>
</table>";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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";

}
?>