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

Parašė xSpiritas· 2008 Lie. 13 13:07:13
#1

Sveiki , gal galite padeti ideti si koda po header'iu
Kodas:
<table id="Table_01" width="761" height="50" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td>
         <img src="images/Untitled-2_01.gif" width="177" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_02.gif" width="73" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_03.gif" width="85" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_04.gif" width="69" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_05.gif" width="81" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_06.gif" width="101" height="50" alt=""></td>
      <td>
         <img src="images/Untitled-2_07.gif" width="175" height="50" alt=""></td>
   </tr>
</table>



TEMA:

<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|      Fusion 6 Theme for PHP-Fusion v6       |
|---------------------------------------------|
| author: Design For You - Force © 2006       |
| web: http://d4u.hut2.ru/                    |
| email: design.4.you.studio@gmail.com        |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "860";
$theme_width_l = "165";
$theme_width_r = "165";

function render_header($header_content) {

global $theme_width,$settings;

   echo "<table style='background-image:url(".THEME."images/center.png)' align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'>";
   // Start banner code
   echo "<td width='100%' height='57'><img src='".THEME."images/logo.png' width='860' height='250'></</td>";
   // End banner code
      // echo "<img src='".THEME."images/pixel.gif' height='1'>";
   echo "<table align='center' border='0' cellpadding='0' cellspacing='0' width='$theme_width'><tr>";
   //
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 1;
   while($data = dbarray($result)) {
      if ($data['link_url']!="---") {
         $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
         if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {

         
            

            echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
         } else {

            //
            
         }
      }
      if ($i != dbrows($result)) {
               
} else {
               } $i++;
   }
}
   echo "</table></td>";



   
   echo "</tr></table><table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>\n<tr>\n";
}

function render_footer($license=false) {

global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'><tr>";
   echo "<td height='25' valign='top' background='".THEME."images/copy_bg.gif' style='background-repeat:repeat-x' class='header'>".stripslashes($settings['footer'])."</td></tr></table>\n";


      if ($license == false) {
   
   }
   echo "</td>";
   
   
   echo "<td width='33'><img src='".THEME."images/blank.gif' width='33'></td></tr></table>";
}

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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='bpanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "<td width='100%' class='bpanel-main'>$subject</td>";
   echo "<td class='bpanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td>";
   echo "<td align='right' class='infobar2'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <br>\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <br> ";
   echo "".$info['news_reads'].$locale['044']." <b>-</b> ";
   echo "<a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'>";
   echo "</td></tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;

   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$subject</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'><img src='".THEME."images/bullet.gif'> ";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td align='right' class='infobar2'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b> ";
   echo "".$info['article_reads'].$locale['044']." <b>-</b> ";
   echo "<a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='apanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "<td width='100%' class='apanel-main'>$title</td>";
   echo "<td class='apanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'>\n";
}

function closetable() {

   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function openside($title) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='dpanel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "<td width='100%' class='dpanel-main'>$title</td>";
   echo "<td class='dpanel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>\n";
}

function closeside() {

   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "<td class='panel-main'>$title</td>";
   echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='7' height='37' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>";
   echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}

function closesidex() {

   echo "</div>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='6' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='9' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='6' height='9' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function tablebreak() {

   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
   echo "</td></tr></table>\n";
}
?>



Redagavo xSpiritas· 2008 Lie. 13 13:07:36