Parašė FuturesF1re· 2008 Geg. 10 14:05:10
#9
prisegiau, jei tingit siustis duodu temos koda:
<?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%'>";
// Puslapio headerio kodas
echo "<table id='eta_header' width='988' height='150' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td rowspan='3' class='header1' width='475' height='150' alt=''></td>
<td colspan='2' class='header2' width='513' height='47' alt=''></td>
</tr>
<tr>
<td class='header3' width='472' height='64' alt=''>";
$text = array("");
$cc = count ($text) ;
$cl = $cc-1;
$rand = rand(0,$cl) ;
echo"$text[$rand]";
echo "</td>
<td class='header4' width='41' height='64' alt=''></td>
</tr>
<tr>
<td colspan='2' class='header5' width='513' height='39' 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='244'><img src='".THEME."images/sonas_kaire.png'></td>
<td width='100' valign='top'><a href='".BASEDIR."index.php'
onmouseover=\"a.src='".THEME."images/namai2.png'\"
onmouseout=\"a.src='".THEME."images/namai.png'\">
<img src='".THEME."images/namai.png' name='a'></a></td>
<td width='100' valign='top'><a href='".forumas."/index.php'
onmouseover=\"b.src='".THEME."images/forumas2.png'\"
onmouseout=\"b.src='".THEME."images/forumas.png'\">
<img src='".THEME."images/forumas.png' name='b'></a></td>
<td width='100' valign='top'><a href='".BASEDIR."siuntimai.php'
onmouseover=\"c.src='".THEME."images/siuntiniai2.png'\"
onmouseout=\"c.src='".THEME."images/siuntiniai.png'\">
<img src='".THEME."images/siuntiniai.png' name='c'></a></td>
<td width='100' valign='top'><a href='".BASEDIR."pamokos.php'
onmouseover=\"d.src='".THEME."images/straipsniai2.png'\"
onmouseout=\"d.src='".THEME."images/straipsniai.png'\">
<img src='".THEME."images/straipsniai.png' name='d'></a></td>
<td width='100' valign='top'><a href='http://www.csego.lt/serveriai/'
onmouseover=\"e.src='".THEME."images/serveriai2.png'\"
onmouseout=\"e.src='".THEME."images/serveriai.png'\">
<img src='".THEME."images/serveriai.png' name='e'></a></td>
<td width='244'><img src='".THEME."images/sonas_desine.png'></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='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://www.futuresf1re.xz.lt'>Future's F1re</a></b>";
echo "</td>";
echo "<div align='center'></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='left'>";
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&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='center'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&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 FuturesF1re· 2008 Geg. 10 14:05:31