Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del temos

Parašė switz· 2009 Lap. 21 21:11:38
#1

va pažėkit kas čia temai yra: Www.clubmusic.nkk.lt
Theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "970";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='970' class='border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>

<tr>
<td class='sritis_login' height='120'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='520'></td>
<td width='195'><table align='center' cellpadding='0' cellspacing='0' width='195'>
<tr>
<td class='side-body-login'>
<tr>
<td align='center' width='500'>";
include THEME."code/search.php";
echo "</td>
</tr>
</table>

<table cellpadding='0' cellspacing='0' width='100%'>
<tr>

<td height='5'></td>
</tr>
</table>
</td>
<td width='100'></td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='sritis_panel'>
<tr>
<td width='344'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>

<table width='100%' cellpadding='0' cellspacing='0'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 26);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntinių nėra !</center>\n";
}

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

</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>
</table>
</td>
<td width='20'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>
<table width='100%' cellpadding='0' cellspacing='0'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 26);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntinių nėra !</center>\n";
}

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

</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>

</table>
</td>
<td width='22'></td>
</tr>
</table>";


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
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='footer'>
&nbsp;&nbsp;&nbsp;<span><img src='".THEME."images/bullet.gif' alt=''> Varikliukas: <a href='http://php-fusion.co.uk' target='_blank' class='small'>PHP-Fusion </a><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$subject</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'>".newsposter($info)."</td>";
   echo "<td align='right' class='infobar2'>";
   echo openform("N",$info['news_id']).newsopts($info,"&middot;").closeform("N",$info['news_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'>";
   echo "</td></tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "</tr></table>\n";
}

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

global $locale;
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$subject</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='infobar'>".articleposter($info)."</td>";
   echo "<td align='right' class='infobar2'>";
   echo openform("A",$info['article_id']).articleopts($info,"&middot;").closeform("A",$info['article_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "</tr></table>\n";
}

function opentable($title) {

echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td><td width='100%' class='panel-main'>$title</td><td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td></tr></taašable width='100%' cellpadding='0' cellspacing='0'><tr><td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td><td class='side-body'>\n";

}

function closetable() {

echo "</td><td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr><tr><td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td><td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td><td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td></tr></table>\n";

}

function openside($title) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td><td width='100%' class='panel-main'>$title</td><td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td></tr></taašable width='100%' cellpadding='0' cellspacing='0'><tr><td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td><td class='side-body'>\n";

}

function closeside() {

echo "</td><td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr><tr><td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td><td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td><td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td></tr></table>\n";

}

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "<td class='panel-main'>$title</td>";
   echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
   echo "<td class='side-body'>";
   echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}

function closesidex() {

   echo "</div>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
   echo "</tr></table>\n";
}

function tablebreak() {

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



Styles.css":
body {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:11px;
   background: url(images/bg.png);
   padding:0px 0px 0px 0px;
   margin: 5px 10px 0px 10px;
   scrollbar-face-color: #DADADA;
   scrollbar-highlight-color: #FFFFFF;
   scrollbar-shadow-color: #ededed;
   scrollbar-3dlight-color: #E9E9E9;
   scrollbar-arrow-color: #4c4c4c;
   scrollbar-track-color: #EFEFEF;
   scrollbar-darkshadow-color: #D4D4D4;
}

.sritis_login {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   background: url(images/header.jpg);
   width: 970px;
   height: 135px;
   font-size : 10px;
}

.sritis_panel {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   background: url(images/header2.jpg);
   width: 970px;
   height: 160px;
   font-size : 10px;
}

a {
   color:#4c4c4c; text-decoration:none;
}

a:hover {
   color:#B27100; text-decoration: blink;
}

a.side {
   color:#4c4c4c; text-decoration:none; font-weight:bold;
}

a:hover.side {
   color:#B27100; text-decoration: blink;
}

a.white {
   font-size:11px;color:#FFFFFF; text-decoration:none;
}

a:hover.white {
   color:#B27100; text-decoration:none;
}


img {
   border: 0px;
}

form {
   margin:0px 0px 0px 0px;
}

hr {
   border-top:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}

hr.side-hr {
   border:1px #E2E2E2 solid;
   border-bottom:1px #F9F9F9 solid;
}

td {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:11px;
}

pre {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
}

.alt {
   color:#666;
}

.header {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   color:#333;
   background-color:#FFFFFF;
   padding:5px;
}

.footer {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #049ee5;
   background-image: url(images/footer.gif);
   height: 50px;
   padding : 5px;
}

.button {
   background-image:url(images/button.gif);
   font-family:Tahoma,Arial,Verdana,Sans-Serif;
   font-size:10px;
   color:#4c4c4c;
   background-color:#F2F1ED;
   border:#999999 1px solid;
   margin-top:2px;
}
   
.textbox {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   color:#000;
   background-color:#FFFFFF;
   border:1px #666 solid;
}

.main-bg {
   padding:5px 0px 5px 0px;
}

.side-border-left {
   padding:5px 5px 0px 0px;
}

.side-border-right {
   padding:5px 0px 0px 5px;
}

.main-body {
   font-size:11px;
   color:#000;
   background-color:#FFFFFF;
   padding:12px 4px 3px 4px;
}

.side-body {
   font-size:9px;
   color:#000;
   background-color:#FFFFFF;
   padding:5px 0px 0px 0px;
}

.border {
   background-color:#ffffff;
   border:1px #CA7C00 solid;
   
}

.infobar {
   background-color:#F9F9F9;
   font-size:9px;
   color:#4c4c4c;
   border-top: solid #C4C4C4;
   border-top-width: 1px;
   border-left: solid #C4C4C4;
   border-left-width: 1px;
   border-right: solid #F6F6F6;
   border-right-width:0px;
   border-bottom: solid #F6F6F6;
   border-bottom-width:1px;
   padding:3px 4px 3px 4px;
}

.infobar2 {
   background-color:#F9F9F9;
   font-size:9px;
   color:#676767;
   border-top: solid #C4C4C4;
   border-top-width: 1px;
   border-left: solid #C4C4C4;
   border-left-width: 0px;
   border-right: solid #F6F6F6;
   border-right-width:1px;
   border-bottom: solid #F6F6F6;
   border-bottom-width:1px;
   padding:3px 4px 3px 4px;
}

.panel-left {
   width:13px; height:26px;
   background-image:url(images/panel-left.gif);
}

.panel-right {
   width:13px; height:26px;
   background-image:url(images/panel-right.gif);
}

.panel-main {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;font-weight:bold;
   color:#3A3A3A;
   height:26px;
   padding:0px 2px 0px 2px;
   background-image:url(images/panel-main.gif);
   background-repeat:repeat-x;
}

.border-left {
   width:13px; background-image:url(images/border-left.gif);
   background-repeat:repeat-y;
}

.border-right {
   width:13px; background-image:url(images/border-right.gif);
   background-repeat:repeat-y;
}

.border-bleft {
   width:13px; height:20px;
   background-image:url(images/border-bleft.gif);
}

.border-bright {
   width:13px; height:20px;
   background-image:url(images/border-bright.gif);
}

.border-bmain {
   height:20px; background-image:url(images/border-bmain.gif);
   background-repeat:repeat-x;
}

.side-caption {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px; font-weight:bold;
   color:#FFFFFF; background-color:#004A80;
   padding:0px 4px 3px 4px;
}

.tbl-border {
   background-color:#979797;
}

.tbl {
   font-size:10px; padding:3px 4px 3px 4px;
}

.tbl1 {
   font-size:10px; color:#4c4c4c;
   background-color:#FFFFFF; padding:4px;
}

.tbl2 {
   font-size:10px; color:#4c4c4c;
   background-color:#F6F6F6; padding:4px;
}
   
.forum-caption {
   font-size:10px; font-weight:bold;
   background-image:url(images/cellpic.gif);
   color:#3a3a3a; background-color:#F6F6F6;
   padding:4px 4px 4px 4px;
}

.quote {
   color:#9a5c00; background-color:#F9F9F9;
   padding:2px;
   margin:0px 20px 0px 20px;
   border:1px #979797 solid;
}

.copyright {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:9px;
   color:#FFFFFF;
}
   
.poll {
   height:12px; border:1px #979797 solid;
}

.comment-name {
   font-weight:bold; color:#f87f02;
}

.shoutboxname {
   font-weight:bold; color:#f87f02;
}

.shoutbox {
   color:#555;
}

.shoutboxdate {
   font-size:9px; color:#333; text-align:right;
}

.small {
   font-size:10px; font-weight:normal;
}

.small2 {
   font-size:10px; font-weight:normal; color:#555;
}

.side-small {
   font-size:9px; font-weight:normal; color:#333;
}

.side-label {
   background-color:#e3e3e3;
   padding:1px 4px 3px 4px;
   background-image:url(images/side-cell.gif);
   background-repeat:repeat-x;
}

.gallery {
   padding: 16px 0px 8px 0px;
}

.gallery img {
   border: 1px solid #979797; filter: gray;
}

.gallery:hover img {
   border: 1px solid red; filter: none;
}

img.activegallery {
   border: 1px solid green; filter: none;
}
.text {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 11px;
   color: #000000;
}
.border2 {

   border: 2px solid #000000;
.big {

   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 11px;
   color: #000000;
   
}