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

Parašė Mandello· 2010 Bir. 12 23:06:04
#3

Kurioj vietoj? Nes man error ismeta. Duosiu via skoda index.php ir atsiusk pilna jai gali.
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#4a4a4a";
$body_bg = "#232323";
$theme_width = "900";
$theme_width_l = "192";
$theme_width_r = "192";

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'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td>
<table width='900' height='348' border='0' cellpadding='0' cellspacing='0'align='center'>
   <tr>
      <td rowspan='3' align='center'>
         <img src='".THEME."images/header/0_01.gif' width='582' height='281' alt=''></td>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_02.gif' width='318' height='30' alt=''></td>
   </tr>
   <tr>
      <td colspan='2' class='vartotojo_zona' align='left'>";
      include_once"".THEME."vartotojo_zona.php";
      echo "</td>
   </tr>
   <tr>
      <td colspan='2' align='left'>
         <img src='".THEME."images/header/0_04.gif' width='318' height='76' alt='' align='center'></td>
   </tr>
   <tr>
      <td colspan='2' style='height: 50px; width: 650px;' align='center'>";
         include_once"".THEME."nuorodos.php";
         echo "</td>
      <td class='data' align='left'><span style='padding-left:10px;'>".ucwords(showdate($settings['subheaderdate'], time()))."</span></td>
   </tr>
   <tr>
      <td colspan='3' align='center'>\n";
echo "         <img src='".THEME."images/header/0_07.gif' width='900' height='16' alt=''>
      </td>
   </tr>";

echo "<br><center><img src='http://www.part.lt/img/d92647a3a21fd9d751b07df92ac146ab854.jpg' width='750' height='100'></center><br>

   <tr>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='582' height='0' alt=''></td>
      <td align='center'>
         <img src='".THEME."images/header/spacer.gif' width='68' height='0' alt=''></td>
      <td align='left'>
         <img src='".THEME."images/header/spacer.gif' width='250' height='0' alt=''></td>
   </tr>
</table>
</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 align='center' cellpadding='0' cellspacing='0' width='900' class='footer'>
<tr>
<td align='left' style='padding-left: 70px; padding-bottom: 50px;'>Sprendimas <a href='http://www.e-studija.lt' target='_blank' style='color:#d96400; font-weight: bold;'>E-Studija</a></td>
<td align='center' style='padding-bottom:40px; padding-right: 50px;' width='0'>\n";
include THEME."skaitliukas.php";
echo "</td>
<td align='right' style='padding-right: 70px; padding-bottom: 50px;'>TVS: <a href='http://www.php-fusion.co.uk' target='_blank' style='color:#d96400; font-weight: bold;'>PHP-Fusion</a></td>
</tr>
</table>
</td>
</tr>
</table>\n";


















































}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-top-left'><img src='".THEME."images/blank.gif' width='18' height='41' alt='' style='display:block'></td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td width='100%' class='center-top-center2'>$subject</td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td class='center-top-right'><img src='".THEME."images/blank.gif' width='17' height='41' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'><center>";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo"<center></td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>$news</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-bottom-left'><img src='".THEME."images/blank.gif' width='18' height='13' alt='' style='display:block'></td>
<td class='center-bottom-center'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='center-bottom-right'><img src='".THEME."images/blank.gif' width='17' height='13' alt='' style='display:block'></td>
</tr>
</table>";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-top-left'><img src='".THEME."images/blank.gif' width='18' height='41' alt='' style='display:block'></td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td width='100%' class='center-top-center2'>$subject</td>
<td class='center-top-center1'><img src='".THEME."images/blank.gif' width='1' height='41' alt='' style='display:block'></td>
<td class='center-top-right'><img src='".THEME."images/blank.gif' width='17' height='41' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td align='center' class='main-body'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
<td class='center-border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='center-bottom-left'><img src='".THEME."images/blank.gif' width='18' height='13' alt='' style='display:block'></td>
<td class='center-bottom-center'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='center-bottom-right'><img src='".THEME."images/blank.gif' width='17' height='13' alt='' style='display:block'></td>
</tr>
</table>
";

}

function opentable($title) {

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

}

function closetable() {

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

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<tr><td><img src='".THEME."images/panel_foot.gif' alt='panele'></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";

}
?>