Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Prasau ivertinti tema

Parašė LeBro· 2008 Bal. 21 22:04:14
#32

hmm... pas mane kazkaip kitaip :?
paziurek, jeigu nesunku :)

<?php

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#000000";

$theme_width = "100%";

$theme_width_l = "175";
$theme_width_r = "175";

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

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='margin-top: -15px;>";
   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%'>";
// Start banner code / Banerio kodas

   echo"
<table align='center' width='100%' height='200' background='".BASEDIR."themes/muzika_modern/images/headeris1.jpg' cellspacing='0' cellpadding='0'>
<tr><td  class='nuorodos' align=left'>";


echo"<table width='60%' align='right'>

<tr>
<td width='33%'>";
openside2("Naujausios dainos");
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,8");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  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";
 }
closeside();
echo "</td>
<td width='33%'>";
openside("Populiariausi albumai");
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_reads DESC LIMIT 0,9"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 23);
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {

}


closeside();
echo "</td>
<td width='33%'>";
openside("Populiariausios dainos");
 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
 if (dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>";
  while ($data = dbarray($result)) {
   echo "<tr>
    <td class='small'>
     <img src='http://www.muzika.nkk.lt/images/star.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";
 }
closeside();
echo "</tr>
</table>";

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



   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   
   echo "


<div align='center'><table width='100%'><table width='100%' border='0' cellpadding='0' cellspacing='0'>


<td><p align='center'><font size='1'></a>
<a  title='Pradinis puslapis' href='".BASEDIR."index.php'>
<img src='".THEME."links/pagr.jpg' border='0'></p>
</td>
<td><p align='center'><font size='1'></a>
<a  title='Muzika' href='".BASEDIR."downloads.php'>
<img src='".THEME."links/music.jpg' border='0'></p>
</td>
</td>
<td><p align='center'><font size='1'></a>
<a  title='Foto Galerija' href='".BASEDIR."photogallery.php'>
<img src='".THEME."links/photo_gallery.jpg' border='0'></p>
</td>
<td><p align='center'><font size='1'></a>
<a  title='Forumas' href='".BASEDIR."forum/index.php'>
<img src='".THEME."links/forum.jpg' border='0'></p>
</td>
<td><p align='center'><font size='1'></a>
<a  title='Dainø &#254;od&#254;iai' href='".BASEDIR."articles.php'>
<img src='".THEME."links/dz.jpg' border='0'></p>
</td>


<td><p align='center'><font size='1'></a>
<a  title='Puslapio Paie&#240;kos sistema' href='".BASEDIR."search.php'>
<img src='".THEME."links/search.jpg' border='0'></p>
</td>
<td><p align='center'><font size='1'></a>
<a  title='Kaip siøstis?' href='".BASEDIR."viewpage.php?page_id=2'>
<img src='".THEME."links/kaip_siustis.jpg' border='0'></p>
</td>
</td>
</table>
</div>

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


   echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tr>";




   
}

function render_footer($license=false) {

global $theme_width,$settings;

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

<td align='center' class='footer' height='150'>".stripslashes($settings['footer'])."<br>
Music theme by Undersky<br><br>";
{echo""; } echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table style='border: 1px solid #33cc66' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td background='".THEME."images/news_cell.gif' height='25' border='1'><font class='block-title' align=>$subject</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td height='22' align='center' class='news-footer'>\n";
        echo openform("N",$info['news_id']).newsopts($info,"&middot;").closeform("N",$info['news_id']);
        echo "</td></tr></table></td></tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table style='border: 1px solid #33cc66' cellspacing='0' width='100%' cellpadding='1'><tr>";
   echo "<td background='".THEME."images/news_cell.gif' height='25' border='1'><font class='block-title' FACE='Arial'><B><center>$subject</center></B></font></td>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td height='22' align='center' class='news-footer'>\n";
        echo openform("N",$info['news_id']).newsopts($info,"&middot;").closeform("N",$info['news_id']);
   echo "</td></tr></table></td></tr></table>\n";
}



// Open table begins
function opentable($title) {

   echo "<table width='100%' height='30' cellpadding='0' cellspacing='0' style='border: 2px solid #33cc66' >";
   echo "<tr><td background='".THEME."images/cellpic4.JPG' height='30'><center><font class='head-title' FACE='Arial'><B>&nbsp;$title</B></font></td></center>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border' border='2'><tr>";
   echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>\n";
}

function openside($title) {

   echo "<table style='border: 2px solid #33cc66' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='30' width='100%' background='".THEME."images/cellpic4.JPG'>";
   echo "<center><font class='block-title' FACE='Arial'><B>$title</B></font></center>";
   echo "</td></tr>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%' height='0'>
  <tr>
    <td width='100%'></td>
  </tr>
</table>";
   tablebreak();
}

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

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

   echo "<table border='0' style='border: 2px solid #33cc66' cellspacing='0' width='100%' cellpadding='0'><tr>";
   echo "<td height='30' width='100%' background='".THEME."images/cellpic4.JPG'>";
   echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"><center><font class='block-title'>$title</font></center>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
   echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}


function closesidex() {

   echo "</div></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='0'></td></tr></table>\n";
}
?>