Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujienų reitingavimo sistema

Parašė NoNy· 2008 Bal. 18 18:04:24
#59

<?php

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

$body_text = "#262626";
$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%'>";
   
// Start banner code / Banerio kodas



   echo "<table id='Table_01' width='1001' height='211' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td colspan='21'>
         <img src='".THEME."images/head_01.jpg' width='1000' height='159' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='159' alt=''></td>
   </tr>
   <tr>
      <td rowspan='3'>
         <img src='".THEME."images/head_02.jpg' width='6' height='34' alt=''></td>
      <td rowspan='3'>
         <a href='http://www.wg.xz.lt/news.php'><img src='".THEME."images/pagrindinis.jpg' width='82' height='34' border='0' onMouseOver=this.src='".THEME."images/pagrindinis.gif' onMouseOut=this.src='".THEME."images/pagrindinis.jpg'></a></td>
      <td rowspan='3'>
         <img src='".THEME."images/head_04.jpg' width='1' height='34' alt=''></td>
      <td rowspan='3'>
         <a href='http://www.wg.xz.lt/forum/index.php'><img src='".THEME."images/forumas.jpg' width='63' height='34' border='0' onMouseOver=this.src='".THEME."images/forumas.gif' onMouseOut=this.src='".THEME."images/forumas.jpg'></a></td>
      <td rowspan='3'>
         <img src='".THEME."images/head_06.jpg' width='1' height='34' alt=''></td>
      <td rowspan='3'>
         <a href='http://www.wg.xz.lt/downloads.php'><img src='".THEME."images/siuntimai.jpg' width='69' height='34' border='0' onMouseOver=this.src='".THEME."images/siuntimai.gif' onMouseOut=this.src='".THEME."images/siuntimai.jpg'></a></td>
      <td rowspan='3'>
         <img src='".THEME."images/head_08.jpg' width='1' height='34' alt=''></td>
      <td rowspan='3'>
         <a href='http://www.wg.xz.lt/serveriai'><img src='".THEME."images/serveriai.jpg' width='68' height='34' border='0' onMouseOver=this.src='".THEME."images/serveriai.gif' onMouseOut=this.src='".THEME."images/serveriai.jpg'></a></td>
      <td rowspan='3'>
         <img src='".THEME."images/head_10.jpg' width='1' height='34' alt=''></td>
      <td rowspan='3'>
         <a href='http://www.wg.xz.lt/articles.php'><img src='".THEME."images/pamokos.jpg' width='64' height='34' border='0' onMouseOver=this.src='".THEME."images/pamokos.gif' onMouseOut=this.src='".THEME."images/pamokos.jpg'></a></td>
      <td colspan='9'>
         <img src='".THEME."images/head_12.jpg' width='356' height='8' alt=''></td>
      <td colspan='2' rowspan='2'>
         <img src='".THEME."images/head_13.jpg' width='288' height='16' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='8' alt=''></td>
   </tr>
   <tr>
      <td rowspan='2'>
         <img src='".THEME."images/head_14.jpg' width='93' height='26' alt=''></td>
      <td>
         <a href='http://www.wg.xz.lt/viewpage.php?page_id=4'><img src='".THEME."images/uzeriai.jpg' width='34' height='8' border='0' onMouseOver=this.src='".THEME."images/uzeriai.gif' onMouseOut=this.src='".THEME."images/uzeriai.jpg'></a></td>
      <td>
         <img src='".THEME."images/head_16.jpg' width='17' height='8' alt=''></td>
      <td>
         <a href='http://www.wg.xz.lt/viewpage.php?page_id=4'><img src='".THEME."images/admin.jpg' width='76' height='8' border='0' onMouseOver=this.src='".THEME."images/admin.gif' onMouseOut=this.src='".THEME."images/admin.jpg'></a></td>
      <td>
         <img src='".THEME."images/head_18.jpg' width='18' height='8' alt=''></td>
      <td>
         <a href='http://www.wg.xz.lt/contact.php'><img src='".THEME."images/paslaugos.jpg' width='50' height='8' border='0' onMouseOver=this.src='".THEME."images/paslaugos.gif' onMouseOut=this.src='".THEME."images/paslaugos.jpg'></a></td>
      <td>
         <img src='".THEME."images/head_20.jpg' width='19' height='8' alt=''></td>
      <td>
         <a href='http://www.wg.xz.lt/viewpage.php?page_id=3'><img src='".THEME."images/reklama.jpg' width='40' height='8' border='0' onMouseOver=this.src='".THEME."images/reklama.gif' onMouseOut=this.src='".THEME."images/reklama.jpg'></a></td>
      <td>
         <img src='".THEME."images/head_22.jpg' width='9' height='8' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='8' alt=''></td>
   </tr>
   <tr>
      <td colspan='9' rowspan='2'>
         <img src='".THEME."images/head_23.jpg' width='487' height='35' alt=''></td>
      <td rowspan='2'>
         <img src='".THEME."images/head_24.jpg' width='64' height='35' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='18' alt=''></td>
   </tr>
   <tr>
      <td colspan='11'>
         <img src='".THEME."images/head_25.jpg' width='449' height='17' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='17' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/spacer.gif' width='6' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='82' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='63' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='69' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='68' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='64' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='93' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='34' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='17' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='76' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='19' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='40' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='9' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='224' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='64' height='1' alt=''></td>
      <td></td>
   </tr>
</table>";


   // End banner code / Banerio kodo pabaiga
   
   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='25' 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='right'>";
   echo "<b>Sprendimas: <a href='http://v3rm1.xz.lt'>V3rm1</a></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

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


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='right'>$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='right'>$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";
}
?>




Va čia mano theme.php, bet aš nerandu tų vietų.. :(