Witam,
a mojej stronie jest tak iż (niewiem jak to nazwać) dam fotke.
Chcę żeby to co jest na środku najbardziej na dole było w tym panelu "Reklama" i ogólnie we wszystkich panelach które są NA ŚRODKU
te pliki nazywają się: capmain.jpg (ten na środku), scapmain.jpg(ten po lewej)
oto theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#fff";
$body_bg = "#5c5e5d";
$theme_width = "850";
$theme_width_l = "195";
$theme_width_r = "195";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' align='center' width='$theme_width'>
<tr>
<td style='border-bottom: solid #5c5e5d 2px;'>";
include_once "virsus.php";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table align=center cellpadding='0' cellspacing='0' width='850' >\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>
<tr>
<td align='center' class='footer' height=20>
© <b>teledyski-online.eu | Sprendimas WTFthemes.com </b>
</td>
</tr>
<tr>
<td align='right' class=footer3 height=15>";
echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> copyright © 2003-2007 by Nick Jones.
Released as free software under the terms of the GNU/GPL license.";
echo "</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 height='29' class='capmain1'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td></td>";
echo "<td class='main-body1'><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 align='left' height='21' 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'])." ";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b> ";
echo "".$info['news_reads'].$locale['044']." ";
echo "</td></tr></table></div></td>";
echo "<td class='rechts'>";
echo "</td></tr><tr>";
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
echo "</tr></table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain1'>$subject</td>
</tr>
<tr>
<td class='main-body1'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function render_movie($subject, $movie, $info) {
global $locale;
include LOCALE.LOCALESET."movies.php";
opentable($subject);
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='424' class='border'>";
$r = substr($movie, -3, 3);
if ($r=="wmv") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="mpg") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="avi") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="swf") {
echo "<div align='center'>";
echo"<br><br><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shckwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='424' HEIGHT='355' id='grmovie' name='grmovie'>
<PARAM NAME=movie VALUE='$movie'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$movie' flashvars='gcode=482CD697' menu=false quality=high WIDTH='425' HEIGHT='355' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grmovie' name='grmovie'></embed></object><br><br>";
}elseif ($r=="mp3") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="wma") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="mov") {
echo "<div align='center'>";
echo "<br><br><embed type='video/quicktime' src='$movie' controller='true' target='myself' pluginspage='http://www.apple.com/quicktime/download/' loop='FALSE' autoplay='true' border='1' height='425' width='355'></embed><br><br>";
}elseif ($r=="txt") {
echo "<div align='left'><br><br>";
$buff = nl2br(file_get_contents($movie));
echo $buff."</div><br><br>";
}else{
echo "<div align='center'>";
echo "<br><br><embed src='$movie' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='355' width='425'><br><br>";
}
echo "</div></table></div>";
closetable();
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width=176 class='scapmain'>$title</td>
</tr>
<tr colspan=2>
<td colspan=2 class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function userside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='side-body'>\n";
}
function closeuside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='15'></td>\n</tr>\n</table>\n";
}
?>
i plik virus.php moze tez sie do czegos przyda
<?php
echo "
<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' style='border-right: solid # 2px;'>
<tr>
<td width=199 height=49 align=center style='border-right: solid #5c5e5d 2px;' bgcolor='#3d3f3e'><a href=".BASEDIR."index.php><img src=".THEME."nuorodos/home.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."search.php><img src=".THEME."nuorodos/search.jpg border=0></a><img src=".THEME."nuorodos/hr.jpg border=0><a href=".BASEDIR."contact.php><img src=".THEME."nuorodos/contact.jpg border=0></a></td>
<td width=472 height=49 bgcolor='#3d3f3e' align=left>
<td width=199 height=51 style='border-left: solid # 2px;' bgcolor='#3d3f3e' background='".THEME."images/headeris3.jpg' align=right class='headeris5'></td>
<table align=center border=0 cellpadding='0' cellspacing='0' width='662'>
</tr>
</table>
</tr>
</table>
<table align=center border=0 cellpadding='0' cellspacing='0' width='$theme_width' bgcolor='#3d3f3e'>
<tr>
<td width=195 >
<table align=center border=0 cellpadding='0' cellspacing='0' width='195' height='194' bgcolor='#3d3f3e'>
<td background='".THEME."images/navigacija.jpg' class='nuorodos'>"; echo showsublinks("<br><img src=".THEME."images/bullet.gif border=0>",white); echo "</td>
</table>
<td width=663>
<table align=left border=0 cellpadding='0' cellspacing='0' width='460' class='headeris'>
<tr>
<td width='460' height='194' background='".THEME."images/headeris.jpg'></td>
<table align=center border=0 cellpadding='0' cellspacing='0' width='193' bgcolor='#3d3f3e'>
<tr>
<td width=150 valign=top height=150 background='".THEME."images/navigacija2.jpg' style='padding: 4px;'><br>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=n' class='um'>Wyslij Newsa</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=a' class='um'>Dodaj Artykul</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."submit.php?stype=p' class='um'>Wyslij Zdjecie</a><br>
<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='um'>Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='um'>Wiadomosci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='um'>Uzytkownicy</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='um'>Wyloguj sie</a>\n";
} else {
echo "<br><div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<font color='#fffff'>Nazwa Uzytkownika</font>
<input type='text' name='user_name' class='textbox' style='width:100px' value='Nazwa Uzytkownika' onclick='if (this.value=="Vartotojas") {this.value="";}' onblur='if (this.value=="") {this.value="";};'><br>
<font color='#fffff'>Haslo</font><br>
<input type='password' name='user_pass' class='textbox' style='width:100px' value='Haslo' onblur='if (this.value=="Vartotojas") {this.value="";}' onclick='if (this.value=="Vartotojas") {this.value="";}' onblur='if (this.value=="") {this.value="";};'><br>
<input type='submit' name='login' value='Zaloguj' class='button'><br>
</form></div>
<br>\n";
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."register.php' class='um'><font color='#fffff'>Zaloz Konto</font></a><br>";
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."lostpassword.php' class='um'><font color='#fffff'>Przypomnij Haslo</font></a>";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
echo "</td>
</td>
</tr>
</table>
</td>
</tr>
</table>";
?>
|