Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: CS_Zone Tema.

Parašė Dandžu· 2008 Kov. 16 20:03:21
#9

Na jei tu nori, kad būtų vienas headeris tai štai imk.
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#555555";
$body_bg = "#f9f9f9";
$theme_width = "980";
$theme_width_l = "175";
$theme_width_r = "175";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #000000 1px; border-left: solid #000000 1px; border-top: solid #000000 1px; margin-top: -5px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";

   echo "<tr><table align=center width=100% height=270 background='".THEME."images/baner.jpg' border=0 cellspacing=0 cellpadding=0>";
echo"<tr><td height=50 class='nuorodos' align='center' style='padding-right:50px; padding-top:130px;'><br>";
echo"<table width='50%'><tr>";

echo"<td width='40%'>";
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
 if (dbrows($result) != 0) {
  echo "<table width='100%'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='".THEME."images/bullet.gif'>
     <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
    </td>
    <td align='right'>".$data['download_count']."</td>
   </tr>";
  }
  echo "</table>";
 } else {
  echo "<div style='text-align:center'>".$locale['004']."</div>\n";
 }

echo "</td><td width='60%' style='padding-left:80px;' >";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
   if (dbrows($result) != 0) {
echo "<table  width='100%'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
                    <img src='".THEME."images/bullet.gif'>
               <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "<div style='text-align:center'>".$locale['004']."</div>\n";
   }

echo "</tr>
</table>";

echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";

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

   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width, $settings, $body_bg;
echo "</tr>\n</table>\n";
echo "<table align='center' width='980' height='10' border='0' bgcolor='$body_bg' cellpadding='0' cellspacing='0'>
   <tr>
   <td>
   </td>
   </tr>
   </table><table align='center' width='980' height='40' border='0' bgcolor='$body_bg' cellpadding='0' cellspacing='0'>
   <tr>
      <td class='futeris1' width='15' height='40'></td>

      <td class='futeris2' width='732' height='40'>".showcounter()."</td>
      <td class='futeris3' width='233' height='40'></td>
   </tr>
</table>   <table align='center' width='980' height='5' border='0' bgcolor='$body_bg' cellpadding='0' cellspacing='0'>
   <tr>
   <td>
   </td>
   </tr>

   </table></td>
</tr>
</table>";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</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 align='center' width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr><td class='pan-ct-kaire' width='12' height='34'><img src='".THEME."images/spacer.gif' width='12' height='34' style='display:block'></td><td width='100%' height='34' class='pan-ct-centras'>$title</td><td class='pan-ct-desine' width='15' height='34'><img src='".THEME."images/spacer.gif' width='15' height='34' style='display:block'></td>
   </tr>
   <tr><td class='pan-ct-son-kaire' width='12' height='100%'></td><td  width='100%' height='100%' class='pan-ct-fonas'>";
}

function closetable() {

echo "</td><td class='pan-ct-son-desine' width='15' height='100%'></td></tr><tr>
      <td class='pan-ct-apac-kaire' width='12' height='10'></td>
      <td width='100%' height='10' class='pan-ct-apac-centras'></td>
      <td class='pan-ct-apac-desine' width='15' height='10'></td></tr></table>";
}

function openside($title) {   
echo "<table align='center' width='188' height='140' border='0' cellpadding='0' cellspacing='0'><tr>
   <td colspan='2' class='pan-kaire' width='16' height='44'></td><td colspan='2' class='pan-centras' width='158' height='44'>$title</td><td colspan='2' class='pan-desine' width='14' height='44'></td>
   </tr><tr><td class='pan-son-kaire' width='8' height='100%'></td>
   <td colspan='4' class='pan-fonas' width='8' height='100%'>";
}

function closeside() {

echo "</td><td class='pan-son-desine' width='8' height='100%'></td>
   </tr><tr>
      <td colspan='2' class='pan-apac-kaire' width='16' height='15'></td><td class='pan-apac-centras' width='154' height='15'></td><td colspan='3' class='pan-apac-desine' width='18' height='15'></td>
   </tr><tr>
      <td class='tarpas' width='8' height='1'></td>
      <td class='tarpas' width='8' height='1'></td>
      <td class='tarpas' width='154' height='1'></td>

      <td class='tarpas' width='4' height='1'></td>
      <td class='tarpas' width='6' height='1'></td>
      <td class='tarpas' width='8' height='1'></td>
   </tr>
</table>";
tablebreak();

}

function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table align='center' width='188' height='140' border='0' cellpadding='0' cellspacing='0'><tr>
   <td colspan='2' class='pan-kaire' width='16' height='44'></td><td colspan='2' class='pan-centras' width='158' height='44'>$title</td><td class='pan-centras' align='right'>".panelbutton($state,$boxname)."</td><td colspan='2' class='pan-desine' width='14' height='44'></td>
   </tr><tr><td class='pan-son-kaire' width='8' height='100%'></td>
   <td colspan='4' class='pan-fonas' width='8' height='100%'><div id='box_$boxname'".($state=="off"?" style='display:none'":"").">";
}

function closesidex() {
echo "</div></td><td class='pan-son-desine' width='8' height='100%'></td>
   </tr><tr>
      <td colspan='2' class='pan-apac-kaire' width='16' height='15'></td><td class='pan-apac-centras' width='154' height='15'></td><td colspan='3' class='pan-apac-desine' width='18' height='15'></td>
   </tr><tr>
      <td class='tarpas' width='8' height='1'></td>
      <td class='tarpas' width='8' height='1'></td>
      <td class='tarpas' width='154' height='1'></td>

      <td class='tarpas' width='4' height='1'></td>
      <td class='tarpas' width='6' height='1'></td>
      <td class='tarpas' width='8' height='1'></td>
   </tr>
</table>";
tablebreak();
}

function tablebreak() {

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

}
?>



Redagavo Dandžu· 2008 Kov. 16 20:03:37