Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del top ir naujausiu siuntinu

Parašė Donatas· 2008 Lie. 15 19:07:26
#5

stai visas theme.php
<?php

/************************/
/* Settings/Nustatymai   */
/************************/

$body_text = "#bbbbbb";
$body_bg = "#ffffff";
$theme_width = "988";
$theme_width_l = "180";
$theme_width_r = "180";


function render_header($header_content) {
global $theme_width,$settings;

 echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='margin-top: -5px; margin-bottom: -5px; border-top: solid #000000 1px;'>";
   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%'>";
   
// Puslapio headerio kodas

        echo "<table id='header_01' width='990' height='200' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td rowspan='3' class='header1' width='553' height='200' alt=''></td>
      <td colspan='4' class='header2' width='434' height='51' alt=''></td>
      <td>
         <img src='images/spacer.gif' width='1' height='14' alt=''></td>
   </tr>
   <tr>
      <td class='header3' width='203' height='120' alt=''>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table align='center' width='200' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
                                        <img src='".THEME."images/bulletb.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'], 30)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }
     echo "</td>
                <td class='header4' width='19' height='120' alt=''></td>
      <td class='header5' width='204' height='120' alt=''>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_count DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table width='200' align='center' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
               <img src='".THEME."images/bulletb.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'], 30)."</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }
          echo "</td>
                <td class='header6' width='10' height='120' alt=''></td>
      
   </tr>
   <tr>
      <td colspan='4' rowspan='2' class='header7' width='434' height='29' alt=''></td>
      <td>
         <img src='images/spacer.gif' width='1' height='30' alt=''></td>
   </tr>
</table>";
        



// Puslapio headerio kodo pabaiga
   
   echo "<table width='100%' height='2' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
  <tr>
    <td width='100' valign='top'><a href='".BASEDIR."news.php'
onmouseover=\"a.src='".THEME."images/namai2.gif'\"
onmouseout=\"a.src='".THEME."images/namai.gif'\">
<img src='".THEME."images/namai.gif' name='a'></a></td>
    <td width='100' valign='top'><a href='".FORUM."index.php'
onmouseover=\"b.src='".THEME."images/forumas2.gif'\"
onmouseout=\"b.src='".THEME."images/forumas.gif'\">
<img src='".THEME."images/forumas.gif' name='b'></a></td>
    <td width='100' valign='top'><a href='".BASEDIR."downloads.php'
onmouseover=\"c.src='".THEME."images/siuntiniai2.gif'\"
onmouseout=\"c.src='".THEME."images/siuntiniai.gif'\">
<img src='".THEME."images/siuntiniai.gif' name='c'></a></td>
    <td width='100' valign='top'><a href='".BASEDIR."articles.php'
onmouseover=\"d.src='".THEME."images/straipsniai2.gif'\"
onmouseout=\"d.src='".THEME."images/straipsniai.gif'\">
<img src='".THEME."images/straipsniai.gif' name='d'></a></td>
    <td width='100' valign='top'><a href='".BASEDIR."serveriai.php'
onmouseover=\"e.src='".THEME."images/serveriai2.gif'\"
onmouseout=\"e.src='".THEME."images/serveriai.gif'\">
<img src='".THEME."images/serveriai.gif' name='e'></a></td>
    <td width='489'><img src='".THEME."images/sonas_desine.gif'></td>
  </tr>
</table>\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #FFFFFF 1px; border-left: solid #FFFFFF 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='' class='white' align='center'>";
   echo "<div align='left'>  &#169 Dizainas Kurtas: <a href='http://www.csFrag.gan.lt'>Arnelio</a></b></div>";
   echo "</td>";
   echo "<div align='left'></tr></table></td></tr></table></div>";
}

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


global $locale;

         echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='25' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' 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 class='news-footer'>";

   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   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></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='25' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' 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 class='news-footer'>";
   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 height='24' align='right'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
   echo "".$info['article_reads'].$locale['044']." ";
   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></td></tr></table>\n";
}

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

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='25' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

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

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='25' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

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

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='25' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

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

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



Redagavo Donatas· 2008 Lie. 15 19:07:58