Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dizaine nerodo header.

Parašė tomas710· 2012 Vas. 7 17:02:32
#1

Sveiki norejau paprasyti siokios tokios pagalbos. Pasiemiau dizaina bet jame yra problema jis lyg butu istemtas as nzn nes nerodo puse headero ir nzn kaip istaisyt sita problema Gal jus galit padeti.

Va Kaip atrodo -->

O toks Headeris idetas -->

Idesiu Theme.php

<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>&middot;</span>");
require_once INCLUDES."theme_functions_include.php";


function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$aidlink;

echo "<table cellspacing='0' cellpadding='0' width='1200' align='center'>\n<tr>\n";
   echo "<td>\n";
echo"
<td background='".THEME."images/head_1.png' width='1200' height='28' style='font-family: myriad pro; font-weight: Condensed; font-size: 12px; font-style: sharp; color: #565656; padding-left:20px;' align='left'>
         SVEIKI ATVYKE I BALTICGAMERS.EU - TU NEESI  NARYS. JEI NORI MATYTI TURINI UZSIREGISTRUOK
         
         </td>";


echo "<table align='center' cellpadding='0' cellspacing='0' width='1200'>\n<tr>
<td class='hed_1'>";
echo"</td>
<td align='left' class='hed_2' style='padding-top:0px;'>";include THEME."priedai/news.php";
echo"</td>
<td align='center' class='hed_3' style='padding-top:0px;'>";  echo"</td>
</tr>

<tr>
<table cellpadding='0' cellspacing='0' width='1200' align='center'>
<tr>
<td>
<img border='0' src='".THEME."images/navi/0_1.png'width='58' height='50'></td>
<td>
<a href='".BASEDIR."news.php'><img border='0' src='".THEME."images/navi/0_2.png' width='161' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_3.png' width='158' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_4.png' width='157' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_5.png' width='156' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_6.png' width='157' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_7.png' width='155' height='50' \"></a></td>
<td><a href='".BASEDIR."#'><img border='0' src='".THEME."images/navi/0_8.png' width='159' height='50' \"></a></td>
<td><img border='0' src='".THEME."images/navi/0_9.png' width='39' height='50' \"></a></td>

</tr>
</table>
<tr>
<table align='center' cellpadding='0' cellspacing='0' width='1200'>\n<tr>
<td cellspacing='0' cellpadding='0' width='555' class='slide'>";

echo "<script type='text/javascript' src='js/jquery-1.3.1.min.js'></script>
<script type='text/javascript'>

$(document).ready(function() {      
   
   //Execute the slideShow
   slideShow();

});

function slideShow() {

   //Set the opacity of all images to 0
   $('#gallery a').css({opacity: 0.0});
   
   //Get the first image and display it (set it to full opacity)
   $('#gallery a:first').css({opacity: 1.0});
   
   //Set the caption background to semi-transparent
   $('#gallery .caption').css({opacity: 0.7});

   //Resize the width of the caption according to the image width
   $('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});
   
   //Get the caption of the first image from REL attribute and display it
   $('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))
   .animate({opacity: 0.7}, 400);
   
   //Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds
   setInterval('gallery()',6000);
   
}

function gallery() {
   
   //if no IMGs have the show class, grab the first image
   var current = ($('#gallery a.show')?  $('#gallery a.show') : $('#gallery a:first'));

   //Get next image, if it reached the end of the slideshow, rotate it back to the first image
   var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first'));   
   
   //Get next image caption
   var caption = next.find('img').attr('rel');   
   
   //Set the fade in effect for the next image, show class has higher z-index
   next.css({opacity: 0.0})
   .addClass('show')
   .animate({opacity: 1.0}, 1000);

   //Hide the current image
   current.animate({opacity: 0.0}, 1000)
   .removeClass('show');
   
   //Set the opacity to 0 and height to 1px
   $('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });   
   
   //Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
   $('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '50px'},500 );
   
   //Display the content
   $('#gallery .content').html(caption);
   
   
}

</script>
<style type='text/css'>
body{
   font-family:arial
}

.clear {
   clear:both
}

#gallery {
   position:relative;
   height:176px
}
   #gallery a {
      float:center;
      position:absolute;
   }
   
   #gallery a img {
      
      -moz-border-radius: 2px;
      -webkit-border-radius: 2px;
   }
   
   #gallery a.show {
      z-index:500
   }

   #gallery .caption {
      z-index:600;
      background-color:#000;
      color:#ffffff;
      height:50px;
      width:100%;
      position:absolute;
      bottom:0;
   
      
   }

   #gallery .caption .content {
      margin:5px
   }
   
   #gallery .caption .content h3 {
      margin:0;
      padding:0;
      color:#b94515;
   }
   

</style>
<div id='gallery' style='padding-left:0px; padding-bottom:2px;'>

         <a>
   <img src='".THEME."images/1slide.png' alt='TRANSFORMERIAI: TAMSIOJI M?NULIO PUS?' width='540' height='176' title='' alt='' rel='<h3>TRANSFORMERIAI: TAMSIOJI MĖNULIO PUSĖ</h3>Istorija perskelia į žemę, kur išleidžiamas įsakymas apie gerųjų Autobotų iškėlimą iš žmonių planetos, kurioje po gėdingai pralaimėto mūšio'/>
   </a>

   <a>
<img src='".THEME."images/1slide.png' alt='TRANSFORMERIAI: TAMSIOJI M?NULIO PUS?' width='540' height='176' title='' alt='' rel='<h3>TRANSFORMERIAI: TAMSIOJI MĖNULIO PUSĖ</h3>Istorija perskelia į žemę, kur išleidžiamas įsakymas apie gerųjų Autobotų iškėlimą iš žmonių planetos, kurioje po gėdingai pralaimėto mūšio'/>
   </a>
   
   <a>
      <img src='".THEME."images/1slide.png' alt='TRANSFORMERIAI: TAMSIOJI M?NULIO PUS?' width='540' height='176' title='' alt='' rel='<h3>TRANSFORMERIAI: TAMSIOJI MĖNULIO PUSĖ</h3>Istorija perskelia į žemę, kur išleidžiamas įsakymas apie gerųjų Autobotų iškėlimą iš žmonių planetos, kurioje po gėdingai pralaimėto mūšio'/>
   </a>

   <div class='caption'><div class='content'></div></div>
</div></td>";

if (iMEMBER) {
echo "<td cellspacing='0' cellpadding='0'  width='645' style='padding-right:10px;' class='log'>";
   $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   echo "<table width='' border='0' cellspacing='0' cellpadding='0' style='padding-left: 20px; padding-top: 0px;'>
 
<tr>
  <td>";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='150' height='150' style='border:2px solid #0077b5'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.png' width='150' height='150' style='border:2px solid #dddddd'></center>\n";
   }
   echo "</td>
<td><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='sveikas'>&nbsp;&nbsp;Mano profilis</a><br>
<a href='".BASEDIR."edit_profile.php' class='sveikas'>&nbsp;&nbsp;Redaguoti apra&#0353;ym&#0261</a><br>
<a href='".BASEDIR."messages.php'  class='sveikas'>&nbsp;&nbsp;&#0381;inut&#0279s</a><br>
<a href='".BASEDIR."members.php' class='sveikas'>&nbsp;&nbsp;Nariai</a>
<br><br><br><a href='".BASEDIR."setuser.php?logout=yes' class='sveikas'>&nbsp;&nbsp;Atsijungti<span style='color: #a7fe00;'>[x]</span></a><br>";
echo"</td>
<td width='30'></td>
<td>

<br>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='sveikas'>&nbsp;&nbsp;Admin Panel</a>";
   }

echo"</td>

<td><br>
</td></table>";

   

} else {
echo "<td cellspacing='0' cellpadding='0' width='645' class='log2' >";
   echo "<table width='645' border='0' cellspacing='0' cellpadding='0' align='center'>
   
   <form name='loginform' method='post' action='".FUSION_SELF."'>
   <table width='0' border='0' cellspacing='0' cellpadding='0' align='left' style='padding-right: 105px; padding-top: 20px;'>
   
  <tr>
    <td align='left'  style='padding-right: 25px;'></td>
      <td><input type='text' name='user_name' value='Vartotojo vardas' onfocus=\"if(this.value=='Vartotojo vardas...'){this.value='';}\" onblur=\"if(this.value==''){this.value='Vartotojo vardas...';}\" class='log-textbox' style='width:227px; height:32px;'>

  </tr>
  <tr>
  <td height='5'></td>
  <td></td>
  </tr>
  <tr>
    <td align='left'  style='padding-left: 0px;'></td>
    <td><input type='password' name='user_pass' value='slaptazodis' onfocus=\"if(this.value=='slaptazodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptazodis';}\" class='log-textbox' style='width:227px; height:32px;'>
   </tr>
    </table>
     <table width='645' border='0' cellspacing='0' cellpadding='0' align='left'  style=' padding-top: 10px; padding-left: 63px;'>
  <tr>
    <td align='left'>
    <td><input type='submit' name='login' value='' class='log-button'><br> <a style=' color : #7b7b7b;font-family : Arial; font-size : 12px; font-weight: bold;' href=".BASEDIR."register.php>Registracija</a> | <a style='color : #7b7b7b;font-family : Arial; font-size : 12px; font-weight: bold;' href=".BASEDIR."priminti-slaptazodi.html>slaptazodis</a>

  </form></div></table>";
}

echo"</td>

</tr></table>
<table align='center' cellpadding='0' cellspacing='0' width='1200'>\n<tr>
<td background='".THEME."images/bele/01.png' width='123' height='47'>";
echo"</td>
<td background='".THEME."images/bele/02.png' width='186' height='47'>";
echo"<div style='padding-left:42px; padding-bottom:3px; color : #6e6e6e;font-family : Myriad Pro; font-size : 12px; font-weight: bold; font-weight: Condensed; font-style: sharp;'>";
include THEME."/priedai/data.php";
echo"</td>
<td background='".THEME."images/bele/03.png' width='163' height='47'>";
echo"</td>
<td background='".THEME."images/bele/04.png' width='187' height='47'>";
echo"<div style='padding-left:30px; padding-bottom:6px; color : #6e6e6e;font-family : Myriad Pro; font-size : 12px; font-weight: bold; font-weight: Condensed; font-style: sharp;'>";
include THEME."/priedai/nariu.php";
echo"</td>
<td background='".THEME."images/bele/05.png' width='212' height='47'>";
echo"</td>
<td background='".THEME."images/bele/06.png' width='188' height='47'>";
echo"<div style='padding-left:48px; padding-bottom:6px; color : #6e6e6e;font-family : Myriad Pro; font-size : 12px; font-weight: bold; font-weight: Condensed; font-style: sharp;'>";
include THEME."/priedai/turnyras.php";
echo"</td>
<td background='".THEME."images/bele/07.png' width='119' height='47'>";
echo"<div style='padding-left:30px; padding-bottom:3px;'>";
include THEME."/priedai/fbsk.php";
echo"</td>
<td background='".THEME."images/bele/08.png' width='22' height='47'>";
echo"</td>

</tr>


</tr>
</table>

       </table>\n";

   //Content

   echo "<table cellpadding='0' cellspacing='0' width='1172' align='center' class='content'><tr>\n";
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (LEFT) { echo "<td class='side-border-left' valign='top' width='205'>".LEFT."</td>"; }
   if (RIGHT) { echo "<td class='side-border-right' valign='top' width='180'>".RIGHT."</td>"; }
         echo"</tr>

         </table>";

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

    echo "<table align='center' cellpadding='0' cellspacing='0' align='center' width='940' class='foot'>
   </table>
   <table align='center' cellpadding='0' cellspacing='0' align='center' width='940' class='footer'><tr><td align='center' style='padding-bottom:150px; padding-right:15px;'><a href='".BASEDIR."http://www.balticgamers.eu' title='BALTICGAMERS.EU' ><span style='font-family: arial; font-weight: regular; font-size: 18px; font-style: sharp; color: #878787; text-shadow: #000000 1px 1px 1px;'>BALTIC<span style='color: #ffd100;'>GAMERS</span>.EU</a>
<span style='font-family: arial; font-weight: regular; font-size: 12px; font-style: sharp; color: #878787; text-shadow: #000000 1px 1px 1px;'><center>2011-2012</center></span><center><span style='color: #ffd100;'>KODAVIMAS </span><span style='color:#878787;'>: <a href='".BASEDIR."http://www.dangis.mes'>Dangiis</span>";


}

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

   echo "<table cellpadding='0' cellspacing='0' width='819'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo "</td>\n</tr>\n</table>\n";

}


function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td width='100%' class='panel-main3'>".$subject."</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body-ajax'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "</tr>\n</table>\n";
      echo"<img src='".THEME."images/blank.gif' height='5' style='display:block'>";
}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='819'>\n<tr>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

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

}



function openside($title) {

  echo "<table cellpadding='0' cellspacing='0' width='299'>
<tr>
<td class='panele'><div style='font-family : Arial; font-size : 12px;text-transform: uppercase; font-weight: bold; padding-top: 10px;'>$title<br></div><div style='font-family: arial;  font-size: 11px; color: #565656; padding-bottom:15px;'>$title</div></td>
</tr>";
  echo "<table cellpadding='0' cellspacing='0' width='299'>
<tr>
<td class='side-body'>\n";

}

function closeside() {

   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }
   echo "<tr>";
   echo "<td class='side-close'><img src='".THEME."images/blank.gif' width='1' height='7' alt='' style='display:block'></td>";
   echo "</tr></table>\n";
}




?>